query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Created by 10840 on 2015/12/26.
public interface MainModelInterface { void createTable(SQLiteDatabase db, String tableName); void saveIdAndPassword(SQLiteDatabase db, String tableName, String id, String password); UserBean getUserBean(SQLiteDatabase db, String tableName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void 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 nadar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void poetries() {\n\n\t}", "private void m50366E() {\n }", "public void mo6081a() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void mo21779D() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo12930a() {\n }", "@Override\n public void init() {\n\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo3376r() {\n }", "public void mo21878t() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21825b() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public void mo3749d() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo9848a() {\n }", "public void mo97908d() {\n }", "public void m23075a() {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "static void feladat9() {\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public abstract void mo56925d();", "@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}", "public void mo21782G() {\n }", "public final void mo91715d() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void init() {\n }", "public void mo115190b() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void method_4270() {}", "public void mo21791P() {\n }", "@Override\n void init() {\n }", "@Override\n protected void initialize() {\n\n \n }" ]
[ "0.6026789", "0.6009822", "0.59813297", "0.5980576", "0.5941108", "0.5941108", "0.59046096", "0.5876756", "0.5846627", "0.584304", "0.5834488", "0.5833747", "0.5824985", "0.5786448", "0.57847476", "0.57707787", "0.57198036", "0.5718928", "0.571683", "0.571683", "0.5692892", "0.5692892", "0.5692892", "0.5692892", "0.5692892", "0.5692892", "0.5692892", "0.5688947", "0.5681359", "0.56720245", "0.5667039", "0.5661327", "0.5657046", "0.5656519", "0.56545484", "0.5652209", "0.564617", "0.56313443", "0.5625127", "0.5625127", "0.5625127", "0.5625127", "0.5625127", "0.56229997", "0.56053495", "0.5600762", "0.5577368", "0.55763245", "0.5568523", "0.5565849", "0.5558512", "0.5557921", "0.55578834", "0.5556975", "0.55510247", "0.55469173", "0.5538557", "0.553823", "0.5528462", "0.5521268", "0.5518513", "0.55060256", "0.5505396", "0.5502435", "0.5497682", "0.54944307", "0.54944307", "0.54944307", "0.54920703", "0.5490451", "0.54885095", "0.54862016", "0.5485933", "0.5480743", "0.54781365", "0.5474587", "0.54716814", "0.547092", "0.5466321", "0.5466321", "0.5466321", "0.5464263", "0.5457598", "0.5457598", "0.5457598", "0.5453344", "0.54523677", "0.5450189", "0.544848", "0.5439838", "0.5433604", "0.5433604", "0.5428616", "0.5427067", "0.5424467", "0.5421189", "0.5421189", "0.5417967", "0.5417922", "0.5417294", "0.5415227" ]
0.0
-1
Created by Zy2ba on 29.05.2015.
public interface ZachetManager extends ActivityManager<Zachet> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void kk12() {\n\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\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\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 void init() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private zza.zza()\n\t\t{\n\t\t}", "private void m50366E() {\n }", "@Override\n public void init() {\n\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 void mo55254a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo12628c() {\n }", "@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 init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "protected void mo6255a() {\n }", "static void feladat4() {\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}", "@Override\n public void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\n void init() {\n }", "public void mo12930a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void skystonePos4() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "static void feladat9() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "private void init() {\n\n\n\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo21877s() {\n }", "public abstract void mo70713b();", "@Override\n public void memoria() {\n \n }", "public void mo21825b() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }" ]
[ "0.5939892", "0.591244", "0.58794475", "0.5815226", "0.5814116", "0.5814116", "0.57864714", "0.5784705", "0.57543117", "0.5705836", "0.56846505", "0.56846404", "0.56837136", "0.5671003", "0.56663895", "0.5658932", "0.56477296", "0.5616611", "0.5615358", "0.56123656", "0.5604685", "0.55938315", "0.5570568", "0.55576885", "0.5554023", "0.5552463", "0.5552463", "0.5552463", "0.5552463", "0.5552463", "0.555226", "0.5536481", "0.552373", "0.5518454", "0.5515977", "0.55047315", "0.55008096", "0.54909", "0.54909", "0.54909", "0.54909", "0.54909", "0.54909", "0.54909", "0.5488791", "0.5487043", "0.54862165", "0.54729944", "0.54639983", "0.5457763", "0.54506856", "0.5428544", "0.54207605", "0.54207605", "0.54099846", "0.54099846", "0.54099846", "0.54050076", "0.5403013", "0.5401483", "0.5401483", "0.5401483", "0.5398759", "0.53972536", "0.53972536", "0.5394459", "0.5388406", "0.53822786", "0.53822786", "0.53822786", "0.53812015", "0.5378946", "0.53773594", "0.5375645", "0.53703135", "0.53702754", "0.5367074", "0.5367074", "0.53643674", "0.5363418", "0.5360982", "0.5358984", "0.5350032", "0.5345786", "0.533952", "0.5333863", "0.5332857", "0.532751", "0.53269404", "0.5326937", "0.53232956", "0.5320011", "0.5317531", "0.53149825", "0.5313461", "0.5312752", "0.5307675", "0.530025", "0.5297223", "0.5297223", "0.5297223" ]
0.0
-1
Get the total weight count for signal samples
public double getTotalSignalCount(){ double total=0; for(Sample s: signalSamples) total += s.getHitCount(); return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }", "public int getWeightSize() {\r\n\t\treturn weigths.length;\r\n\t}", "public double getTotalWeight() {\n return this.totalWeight;\n }", "default double totalWeight() {\n return edges().stream().mapToDouble(E::weight).sum();\n }", "public int weight(Person person) {\n\t\tthis.weightMeasuredCount++; \n return person.getWeight(); \n }", "public int getTotalWeight() {\n\t\tif (_cachedTotalWeight == 0) {\n\t\t\tint totalWeight = getWeight();\n\t\t\tfor (Program child : getChildren()) {\n\t\t\t\ttotalWeight += child.getTotalWeight();\n\t\t\t}\n\t\t\t_cachedTotalWeight = totalWeight;\n\t\t}\n\t\treturn (_cachedTotalWeight);\n\t}", "public double weightedTally() {\r\n if (tupleCount == 0) return 0;\r\n\r\n double total = 0.0;\r\n\r\n for (int i = 0; i < tupleCount; i++) {\r\n Tuple t = tuple[i];\r\n total += t.getWeight();\r\n }\r\n\r\n return total;\r\n }", "public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }", "public int nSamples() {\n return samples.nSamples();\n }", "public double getTotalWeight() {\n\t\tdouble totalWeight = 0;\n\t\tfor (Item item : purchaseList.getCurrentPurchases()) {\n\t\t\tif(purchaseList.isBagged(item)) {\n\t\t\t\ttotalWeight += item.getWeight();\n\t\t\t}\n\t\t}\n\t\treturn totalWeight;\n\t}", "public double getTotalSignalEstBackCount(){\n\t\tdouble total=0;\n\t\tfor(ControlledExperiment r : replicates){\n\t\t\ttotal+=r.getNoiseCount();\n\t\t}\n\t\treturn total;\n\t}", "public int weight(){\n\t\treturn this.weight;\n\t}", "@Override\n\t\tpublic int get_weights() {\n\t\t\treturn weight;\n\t\t}", "public double getWeight() {\n\t\tIterator<Ball> it = this.contents.iterator();\n\t\tdouble retVal = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tretVal += it.next().getWeight();\n\t\t}\n\t\treturn retVal;\n\t}", "public int weight ();", "public int weight() {\n \treturn weight;\n }", "public abstract double totalWeight();", "public int getWeight() {\n\t\treturn _weight;\n\t}", "public int getWeight()\n\t{\n\t\treturn this.weight;\n\t}", "public static int size_sampleCnt() {\n return (32 / 8);\n }", "public int sumEquipmentWeight(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getWeight();\n }\n return sum;\n }", "public double getWeight()\n\t{\n\t\t//metodo precisa retornar alguma coisa\n\t\treturn 0.0;\n\t}", "public int getWeight() {\n return parameter.getWeight();\n }", "int getWeight();", "int getWeight();", "public int getWeight() {\r\n\t\treturn this.weight;\r\n\t}", "public float getWeightUsed()\r\n {\r\n // implement our own magic formula here ...\r\n return 2.0f;\r\n }", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight() {\n return weight;\n }", "public double sumOfFrequencies() {\r\n\t\tdouble output = 0.0;\r\n\t\tfor(int i=0; i<this.treeNodes.length; i++) {\r\n\t\t\toutput += this.treeNodes[i].getFrequency();\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public int getWeight(){\n\t\treturn weight;\n\t}", "public int getWeight();", "public double getTotalControlCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: controlSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "public double getTotalAdjacentInternalWeight(int nodeIndex) {\n\t\treturn this.inWeights[nodeIndex];\n\t}", "public int getWeight() {\n return this.weight;\n }", "public double getWeight() {\n\t\treturn weight; \n\t\t}", "public double getWeight(){\n\t\treturn this._weight;\n\t}", "public int getWeightedBucket() {\n float val = (float)(new Float((Math.random() * 100)));\n int totalWeight = 0;\n int i = 0;\n for (i = 0; i < weights.length; i++) {\n totalWeight += weights[i];\n if (val <= totalWeight)\n break;\n }\n return(i);\n }", "public int getWeight() {\n return weight;\n }", "public int getWeight() {\n return weight;\n }", "public float getWeight();", "public double getWeight() {\n\t\n\t\treturn this.weight;\t \n\t}", "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "public int getWeight() {\n return weight;\n }", "WeightedRandomSampling(double[] w){\n int len = w.length;\n aggregatedW = new double[len];\n counts = new int[len];\n double temp = 0;\n\n for(int i=0; i<len; i++){\n aggregatedW[i] = temp;\n //System.out.println(aggregatedW[i]);\n temp+= w[i];\n }\n }", "public double getWeight() {\n\t\treturn weight;\n\t}", "public double getWeight(){\n\t\treturn weight;\n\t}", "public int length() {\n return this.weightMatrix.length;\n }", "public float getWeight() {\n\t\t\treturn weight;\n\t\t}", "public long get_sampleCnt() {\n return (long)getUIntBEElement(offsetBits_sampleCnt(), 32);\n }", "public int getWeight() {\n\t\treturn quantity*weight; \n\t}", "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight() {\r\n return weight;\r\n }", "private double getWidthUntil(int index)\n {\n double weightsSum = 0;\n\n for (int i = 0; i < index; i++)\n {\n weightsSum += _weights.get(i);\n }\n\n return weightsSum / _totalWeight;\n }", "public int getWeight()\n {\n return weight;\n }", "public Integer getWeight() {\n return weight;\n }", "public double getWeight() {\n return weight;\n }", "public double getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "private double getUnitWidth(int index)\n {\n return _weights.get(index) / _totalWeight;\n }", "public double getWeight() {\n return 0;\n }", "int getWeight() {\n return weight;\n }", "int getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "public double getWeight() {\n \treturn this.trainWeight;\n }", "public int getWeight(){\n \treturn weight;\n }", "public Byte getWeight() {\n\t\treturn weight;\n\t}", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "int getDataScansCount();", "@Override\r\n public final int getWeight() {\r\n int i, c;\r\n Rule[] r;\r\n\r\n c = 0;\r\n r = this.m_rules;\r\n for (i = (r.length - 1); i >= 0; i--) {\r\n c += r[i].getWeight();\r\n }\r\n\r\n return c;\r\n }", "public int calculateSize( int numSamples )\n {\n return numSamples * 2;\n }", "final protected double getWeight() {\n\t\treturn getWeight( _population );\n\t}", "public double getWeight() {\n return this.weight * 2.20462;\n }", "public double getWeight() {\n\t\tif(weightConfiguration == null) {\n\t\t\treturn 1.0;\n\t\t}\n\t\treturn weightConfiguration.weightForIdentifier(this.getIdentifier());\n\t}", "public float getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "public void addWeight(){\n\t\tweight++;\n\t}", "@Override\n\tpublic double getWeight() {\n\t\treturn weight;\n\t}", "public double calcTotalOreWeight() \n {\n double fTotalOre;\n\n fTotalOre = 0.0;\n for (OrePile pile : m_orePileQueue) {\t// For this to work, Iterator must be implemented in DSAQueue\n fTotalOre += pile.getWeight();\n } \n\n return fTotalOre;\n }", "@Override\n\tpublic double getInternalWeight(int nodeIndex) {\n\t\treturn this.inWeights[nodeIndex];\n\t}", "public double getBandWidth() {\n\t\treturn bw * _mySampleRate;\n\t}", "public long getSampleCount() {\r\n\t\tif (audioFile != null) {\r\n\t\t\treturn audioFile.getEffectiveDurationSamples();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public int count(){\r\n\t\tint sum = 0;\r\n for(Integer value: words.values()){\r\n sum += value;\r\n }\r\n return sum;\r\n\t}", "@Override\n public long getFrequencyCount() {\n return count;\n }", "int getMetricsCount();", "private double sumWeights(int index, Image image){\n double sum = 0;\n for(int i= 0; i<400 ; i++){\n sum+=perceptrons.get(i).getWeight(index)\n *normalizeImageValue(image.getImage()[i]);\n }\n return sum;\n }", "int getWpaCount();", "public Weight[] getWeights() {\n return weights;\n }", "public double getWeight()\r\n {\r\n return this.weightCapacity;\r\n }", "public ButlerWeights getWeights() {\n\treturn currentWeights;\n }", "public int getTotalExtraPacks() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getExtraPacksByWins());\n }", "@Override\n public double getWeight() {\n return this.weight;\n }", "public Vec getRawWeight();", "public java.lang.Double getWeight () {\r\n\t\treturn weight;\r\n\t}", "public double getWeight()\r\n {\r\n return this.aWeight ;\r\n }", "public int getpWeight() {\n return pWeight;\n }", "public double getWeight(){\n return weight;\n }", "public double findWeight(){\n int totalCoins = gold + silver + copper + electrum + platinum;\n if((totalCoins % 3) == 0){\n return totalCoins/3;\n }\n return totalCoins * weight;\n }", "public Matrix getWeight() {\n return weights;\n }" ]
[ "0.7230713", "0.70000875", "0.69001424", "0.6783033", "0.67725885", "0.6748733", "0.67156255", "0.6711236", "0.6710855", "0.67107904", "0.6672794", "0.6632836", "0.6588245", "0.65660286", "0.6476922", "0.64409995", "0.6397857", "0.63643414", "0.63630784", "0.6348227", "0.6345957", "0.6345129", "0.63427365", "0.63298637", "0.63298637", "0.63264424", "0.63240254", "0.62879974", "0.62879974", "0.62733024", "0.62732863", "0.62628925", "0.62582123", "0.6247929", "0.6244617", "0.62417024", "0.6236454", "0.6227289", "0.6220532", "0.62031275", "0.62031275", "0.61883134", "0.6184884", "0.61756504", "0.6170043", "0.6169358", "0.6162044", "0.61315817", "0.61251175", "0.61221516", "0.61076564", "0.61017865", "0.6099307", "0.6099307", "0.6095123", "0.6093739", "0.6084272", "0.6063964", "0.6063964", "0.6060639", "0.6058016", "0.6051346", "0.60429806", "0.60429806", "0.6033913", "0.6033364", "0.60229367", "0.6007778", "0.59985167", "0.5995609", "0.5994283", "0.5973862", "0.5970634", "0.5969674", "0.5969271", "0.59578586", "0.59578586", "0.5955533", "0.5954455", "0.59544265", "0.59318125", "0.5912683", "0.59044415", "0.5887868", "0.5886957", "0.5885658", "0.5875172", "0.587441", "0.5867385", "0.58669275", "0.5855795", "0.585319", "0.58470666", "0.5845188", "0.58425653", "0.58356047", "0.58342874", "0.58245134", "0.58233887", "0.5820109" ]
0.779782
0
Get the total weight count for the estimated background components in signal samples
public double getTotalSignalEstBackCount(){ double total=0; for(ControlledExperiment r : replicates){ total+=r.getNoiseCount(); } return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWeightSize() {\r\n\t\treturn weigths.length;\r\n\t}", "private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }", "public double getTotalSignalCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: signalSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "public double getWeight() {\n\t\tIterator<Ball> it = this.contents.iterator();\n\t\tdouble retVal = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tretVal += it.next().getWeight();\n\t\t}\n\t\treturn retVal;\n\t}", "public double getTotalWeight() {\n return this.totalWeight;\n }", "@Override\n\t\tpublic int get_weights() {\n\t\t\treturn weight;\n\t\t}", "public int getTotalWeight() {\n\t\tif (_cachedTotalWeight == 0) {\n\t\t\tint totalWeight = getWeight();\n\t\t\tfor (Program child : getChildren()) {\n\t\t\t\ttotalWeight += child.getTotalWeight();\n\t\t\t}\n\t\t\t_cachedTotalWeight = totalWeight;\n\t\t}\n\t\treturn (_cachedTotalWeight);\n\t}", "public int weight(){\n\t\treturn this.weight;\n\t}", "default double totalWeight() {\n return edges().stream().mapToDouble(E::weight).sum();\n }", "public int weight() {\n \treturn weight;\n }", "public static int size_sampleCnt() {\n return (32 / 8);\n }", "public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }", "int getWeight();", "int getWeight();", "public float getWeightUsed()\r\n {\r\n // implement our own magic formula here ...\r\n return 2.0f;\r\n }", "public int getTotalExtraPacks() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getExtraPacksByWins());\n }", "public int weight ();", "public int getWeight() {\n return weight;\n }", "public int getWeight();", "public int weight(Person person) {\n\t\tthis.weightMeasuredCount++; \n return person.getWeight(); \n }", "public int getWeight() {\n\t\treturn _weight;\n\t}", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight() {\n\t\treturn weight;\n\t}", "private double getWidthUntil(int index)\n {\n double weightsSum = 0;\n\n for (int i = 0; i < index; i++)\n {\n weightsSum += _weights.get(i);\n }\n\n return weightsSum / _totalWeight;\n }", "public abstract double totalWeight();", "public int getWeight() {\n return weight;\n }", "public int getWeight() {\n return weight;\n }", "public int getWeight(){\n\t\treturn weight;\n\t}", "public int getWeight() {\r\n\t\treturn this.weight;\r\n\t}", "public int getWeight()\n\t{\n\t\treturn this.weight;\n\t}", "public float getWeight();", "public int getWeight() {\n return weight;\n }", "public int getWeight() {\n return this.weight;\n }", "public double getTotalControlCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: controlSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "public Byte getWeight() {\n\t\treturn weight;\n\t}", "public int getWeightedBucket() {\n float val = (float)(new Float((Math.random() * 100)));\n int totalWeight = 0;\n int i = 0;\n for (i = 0; i < weights.length; i++) {\n totalWeight += weights[i];\n if (val <= totalWeight)\n break;\n }\n return(i);\n }", "int getWeight() {\n return weight;\n }", "int getWeight() {\n return weight;\n }", "public int getWeight() {\n return parameter.getWeight();\n }", "public double getWeight()\n\t{\n\t\t//metodo precisa retornar alguma coisa\n\t\treturn 0.0;\n\t}", "public int getWeight()\n {\n return weight;\n }", "public Integer getWeight() {\n return weight;\n }", "public double getWeight() {\n\t\treturn weight; \n\t\t}", "public float getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "public double getTotalWeight() {\n\t\tdouble totalWeight = 0;\n\t\tfor (Item item : purchaseList.getCurrentPurchases()) {\n\t\t\tif(purchaseList.isBagged(item)) {\n\t\t\t\ttotalWeight += item.getWeight();\n\t\t\t}\n\t\t}\n\t\treturn totalWeight;\n\t}", "public float getWeight() {\n\t\t\treturn weight;\n\t\t}", "@Override\r\n public final int getWeight() {\r\n int i, c;\r\n Rule[] r;\r\n\r\n c = 0;\r\n r = this.m_rules;\r\n for (i = (r.length - 1); i >= 0; i--) {\r\n c += r[i].getWeight();\r\n }\r\n\r\n return c;\r\n }", "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight() {\r\n return weight;\r\n }", "public float getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "public double getWeight() {\n return 0;\n }", "public double getWeight(){\n\t\treturn this._weight;\n\t}", "public double getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight(){\n \treturn weight;\n }", "public double getWeight() {\n return weight;\n }", "public double getWeight() {\n return weight;\n }", "public double getWeight(){\n\t\treturn weight;\n\t}", "public Double getHeadWeight();", "public double getWeight() {\n\t\n\t\treturn this.weight;\t \n\t}", "private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }", "public int getWeight() {\n\t\treturn quantity*weight; \n\t}", "public int getWeight()\r\n\t{\r\n\t\treturn edgeWeight;\t\t\r\n\t}", "private double sumWeights(int index, Image image){\n double sum = 0;\n for(int i= 0; i<400 ; i++){\n sum+=perceptrons.get(i).getWeight(index)\n *normalizeImageValue(image.getImage()[i]);\n }\n return sum;\n }", "public int getpWeight() {\n return pWeight;\n }", "private double getChildrenTotalAlternativeWeight() {\n double totalWeight = 0.0;\n for (DependencyDescription child : this.getChildren()) {\n totalWeight += child.getAlternativeProbability();\n }\n return totalWeight;\n }", "public int sumEquipmentWeight(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getWeight();\n }\n return sum;\n }", "public double averageFeaturesPerExample(){\n\t\treturn sumFeatureValues/((double)exampleCount);\n\t}", "public double getActualWeight() {\n return actualWeight;\n }", "public double getWeight() {\n \treturn this.trainWeight;\n }", "@Override\n\tpublic double getWeight() {\n\t\treturn weight;\n\t}", "public int getRelativeWeight() {\n return relativeWeight;\n }", "public Matrix getWeight() {\n return weights;\n }", "public double weightedTally() {\r\n if (tupleCount == 0) return 0;\r\n\r\n double total = 0.0;\r\n\r\n for (int i = 0; i < tupleCount; i++) {\r\n Tuple t = tuple[i];\r\n total += t.getWeight();\r\n }\r\n\r\n return total;\r\n }", "public int length() {\n return this.weightMatrix.length;\n }", "public int nSamples() {\n return samples.nSamples();\n }", "public Weight[] getWeights() {\n return weights;\n }", "public long get_sampleCnt() {\n return (long)getUIntBEElement(offsetBits_sampleCnt(), 32);\n }", "public double getWeight(){\n return weight;\n }", "public double getWeight()\r\n {\r\n return this.weightCapacity;\r\n }", "public int getWeight(){\n\t\treturn this.edgeWeight;\n\t}", "int getMetricsCount();", "final protected double getWeight() {\n\t\treturn getWeight( _population );\n\t}", "int getBiasPrefixMatchCount();", "int countByExample(RepStuLearningExample example);", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "@Override\n public double getWeight() {\n return this.weight;\n }", "public int getBiasPrefixMatchCount() {\n return biasPrefixMatch_.size();\n }", "public int getBiasPrefixMatchCount() {\n return biasPrefixMatch_.size();\n }", "public double getWeight() {\n\t\tif(weightConfiguration == null) {\n\t\t\treturn 1.0;\n\t\t}\n\t\treturn weightConfiguration.weightForIdentifier(this.getIdentifier());\n\t}", "public double getWeight() {\n return this.weight * 2.20462;\n }", "int countByExample(XdSpxxExample example);", "@Override\n\tpublic SparseVector getPosteriorMeans() {\n\t\treturn weights;\n\t}", "int getWpaCount();", "public int getWeight()\n {\n return this.aWeight;\n\n }", "int getFeatureCount();", "public int getWeight()\n {\n return weightCarried;\n }", "public double getWeight()\r\n {\r\n return this.aWeight ;\r\n }" ]
[ "0.6557438", "0.654402", "0.65068334", "0.63390344", "0.6336399", "0.63318294", "0.62928563", "0.62695473", "0.6257767", "0.62197536", "0.6186019", "0.6180295", "0.61661345", "0.61661345", "0.61267924", "0.61206526", "0.60937184", "0.60831887", "0.60776734", "0.60763025", "0.606597", "0.60444176", "0.60444176", "0.6036201", "0.60342693", "0.6021518", "0.6021518", "0.60214806", "0.6011407", "0.60087174", "0.5996729", "0.5996442", "0.59942883", "0.5972484", "0.5966677", "0.5962567", "0.59611756", "0.59611756", "0.5957596", "0.59440887", "0.59190166", "0.5918631", "0.5910641", "0.5900573", "0.58867896", "0.58721495", "0.58637494", "0.5861002", "0.58464915", "0.58365417", "0.58365417", "0.5831201", "0.5831201", "0.58284473", "0.58271986", "0.582675", "0.58185285", "0.5810634", "0.5810634", "0.58085465", "0.5798167", "0.5797738", "0.5774298", "0.5767107", "0.5760061", "0.57416636", "0.5731895", "0.5730456", "0.57177603", "0.57150126", "0.5693334", "0.56809986", "0.5680092", "0.5679724", "0.5671637", "0.56662565", "0.5658062", "0.5644307", "0.56396496", "0.56389946", "0.5636456", "0.5631417", "0.56277454", "0.56123215", "0.55960006", "0.5592862", "0.5591393", "0.5589875", "0.5586457", "0.5566748", "0.556303", "0.5561461", "0.5555187", "0.55543685", "0.55539554", "0.5550342", "0.55481875", "0.5536542", "0.55308205", "0.55266315" ]
0.6786045
0
Get the total weight count for signal samples
public double getTotalControlCount(){ double total=0; for(Sample s: controlSamples) total += s.getHitCount(); return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTotalSignalCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: signalSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }", "public int getWeightSize() {\r\n\t\treturn weigths.length;\r\n\t}", "public double getTotalWeight() {\n return this.totalWeight;\n }", "default double totalWeight() {\n return edges().stream().mapToDouble(E::weight).sum();\n }", "public int weight(Person person) {\n\t\tthis.weightMeasuredCount++; \n return person.getWeight(); \n }", "public int getTotalWeight() {\n\t\tif (_cachedTotalWeight == 0) {\n\t\t\tint totalWeight = getWeight();\n\t\t\tfor (Program child : getChildren()) {\n\t\t\t\ttotalWeight += child.getTotalWeight();\n\t\t\t}\n\t\t\t_cachedTotalWeight = totalWeight;\n\t\t}\n\t\treturn (_cachedTotalWeight);\n\t}", "public double weightedTally() {\r\n if (tupleCount == 0) return 0;\r\n\r\n double total = 0.0;\r\n\r\n for (int i = 0; i < tupleCount; i++) {\r\n Tuple t = tuple[i];\r\n total += t.getWeight();\r\n }\r\n\r\n return total;\r\n }", "public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }", "public int nSamples() {\n return samples.nSamples();\n }", "public double getTotalWeight() {\n\t\tdouble totalWeight = 0;\n\t\tfor (Item item : purchaseList.getCurrentPurchases()) {\n\t\t\tif(purchaseList.isBagged(item)) {\n\t\t\t\ttotalWeight += item.getWeight();\n\t\t\t}\n\t\t}\n\t\treturn totalWeight;\n\t}", "public double getTotalSignalEstBackCount(){\n\t\tdouble total=0;\n\t\tfor(ControlledExperiment r : replicates){\n\t\t\ttotal+=r.getNoiseCount();\n\t\t}\n\t\treturn total;\n\t}", "public int weight(){\n\t\treturn this.weight;\n\t}", "@Override\n\t\tpublic int get_weights() {\n\t\t\treturn weight;\n\t\t}", "public double getWeight() {\n\t\tIterator<Ball> it = this.contents.iterator();\n\t\tdouble retVal = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tretVal += it.next().getWeight();\n\t\t}\n\t\treturn retVal;\n\t}", "public int weight ();", "public int weight() {\n \treturn weight;\n }", "public abstract double totalWeight();", "public int getWeight() {\n\t\treturn _weight;\n\t}", "public int getWeight()\n\t{\n\t\treturn this.weight;\n\t}", "public static int size_sampleCnt() {\n return (32 / 8);\n }", "public int sumEquipmentWeight(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getWeight();\n }\n return sum;\n }", "public double getWeight()\n\t{\n\t\t//metodo precisa retornar alguma coisa\n\t\treturn 0.0;\n\t}", "public int getWeight() {\n return parameter.getWeight();\n }", "int getWeight();", "int getWeight();", "public int getWeight() {\r\n\t\treturn this.weight;\r\n\t}", "public float getWeightUsed()\r\n {\r\n // implement our own magic formula here ...\r\n return 2.0f;\r\n }", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight() {\n return weight;\n }", "public double sumOfFrequencies() {\r\n\t\tdouble output = 0.0;\r\n\t\tfor(int i=0; i<this.treeNodes.length; i++) {\r\n\t\t\toutput += this.treeNodes[i].getFrequency();\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public int getWeight(){\n\t\treturn weight;\n\t}", "public int getWeight();", "public double getTotalAdjacentInternalWeight(int nodeIndex) {\n\t\treturn this.inWeights[nodeIndex];\n\t}", "public int getWeight() {\n return this.weight;\n }", "public double getWeight() {\n\t\treturn weight; \n\t\t}", "public double getWeight(){\n\t\treturn this._weight;\n\t}", "public int getWeightedBucket() {\n float val = (float)(new Float((Math.random() * 100)));\n int totalWeight = 0;\n int i = 0;\n for (i = 0; i < weights.length; i++) {\n totalWeight += weights[i];\n if (val <= totalWeight)\n break;\n }\n return(i);\n }", "public int getWeight() {\n return weight;\n }", "public int getWeight() {\n return weight;\n }", "public float getWeight();", "public double getWeight() {\n\t\n\t\treturn this.weight;\t \n\t}", "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "public int getWeight() {\n return weight;\n }", "WeightedRandomSampling(double[] w){\n int len = w.length;\n aggregatedW = new double[len];\n counts = new int[len];\n double temp = 0;\n\n for(int i=0; i<len; i++){\n aggregatedW[i] = temp;\n //System.out.println(aggregatedW[i]);\n temp+= w[i];\n }\n }", "public double getWeight() {\n\t\treturn weight;\n\t}", "public double getWeight(){\n\t\treturn weight;\n\t}", "public int length() {\n return this.weightMatrix.length;\n }", "public float getWeight() {\n\t\t\treturn weight;\n\t\t}", "public long get_sampleCnt() {\n return (long)getUIntBEElement(offsetBits_sampleCnt(), 32);\n }", "public int getWeight() {\n\t\treturn quantity*weight; \n\t}", "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight() {\r\n return weight;\r\n }", "private double getWidthUntil(int index)\n {\n double weightsSum = 0;\n\n for (int i = 0; i < index; i++)\n {\n weightsSum += _weights.get(i);\n }\n\n return weightsSum / _totalWeight;\n }", "public int getWeight()\n {\n return weight;\n }", "public Integer getWeight() {\n return weight;\n }", "public double getWeight() {\n return weight;\n }", "public double getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "private double getUnitWidth(int index)\n {\n return _weights.get(index) / _totalWeight;\n }", "public double getWeight() {\n return 0;\n }", "int getWeight() {\n return weight;\n }", "int getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "public double getWeight() {\n \treturn this.trainWeight;\n }", "public int getWeight(){\n \treturn weight;\n }", "public Byte getWeight() {\n\t\treturn weight;\n\t}", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "int getDataScansCount();", "@Override\r\n public final int getWeight() {\r\n int i, c;\r\n Rule[] r;\r\n\r\n c = 0;\r\n r = this.m_rules;\r\n for (i = (r.length - 1); i >= 0; i--) {\r\n c += r[i].getWeight();\r\n }\r\n\r\n return c;\r\n }", "public int calculateSize( int numSamples )\n {\n return numSamples * 2;\n }", "final protected double getWeight() {\n\t\treturn getWeight( _population );\n\t}", "public double getWeight() {\n return this.weight * 2.20462;\n }", "public double getWeight() {\n\t\tif(weightConfiguration == null) {\n\t\t\treturn 1.0;\n\t\t}\n\t\treturn weightConfiguration.weightForIdentifier(this.getIdentifier());\n\t}", "public float getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "public void addWeight(){\n\t\tweight++;\n\t}", "@Override\n\tpublic double getWeight() {\n\t\treturn weight;\n\t}", "public double calcTotalOreWeight() \n {\n double fTotalOre;\n\n fTotalOre = 0.0;\n for (OrePile pile : m_orePileQueue) {\t// For this to work, Iterator must be implemented in DSAQueue\n fTotalOre += pile.getWeight();\n } \n\n return fTotalOre;\n }", "@Override\n\tpublic double getInternalWeight(int nodeIndex) {\n\t\treturn this.inWeights[nodeIndex];\n\t}", "public double getBandWidth() {\n\t\treturn bw * _mySampleRate;\n\t}", "public long getSampleCount() {\r\n\t\tif (audioFile != null) {\r\n\t\t\treturn audioFile.getEffectiveDurationSamples();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public int count(){\r\n\t\tint sum = 0;\r\n for(Integer value: words.values()){\r\n sum += value;\r\n }\r\n return sum;\r\n\t}", "@Override\n public long getFrequencyCount() {\n return count;\n }", "int getMetricsCount();", "private double sumWeights(int index, Image image){\n double sum = 0;\n for(int i= 0; i<400 ; i++){\n sum+=perceptrons.get(i).getWeight(index)\n *normalizeImageValue(image.getImage()[i]);\n }\n return sum;\n }", "int getWpaCount();", "public Weight[] getWeights() {\n return weights;\n }", "public double getWeight()\r\n {\r\n return this.weightCapacity;\r\n }", "public ButlerWeights getWeights() {\n\treturn currentWeights;\n }", "public int getTotalExtraPacks() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getExtraPacksByWins());\n }", "@Override\n public double getWeight() {\n return this.weight;\n }", "public Vec getRawWeight();", "public java.lang.Double getWeight () {\r\n\t\treturn weight;\r\n\t}", "public double getWeight()\r\n {\r\n return this.aWeight ;\r\n }", "public int getpWeight() {\n return pWeight;\n }", "public double getWeight(){\n return weight;\n }", "public double findWeight(){\n int totalCoins = gold + silver + copper + electrum + platinum;\n if((totalCoins % 3) == 0){\n return totalCoins/3;\n }\n return totalCoins * weight;\n }", "public Matrix getWeight() {\n return weights;\n }" ]
[ "0.779782", "0.7230713", "0.70000875", "0.69001424", "0.6783033", "0.67725885", "0.6748733", "0.67156255", "0.6711236", "0.6710855", "0.67107904", "0.6672794", "0.6632836", "0.6588245", "0.65660286", "0.6476922", "0.64409995", "0.6397857", "0.63643414", "0.63630784", "0.6348227", "0.6345957", "0.6345129", "0.63427365", "0.63298637", "0.63298637", "0.63264424", "0.63240254", "0.62879974", "0.62879974", "0.62733024", "0.62732863", "0.62628925", "0.62582123", "0.6244617", "0.62417024", "0.6236454", "0.6227289", "0.6220532", "0.62031275", "0.62031275", "0.61883134", "0.6184884", "0.61756504", "0.6170043", "0.6169358", "0.6162044", "0.61315817", "0.61251175", "0.61221516", "0.61076564", "0.61017865", "0.6099307", "0.6099307", "0.6095123", "0.6093739", "0.6084272", "0.6063964", "0.6063964", "0.6060639", "0.6058016", "0.6051346", "0.60429806", "0.60429806", "0.6033913", "0.6033364", "0.60229367", "0.6007778", "0.59985167", "0.5995609", "0.5994283", "0.5973862", "0.5970634", "0.5969674", "0.5969271", "0.59578586", "0.59578586", "0.5955533", "0.5954455", "0.59544265", "0.59318125", "0.5912683", "0.59044415", "0.5887868", "0.5886957", "0.5885658", "0.5875172", "0.587441", "0.5867385", "0.58669275", "0.5855795", "0.585319", "0.58470666", "0.5845188", "0.58425653", "0.58356047", "0.58342874", "0.58245134", "0.58233887", "0.5820109" ]
0.6247929
34
Get the fraction of reads from all replicates in signal
public double getSigProp(){ double s=0, n=0; for(ControlledExperiment rep : replicates){ s+=rep.getSigCount(); n+=rep.getNoiseCount(); }return(s/(s+n)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTotalSignalEstBackCount(){\n\t\tdouble total=0;\n\t\tfor(ControlledExperiment r : replicates){\n\t\t\ttotal+=r.getNoiseCount();\n\t\t}\n\t\treturn total;\n\t}", "private float getSequenceRatio(String sequence, ICluster cluster) {\n for (SequenceCount sequenceCount : cluster.getSequenceCounts()) {\n if (sequenceCount.getSequence().equals(sequence)) {\n return (float) sequenceCount.getCount() / (float) cluster.getSpecCount();\n }\n }\n\n return 0;\n }", "protected double samplesOnePixelF() {\r\n\t\tif (getGraphWidth() > 1) {\r\n\t\t\t// avoid division by zero\r\n\t\t\treturn ((double) section.getLength()) / getGraphWidth();\r\n\t\t}\r\n\t\treturn 1.0;\r\n\t}", "public double getTotalSignalCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: signalSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "protected double pixelOneSampleF() {\r\n\t\treturn ((double) getGraphWidth()) / section.getLength();\r\n\t}", "@Override\n\tpublic Number filteredReading() {\t\n\t// Check we have any readings.\n\tif (buffer.size() == 0) return new Double(0.0);\n\n\tSensorReading reading = null;\n\tdouble sum = 0.0;\n\tdouble avge = 0.0;\n\tint index = 0;\n\n\t// Loop over buffered samples.\n\tIterator it = buffer.iterator();\n\twhile (it.hasNext()) {\n\t reading = (SensorReading)it.next();\n\t avge = avge + reading.getContinuousReading();\n\t index++;\n\t}\n\tlogger.log(2, \"Av-Filter\", name, \"filteredReading\",\"Returned: \"+\n\t\t (avge/index)+\" using \"+index+\" samples.\");\n\treturn new Double(avge / index);\n }", "public int getNumberOfSpectraPerFraction() {\n return numberOfSpectraPerFraction;\n }", "public static double calcSignalToNoiseRatio( double[] inArray, int eonset) {\r\n if ((inArray == null) || (inArray.length == 0) || \r\n (eonset <= 0) || (eonset > inArray.length)) {\r\n return -1;\r\n }\r\n double[] power = calculatePower( inArray );\r\n double snr;\r\n ArrayStats arstats = new ArrayStats( power );\r\n double aps = arstats.getMean();\r\n double apn = findSubsetMean( power, 0, eonset );\r\n if (Double.compare(apn, 0.0 ) != 0) {\r\n snr = 10.0 * Math.log10(aps / apn);\r\n } else {\r\n snr = -1.0;\r\n }\r\n return snr;\r\n }", "public int getAvgSpec() {\n return totalSpec/totalMatches;\n }", "public double evaluate(){\n trialsSoFar++;\n double tot = 0;\n int ix = 0;\n while (ix < genome.getGenome().size()) {\n // directly access the current value field of each bandit\n boolean block = true;\n for (int j=0; j<blockSize; j++) {\n if (genome.getGenome().get(ix).getX() != 1)\n block = false;\n ix++;\n }\n if (block) {\n tot += blockSize;\n }\n }\n return tot;\n }", "public static double medVal(int[] sample) {\n //sorting array of sample times\n Sorting.quickSort(sample);\n int middle = sample.length/2;\n if (sample.length % 2 == 1){\n return sample[middle];\n } \n else{\n return (sample[middle-1] + sample[middle]) / 2.0;\n }\n }", "public double calculateRatio() {\n \tdouble ratioCalc = new Double(0);\n \tif(this.count_human_dna > 0) {\n \t\tratioCalc = (double) this.count_mutant_dna / this.count_human_dna;\n \t}\n \tthis.setRatio(ratioCalc);\n \treturn ratioCalc;\n }", "double sample()\n\t{\n\t\treturn rb.peek();\n\t}", "public Double subsampleFraction() {\n return mSubsampleFraction;\n }", "public int samplesOnePixel() {\r\n\t\tif (getGraphWidth() > 0) {\r\n\t\t\t// avoid division by zero\r\n\t\t\treturn section.getLength() / getGraphWidth();\r\n\t\t}\r\n\t\treturn 1;\r\n\t}", "public double media(){\n double soma=0;\n for (int i = 0; i < lista.size(); i++) {\n soma+=lista.get(i).getMedia();\n }\n return soma/lista.size();\n }", "public float findFrequency(ArrayList<Float> wave){\n\r\n ArrayList<Float> newWave = new ArrayList<>();\r\n\r\n for(int i=0;i<wave.size()-4;i++){\r\n newWave.add((wave.get(i)+wave.get(i+1)+wave.get(i+2)+wave.get(i+4))/4f);\r\n }\r\n\r\n\r\n boolean isBelow = wave1.get(0)<triggerVoltage;\r\n\r\n ArrayList<Integer> triggerSamples = new ArrayList<>();\r\n\r\n\r\n System.out.println(\"starting f calc\");\r\n\r\n for(int i=1;i<newWave.size();i++){\r\n if(isBelow){\r\n if(newWave.get(i)>triggerVoltage){\r\n triggerSamples.add(i);\r\n isBelow=false;\r\n }\r\n }else{\r\n if(newWave.get(i)<triggerVoltage){\r\n triggerSamples.add(i);\r\n isBelow=true;\r\n }\r\n }\r\n }\r\n System.out.println(\"F len in \"+triggerSamples.size());\r\n\r\n ArrayList<Float> freqValues = new ArrayList<>();\r\n\r\n\r\n for(int i=0;i<triggerSamples.size()-2;i++){\r\n freqValues.add(1/(Math.abs(SecondsPerSample*(triggerSamples.get(i)-triggerSamples.get(i+2)))));\r\n }\r\n\r\n float finalAVG =0;\r\n for (Float f : freqValues) {\r\n finalAVG+=f;\r\n }\r\n finalAVG/=freqValues.size();\r\n\r\n\r\n return finalAVG;\r\n //System.out.println(finalAVG);\r\n }", "int getPulsePercentage();", "int getRatioQuantity();", "public abstract double samplingFrequency();", "public double getFractionInRegion(GriddedRegion region) {\n\t\tdouble[] vals = this.getPDF();\n\t\tdouble sum = 0;\n\t\tGriddedRegion nzRegion = new NewZealandRegions.NZ_TEST_GRIDDED();\n\t\tfor (int i = 0; i < region.getNumLocations(); i++) {\n\t\t\tint iLoc = nzRegion.indexForLocation(region.getLocation(i));\n\t\t\tif (iLoc != -1)\n\t\t\t\tsum += vals[iLoc];\n\t\t}\n\t\treturn sum;\n\t}", "public int getReSampleRate() {\n return 0;\n }", "public double[] histogram() {\n int[][] data = toArray();\n double[] ans = new double[256];\n int totalSize = data.length * data[0].length;\n\n for (int i = 0; i < data.length; i++) {\n for (int j = 0; j < data[i].length; j++) {\n ans[data[i][j]]++;\n }\n }\n for (int i = 0; i < ans.length; i++) {\n ans[i] = ans[i] / totalSize;\n }\n return ans;\n }", "protected int pixelOneSample() {\r\n\t\treturn getGraphWidth() / section.getLength();\r\n\t}", "private double denominator(int iter) {\n switch (DENOM) {\n case 0: return Math.pow((double) iter, 2.0);\n default: return (double) CONSTANT / Math.log(1+iter);\n }\n }", "static int volume(final int[] hist) {\n final int len = hist.length;\n final int[] deltas = new int[len];\n deltas[0] = hist[0]; // as if delta from 0\n for (int i = 1; i < len; i++) {\n deltas[i] = hist[i] - hist[i - 1];\n }\n System.out.println(Arrays.toString(deltas));\n return 0;\n }", "double getRatio();", "protected static double seqArraySum(final double[] input) {\n double sum = 0;\n\n // Compute sum of reciprocals of array elements\n for (int i = 0; i < input.length; i++) {\n sum += 1 / input[i];\n }\n\n return sum;\n }", "public float averageAnswers() {\n\t\tfloat out = 0;\n\t\t\n\t\tIterator<SolveResult> iter = super.iterator();\n\t\t\n\t\twhile(iter.hasNext()) {\n\t\t\tSolveResult thisResult = iter.next();\n\t\t\tfloat clues = ResultSet.clueCount(thisResult.puzzle);\n\t\t\tfloat cardinality = thisResult.puzzle.getCardinality();\n\t\t\tfloat conflicts = thisResult.puzzle.conflictCount();\n\t\t\t\n\t\t\tif(!(cardinality - clues - conflicts < 0)) {\n\t\t\t\tout += ((cardinality - clues - conflicts) / (81 - clues));\n\t\t\t}\n\t\t}\n\t\treturn out / super.size();\n\t}", "private int quantizeSpread(double spectralSpread) {\n\t\treturn (int) (spectralSpread / 1000) + 1;\n\t}", "private int findScaledDiff(double frequency) {\n double minDifference = 100;\n int index = 0;\n\n if (frequency != -1) {\n for (int i = 0; i < noteFrequencies.length; i++) {\n if (Math.abs(frequency - noteFrequencies[i]) < minDifference) {\n minDifference = Math.abs(frequency - noteFrequencies[i]);\n index = i;\n }\n }\n if (index > 0) {\n double nextFrequency = noteFrequencies[index-1];\n double thisFrequency = noteFrequencies[index];\n double lastFrequency = noteFrequencies[index+1];\n if (frequency >= lastFrequency && frequency <= thisFrequency) {\n double diff = thisFrequency - lastFrequency;\n double scaleSection = diff / 5;\n int n = 0;\n while (Math.abs(thisFrequency - n*scaleSection - frequency) > scaleSection) {\n thisFrequency -= n*scaleSection;\n n++;\n }\n return n;\n } else if (frequency >= thisFrequency && frequency <= nextFrequency) {\n double diff = nextFrequency - thisFrequency;\n double scaleSection = diff / 5;\n int n = 0;\n while (Math.abs(thisFrequency + n*scaleSection - frequency) > scaleSection) {\n thisFrequency += n*scaleSection;\n n++;\n }\n return -n;\n }\n }\n }\n return -10;\n\n }", "public double getRatio() {\n return (double) vector.length / size;\n }", "public double sampleVariance() {\n/* 262 */ Preconditions.checkState((this.count > 1L));\n/* 263 */ if (Double.isNaN(this.sumOfSquaresOfDeltas)) {\n/* 264 */ return Double.NaN;\n/* */ }\n/* 266 */ return DoubleUtils.ensureNonNegative(this.sumOfSquaresOfDeltas) / (this.count - 1L);\n/* */ }", "double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\treturn sum/num.length;\n\t}", "public static int size_sampleCnt() {\n return (32 / 8);\n }", "public int nSamples() {\n return samples.nSamples();\n }", "public double mean() {\n return StdStats.mean(fraction);\n }", "double average(double[] doubles) {\n double total = 0.0;\n //int count = 0;\n for (double d: doubles) {\n total = total + d;\n //count = count + 1;\n }\n //return total / count;\n return total / doubles.length;\n }", "private static double meanVal(double[] arrayOfSamples){\n\t\tdouble total = 0;\n\t\t for (double i :arrayOfSamples){\n\t\t \ttotal += i;\n\t\t }\n\t return total/arrayOfSamples.length;\n\t}", "public double averageSurfaceToVolumeRatio() {\n int index = 0;\n double total = 0.0;\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceToVolumeRatio();\n index++;\n }\n }\n return total / icosList.size();\n }", "private int findScaledDiff(double frequency) {\n double minDifference = 10;\n int index = 0;\n\n if (frequency != -1) {\n for (int i = 0; i < noteFrequencies.length; i++) {\n if (Math.abs(frequency - noteFrequencies[i]) < minDifference) {\n minDifference = Math.abs(frequency - noteFrequencies[i]);\n index = i;\n }\n }\n if (index > 0) {\n double nextFrequency = noteFrequencies[index-1];\n double thisFrequency = noteFrequencies[index];\n double lastFrequency = noteFrequencies[index+1];\n if (frequency >= lastFrequency && frequency <= thisFrequency) {\n double diff = thisFrequency - lastFrequency;\n double scaleSection = diff / 5;\n int n = 1;\n while (thisFrequency - n*scaleSection > frequency) {\n thisFrequency -= n*scaleSection;\n n++;\n }\n return +n;\n } else if (frequency >= thisFrequency && frequency <= nextFrequency) {\n double diff = nextFrequency - thisFrequency;\n double scaleSection = diff / 5;\n int n = 1;\n while (thisFrequency + n*scaleSection < frequency) {\n thisFrequency += n*scaleSection;\n n++;\n }\n return -n;\n }\n }\n }\n return -10;\n\n }", "@Override\n public double ringNotes(){\n double ret = 0;\n for (int i = 0; i < pStrings.length; i++){\n for (int a = 0; a < pStrings[i].length; a++){\n pStrings[i][a].tic();\n ret += pStrings[i][a].sample();\n \n }\n }\n return ret;\n }", "public static int offset_sampleCnt() {\n return (24 / 8);\n }", "public double getPER() {\n\t\tint nq = q0.length;\n double sum = 0.0;\n for (int i=0; i<nq; i++) sum += q0[i];\n\t\treturn Math.min(1.0, 0.5*(1.0-(sum/(double)nq))/initPER); // 0.5 * proba erreur\t\t\n\t}", "public int getSamples(){ \n return this.samples; \n }", "private List<Float> nucleotideFrequencies() {\n\t\tList<Float> freqs = new ArrayList<Float>();\n\t\tfreqs.add((float) 0.3);\n\t\tfreqs.add((float) 0.5);\n\t\tfreqs.add((float) 0.8);\n\t\tfreqs.add((float) 1.0);\n\t\treturn freqs;\n\t}", "@Override\n public Double average() {\n return (sum() / (double) count());\n }", "int getDefaultFractionCounter();", "public static void calculate_average_ratio1() {\n double sum = 0;\n\n for (int i = 0; i < Variables.pixels.size(); i++) {\n sum += Variables.pixels.get(i).getRatio1();\n }\n Variables.average_ratio1 = sum / Variables.pixels.size();\n }", "private void PeriodMeanEvaluation () {\n\n float x = 0;\n for(int i = 0; i < 3; i++)\n {\n for(int j = 0; j < numberOfSample; j++)\n {\n x = x + singleFrame[j][i];\n }\n meanOfPeriodCoord[i] = (x/numberOfSample);\n x = 0;\n }\n }", "public double getAveragePrecursorIntensityPerFraction() {\n return AveragePrecursorIntensityPerFraction;\n }", "public int getNumberOfSpectra() {\r\n return nSpectrum;\r\n }", "public int readSamples(float[] samples);", "short getCopies();", "public static <I, T extends Number> Probe<Double> asFraction(TimeSeries<I> series, ValueReader<I, T> reader)\n\t{\n\t\treturn new ChangeAsFractionProbe<I, T>(series, reader);\n\t}", "private double readPressureSample() {\n return 6 * randomPressureSampleSimulator.nextDouble() * randomPressureSampleSimulator.nextDouble();\n }", "public double[] getFrequences(){\r\n\t\tPairList pairs = parseTreeFrequences();\r\n\t\tArrayList<Pair> list = pairs.getList();\r\n\t\tdouble[] ret = new double[list.size()];\r\n\t\tfor(int i = 0; i < list.size(); i++){\r\n\t\t\tret[i] = list.get(i).freq;\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public double average(){\r\n\t\t//create variable to hold the values\r\n\t\tdouble average = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\t//add current index\r\n\t\t\taverage += this.data[i];\r\n\t\t\t}\r\n\t\treturn (average/this.data.length);\r\n\t}", "private double[] mean(Population pop) {\n double[] value = new double[pop.getIndividual(0).getNumGenes()];\n //for all individuals\n Iterator<Individual> it = pop.getIterator();\n while (it.hasNext()) {\n Individual ind = it.next();\n //sum the value of the gene\n for (int i = 0; i < value.length; i++) {\n value[i] += ind.getGeneValue(i);\n }\n }\n //divide by the number of individuals\n double factor = 1.0 / pop.getNumGenotypes();\n for (int i = 0; i < value.length; i++) {\n value[i] *=factor;\n }\n return value;\n }", "@Field(7) \n\tpublic int sample_rate() {\n\t\treturn this.io.getIntField(this, 7);\n\t}", "private int findZero(){\r\n\t\t// configure stuff\r\n\t\tint channelConfiguration = AudioFormat.CHANNEL_CONFIGURATION_MONO;\r\n\t\tint audioEncoding = AudioFormat.ENCODING_PCM_16BIT;\r\n\t\tint bufferSize = AudioRecord.getMinBufferSize(FREQUENCY, channelConfiguration, audioEncoding);\r\n\t\tAudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, FREQUENCY, channelConfiguration,audioEncoding, bufferSize);\r\n\r\n\t\tshort[] buffer = new short[bufferSize];\r\n\t\taudioRecord.startRecording();\r\n\t\tint bufferReadResult = audioRecord.read(buffer, 0, bufferSize);\r\n\t\taudioRecord.stop();\r\n\t\tint sum = 0;\r\n\t\tfor (int b = bufferReadResult * (2/3); b < bufferReadResult; b++) {\r\n\t\t\tsum += buffer[b];\r\n\t\t}\r\n\t\tif (bufferReadResult == 0){\r\n\t\t\treturn this.offset;\r\n\t\t}\r\n\t\t\r\n\t\treturn -1*(sum/bufferReadResult);\r\n\t}", "int nextSample(final double mean);", "float getFrequency();", "protected static double[] getFrequencies(List<Sequence> sequences) {\n return getFrequenciesMaybeSafe(sequences, false);\n }", "public int getSpectrumCount(boolean onlyIdentified) throws InvalidFormatException;", "@Field(4) \n\tpublic AVRational sample_aspect_ratio() {\n\t\treturn this.io.getNativeObjectField(this, 4);\n\t}", "public int getFractionsNumber() {\n return fractionsNumber;\n }", "public int levelSpec() {\n int avg = 0;\n for (int i = 0; i < spec.length; i++) {\n avg += (int) spec[i];\n }\n return avg / 8192;\n }", "public int getDublicatesCount() {\n int res = 0;\n for (Integer integer : gramma.keySet()) {\n if (integer > 1) {\n res += gramma.get(integer);\n }\n }\n return res;\n }", "public Rational getAudioSampleRate();", "public int getNumSpectrumPeaks() {\r\n return numSpectrumPeaks;\r\n }", "int reps() {\n\tint b[] = new int[64];\n\tint c = 0; /*\n\t* count of squares that are different from the current\n\t* position\n\t*/\n\tint r = 0; /* number of repetitions */\n\n\t/* is a repetition impossible? */\n\tif (fifty <= 3)\n\treturn 0;\n\n\t/* loop through the reversible moves */\n\tfor (int i = hply - 1; i >= hply - fifty - 1; --i) {\n\tif (++b[histDat[i].m.getFrom()] == 0)\n\t--c;\n\telse\n\t++c;\n\tif (--b[histDat[i].m.getTo()] == 0)\n\t--c;\n\telse\n\t++c;\n\tif (c == 0)\n\t++r;\n\t}\n\n\treturn r;\n\t}", "public float smoothingOverlapRatio(){\r\n\t\tif( overlapRatioQueue!=null ){\r\n\t\t\tfloat sum = 0;\r\n\t\t\tint count = 0;\r\n\t\t\tfor( float temp : overlapRatioQueue ){\r\n\t\t\t\tsum += temp;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\treturn sum/(float)count;\r\n\t\t}else{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public abstract double getFractionMultiplier();", "private int mRead() {\n\t\t// read in a full buffer of bytes from the file\n\t\tint bytesRead = rawBytes.length;\n\t\tif (loop) {\n\t\t\treadBytesLoop();\n\t\t} else {\n\t\t\tbytesRead = readBytes();\n\t\t}\n\t\t// convert them to floating point\n\t\tint frameCount = bytesRead / format.getFrameSize();\n\t\tsynchronized (buffer) {\n\t\t\tbuffer.setSamplesFromBytes(rawBytes, 0, format, 0, frameCount);\n\t\t}\n\n\t\treturn frameCount;\n\t}", "public double getSharpeRatio (ArrayList<Double> dailyReturns){\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t for(double item : dailyReturns) {\n\t stats.addValue(item);\n\t }\n\t \n\t double mean1 = stats.getMean();\n\t double std1 = stats.getStandardDeviation();\n\t double sharpeRatio1 = ((mean1 - (.04/252) ) / std1) * Math.sqrt(252);\n\t return Math.round(sharpeRatio1*1000.0)/1000.0;\n\t}", "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "public double getReading() {\r\n\t\tresult = clicks;\r\n\t\tif(metric) result *= 0.2;\r\n\t\telse result *= 0.01;\r\n\t\treturn result;\r\n\t\t\r\n\t}", "static List<BitData> getSingletonPulseLengthsOfRanges(Iterable<Range<Long>> ranges) {\n checkNotNull(ranges, \"ranges was null\");\n\n LinkedHashSet<BitData> averages = new LinkedHashSet<>();\n\n for(Range<Long> range : ranges) {\n averages.add(new BitData(range, singletonList(range.lowerEndpoint())));\n }\n return averages.stream().collect(toList());\n }", "public String get_fraction_part();", "public void divide(Rational s) {\n\tnumerator *= s.denominator;\n\tdenominator *= s.numerator;\n }", "public double getValue(){\n return (double) numerator / (double) denominator;\n }", "private double avgNonEmpty() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (numEntries / percent);\n\t}", "public double getRps() {\n double deltaTimeInSec = (currSampleTimeInMillis - lastSampleTimeInMillis) / 1000.0;\n double deltaPostion = Math.abs(currPositionInTicks - lastPositionInTicks);\n double ticksPerSecond = deltaPostion / deltaTimeInSec;\n double rps = ticksPerSecond / ticksPerRevolution;\n return rps;\n }", "public double value() {\n return ((double) this.numerator / this.denominator);\n }", "double getMeanQuantity() {\n ArrayList<Double> allQuantities = new ArrayList<>();\n\n for (Firm firm : firms) {\n List<Double> quantitiesOfFirm = firm.getQuantities();\n allQuantities.addAll(quantitiesOfFirm.subList(quantitiesOfFirm.size() - SimulationManager.sizeOfExaminationInterval, quantitiesOfFirm.size()));\n }\n\n return Calculation.round(Calculation.getMean(allQuantities), 2);\n }", "public int average(int[] array_of_notes){\r\n int avg=0;\r\n for (int array_of_note : array_of_notes) {\r\n avg += array_of_note;\r\n }\r\n avg /= array_of_notes.length;\r\n return avg;\r\n }", "public ArrayList<Float> getRatioDataIndexZ(ArrayList<Possition> input, int index){\n\t\tSystem.out.println(\"Ration Values\");\n\t\t\n\t\tArrayList<Float> toReturn = new ArrayList<Float>();\n\t\tArrayList<Possition> data = input;\n\t\tPossition ref = data.get(index);\n\t\t\n\t\tfor(int i=0;i<data.size();i++){\n\t\t\tif(index==i){\n\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\tfloat x = data.get(i).getX() - ref.getX();\n\t\t\t\tfloat y = data.get(i).getY() - ref.getY();\n\t\t\t\tSystem.out.println(y/x);\n\t\t\t\ttoReturn.add(y/x);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn toReturn;\n\t}", "public Double subsampleRampFraction() {\n return mSubsampleRampFraction;\n }", "public double getNextRawSample();", "private Double computeRatio(final Collection<?> partial, final Collection<?> complete) {\n\r\n\t\tif (partial.isEmpty() || complete.isEmpty())\r\n\t\t\treturn 0.0;\r\n\t\telse\r\n\t\t\treturn (partial.size() * 1.0) / (complete.size() * 1.0);\r\n\r\n\t}", "public double volume () {return (4/3)*Math.PI*this.r*this.r*this.r;}", "protected double readRational(BinaryDataReader dataReader) throws IOException\n\t{\n\t\t// convert tag value to long offset for reading large buffer\n\t\tlong offset = ((long) this.value) & 0xffffffffL;\n\n\t\tlong saveLoc = dataReader.getFilePointer();\n\t\tdataReader.seek(offset);\n\t\t\n\t\tint numerator = dataReader.readInt();\n\t\tint denominator = dataReader.readInt();\n\t\tdataReader.seek(saveLoc);\n\n\t\tif (denominator != 0)\n\t\t\treturn (double) numerator / denominator;\n\t\telse\n\t\t\treturn 0.0;\n\t}", "public double getShimmer() {\n\t\tint minAmp = 0; // figures the minium of the amplitude.\n\t\tint maxAmp; // figures the maxium of the amplitude.\n\t\tdouble amplitude = 0;\n\t\tList<Double> amplitudes = new ArrayList<Double>();\n\t\tdouble sum = 0;\n\t\tfor ( int i = 0; i < pitchPositions.size() - 1; i++ ) {\n\t\t\t// get each pitch\n\t\t\tmaxAmp = data.get( pitchPositions.get( i ) );\n\t\t\tfor ( int j = pitchPositions.get( i ); j < pitchPositions.get( i + 1 ); j++ ) {\n\t\t\t\tif ( minAmp > data.get( j ) ) {\n\t\t\t\t\tminAmp = data.get( j );\n\t\t\t\t}\n\t\t\t}\n\t\t\tamplitude = maxAmp - minAmp;\n\t\t\tamplitudes.add(amplitude);\n\t\t\tminAmp = 9999;\n\t\t}\n///Math.log(10)\n\t\tfor(int j = 0; j < amplitudes.size() - 1; j++){\n\t\t\tdouble element = Math.abs(20*(Math.log(amplitudes.get(j+1)/amplitudes.get(j))));\n\t\t\tsum = sum + element;\n\t\t}\n\t\tdouble result1 = sum/(amplitudes.size() - 1);\n\t\treturn result1;\n\n\t}", "public void computeAverageOfRepeats() {\n\t\t\n\t\texperimentsAvg_ = new ArrayList<Experiment>();\n\t\t\n\t\tfor (int i=0; i<experiments_.size(); i++)\n\t\t\texperimentsAvg_.add(experiments_.get(i).computeAverageOfRepeats());\n\t}", "public int getSingles() {\n return h-(d+t+hr);\n }", "@Override\n\tpublic int avg() {\n\t\treturn (this.sum()/3);\n\t}", "public double peri() {\n\t\treturn 2*(width+length);\n\t}", "protected void readCollection(Collection<Integer> series)\n {\n size = series.size();\n if(size==0)\n return;\n x = new double[size];\n Iterator<Integer> i = series.iterator();\n for(int t = 0; i.hasNext(); t++)\n x[t] = (i.next()).doubleValue();\n if(size<2)\n return;\n r = new double[size - 1];\n for(int t = 1; t<size; t++)\n r[t - 1] = Math.log(x[t]/x[t - 1]); \n }", "private float calculGainNumerical(KnowledgeBase kb, int attIndex) {\r\n\t\tArrayList<AttributeValue<Float>> possibleValue =findPossibleValueNumerical(kb,attIndex);\r\n\t\tArrayList<ArrayList<ArrayList<Integer>>> multiple_counters2D = new ArrayList<ArrayList<ArrayList<Integer>>>();\r\n\t\tfor(int i=0;i<possibleValue.size()-1;i++){\r\n\t\t\tmultiple_counters2D.add(kb.count2DNumeric(possibleValue.get(i),attIndex));\t\t\r\n\t\t}\r\n\t\tArrayList<Integer> counter1D = kb.count(kb.getIndexClass());\r\n\t\tfloat gini1D = calculImpurity(kb.getSamples().size(),counter1D);\r\n\t\tint indexBestSplit = find_bestSplit(kb,attIndex,multiple_counters2D);\r\n\t\t///\r\n\t\tArrayList<ArrayList<Integer>> counter2D = kb.count2DNumeric(attIndex, kb.getIndexClass(),possibleValue.get(indexBestSplit));\r\n\t\tfloat gini2D = calculImpurity2DForNumerical(kb,attIndex,counter2D,possibleValue.get(indexBestSplit));\r\n\t\treturn gini1D - gini2D;\r\n\t}" ]
[ "0.6244349", "0.5752886", "0.5609438", "0.5526405", "0.54586166", "0.54269946", "0.54060274", "0.54048276", "0.5339278", "0.532381", "0.5321732", "0.5297458", "0.52671146", "0.5264848", "0.5259971", "0.52421147", "0.5226145", "0.52237314", "0.521567", "0.51739806", "0.5130288", "0.51269317", "0.5124287", "0.510814", "0.5077008", "0.5075736", "0.5074931", "0.5072467", "0.5056333", "0.50560796", "0.5053257", "0.5046166", "0.503623", "0.5032182", "0.50196946", "0.5003685", "0.49991366", "0.49957588", "0.49948996", "0.4987527", "0.4984851", "0.49819323", "0.49765697", "0.49665686", "0.49665293", "0.49644145", "0.4959344", "0.4952625", "0.4946696", "0.49421278", "0.49405563", "0.49367616", "0.49270177", "0.49107018", "0.49066457", "0.4900792", "0.4899845", "0.489758", "0.48970756", "0.4892697", "0.48804292", "0.48766574", "0.48746774", "0.48717856", "0.48650032", "0.4864791", "0.48644754", "0.48598203", "0.48542896", "0.48542818", "0.48516804", "0.48496702", "0.48444426", "0.48328078", "0.48314604", "0.48296863", "0.48269913", "0.482456", "0.48171338", "0.48160076", "0.48100093", "0.48041412", "0.48039326", "0.48014867", "0.47841653", "0.47823885", "0.4780059", "0.4777357", "0.4761209", "0.47607762", "0.47607416", "0.47603744", "0.47591382", "0.47588223", "0.47522882", "0.47486892", "0.47483706", "0.47421926", "0.4740965", "0.47342208" ]
0.58958054
1
Get the maximum model width
public int getMaxModelRange(){ int max=0; for(ControlledExperiment ce : replicates) if(ce.getBindingModel().getInfluenceRange()>max) max = ce.getBindingModel().getInfluenceRange(); return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMaxWidth() {\n return Integer.MAX_VALUE;\n }", "public float getMaxWidth() {\n Object value = library.getObject(entries, MAX_WIDTH);\n if (value instanceof Number) {\n return ((Number) value).floatValue();\n }\n return 0.0f;\n }", "public final int getMaxWidth() {\n return maxWidth;\n }", "public double getMaxWidth() throws PDFNetException {\n/* 657 */ return GetMaxWidth(this.a);\n/* */ }", "public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }", "public int getLargeur() {\n return getWidth();\n }", "public double getBestWidth() { return getBestWidth(-1); }", "public double getBestWidth(double aValue) { return Math.max(getMinWidth(aValue), getPrefWidth(aValue)); }", "short getFitWidth();", "Integer getCurrentWidth();", "public double getMinWidth() { return getMinWidth(-1); }", "abstract public int getMinWidth();", "public Dimension getMaximumSize()\n {\n return new Dimension(32767, 32767);\n }", "public float getMinWidth() {\r\n return width.min;\r\n }", "int getMaxScale();", "@VisibleForTesting\n public int getMaxImageWidth() {\n return this.mContext.getResources().getDimensionPixelSize(isLowRam() ? 17105367 : 17105366);\n }", "public abstract int getDisplayWidth();", "public int getMaximumValue() {\n return Math.min(Short.MAX_VALUE, c.getMaximumSize().width);\n }", "public int getDesiredWidth() {\n return mDesiredWidth;\n }", "public int getCurrentWidth();", "Integer getDefaultWidth();", "public int maxColumnWidth() {\n return maxColumnWidth;\n }", "public int getWidthWeight()\n {\n int ret = 1;\n if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH.value())) {\n ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH.value()));\n }\n return ret;\n }", "public double getMaxScale() {\n return maxScale;\n }", "public double getPrefWidth() { return getPrefWidth(-1); }", "long getWidth();", "public int width()\n {\n return Math.max(top, bottom);\n }", "private int getTargetWidth()\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\treturn mTargetWidth;\r\n\t\t}\r\n\t}", "public static int getWidth() {\r\n\t\treturn 1280;\r\n\t}", "public double getMaximumX () {\n return minimumX + width;\n }", "public int getWidth() {\r\n return Display.getWidth();\r\n }", "private float getCurrentDisplayedWidth() {\n if (getDrawable() != null)\n return getDrawable().getIntrinsicWidth() * matrixValues[Matrix.MSCALE_X];\n else\n return 0;\n }", "public static double getDisplayWidth() {\n\t\treturn javafx.stage.Screen.getPrimary().getVisualBounds().getWidth();\n\t}", "private int getMaxSize() {\r\n return PropUtils.getValue(sizeLimitProp, DEFAULT_MAX_SIZE);\r\n }", "@Override\n\tpublic float getPrefWidth() {\n\t\treturn windowSize * 1.2f;\n\t}", "protected int get_max_litter_size()\n {\n return max_litter_size;\n }", "public long getMaxHeight(){\r\n\t\treturn world.getHeight();\r\n\t}", "public int getWidth() {\r\n\t\treturn defaultWidth;\r\n\t}", "public final int getMaxX() {\n return getMinX() + getWidth();\n }", "int getMaxSetSize(Object modelID) throws Exception;", "public int getScreenWidth();", "public int getScreenWidth();", "public int getWidth();", "public int getWidth();", "public int getWidth();", "public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }", "public float getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }", "public int getWidth() { return width; }", "public int getWidth() { return width; }", "int getWidth() {return width;}", "public static void setMaximumWidth(final int width) {\n\t\tmaximumWidth = width;\n\t}", "public int getMaximalSize() {\n return maximalSize;\n }", "int getRealWidth()\n\t{\n\t\treturn( realWidth );\n\t}", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "public static double getRawDisplayWidth() {\n\t\treturn javafx.stage.Screen.getPrimary().getBounds().getWidth();\n\t}", "public double getWidth();", "public double getWidth();", "public int getWidth() {\r\n return width;\r\n }", "public int getWidthNumOfBytes() {\n return widthNumOfBytes;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public String getwidth()\n\t{\n\t\treturn width.getText();\n\t}", "@Override\r\n public Dimension getMaximumSize() {\r\n \t// get current preferred size\r\n \tDimension d = isMaximumSizeSet() ? super.getMaximumSize() : new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE);\r\n // forward\r\n return isExpanded() ? d : (isMaximumSizeSet() ?\r\n \t\tnew Dimension(d.width,minimumCollapsedHeight) :\r\n \t\tnew Dimension(Integer.MAX_VALUE,minimumCollapsedHeight));\r\n }", "public double getMaxVehicleLength() {\n return Math.max(maxCarLength, maxTruckLength);\n }", "String getWidth();", "String getWidth();", "public final int getMaxForKernels()\r\n\t{\r\n\t\treturn maxForKernels;\r\n\t}", "public int getDisplayWidth() {\n return isHiRes() ? 640 : 320;\n }", "public int getWidth() {\r\n return width;\r\n }", "public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}", "public double getMinWidth(double aValue) { Double w = (Double)get(\"MinWidth\"); return w!=null? w : 0; }", "public int getWidth()\n {\n return width;\n }", "public double getMaxX() { return getX() + getWidth(); }", "public int getWidth(){\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int getWidth() {\n return (int) Math.round(width);\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }" ]
[ "0.7924507", "0.763673", "0.74332565", "0.7334278", "0.71730644", "0.70566094", "0.70565206", "0.6818257", "0.6807622", "0.67914665", "0.67382467", "0.6659701", "0.6633146", "0.6632011", "0.66115236", "0.6600616", "0.659456", "0.65735775", "0.6522134", "0.65201306", "0.6505519", "0.64991844", "0.6482453", "0.6461181", "0.64575446", "0.64521253", "0.6430763", "0.64263207", "0.64221746", "0.6420595", "0.63435966", "0.6329701", "0.63280785", "0.6302756", "0.62933135", "0.6282886", "0.6281226", "0.6280027", "0.6276539", "0.6265395", "0.6262573", "0.6262573", "0.626125", "0.626125", "0.626125", "0.6260042", "0.62591136", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6242192", "0.6239058", "0.62385905", "0.62385905", "0.62277657", "0.62269384", "0.62053806", "0.6204332", "0.6204022", "0.6203207", "0.62018794", "0.62018794", "0.6200919", "0.6195346", "0.6187627", "0.6187627", "0.6185348", "0.61783004", "0.6174807", "0.6171062", "0.6171062", "0.6170888", "0.6165929", "0.6159945", "0.61568654", "0.6156488", "0.61530906", "0.61494786", "0.6145892", "0.61443245", "0.61443245", "0.61443245", "0.6142886", "0.6142029", "0.6142029", "0.6142029", "0.6142029" ]
0.6356408
30
Print the replicate counts at events
public void printReplicateCounts(String outRoot){ try{ String outName = outRoot+"."+name+".repcounts"; FileWriter fw = new FileWriter(outName); fw.write(BindingEvent.repCountHeadString()+"\n"); for(BindingEvent e : events){ fw.write(e.getRepCountString()+"\n"); } fw.close(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printCount(int[] count) {\n \n System.out.println(\"Array Play\");\n for (int i = 0; i < count.length; i++) {\n \n System.out.println(\n (i + 1) + \" was rolled \" + count[i] + \" times.\\n\");\n }\n }", "public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}", "void writeRepetitionCount(int count);", "int getActionLogCount();", "public static void displayMsg() {\n\t\tSystem.out.println(\"Welcome Visit Count \"+count++);\n\t}", "public void printHourlyCounts()\n {\n System.out.println(\"Hr: Count\");\n for(int hour = 0; hour < hourCounts.length; hour++) {\n System.out.println(hour + \": \" + hourCounts[hour]);\n }\n }", "@Override\npublic String toString() {\nreturn \"\" + counter;\n}", "public void printCountGrid() {\n\n System.out.println(\"AI count grid :\");\n for (int i = this.boardSize.x - 1; i >= 0; i--) {\n for (int j = 0; j < this.boardSize.y; j++) {\n System.out.print(this.countGrid[i][j] + \" \");\n }\n System.out.println(\"\");\n }\n }", "public void print_documents_per_label_count() {\n\t\tSystem.out.println(\"SPORTS=\" + m_sports_count);\n\t\tSystem.out.println(\"BUSINESS=\" + m_business_count);\n\t}", "void printPetalCount() {\n\t\tprint(\"petalCout = \"+petalCount+\" S = \"+s);\r\n\t\t\r\n\t}", "protected void printEvent(Event event) {\n System.out.println(\"\\t\" + event.getName());\n System.out.println(\"\\t\" + event.getDate().getDate());\n System.out.println(\"\\t\" + event.getTime().get12HTime());\n\n if (event.getDuration() != 0) {\n System.out.println(\"\\tFor \" + event.getDuration() + \" minutes\");\n }\n }", "public static void main(String[] args) {\n\t\tfor (int counter = 0; counter < 10; counter++) {\r\n\t\t\tSystem.out.println(\"message\" + counter);\r\n\t\t}\r\n\r\n\t}", "public void printCountersAndDiagnostics() {\n\t\tSystem.out.println(\"Node \" + myAssignedID + \"::\" + \"\\t\" + \"Sent\" + \"\\t\"\n\t\t\t\t+ \"Rec'd\" + \"\\t\" + \"Relayed\" + \"\\t\" + \"SumSent\" + \"\\t\"\n\t\t\t\t+ \"SumRecd\");\n\t\tSystem.out.println(\"\\t\\t\" + this.sendTracker + \"\\t\"\n\t\t\t\t+ this.receiveTracker + \"\\t\" + this.relayTracker + \"\\t\"\n\t\t\t\t+ this.sendSummation + \"\\t\" + this.receiveSummation);\n\t}", "public int getCount() {\n\t\treturn events.size();\n\t}", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int num_days = s.nextInt();\n int history = s.nextInt();\n int[] trans = new int[num_days];\n for(int i=0; i<num_days; i++)\n trans[i] = s.nextInt();\n\n System.out.print(numOfNotifications(trans,history));\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.element +\" \"+duplicateCount+\" \"+probeCount;\n\t}", "public static void show(){\n // We will test all the APIs here\n System.out.println(\"Pasture seeds: \" + PastureSeed.count + \"\\tPasture product : \" + PastureProduct.count);\n System.out.println(\"Corn seeds: \" + CornSeed.count + \"\\t\\tCorn product : \" + CornProduct.count);\n System.out.println(\"Rice seeds: \" + RiceSeed.count + \"\\t\\tRice product : \" + RiceProduct.count);\n }", "public int showCounts() {\n return showCount;\n }", "public void showSamples(){\n\t\tfor(int i=0; i<arrIns.size(); i++){\n\t\t\tfor(int j=0; j<arrIns.get(i).numAttributes(); j++){\n\t\t\t\tSystem.out.print(\" | \" + arrIns.get(i).value(j) + \" | \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "public StartCount() {\n\tint pass = 4;\n\tboolean heard = false;\n\tIterator iter;\n\n\ttry {\n\t \n\t \n\t aif.open();\n\t aif.registerHandler(this, kCOUNT_MESSAGE);\n\t \n\t while (true) {\n\t\tSystem.out.println(\"Start of Epoch\");\n\t\tif (pass++ > 2) {\n\n\t\t countMessage[LEVEL_BYTE] = 0;\n\t\t countMessage[COUNT_BYTE] = 0;\n\t\t countMessage[REMAINING_TIME_LO_BYTE] = 64;\n\t\t aif.sendAM(countMessage, kCOUNT_MESSAGE, (short)0xFFFF);\n\t\t pass = 0;\n\t\t}\n\t\tThread.currentThread().sleep(2000);\n\t\titeration++;\n\t\t//if (epochCount > 0) heard = true;\n\t\titer = counts.values().iterator();\n\t\tepochCount = 0;\n\t\twhile (iter.hasNext()) {\n\t\t CountReport cr = (CountReport)iter.next();\n\t\t if (iteration - cr.iteration > 8) iter.remove();\n\t\t else epochCount += cr.count;\n\t\t}\n\t\tSystem.out.println(\"End of Epoch, Count = \" + epochCount);\n\n\n\n\t }\n\n\t \n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t}\n }", "public void addCount() {\n \t\tdupCount++;\n \t}", "@Override\n public void run(){\n for(int i = 1; i<=count; i++) {\n System.out.printf(\"Threat: %s %d%n\",threadName,i);\n }\n }", "public void sinkCounterMap(){\n for(int i=1; i<(sinkCounter+1); i++){\n sinkCounterMap.put(i,1); //sink is included in basin count;\n \n }\n }", "private void printSampleData() {\n\n System.out.println(\"Sentences: \" + sentenceList.size());\n System.out.println(\"Words before cleanup: \" + map.size());\n }", "void print(int count) {\n System.out.print(\"buffer has \");\n System.out.print(bufAvail);\n System.out.println(\" bytes available\");\n if (bufAvail < count) {\n count = bufAvail;\n }\n for (int ptr = bufPtr; count > 0; count--) {\n int val = (int)buf[ptr++] & 0xff;\n System.out.print(\" \" + Integer.toHexString(val));\n }\n System.out.println();\n }", "private void printReport() {\n\t\t\tSystem.out.println(\"Processed \" + this.countItems + \" items:\");\n\t\t\tSystem.out.println(\" * Labels: \" + this.countLabels);\n\t\t\tSystem.out.println(\" * Descriptions: \" + this.countDescriptions);\n\t\t\tSystem.out.println(\" * Aliases: \" + this.countAliases);\n\t\t\tSystem.out.println(\" * Statements: \" + this.countStatements);\n\t\t\tSystem.out.println(\" * Site links: \" + this.countSiteLinks);\n\t\t}", "public void report() \r\n\t{\r\n\t\tSystem.out.println(\"continuous counter\\n\");\r\n\t\tsuper.report();\r\n\t\tSystem.out.println(\"interval length: \" + (lastSampleTime - firstSampleTime));\r\n\t}", "public static void main(String[] args) {\n\n\t\tint n=5;\n\t\tfor (int i=0;i<n;i++)\n\t\t{\n\t\t\tSystem.out.format(\"%ns\", \"#\");\n\t\t}\n\t\t\n\t\t\n\t}", "private static void consoleOutput() {\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n airportFlightCounter.toConsole();\n flightInventory.toConsole();\n flightPassengerCounter.toConsole();\n mileageCounter.toConsole();\n }", "public void run() {\n long num = numEvents.get();\n long lastnum = lastNumEvents.get();\n long evps = (num-lastnum)/App.METRICS_PER_SECOND;\n lastNumEvents.set(num);\n System.out.println(\"Consumer[\"+\n nnaammee+\"]: cursorRestarts=\"+cursorRestarts.get()\n +\" numEvents=\"+num\n +\" events/second=\"+evps\n +\" totalNumEvents=\"+totalNumEvents.get());\n }", "@Override\n\tpublic void count() {\n\t\t\n\t}", "private void printSelectionCountResults(){\n\t\tSystem.out.print(\"\\n\");\n\t\tfor(Character answer: q.getPossibleAnswers()){\n\t\t\tSystem.out.print(answer+\": \"+selections.get(q.getPossibleAnswers().indexOf(answer))+\"\\n\");\n\t\t}\n\t}", "long getReceivedEventsCount();", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "private synchronized void updateLogCount() {\n this.logCount++;\n }", "public static void main(String[] args) {\n int [] numbers= {23,45,66,45,78,34,201,88,66,34,7,9,3,603,7,301,7,8,7};\n\n LearnHashMapTravers.printFrequency(numbers);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(countAndSayS(6));\n\t\t\n\t\n\t}", "public void increment() {\n\t\tsynchronized (this) {\n\t\t\tCounter.count++;\n\t\t\tSystem.out.print(Counter.count + \" \");\n\t\t}\n\t\n\t}", "public void countByCharacter() {\n if (super.getInput() == null) {\n return;\n }\n FileInputStream is;\n try {\n is = new FileInputStream(super.getInput());\n NxParser nxp = new NxParser();\n System.out.println(\"Parsing \" + super.getInput() + \"...\");\n nxp.parse(is);\n for (Node[] nx : nxp) {\n String nodeid = nx[0].toString();\n String predicate = nx[1].getLabel();\n if (!PredicateUtils.isSchemaOrgEvent(predicate)) {\n continue;\n }\n predicate = PredicateUtils.fixSchemaOrg(predicate);\n if (!ATTR.equalsIgnoreCase(PredicateUtils.getEventProperty(predicate))) {\n continue;\n }\n String obj = nx[2].getLabel();\n int length = obj.length();\n Integer count = mapEvents.get(nodeid);\n mapEvents.put(nodeid, (count == null ? length : count + length));\n Integer countLength = mapLengths.get(String.valueOf(length));\n mapLengths.put(String.valueOf(length), (countLength == null ? 1 : countLength + 1));\n }\n System.out.println(\"The total number of lines: \" + nxp.lineNumber());\n System.out.println(\"The total number of events: \" + mapEvents.size());\n System.out.println(\"Start sorting mapEvents...\");\n Map<String, Integer> mapEvent = VectorUtils.sortByValue(mapEvents, VectorUtils.SortBy.DESC);\n FileUtils.writeMapdataToFile(this.getOutput(\"event\"), mapEvent);\n System.out.println(\"Start sorting mapLengths...\");\n Map<String, Integer> mapLength = VectorUtils.sortByValue(mapLengths, VectorUtils.SortBy.DESC);\n FileUtils.writeMapdataToFile(this.getOutput(\"length\"), mapLength);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public static void debug_countTypes() throws GameActionException {\n for (RobotType robotType: RobotType.values()) {\n System.out.println(\"The number of \" + robotType + \" is \" + RobotCount.read(robotType));\n }\n }", "static void printActiveClients() {\n\t\tint count = 0;\n\t\tfor (ClientThread thread : threads) {\n\t\t\tif (thread != null) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Clients: \" + count);\n\t}", "public String doPrint() {\n\t\t// Get the event title.\n\t\tString event = \"\";\n\t\tswitch (eventType) {\n\t\t\tcase \"IND\": event = \"Individual\";\n\t\t\t\t\t\tbreak;\n\t\t\tcase \"GRP\": event = \"Group\";\n\t\t\t\t\t\tbreak;\n\t\t\tcase \"PARIND\": event = \"Parallel Individual\";\n\t\t\t\t\t\t break;\n\t\t\tcase \"PARGRP\": event = \"Parallel Group\";\n\t\t\t\t\t\t break;\n\t\t default:\tevent = \"\";\n\t\t \t\t\tbreak;\n\t\t}\n\t\t\n\t\tString out = \"RUN BIB TIME\t \" + event +\"\\n\";\n\t\t\n\t\t// Print completed runs.\n\t\tfor ( Run run : completedRuns ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\t// Print inProgress runs.\n\t\tfor ( Run run : finishQueue ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\t// Print waiting runs.\n\t\tfor ( Run run : startQueue ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn out;\n\t}", "int readRepetitionCount();", "private void displayTestResultSummary() {\n int passNum = mSessionLog.getTestList(CtsTestResult.CODE_PASS).size();\n int failNum = mSessionLog.getTestList(CtsTestResult.CODE_FAIL).size();\n int notExecutedNum =\n mSessionLog.getTestList(CtsTestResult.CODE_NOT_EXECUTED).size();\n int timeOutNum = mSessionLog.getTestList(CtsTestResult.CODE_TIMEOUT).size();\n int total = passNum + failNum + notExecutedNum + timeOutNum;\n \n println(\"Test summary: pass=\" + passNum\n + \" fail=\" + failNum\n + \" timeOut=\" + timeOutNum\n + \" notExecuted=\" + notExecutedNum\n + \" Total=\" + total);\n }", "private static void printData(List<Long> runningTimes) {\n\t\tlong min = Collections.min(runningTimes);\n\t\tlong max = Collections.max(runningTimes);\n\t\t\n\t\tlong total = 0;\n\t\tfor(long runTime : runningTimes)\n\t\t\ttotal+=runTime;\n\t\t\n\t\tSystem.out.println(\"******* SEQUENTIAL RESULTS *******\");\n\t\tSystem.out.println(\"MIN RUNNING TIME(ms): \"+min);\n\t\tSystem.out.println(\"MAX RUNNING TIME(ms): \"+max);\n\t\tSystem.out.println(\"AVG RUNNING TIME(ms): \"+(total/runningTimes.size()));\n\t\tSystem.out.println(\"***********************************\");\n\t\tSystem.out.println();\n\t}", "public void printStats() {\n\t\tSystem.out.println(\"========== LCMFreq v0.96r18 - STATS ============\");\n\t\tSystem.out.println(\" Freq. itemsets count: \" + frequentCount);\n\t\tSystem.out.println(\" Total time ~: \" + (endTimestamp - startTimestamp)\n\t\t\t\t+ \" ms\");\n\t\tSystem.out.println(\" Max memory:\" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"=====================================\");\n\t}", "public void showRowCount()\n {\n // Update the status bar to show the number of matches\n final int totalCount = Codes.getSize();\n final int subCount = subset.getCount();\n \n StringBuilder sb = new StringBuilder(30);\n sb.append(\" Showing \").append(Integer.toString(subCount)).append(\" row\");\n if (subset.getCount() != 1)\n {\n sb.append(\"s\");\n }\n \n if (subCount < totalCount)\n {\n sb.append(\" of \").append(Integer.toString(totalCount));\n }\n \n LogViewer.setStatusBarMessage2(sb.toString());\n }", "@Scheduled(cron = \"*/2 * * * * ?\")\n public void dataCount(){\n System.out.println(\"数据统计第 \" + count++ + \" 次\");\n }", "public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }", "public void print() {\n\tfor (int i = 0; i &lt; mCalendarMarkings.sizeCalendarMarkingList(); i++) {\n\t CalendarMarking marking = mCalendarMarkings.getCalendarMarking(i);\n\t // get first occurrence:\n\t Calendar firstDay = Calendar.getInstance();\n\t firstDay.setTimeInMillis(marking.getStartDate());\n\t RepetitionHandler handler = sHandlerMap.get(marking.getRepeatType());\n\t firstDay = handler.getFirst(firstDay, marking);\n\t printDate(firstDay);\n\t while (firstDay != null) {\n\t\tfirstDay = handler.getNext(firstDay, marking);\n\t\tprintDate(firstDay);\n\t }\n\t}\n }", "public void countByAlpha() {\n if (super.getInput() == null) {\n return;\n }\n FileInputStream is;\n try {\n is = new FileInputStream(super.getInput());\n NxParser nxp = new NxParser();\n System.out.println(\"Parsing \" + super.getInput() + \"...\");\n nxp.parse(is);\n for (Node[] nx : nxp) {\n String nodeid = nx[0].toString();\n String predicate = nx[1].getLabel();\n if (!PredicateUtils.isSchemaOrgEvent(predicate)) {\n continue;\n }\n predicate = PredicateUtils.fixSchemaOrg(predicate);\n if (!ATTR.equalsIgnoreCase(PredicateUtils.getEventProperty(predicate))) {\n continue;\n }\n String obj = nx[2].getLabel();\n obj = NGramUtils.removePunctuaion(obj);\n int length = obj.length();\n Integer count = mapEvents.get(nodeid);\n mapEvents.put(nodeid, (count == null ? length : count + length));\n Integer countLength = mapLengths.get(String.valueOf(length));\n mapLengths.put(String.valueOf(length), (countLength == null ? 1 : countLength + 1));\n }\n System.out.println(\"The total number of lines: \" + nxp.lineNumber());\n System.out.println(\"The total number of events: \" + mapEvents.size());\n System.out.println(\"Start sorting mapEvents...\");\n Map<String, Integer> mapEvent = VectorUtils.sortByValue(mapEvents, VectorUtils.SortBy.DESC);\n FileUtils.writeMapdataToFile(this.getOutput(\"event\"), mapEvent);\n System.out.println(\"Start sorting mapLengths...\");\n Map<String, Integer> mapLength = VectorUtils.sortByValue(mapLengths, VectorUtils.SortBy.DESC);\n FileUtils.writeMapdataToFile(this.getOutput(\"length\"), mapLength);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }", "private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }", "public static void logRevisedPromoOpenCount(int count) {\n RecordHistogram.recordCount1MHistogram(\"Search.ContextualSearchPromoOpenCount2\", count);\n }", "public static void main(String[] args) {\n\t\r\n\t\t\t\r\n\t\tint count = 0;\r\n\t\t\r\n\t\twhile(count <= 10) {\r\n\t\t\tSystem.out.println(count);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"프로그램 종료\");\r\n\t}", "@Override\n\tpublic void test() {\n\t\tSystem.out.println(countAndSay(5));\n\t\t\n\t}", "manExp15(){ \r\n\r\n\tcount++; \r\n\r\n\tSystem.out.println(count); \r\n\r\n\t}", "public static void printResults() {\n resultMap.entrySet().stream().forEach((Map.Entry<File, String> entry) -> {\n System.out.println(String.format(\"%s processed by thread: %s\", entry.getKey(), entry.getValue()));\n });\n System.out.println(String.format(\"processed %d entries\", resultMap.size()));\n }", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tint d = 6;\n\n\t\tint count = 0;\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tcount += count(1, i, i, d, i == d || i ==0);\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "private void listEvents() {\n System.out.println(\"\\nEvents:\");\n for (Event event: world.getEvents()) {\n String name = event.getName();\n String coords = \" with x = \" + event.getX() + \" light seconds and t = \" + event.getTime() + \" seconds \";\n String frame = \"in \" + event.getFrame().getName() + \".\";\n System.out.println(name + coords + frame);\n }\n }", "private void reactMain_region_digitalwatch_Time_counting_Counting() {\n\t\tif (timeEvents[0]) {\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 0);\n\n\t\t\ttimer.setTimer(this, 0, 1 * 1000, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseTimeByOne();\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_digitalwatch_Time_counting_Counting;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(countAndSay(1));\n\t}", "public abstract Map<Object,Map<String,Integer>> getEventHandlerCounts();", "private static void print(char c, int count) {\n\t\tfor(int i = 0; i < count ; i++)\n\t\tSystem.out.print(count);\n\t\tThread.yield();\n\t}", "public void listReceivedEvents() {\r\n for (Event event : receivedEvents) {\r\n System.out.print(event);\r\n }\r\n }", "@Override\n\tpublic void run() {\n\n\t\tfor (int i = 0; i < 10; i++) {\n\n\t\t\tCounter.incrementCount();\n\n\t\t\tif (Thread.currentThread().getName().equals(\"one\")) {\n\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" \"\n\t\t\t\t\t\t+ Counter.count);\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" \"\n\t\t\t\t\t\t+ Counter.count);\n\t\t\t}\n\n\t\t}\n\n\t}", "public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}", "int getEventMetadataCount();", "public static void main(String[] args) {\n\t\tfor (int i = 0; i<8; i++)\t\t\n\t\tsuccesscounter(i);\t\t\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(successCounter);\n\t}", "public ClickCounter() {\n System.out.println(\"Click constructor: \" + count);\n \n }", "private void displayCount() {\n\t\tlabel.setText(String.format(\"%2d\", game.getCount()));\n\t}", "public int printChoicesForShowtimes() {\n\t\tint i=0;\n\t\tint N = this.getDataLength();\n\t\twhile(i<N) {\n\t\t\tif (this.dataList.get(i).isComingSoon())\n\t\t\t\tbreak;\n\t\t\tSystem.out.println(i+\" : \"+this.dataList.get(i).toString());\n\t\t\t++i;\n\t\t}\n\t\t\n\t\treturn i;\n\t}", "public void count(String seq) {\n\n\t\tString sql = \"update tblNotice set viewcount = viewcount+1\" + \" where seqNotice =\" + seq;\n\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tps.executeUpdate();\n\t\t\tps.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"count : \" + e);\n\t\t}\n\t}", "private void printNumVisited()\r\n\t{\r\n\t\tSystem.out.println(\"\");\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t\tSystem.out.println(webVisited[0][i] + \" visited \" + webVisited[1][i] + \" time(s)\");\r\n\t}", "void printStats();", "@Override\r\n\tpublic String finalReport() {\r\n\t\tif (ETParser.getLogger() != null) {\r\n\t\t\tETParser.getLogger()\r\n\t\t\t\t\t.getLogger()\r\n\t\t\t\t\t.info((float) multiples.size() / totalObjectsInHeap\r\n\t\t\t\t\t\t\t* PERCENTAGE\r\n\t\t\t\t\t\t\t+ \" % objects were created more than once.\");\r\n\t\t}\r\n\t\treturn (float) multiples.size() / totalObjectsInHeap * PERCENTAGE\r\n\t\t\t\t+ \" % objects were created more than once\";\r\n\t}", "private void testMediatorInvocationCounts(String table) throws AnalyticsException, InterruptedException {\n log.info(\"Checking mediator invocation count in \" + table + \" table:\");\n for (int proxyNumber = 0; proxyNumber < NUMBER_OF_PROXIES; proxyNumber++) {\n for (int mediatorNumber = 1; mediatorNumber <= NUMBER_OF_MEDIATORS; mediatorNumber++) {\n String mediatorId = \"AccuracyTestProxy_\" + proxyNumber + \"@\" + mediatorNumber + \":mediator_\" + \n mediatorNumber;\n int count = getCounts(table, TestConstants.NUMBER_OF_INVOCATION, mediatorId);\n Assert.assertEquals(count, TOTAL_REQUESTS_PER_PROXY, \"Invocation count is incorrect for mediator: \" +\n mediatorId + \" in \" + table + \" table.\");\n }\n log.info(\"AccuracyTestProxy_\" + proxyNumber + \": All mediators: Ok\");\n }\n }", "public static void main(String[] args) {\n\t\tint[] counts = new int[100]; \r\n\t\t\r\n\t\t// Welcome the user.\r\n\t\t\r\n\t\tSystem.out.println(\"Welcome to the Occurrence Counter Program.\");\r\n\t\tSystem.out.println(\"This program counts the occurrences of the numbers you enter.\");\r\n\r\n\t\t// Prompt the user to enter integers between 1 and 100\r\n\t\tSystem.out.print(\"Please enter integers between 1 and 100 with 0 being your last entry: \");\r\n\r\n\t\t// Call count method.\r\n\t\tcount(counts);\r\n\r\n\t\t// Display results.\r\n\t\tfor (int i = 0; i < counts.length; i++) {\r\n\t\t\tif (counts[i] > 0)\r\n\t\t\t\tSystem.out.println((i + 1) + \"\\t\" + \" occurs \" + counts[i] +\r\n\t\t\t\t\t\" time\" + (counts[i] > 1 ? \"s\" : \"\"));\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tlong count = countStudnet();\n\t\tSystem.out.println(count);\n\t}", "private static void printStats(Stats stats) {\n long elapsedTime = (System.nanoTime() - startTime) / 1000000;\n System.out.println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n getConsole().println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n stats.print();\n }", "public void eventsPublishedByPub() {\r\n int index = 1;\r\n System.out.println(\"Events published by this publisher: \");\r\n for (Event event : pubEvents) {\r\n System.out.println(index + \"->\" + event + \"\\n\");\r\n index++;\r\n }\r\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner (System.in);\n int n = scanner.nextInt();\n int[] counts = new int[100];\n for ( int i = 0; i < 100; ++i )\n counts[i] = 0;\n for ( int i = 0; i < n; ++i ) {\n int x = scanner.nextInt();\n ++counts[x];\n }\n scanner.close();\n for ( int i = 0; i < 100; ++i ) System.out.print( counts[i] + \" \" );\n System.out.println();\n }", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "public static void main(String[] args) {\n\n int response [] = {1, 2, 5, 4, 3, 5, 2, 1, 3, 3, 1, 4, 3, 3, 3, 1 ,2, 3, 3, 2, 2};\n int frequency []=new int [6];\n\n for(int counter = 1; counter < response.length; counter++)\n {\n try\n {\n ++frequency[response[counter]];\n }\n catch (ArrayIndexOutOfBoundsException e)\n {\n System.out.println(e);\n\n System.out.printf(\" response[%d] = %d\\n\", counter, response[counter]);\n }\n }\n\n System.out.printf(\"%s%10s\\n\", \"Rating\", \"Frequency\");\n\n for(int rating = 1; rating < frequency.length; rating++)\n System.out.printf(\"%5d%10d\\n\", rating, frequency[rating]);\n }", "void print() {\n for (Process process : workload) {\n System.out.println(process);\n }\n }", "private void printTimer(){\n\t\tFrame++;\n\t\tif(isFrame()){\n\t\t\tSystem.out.println(Frame + \" updates/frames in the \" + second + \"th second\");\n\t\t\tsecond++;\n\t\t\tFrame=1;\n\t\t}\n\t}", "public void incrementCount() {\n count++;\n }", "private static void displayOutput( float t ) {\n\t\tfor (Output o: outputList) {\n\t\t\to.outputMe();\n\t\t}\n\t\tSystem.out.println();\n\n\t\t/*if (Simulator.moreEvents()) {\n\t\t\tSimulator.schedule(\n\t\t\t\tt + 1,\n\t\t\t\t(float time) -> displayOutput( time )\n\t\t\t);\n\t\t}*/\n\t}", "private void printExceptionCountBreakdown() {\n\t SampleHandler.printMessage(\"\\nDestructive wrapping instances break down by project:\");\n\t for (String projectName : projectDestructiveWrappingInstancesMap.keySet()) {\n\t\t SampleHandler.printMessage(String.format(\"%s project: %d destructive wrapping instances flagged\",\n\t\t\t\t projectName, projectDestructiveWrappingInstancesMap.get(projectName).size()));\n\t }\n }", "@Override\n public void stepCount(long step, int timestamp) {\n }", "private void registerMessageProcessed() {\r\n\t\tcounter++;\r\n\t\t\r\n\t\t// If it's the 10th, 20th, 30th, 40th or 50th message...\r\n\t\tif (counter%10 == 0) {\r\n\t\t\t\r\n\t\t\t// ...give a summary of all sales by type and the overall total value paid.\r\n\t\t\tSystem.out.println(\"Sale summary:\");\r\n\t\t\t\r\n\t\t\t// For every sale type...\r\n\t\t\tfor (String saleType : typeToSales.keySet()) {\r\n\t\t\t\t\r\n\t\t\t\t// ...calculate the overall value paid for all sales of this type and print the result\r\n\t\t\t\tSystem.out.println(MessageFormat.format(\" Sale type: {0}; Total value: {1, number, currency}\", saleType, getTotalValue(saleType) / 100.0));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If it's the 50th message...\r\n\t\t\tif (counter%50 == 0) {\r\n\t\t\t\t\r\n\t\t\t\t// ...print the adjustment summary.\r\n\t\t\t\tSystem.out.println(\"Adjustment summary:\");\r\n\r\n\t\t\t\t// For every sale type...\r\n\t\t\t\tfor (String saleType : typeToAdjustments.keySet()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(MessageFormat.format(\" Sale type: {0}\", saleType));\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Adjustment adjustment : typeToAdjustments.get(saleType)) {\r\n\t\t\t\t\t\t// ...print the sequence of adjustments made to it.\r\n\t\t\t\t\t\tSystem.out.println(MessageFormat.format(\" Operation: {0}; Anount: {1}\", adjustment.getOperation(), adjustment.getAmount()));\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// Final action is to warn the system will accept no more messages...\r\n\t\t\t\tSystem.out.println(\"Limit of 50 messages reached. System will now terminate.\");\r\n\r\n\t\t\t\t// ...and terminate.\r\n\t\t\t\tthis.terminated = true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printStats() {\n\t\t\n\t\tif(grafo==null) {\n\t\t\t\n\t\t\tthis.createGraph();\n\t\t}\n\t\t\n\t\tConnectivityInspector <Airport, DefaultWeightedEdge> c = new ConnectivityInspector<>(grafo);\n\t\t\n\t\tSystem.out.println(c.connectedSets().size());\n\n\t}", "public int getNumEvents() {\n return numEvents;\n }", "@Override\n public void visualize() {\n if (this.count() > 0){\n for (int i = 0; i < this.count(); i++){\n System.out.println(i + \".- \" + this.bench.get(i).getName() + \" (ID: \" + this.bench.get(i).getId() + \")\");\n }\n } else {\n System.out.println(\"La banca está vacía.\");\n }\n\n }", "public void addCount()\n {\n \tcount++;\n }", "void resetReceivedEventsCount();", "private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tCommonCount cnt = new CommonCount();\r\n\t\tcnt.commonCount = 55;\r\n\t\twhile(cnt.commonCount > 0) {\r\n\t\t\tSystem.out.println(\"*** \" + cnt.commonCount);\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n public void printApplicationTimePrintTenuringDistribution() throws Exception {\n TestLogHandler handler = new TestLogHandler();\n handler.setLevel(Level.WARNING);\n GCResource gcResource = new GcResourceFile(\"SampleSun1_7_0_02PrintApplicationTimeTenuringDistribution.txt\");\n gcResource.getLogger().addHandler(handler);\n DataReader reader = getDataReader(gcResource);\n GCModel model = reader.read();\n Assert.assertEquals(\"number of events\", 9, model.size());\n Assert.assertEquals(\"number of concurrent events\", 2, model.getConcurrentEventPauses().size());\n GCEvent youngEvent = ((GCEvent) (model.get(0)));\n Assert.assertEquals(\"gc pause (young)\", 0.00784501, youngEvent.getPause(), 1.0E-9);\n Assert.assertEquals(\"heap (young)\", (20 * 1024), youngEvent.getTotal());\n GCEvent partialEvent = ((GCEvent) (model.get(7)));\n Assert.assertEquals(\"gc pause (partial)\", 0.02648319, partialEvent.getPause(), 1.0E-9);\n Assert.assertEquals(\"heap (partial)\", (128 * 1024), partialEvent.getTotal());\n Assert.assertEquals(\"number of errors\", 0, handler.getCount());\n }" ]
[ "0.5878349", "0.5860578", "0.58537424", "0.5791205", "0.5657891", "0.5564603", "0.554674", "0.5535329", "0.5529471", "0.5522607", "0.548043", "0.54785395", "0.54558045", "0.544727", "0.54282093", "0.54247314", "0.53843737", "0.53555197", "0.53503454", "0.53438973", "0.53374934", "0.5335894", "0.53338635", "0.5330139", "0.5318845", "0.5309049", "0.5292366", "0.5291092", "0.52870613", "0.5266883", "0.5262453", "0.52398294", "0.5239086", "0.5228823", "0.52256227", "0.5212686", "0.5209277", "0.52035564", "0.5203053", "0.51962644", "0.51920277", "0.51803404", "0.5176896", "0.5175925", "0.51744235", "0.5170689", "0.5170484", "0.51678765", "0.51582783", "0.51575905", "0.51557654", "0.51480854", "0.51480854", "0.51447594", "0.51422143", "0.5131454", "0.51204777", "0.51119065", "0.5106911", "0.5106878", "0.5104266", "0.5089284", "0.5083239", "0.50824183", "0.50800383", "0.5074914", "0.50719845", "0.506316", "0.5058443", "0.5053819", "0.50534034", "0.5047756", "0.5042916", "0.50346535", "0.502981", "0.50287384", "0.5015839", "0.501071", "0.49947944", "0.49936503", "0.4991139", "0.49874112", "0.4984567", "0.4974712", "0.49729574", "0.49664232", "0.49640667", "0.4962862", "0.49604243", "0.49602243", "0.49574777", "0.49551612", "0.49526265", "0.495032", "0.49471968", "0.49465474", "0.49444884", "0.49427044", "0.494196", "0.49333718" ]
0.71209943
0
Initializes all (NLS) fields of the given class
public static final void initialize(Class<?> clazz) { Field[] fields = clazz.getDeclaredFields(); Map<String, Field> nlsFields = new Hashtable<String, Field>(); // Detect NLS fields (public String fields) for (Field field : fields) { if (isNLSField(field)) { nlsFields.put(field.getName(), field); } } // get a list of potential property files accoring to the current locale // for this class (MyClass_en_EN.properties, MyClass_en.properties, MyClass.properties) String baseName = clazz.getName(); String[] variants = buildVariants(baseName); // Create holder for the messages. The put()-method of MessageProperties // will set a new property not only to the properties instance but // also to the appropriate field on "clazz" Properties messages = new Properties(); // Load messages from properties files and set them (via MessageProperties) // to the appropriate fields on clazz loadProperties(messages, variants); applyProperties(messages, clazz, nlsFields); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void initializeFields() {\n\n\t}", "private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }", "private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerPerson = 0.0;\n\n }", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "@EnsuresNonNull({\"field2\", \"field3\"})\n private void init_other_fields(@UnderInitialization(MyClass.class) MyClass this) {\n field2 = new Object();\n field3 = new Object();\n }", "private TigerData() {\n initFields();\n }", "private void initFields(){\n labels.put(\"patientID\", new JLabel(\"Patient ID:\"));\n labels.put(\"newOwed\", new JLabel(\"New Owed:\"));\n \n fields.put(\"patientID\", new JTextField());\n fields.put(\"newOwed\", new JTextField());\n }", "protected void initialize() {\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tpe.setPage(this);\n\t\t\t\tpe.setPropertyChangeListener(this);\n\t\t\t\tpe.setPreferenceStore(getPreferenceStore());\n\t\t\t\tpe.load();\n\t\t\t}\n\t\t}\n\t}", "public static void initializeClassAttributes() {\n\t\tAboraSupport.findAboraClass(IntegerVarArray.class).setAttributes( new Set().add(\"CONCRETE\").add(\"PSEUDOCOPY\"));\n\t}", "private void init(){\n this.firstNameTF.setText(user.getFirstName());\n this.nameTF.setText(user.getName());\n this.phoneTF.setText(user.getPhone());\n\n this.mailLabel.setText(user.getMail());\n this.roleLabel.setText(user.getFirstName());\n }", "public void initializeClass();", "protected void initialize() {\n \tP.println(Tt.extractClassName(this) + \" initializing\");\n }", "protected void init()\n {\n m_fModified = false;\n m_fLoaded = false;\n m_abClazz = null;\n m_clzName = null;\n m_clzSuper = null;\n m_pool = new ConstantPool(this);\n m_flags = new AccessFlags();\n m_tblInterface = new StringTable();\n m_tblField = new StringTable();\n m_tblMethod = new StringTable();\n m_tblAttribute = new StringTable();\n\n CONTAINED_TABLE[0] = m_tblField;\n CONTAINED_TABLE[1] = m_tblMethod;\n CONTAINED_TABLE[2] = m_tblAttribute;\n }", "protected void initialize() {\n\t\tthis.position = Point3D.ZERO;\n\t\t// reset subclasses properties if any\n\t\treset();\n\t}", "ClassAcft initClassAcft(ClassAcft iClassAcft)\n {\n iClassAcft.updateElementValue(\"ClassAcft\");\n return iClassAcft;\n }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }", "private void initInstanceVars() {\n\t\tglobalSymTab = new Hashtable<String,ClassDecl>();\n\t\tcurrentClass = null;\n\t}", "protected static void classInitializers() throws Exception {\r\n\t\tfor (int i=0; i<classes.size(); i++) {\r\n\t\t\tClass<?> c = classes.get(i);\r\n\t\t\tMethod clreinit = c.getDeclaredMethod(\"clreinit\", zeroFormalParams);\r\n\t\t\tclreinit.invoke(null, new Object[0]);\t//static meth, zero params\r\n\t\t}\t\t\t\r\n\t}", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "protected void initVars() {}", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "public void initialise() {\n\t\tm_country_id = 0;\n\t\tm_country_name = \"\";\n\t\tm_error_string = \"\";\n\t}", "protected void initialize() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" initializing\");\r\n\t\t }", "private void init() {\n setMinutes(new int[] {});\n setHours(new int[] {});\n setDaysOfMonth(new int[] {});\n setMonths(new int[] {});\n setDaysOfWeek(new int[] {});\n }", "public void init (){\n for (int i = 0; i < tvalores.length; i++) {\n tvalores[i] = Almacen1.LIBRE;\n }\n valoresAlmacenados = 0;\n }", "protected void init ()\n {\n holderClass = entry.name () + \"Holder\";\n helperClass = Util.helperName (entry, true); // <d61056>\n if (entry instanceof ValueBoxEntry)\n {\n ValueBoxEntry v = (ValueBoxEntry) entry;\n TypedefEntry member = ((InterfaceState) v.state ().elementAt (0)).entry;\n SymtabEntry mType = member.type ();\n holderType = Util.javaName (mType);\n }\n else\n holderType = Util.javaName (entry);\n }", "private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}", "public void initialize() {\n\t\tanzPakete = Integer.parseInt(textFieldAnzPakete.getText());\r\n\r\n\t\t// Tabelle erzeugen\r\n\t\tsetupTabelle();\r\n\t}", "private void init() {\n cloudAmount = null;\n cloudGenus = null;\n cloudAltitude = null;\n cloudDescription = null;\n }", "protected void reinitializeFields()\n\t\tthrows NbaBaseException{\n\t \tsetStatusProvider(new NbaProcessStatusProvider(user, getWork()));\n\t}", "private void fieldsInitialization() {\n this.emailEditText = findViewById(R.id.login_email_edit_text);\n this.passwordEditText = findViewById(R.id.login_password_edit_text);\n this.loginButton = findViewById(R.id.login_button_login);\n\n this.emailEditText.setOnFocusChangeListener(this.emailFocusChangingListener);\n this.emailEditText.setOnEditorActionListener(this.emailTextChangingListener);\n this.passwordEditText.setOnFocusChangeListener(this.passwordFocusChangingListener);\n this.passwordEditText.setOnEditorActionListener(this.passwordTextChangingListener);\n this.loginButton.setOnClickListener(this.loginButtonClickListener);\n }", "protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }", "void initClasses() {\n\t\tif (programUnit == null) return;\n\n\t\t// Add all classes\n\t\tList<BdsNode> cdecls = BdsNodeWalker.findNodes(programUnit, ClassDeclaration.class, true, true);\n\t\tfor (BdsNode n : cdecls) {\n\t\t\tClassDeclaration cd = (ClassDeclaration) n;\n\t\t\tbdsvm.addType(cd.getType());\n\t\t}\n\t}", "ClassCcft initClassCcft(ClassCcft iClassCcft)\n {\n iClassCcft.updateElementValue(\"ClassCcft\");\n return iClassCcft;\n }", "private FieldInfo() {\r\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void initClassAttributes(){ \r\n\t\tanyMissingValue = new boolean[3];\r\n\t\tanyMissingValue[0] = false; \r\n\t\tanyMissingValue[1] = false;\r\n\t\tanyMissingValue[2] = false;\r\n\t\tnumInputAttributes = Attributes.getInputNumAttributes();\r\n\t\tnumOutputAttributes = Attributes.getOutputNumAttributes();\r\n\t\tnumUndefinedAttributes = Attributes.getNumAttributes() - (numInputAttributes+numOutputAttributes);\r\n\t\tintNominalValues = new int[3][];\r\n\t\tnominalValues = new String[3][];\r\n\t\trealValues = new double[3][];\r\n\t\tmissingValues = new boolean[3][];\r\n\t\tnominalValues[0] = new String[numInputAttributes];\r\n\t\tnominalValues[1] = new String[numOutputAttributes];\r\n\t\tnominalValues[2] = new String[numUndefinedAttributes];\r\n\t\tintNominalValues[0] = new int[numInputAttributes];\r\n\t\tintNominalValues[1] = new int[numOutputAttributes];\r\n\t\tintNominalValues[2] = new int[numUndefinedAttributes];\r\n\t\trealValues[0] = new double[numInputAttributes];\r\n\t\trealValues[1] = new double[numOutputAttributes];\r\n\t\trealValues[2] = new double[numUndefinedAttributes];\r\n\t\tmissingValues[0] = new boolean[numInputAttributes];\r\n\t\tmissingValues[1] = new boolean[numOutputAttributes];\r\n\t\tmissingValues[2] = new boolean[numUndefinedAttributes];\r\n\r\n\t\tfor(int i=0;i<numInputAttributes;i++) missingValues[0][i]=false; \r\n\t\tfor(int i=0;i<numOutputAttributes;i++) missingValues[1][i]=false; \r\n\t\tfor(int i=0;i<numUndefinedAttributes; i++) missingValues[2][i]=false;\r\n\r\n\t}", "private void init() {\r\n\t\t// Convert the string Values from file to numerical values\r\n\t\tif ((field.getDecimalMinimum() != null)\r\n\t\t\t\t&& (field.getDecimalMaximum() != null)) {\r\n\t\t\ttry {\r\n\t\t\t\thasRange = true;\r\n\t\t\t\tminimum = Long.valueOf(Long.parseLong(field.getDecimalMinimum()));\r\n\t\t\t\tmaximum = Long.valueOf(Long.parseLong(field.getDecimalMaximum()));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\thasRange = false;\r\n\t\t\t\tminimum = Long.valueOf(Integer.MIN_VALUE);\r\n\t\t\t\tmaximum = Long.valueOf(Integer.MAX_VALUE);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\thasRange = false;\r\n\t\t\tminimum = Long.valueOf(Integer.MIN_VALUE);\r\n\t\t\tmaximum = Long.valueOf(Integer.MAX_VALUE);\r\n\t\t}\r\n\r\n\t\tisNumeric = field.getCharacterSet().matches(\"^[0-9\\\\-*\\\\[\\\\]]*$\");\r\n\t\tintBitLength = field.getBitLength() == null ? 0 : field.getBitLength()\r\n\t\t\t\t.intValue();\r\n\t\tString charSet = \"^\"\r\n\t\t\t\t+ (field.getCharacterSet().endsWith(\"*\") ? field\r\n\t\t\t\t\t\t.getCharacterSet() : field.getCharacterSet() + \"*\")\r\n\t\t\t\t+ \"$\";\r\n\t\tcharSetRegex = Pattern.compile(charSet);\r\n\t\tintLength = field.getLength() == null ? Integer.MAX_VALUE : field\r\n\t\t\t\t.getLength().intValue();\r\n\t}", "protected void init(){\n }", "public FieldsImpl() {\r\n logger.entering(CLASS_NAME, \"FieldsImpl()\");\r\n }", "public void initialize() {\n setThisFacility(null);\n loadData();\n initCols();\n\n }", "protected void init() {\n }", "private void initialize() {\n\t\tfor(String key: count_e_f.keySet()){\n\t\t\tcount_e_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\tfor(Integer key: total_f.keySet()){\n\t\t\ttotal_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\t//This code is not efficient.\n//\t\tfor(Entry<String, Integer> german : mainIBM.gerWordsIdx.entrySet()){\n//\t\t\tfor(Entry<String, Integer> english : mainIBM.engWordsIdx.entrySet()){\n//\t\t\t\tcount_e_f.put(english.getValue() + \"-\" + german.getValue(), 0.0);\n//\t\t\t}\n//\t\t\ttotal_f.put(german.getValue(), 0.0);\n//\t\t}\t\n\n\t}", "public void init() {\n\t\t}", "public static void resetClasses() {\r\n\t\ttry {\r\n\t\t\tzeroStaticFields();\r\n\t\t\t\r\n\t\t\t//FIXME TODO: de-tangle quick-and-dirty approach from above register-reset-to-zero \r\n\t\t\t// which is needed for each load-time approach.\r\n\t\t\tclassInitializers();\r\n\t\t}\r\n\t\tcatch (Exception e) {\t//should not happen\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void init() {\n }", "ClassBcft initClassBcft(ClassBcft iClassBcft)\n {\n iClassBcft.updateElementValue(\"ClassBcft\");\n return iClassBcft;\n }", "public void init() {\r\n\t\t// to override\r\n\t}", "private void initObjects() {\n inputValidation = new InputValidation(activity);\n databaseHelper = new DatabaseHelper(activity);\n user = new User();\n }", "protected void init() {\n\t}", "protected void init() {\n\t}", "public void init(String tableName, String[] fields) {\n\t\tthis.tableName = tableName;\n\t\tthis.fields = fields;\n\t}", "ClassDcft initClassDcft(ClassDcft iClassDcft)\n {\n iClassDcft.updateElementValue(\"ClassDcft\");\n return iClassDcft;\n }", "public void initializeProperties() {\r\n DatabaseField dbField = getWriteLockField();\r\n dbField = descriptor.buildField(dbField);\r\n setWriteLockField(dbField);\r\n if (isStoredInCache() && (dbField.getType() == null)) {\r\n // Set the default type, only if un-mapped.\r\n dbField.setType(getDefaultLockingFieldType());\r\n }\r\n Enumeration enumtr = this.getUnmappedFields().elements();\r\n while (enumtr.hasMoreElements()) {\r\n DatabaseField lockField;\r\n lockField = (DatabaseField)enumtr.nextElement();\r\n descriptor.getFields().addElement(lockField);\r\n }\r\n }", "@Override\n\tpublic void init() {\n\t\tsuper.init();\n\t\tlog.info(getClass().getSimpleName()+\" initialized\");\n\t}", "private void readFields() throws IOException, ClassFormatException {\n final int fields_count = dataInputStream.readUnsignedShort();\n fields = new Field[fields_count];\n for (int i = 0; i < fields_count; i++) {\n fields[i] = new Field(dataInputStream, constant_pool);\n }\n }", "protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\t\n\t}", "protected void init() {\n init(null);\n }", "private void init() {\n\n\t}", "private void _init() {\n }", "private void fillConstructorFields() {\n constructorId.setText(\"\"+ constructorMutator.getConstructor().getConstructorId());\n constructorUrl.setText(\"\"+ constructorMutator.getConstructor().getConstructorUrl());\n constructorName.setText(\"\"+ constructorMutator.getConstructor().getConstructorName());\n constructorNationality.setText(\"\"+ constructorMutator.getConstructor().getNationality());\n teamLogo.setImage(constructorMutator.getConstructor().getTeamLogo().getImage());\n // Display Drivers that were from the JSON File\n constructorMutator.getConstructor().setBuffer(new StringBuffer());\n // Java 8 Streaming\n constructorMutator.getConstructorsList().stream().forEach(constructorList -> constructorMutator.getConstructor().toString(constructorList));\n }", "@Override public void init()\n\t\t{\n\t\t}", "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "void init() {\n txtClassname.getDocument().removeDocumentListener(syncTableDocL);\n txtTablename.getDocument().removeDocumentListener(syncClassDocL);\n txtDescription.getDocument().removeDocumentListener(syncClassDocL);\n txtPrimaryKeyfield.getDocument().removeDocumentListener(syncClassDocL);\n cidsClass = model.getCidsClass();\n initCboAttrPolicy();\n final DomainserverProject project = model.getProject();\n classTableModel = new ClassTableModel(project, cidsClass);\n tblAttr.setModel(classTableModel);\n final JXTable attrTable = (JXTable)tblAttr;\n attrTable.setSortOrder(0, SortOrder.ASCENDING);\n attrTable.setSortable(true);\n for (int i = 1; i < attrTable.getColumnCount(); ++i) {\n attrTable.getColumnExt(i).setSortable(false);\n }\n attrTable.getColumnExt(0).setVisible(false);\n retrieveAndSortTypes();\n final List<Icon> allIcons = new ArrayList<Icon>(project.getCidsDataObjectBackend().getAllEntities(Icon.class));\n Collections.sort(allIcons, new Comparators.Icons());\n cboClassIcons.setModel(new DefaultComboBoxModel(allIcons.toArray()));\n cboObjectIcons.setModel(new DefaultComboBoxModel(allIcons.toArray()));\n cboClassIcons.setRenderer(new Renderers.IconCellRenderer(project));\n cboObjectIcons.setRenderer(new Renderers.IconCellRenderer(project));\n if (cidsClass == null) {\n txtClassname.setText(\"\"); // NOI18N\n txtTablename.setText(\"\"); // NOI18N\n chkSync.setSelected(true);\n cboClassIcons.setSelectedIndex(0);\n cboObjectIcons.setSelectedIndex(0);\n txtPrimaryKeyfield.setText(\"ID\"); // NOI18N\n chkType.setEnabled(false);\n chkType.setSelected(true);\n chkIndexed.setSelected(false);\n txtDescription.setText(\"\"); // NOI18N\n } else {\n cboClassIcons.setSelectedItem(cidsClass.getClassIcon());\n cboObjectIcons.setSelectedItem(cidsClass.getObjectIcon());\n txtClassname.setText(cidsClass.getName());\n txtTablename.setText(cidsClass.getTableName());\n chkSync.setSelected(cidsClass.getName().equalsIgnoreCase(cidsClass.getTableName()));\n txtPrimaryKeyfield.setText(cidsClass.getPrimaryKeyField());\n cboObjectIcons.getSelectedItem();\n cboObjectIcons.getModel();\n chkType.setEnabled(false);\n chkType.setSelected(true);\n chkIndexed.setSelected((cidsClass.isIndexed() != null) && cidsClass.isIndexed());\n final String desc = cidsClass.getDescription();\n txtDescription.setText((desc == null) ? \"\" : desc); // NOI18N\n }\n this.cidsClass = classTableModel.getCidsClass();\n txtClassname.getDocument().addDocumentListener(syncTableDocL);\n txtTablename.getDocument().addDocumentListener(syncClassDocL);\n txtDescription.getDocument().addDocumentListener(syncClassDocL);\n txtPrimaryKeyfield.getDocument().addDocumentListener(syncClassDocL);\n syncTablename();\n classTableModel.setAttrSync(jtbAttrSync.isSelected());\n model.fireChangeEvent();\n tblAttr.getSelectionModel().clearSelection();\n }", "public void init() {\r\n\r\n\t}", "@Override\n public final void init() {\n super.init();\n UIUtils.clearAllFields(upperPane);\n changeStatus(Status.NONE);\n intCombo();\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "protected void initialize() {\n \t\n }", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "private void initValues() {\n \n }", "public static void initialize(){\r\n\t\tinitialize(new CurrentClassGetter().getClassName());\r\n\t}", "private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}", "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void initialize(AbstractSession session) throws DescriptorException {\n super.initialize(session);\n if (getField() == null) {\n throw DescriptorException.fieldNameNotSetInMapping(this);\n }\n setField(getDescriptor().buildField(getField()));\n setFields(collectFields());\n if (hasConverter()) {\n getConverter().initialize(this, session);\n }\n }", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n \n }", "public void init() {\n\t\n\t}", "private void initializeAll() {\n initialize(rows);\n initialize(columns);\n initialize(boxes);\n }", "public void init()\n\t{\n\t\tsuper.init();\n\t\tM_log.info(\"init()\");\n\t}", "public void init()\n\t{\n\t\tsuper.init();\n\t\tM_log.info(\"init()\");\n\t}", "static void initRuntimeConstructors(ITermFactory tf) {\n CFGNode.initializeConstructor(tf);\n ICFGNode.Kind.initializeConstructor(tf);\n Set.initializeConstructor(tf);\n Map.initializeConstructor(tf);\n EmptyMapOrSet.initializeConstructor(tf);\n Name.initializeConstructor(tf);\n FullSetLattice.ISetImplementation.initializeConstructor(tf);\n TermIndex.initializeConstructor(tf);\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public void init(){\r\n\t\t\r\n\t}", "public void init() {\n\t\t\n\t}", "public void init() {\n C21671bd.m72528a(this);\n C18895c.m61670a((C19222b) new C22204a());\n C18895c.m61669a(C21764o.f58278a);\n }", "private void initClass() {\r\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\r\n secureMediaFileDb = MediaVaultLocalDb.getMediaVaultDatabaseInstance(this);\r\n mediaFileDuration = MediaFileDuration.getDatabaseInstance(this);\r\n }" ]
[ "0.66362727", "0.6463851", "0.6460104", "0.6379969", "0.6335678", "0.62231", "0.6078763", "0.594532", "0.5873324", "0.5843223", "0.58303916", "0.5825918", "0.58238554", "0.5785395", "0.57706654", "0.5769714", "0.5750104", "0.5736144", "0.57062316", "0.5705719", "0.570373", "0.5694254", "0.5685512", "0.5682033", "0.5653459", "0.56365645", "0.5624365", "0.5600407", "0.55976635", "0.5591647", "0.55618274", "0.5549737", "0.5548695", "0.5535407", "0.5515282", "0.55152166", "0.5509583", "0.5499246", "0.5499246", "0.5499246", "0.5499246", "0.54961795", "0.54921496", "0.5492102", "0.54848635", "0.54845476", "0.5482041", "0.5473091", "0.5463958", "0.54556274", "0.5441599", "0.54392403", "0.54333895", "0.5427898", "0.5427448", "0.5427448", "0.5427085", "0.5426963", "0.54246426", "0.5422783", "0.54219824", "0.541504", "0.54120374", "0.5410292", "0.5405529", "0.53968376", "0.53959996", "0.5393112", "0.5392522", "0.5390501", "0.5380147", "0.5379687", "0.5379687", "0.5379687", "0.5379687", "0.53792924", "0.537713", "0.53642726", "0.53622186", "0.5360804", "0.5356465", "0.5356136", "0.5351835", "0.5351835", "0.5351835", "0.5351802", "0.53486717", "0.53486717", "0.53486717", "0.5347491", "0.53328633", "0.5332688", "0.5332484", "0.5332484", "0.53191876", "0.5318719", "0.5315184", "0.53130585", "0.5312007", "0.5311991" ]
0.71532
0
Applies all values located within a properties file, so the fields will get translated values.
@SuppressWarnings("unchecked") private static final void applyProperties(Properties messages, Class<?> clazz, Map<String, Field> fields) { for (Map.Entry<String, Field> entry : fields.entrySet()) { String key = entry.getKey(); Field field = entry.getValue(); String value = null; if (messages.containsKey(key)) { value = messages.getProperty(key); } else { // no value found within the properties, so generate a default message in order // to prevent npe's. value = getDefaultMessage(field); } Object fieldValue = getFieldValue(field, value); try { field.set(null, fieldValue); } catch (Exception ex) { /** * @todo [13-Dec-2009:KASI] This should cause a RuntimeException as the code cannot rely on an initialised field * for this case. */ System.err.printf(MSG_COULDNOTSETFIELD, field.getName(), ex.getMessage()); } messages.remove(key); } Enumeration<String> unset = (Enumeration<String>) messages.propertyNames(); while (unset.hasMoreElements()) { /** * @todo [13-Dec-2009:KASI] This should cause a RuntimeException as this is the result of misconfiguration (and * it's easily fixable, too). */ System.out.printf(MSG_UNKNOWNPROPERTY, unset.nextElement(), clazz.getName()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setupPropertiesPostDeserialization() {\n initLayout();\n List<NamedThing> properties = getProperties();\n for (NamedThing prop : properties) {\n if (prop instanceof Properties) {\n ((Properties) prop).setupPropertiesPostDeserialization();\n } else {\n prop.setI18nMessageFormater(getI18nMessageFormater());\n }\n }\n\n }", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "protected void fillMapFromProperties(Properties props)\n {\n Enumeration<?> en = props.propertyNames();\n\n while (en.hasMoreElements())\n {\n String propName = (String) en.nextElement();\n\n // ignore map, pattern_map; they are handled separately\n if (!propName.startsWith(\"map\") &&\n !propName.startsWith(\"pattern_map\"))\n {\n String propValue = props.getProperty(propName);\n String fieldDef[] = new String[4];\n fieldDef[0] = propName;\n fieldDef[3] = null;\n if (propValue.startsWith(\"\\\"\"))\n {\n // value is a constant if it starts with a quote\n fieldDef[1] = \"constant\";\n fieldDef[2] = propValue.trim().replaceAll(\"\\\"\", \"\");\n }\n else\n // not a constant\n {\n // split it into two pieces at first comma or space\n String values[] = propValue.split(\"[, ]+\", 2);\n if (values[0].startsWith(\"custom\") || values[0].equals(\"customDeleteRecordIfFieldEmpty\") ||\n values[0].startsWith(\"script\"))\n {\n fieldDef[1] = values[0];\n\n // parse sections of custom value assignment line in\n // _index.properties file\n String lastValues[];\n // get rid of empty parens\n if (values[1].indexOf(\"()\") != -1)\n values[1] = values[1].replace(\"()\", \"\");\n\n // index of first open paren after custom method name\n int parenIx = values[1].indexOf('(');\n\n // index of first unescaped comma after method name\n int commaIx = Utils.getIxUnescapedComma(values[1]);\n\n if (parenIx != -1 && commaIx != -1 && parenIx < commaIx) {\n // remainder should be split after close paren\n // followed by comma (optional spaces in between)\n lastValues = values[1].trim().split(\"\\\\) *,\", 2);\n\n // Reattach the closing parenthesis:\n if (lastValues.length == 2) lastValues[0] += \")\";\n }\n else\n // no parens - split comma preceded by optional spaces\n lastValues = values[1].trim().split(\" *,\", 2);\n\n fieldDef[2] = lastValues[0].trim();\n\n fieldDef[3] = lastValues.length > 1 ? lastValues[1].trim() : null;\n // is this a translation map?\n if (fieldDef[3] != null && fieldDef[3].contains(\"map\"))\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n } // end custom\n else if (values[0].equals(\"xml\") ||\n values[0].equals(\"raw\") ||\n values[0].equals(\"date\") ||\n values[0].equals(\"json\") ||\n values[0].equals(\"json2\") ||\n values[0].equals(\"index_date\") ||\n values[0].equals(\"era\"))\n {\n fieldDef[1] = \"std\";\n fieldDef[2] = values[0];\n fieldDef[3] = values.length > 1 ? values[1].trim() : null;\n // NOTE: assuming no translation map here\n if (fieldDef[2].equals(\"era\") && fieldDef[3] != null)\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n }\n else if (values[0].equalsIgnoreCase(\"FullRecordAsXML\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsMARC\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsJson\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsJson2\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsText\") ||\n values[0].equalsIgnoreCase(\"DateOfPublication\") ||\n values[0].equalsIgnoreCase(\"DateRecordIndexed\"))\n {\n fieldDef[1] = \"std\";\n fieldDef[2] = values[0];\n fieldDef[3] = values.length > 1 ? values[1].trim() : null;\n // NOTE: assuming no translation map here\n }\n else if (values.length == 1)\n {\n fieldDef[1] = \"all\";\n fieldDef[2] = values[0];\n fieldDef[3] = null;\n }\n else\n // other cases of field definitions\n {\n String values2[] = values[1].trim().split(\"[ ]*,[ ]*\", 2);\n fieldDef[1] = \"all\";\n if (values2[0].equals(\"first\") ||\n (values2.length > 1 && values2[1].equals(\"first\")))\n fieldDef[1] = \"first\";\n\n if (values2[0].startsWith(\"join\"))\n fieldDef[1] = values2[0];\n\n if ((values2.length > 1 && values2[1].startsWith(\"join\")))\n fieldDef[1] = values2[1];\n\n if (values2[0].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\") ||\n (values2.length > 1 && values2[1].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\")))\n fieldDef[1] = \"DeleteRecordIfFieldEmpty\";\n\n fieldDef[2] = values[0];\n fieldDef[3] = null;\n\n // might we have a translation map?\n if (!values2[0].equals(\"all\") &&\n !values2[0].equals(\"first\") &&\n !values2[0].startsWith(\"join\") &&\n !values2[0].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\"))\n {\n fieldDef[3] = values2[0].trim();\n if (fieldDef[3] != null)\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n }\n } // other cases of field definitions\n\n } // not a constant\n\n fieldMap.put(propName, fieldDef);\n\n } // if not map or pattern_map\n\n } // while enumerating through property names\n\n // verify that fieldMap is valid\n verifyCustomMethodsAndTransMaps();\n }", "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 }", "@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }", "private void loadPropertyFiles() {\n if ( _sax_panel != null ) {\n _property_files = ( ( SAXTreeModel ) _sax_panel.getModel() ).getPropertyFiles();\n if ( _property_files == null )\n return ;\n HashMap filelist = new HashMap();\n ArrayList resolved = new ArrayList();\n Iterator it = _property_files.keySet().iterator();\n while ( it.hasNext() ) {\n Object o = it.next();\n if ( o == null )\n continue;\n File f = null;\n if ( o instanceof File ) {\n f = ( File ) o;\n Long lastModified = ( Long ) _property_files.get( f );\n filelist.put( f, lastModified );\n }\n else if ( _project != null ) {\n String value = o.toString();\n String filename = value;\n if ( value.startsWith( \"${\" ) && value.endsWith( \"}\" ) ) {\n filename = filename.substring( 2, filename.length() - 1 );\n }\n filename = _project.getProperty( filename );\n if ( filename != null )\n f = new File( filename );\n if ( f != null && !f.exists() ) {\n f = new File( _project.getBaseDir(), filename );\n }\n if ( f != null && f.exists() ) {\n filelist.put( f, new Long( f.lastModified() ) );\n resolved.add( value );\n }\n // see issue #21, Ant standard is to quietly ignore files not found\n //else\n // _logger.warning( \"Unable to find property file for \" + value );\n }\n }\n it = resolved.iterator();\n while ( it.hasNext() ) {\n filelist.remove( it.next() );\n }\n _property_files = filelist;\n }\n }", "public final void loadPropertiesFromFile(final String fileName)\n {\n\n Properties tempProp = PropertyLoader.loadProperties(fileName);\n fProp.putAll(tempProp);\n\n }", "public synchronized void update() {\n // set lastCheck first to reduce risk of recursive calls\n this.lastCheck = System.currentTimeMillis();\n if (getChecksum() != this.lastChecksum) {\n // First collect properties into a temporary collection,\n // in a second step copy over new properties,\n // and in the final step delete properties which have gone.\n ResourceProperties temp = new ResourceProperties();\n temp.setIgnoreCase(this.ignoreCase);\n\n // first of all, properties are load from default properties\n if (this.defaultProperties != null) {\n this.defaultProperties.update();\n temp.putAll(this.defaultProperties);\n }\n\n // next we try to load properties from the application's\n // repositories, if we belong to any application\n if (this.resourceName != null) {\n Iterator iterator = this.app.getRepositories().iterator();\n while (iterator.hasNext()) {\n try {\n RepositoryInterface repository = (RepositoryInterface) iterator.next();\n ResourceInterface res = repository.getResource(this.resourceName);\n if (res != null && res.exists()) {\n\t\t\t\t\t\t\tInputStreamReader reader = new InputStreamReader(\n\t\t\t\t\t\t\t\t\tres.getInputStream());\n\t\t\t\t\t\t\ttemp.load(reader);\n\t\t\t\t\t\t\treader.close();\n }\n } catch (IOException iox) {\n iox.printStackTrace();\n }\n }\n }\n\n // if these are subproperties, reload them from the parent properties\n if (this.parentProperties != null && this.prefix != null) {\n this.parentProperties.update();\n Iterator it = this.parentProperties.entrySet().iterator();\n int prefixLength = this.prefix.length();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry) it.next();\n String key = entry.getKey().toString();\n if (key.regionMatches(this.ignoreCase, 0, this.prefix, 0, prefixLength)) {\n temp.put(key.substring(prefixLength), entry.getValue());\n }\n }\n\n }\n\n // at last we try to load properties from the resource list\n if (this.resources != null) {\n Iterator iterator = this.resources.iterator();\n while (iterator.hasNext()) {\n try {\n ResourceInterface res = (ResourceInterface) iterator.next();\n if (res.exists()) {\n\t\t\t\t\t\t\tInputStreamReader reader = new InputStreamReader(\n\t\t\t\t\t\t\t\t\tres.getInputStream());\n\t\t\t\t\t\t\ttemp.load(reader);\n\t\t\t\t\t\t\treader.close();\n }\n } catch (IOException iox) {\n iox.printStackTrace();\n }\n }\n }\n\n // Copy over new properties ...\n putAll(temp);\n // ... and remove properties which have been removed.\n Iterator it = super.keySet().iterator();\n while (it.hasNext()) {\n if (!temp.containsKey(it.next())) {\n it.remove();\n }\n }\n // copy new up-to-date keyMap to ourself\n this.keyMap = temp.keyMap;\n\n this.lastChecksum = getChecksum();\n this.lastCheck = this.lastModified = System.currentTimeMillis();\n }\n }", "private void processPropertyPlaceHolders() {\n\t\tMap<String, PropertyResourceConfigurer> prcs = applicationContext.getBeansOfType(PropertyResourceConfigurer.class);\n\n\t\tif (!prcs.isEmpty() && applicationContext instanceof GenericApplicationContext) {\n\t\t\tBeanDefinition mapperScannerBean = ((GenericApplicationContext) applicationContext)\n\t\t\t\t\t.getBeanFactory().getBeanDefinition(beanName);\n\n\t\t\t// PropertyResourceConfigurer does not expose any methods to explicitly perform\n\t\t\t// property placeholder substitution. Instead, create a BeanFactory that just\n\t\t\t// contains this mapper scanner and post process the factory.\n\t\t\tDefaultListableBeanFactory factory = new DefaultListableBeanFactory();\n\t\t\tfactory.registerBeanDefinition(beanName, mapperScannerBean);\n\n\t\t\tfor (PropertyResourceConfigurer prc : prcs.values()) {\n\t\t\t\tprc.postProcessBeanFactory(factory);\n\t\t\t}\n\n\t\t\tPropertyValues values = mapperScannerBean.getPropertyValues();\n\n\t\t\tthis.basePackage = updatePropertyValue(\"basePackage\", values);\n\t\t\tthis.sqlSessionFactoryBeanName = updatePropertyValue(\"sqlSessionFactoryBeanName\", values);\n\t\t\tthis.sqlSessionTemplateBeanName = updatePropertyValue(\"sqlSessionTemplateBeanName\", values);\n\t\t}\n\t}", "void setPropertiesFile(File file);", "private void processProperties(Map<String, String> properties,\n Configuration auConfig, CIProperties headers) {\n log.debug2(\"properties = {}\", properties);\n log.debug2(\"auConfig = {}\", auConfig);\n log.debug2(\"headers = {}\", headers);\n\n if (properties != null && properties.size() > 0) {\n for (String key : properties.keySet()) {\n\tlog.trace(\"key = {}\", key);\n\n\tString value = properties.get(key);\n\tlog.trace(\"value = {}\", value);\n\n\tif (auConfig != null && auConfigKeys.contains(key)) {\n\t auConfig.put(key, value);\n\t log.trace(\"property '{}={}' stored in auConfig\", key, value);\n\t} else {\n\t headers.put(key, value);\n\t log.trace(\"property '{}={}' stored in headers\", key, value);\n\t}\n }\n }\n }", "private void loadTranslationMapValues(String transMapName, String mapName, String mapKeyPrefix)\n {\n Properties props = null;\n props = PropertiesUtils.loadProperties(propertyFilePaths, transMapName);\n logger.debug(\"Loading Custom Map: \" + transMapName);\n loadTranslationMapValues(props, mapName, mapKeyPrefix);\n }", "protected void fromProperties(Properties properties) {\r\n value = reader.read(properties, key, value);\r\n }", "private static final void loadProperties(Properties messages, String[] variants) {\r\n for (String variant : variants) {\r\n InputStream is = null;\r\n try {\r\n is = Thread.currentThread().getContextClassLoader().getResourceAsStream(variant);\r\n if (is != null) {\r\n messages.load(is);\r\n }\r\n } catch (IOException ex) {\r\n /**\r\n * @todo [13-Dec-2009:KASI] This should cause a RuntimeException as there's something wrong in the application\r\n * setup.\r\n */\r\n System.err.printf(MSG_COULDNOTREADPROPERTIES, variant, ex.getMessage());\r\n } finally {\r\n Utilities.close(is);\r\n }\r\n }\r\n }", "private void overrideProperties() throws BuildException {\n // remove duplicate properties - last property wins\n // Needed for backward compatibility\n Set set = new HashSet();\n for (int i = properties.size() - 1; i >= 0; --i) {\n Property p = (Property) properties.get(i);\n if (p.getName() != null && !p.getName().equals(\"\")) {\n if (set.contains(p.getName())) {\n properties.remove(i);\n } else {\n set.add(p.getName());\n }\n }\n }\n Enumeration e = properties.elements();\n while (e.hasMoreElements()) {\n Property p = (Property) e.nextElement();\n p.setProject(newProject);\n p.execute();\n }\n getProject().copyInheritedProperties(newProject);\n }", "public void load(Map<String, String> props) {\n if (props != null && props.size() > 0) {\n for (String key : props.keySet()) {\n if (isSupported(key)) {\n String suffix = getSuffix(key);\n String value = props.get(key);\n loadProperty(suffix, value);\n }\n }\n }\n }", "protected void readProperties() throws RepositoryException {\n try {\n log.debug(\"Reading meta file: \" + this.metaFile);\n this.properties = new HashMap();\n BufferedReader reader = new BufferedReader(new FileReader(this.metaFile));\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n String name;\n String typeName;\n String value;\n try {\n name = line.substring(0, line.indexOf(\"<\")).trim();\n typeName = line.substring(line.indexOf(\"<\")+1, line.indexOf(\">\")).trim();\n value = line.substring(line.indexOf(\":\")+1).trim();\n } catch (StringIndexOutOfBoundsException e) {\n throw new RepositoryException(\"Error while parsing meta file: \" + this.metaFile \n + \" at line \" + line);\n }\n Property property = new DefaultProperty(name, PropertyType.getType(typeName), this);\n property.setValueFromString(value);\n this.properties.put(name, property);\n }\n reader.close();\n } catch (IOException e) {\n throw new RepositoryException(\"Error while reading meta file: \" + metaFile + \": \" \n + e.getMessage());\n }\n }", "public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n Map<String, String> properties = new HashMap<>();\n Properties props = new Properties();\n props.load(stream);\n for (String key : props.stringPropertyNames()) {\n properties.put(key, props.getProperty(key));\n }\n LOG.log(Level.FINEST, \"Loaded properties from \" + file);\n this.properties = properties;\n } catch (IOException e) {\n LOG.log(Level.FINEST, \"Cannot load properties from \" + file, e);\n }\n }", "PropertiesTask setProperties( File propertiesFile );", "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}", "private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "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}", "private void putAll(ResourceBundle inBundle) {\r\n for (Enumeration i = inBundle.getKeys(); i.hasMoreElements(); ) {\r\n String key = (String) i.nextElement();\r\n Object value = inBundle.getObject(key);\r\n properties.put(key, value);\r\n }\r\n }", "Properties modifyProperties(Properties properties);", "public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }", "public static void generateLocalizedFile() throws IOException {\n GenerateFile generateFile = new GenerateFile();\n Stream<String> fileStream1 = createStreamFromPath(\"src\"+File.separator+\"test.properties\");\n Stream<String> fileStream2 = createStreamFromPath(\"src\"+File.separator+\"test.txt\");\n Map<String, String> with_key_values = convertTomap(fileStream1, \"=\");\n Map<String, String> with_only_values = convertTomap(fileStream2, \"\\\\|\");\n if (!with_key_values.isEmpty() && with_key_values != null && !with_only_values.isEmpty() && with_only_values != null) {\n generateFile.createFileFromList(findAndAppendkeyWithValue(with_key_values, with_only_values),\"file.properties\");\n } else {\n logger.info(\"Either one of your files are not following the rules\");\n }\n }", "public static synchronized void refreshProperties(File file) {\n var prop = new Properties();\n FileInputStream input;\n try {\n input = new FileInputStream(file);\n prop.load(input);\n input.close();\n } catch (IOException e) {\n throw new PropertyReadException(e.getMessage(), e);\n }\n\n prop.forEach((key, value) -> checkSystemPropertyAndFillIfNecessary(valueOf(key),\n nonNull(value) ? valueOf(value) : EMPTY));\n arePropertiesRead = true;\n }", "public FlatProperty transform(Property property, List<String> standardLocaleList) {\n\t\tFlatProperty flatProperty = new FlatProperty();\n\t\tfor(PropertyField field : property.getFieldList()){\n\t\t\tif(field.getId().equals(TITLE_PROP_FIELD_ID)){\n\t\t\t\tflatProperty.setTitle(processByLocaleAlternates(field.getFieldValueList(), standardLocaleList));\n\t\t\t}\n\t\t\tif(field.getId().equals(BASIC_DESCRIPTION_PROP_FIELD_ID)){\n\t\t\t\tflatProperty.setBasicDescription(processByLocaleAlternates(field.getFieldValueList(), standardLocaleList));\n\t\t\t}\n\t\t\tif(field.getId().equals(LOC_DESCRIPTION_PROP_FIELD_ID)){\n\t\t\t\tflatProperty.setLocationDescription(processByLocaleAlternates(field.getFieldValueList(), standardLocaleList));\n\t\t\t}\n\t\t\tif(field.getId().equals(MARKET_PRICE_PROP_FIELD_ID)){\n\t\t\t\tflatProperty.setMarketPrice(processMarketPrice(field.getFieldValueList()));\n\t\t\t}\n\t\t\tif(field.getId().equals(IMAGE_PROP_FIELD_ID)){\n\t\t\t\tflatProperty.setUrlImage(processImage(field.getFieldValueList()));\n\t\t\t}\n\t\t\tif(field.getId().equals(ROOMS_PROP_FIELD_ID)){\n\t\t\t\tflatProperty.setRoomNumber(processRooms(field.getFieldValueList()));\n\t\t\t}\n\t\t\tif(field.getId().equals(BATHROOMS_PROP_FIELD_ID)){\n\t\t\t\tflatProperty.setBathNumber(processBathRooms(field.getFieldValueList()));\n\t\t\t}\n\t\t}\n\t\treturn flatProperty;\n\t}", "void mergeFileProperties() {\n JMeterProperty fileName = getProperty(FILE_NAME);\n JMeterProperty paramName = getProperty(FILE_FIELD);\n JMeterProperty mimeType = getProperty(MIMETYPE);\n HTTPFileArg oldStyleFile = new HTTPFileArg(fileName, paramName, mimeType);\n \n HTTPFileArgs fileArgs = getHTTPFileArgs();\n \n HTTPFileArgs allFileArgs = new HTTPFileArgs();\n if (oldStyleFile.isNotEmpty()) { // OK, we have an old-style file definition\n allFileArgs.addHTTPFileArg(oldStyleFile); // save it\n // Now deal with any additional file arguments\n if (fileArgs != null) {\n HTTPFileArg[] infiles = fileArgs.asArray();\n for (HTTPFileArg infile : infiles) {\n allFileArgs.addHTTPFileArg(infile);\n }\n }\n } else {\n if (fileArgs != null) { // for new test plans that don't have FILE/PARAM/MIME properties\n allFileArgs = fileArgs;\n }\n }\n // Updated the property lists\n setHTTPFileArgs(allFileArgs);\n removeProperty(FILE_FIELD);\n removeProperty(FILE_NAME);\n removeProperty(MIMETYPE);\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "protected void convertProperties(Properties props) {\n\t\tEnumeration propertyNames = props.propertyNames();\n\t\twhile (propertyNames.hasMoreElements()) {\n\t\t\tString propertyName = (String) propertyNames.nextElement();\n\t\t\tString propertyValue = props.getProperty(propertyName);\n\t\t\tString convertedValue = convertPropertyValue(propertyValue);\n\t\t\tif (!ObjectUtils.nullSafeEquals(propertyValue, convertedValue)) {\n\t\t\t\tprops.setProperty(propertyName, convertedValue);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void setProperties(String syntax) throws IOException {\n\t\tPropertiesReader s = new PropertiesReader();\n\t\tmyDictionary.setLanguage(s.getProperties(RESOURCE_PATH + syntax));\n\t}", "public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }", "private void parseProperties(Properties props) {\r\n\r\n\t\tfor (Object key : props.keySet()) {\r\n\t\t\tString keyStr = key.toString();\r\n\t\t\tString value = props.getProperty(keyStr);\r\n\t\t\tif (value != null) {\r\n\t\t\t\t// try to get real type of property value\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (value.contains(\".\")) {\r\n\t\t\t\t\t\tthis.settings.put(keyStr, Double.parseDouble(value));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.settings.put(keyStr, Integer.parseInt(value));\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tthis.settings.put(keyStr, value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void restoreProperties() {\n restoreModeAndItemValue();\n restoreStringValue(Variable.DEST_PATH);\n restoreBooleanValue(Variable.MAXTRACKS_ENABLED);\n restoreIntValue(Variable.MAXTRACKS);\n restoreBooleanValue(Variable.MAXSIZE_ENABLED);\n restoreIntValue(Variable.MAXSIZE);\n restoreBooleanValue(Variable.MAXLENGTH_ENABLED);\n restoreIntValue(Variable.MAXLENGTH);\n restoreBooleanValue(Variable.ONE_MEDIA_ENABLED);\n restoreStringValue(Variable.ONE_MEDIA);\n restoreBooleanValue(Variable.CONVERT_MEDIA);\n restoreStringValue(Variable.CONVERT_COMMAND);\n if (StringUtils.isBlank((String) data.get(Variable.CONVERT_COMMAND))) {\n data.put(Variable.CONVERT_COMMAND, \"pacpl\"); // use default value if none set\n // yet\n }\n restoreBooleanValue(Variable.NORMALIZE_FILENAME);\n restoreIntValue(Variable.RATING_LEVEL);\n }", "String getPropertyValue(String filename, String lang, String key);", "private static void addSettingsPropertiesToSystem(){\n \t\tProperties props;\n \t\ttry {\n \t\t\tprops = SettingsLoader.loadSettingsFile();\n \t\t\tif(props != null){\n \t\t\t\tIterator it = props.keySet().iterator();\n \t\t\t\twhile(it.hasNext()){\n \t\t\t\t\tString key = (String) it.next();\n \t\t\t\t\tString value = props.getProperty(key);\n \t\t\t\t\tSystem.setProperty(key, value);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}", "public void extractProperties(File file) {\n\t\tFile input = file;\n\t\tBufferedReader stream;\n\t\ttry {\n\t\t\tString line;\n\t\t\tMatcher m_title, m_subtitle, m_spacing;\n\t\t\tStringBuffer extractable = new StringBuffer();\n\t\t\tstream = new BufferedReader(new FileReader(input));\n\t\t\t\n\t\t\t/* Read all comment lines from the input file and concatenate them */\n\t\t\twhile ((line = stream.readLine()) != null) {\n\t\t\t\tline = line.replaceAll(\"\\\\s+$\", \"\");\n\t\t\t\tTabString temp = new TabString(line);\n\t\t\t\tif (!line.isEmpty()) {\n\t\t\t\t\tif (temp.checkError() == TabString.ERROR_COMMENT)\n\t\t\t\t\t\textractable.append(\"%\" + line + \"%\");\n\t\t\t\t\telse\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t/* Return if nothing was found */\n\t\t\tif (extractable.length() == 0) {\n\t\t\t\tstream.close();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tm_title = TITLE_PATTERN.matcher(extractable.toString());\n\t\t\tm_subtitle = SUBTITLE_PATTERN.matcher(extractable.toString());\n\t\t\tm_spacing = SPACING_PATTERN.matcher(extractable.toString());\n\t\t\t\n\t\t\t/* Set the title to the extracted title */\n\t\t\tif (m_title.find())\n\t\t\t\tthis.setTitle(m_title.group(VALUE_POSITION));\n\t\t\t\n\t\t\t/* Set the subtitle to the extracted subtitle */\n\t\t\tif (m_subtitle.find())\n\t\t\t\tthis.setSubtitle(m_subtitle.group(VALUE_POSITION));\n\t\t\t\n\t\t\t/* Set the spacing to the extracted spacing */\n\t\t\tif (m_spacing.find())\n\t\t\t\tthis.setSpacing(Float.parseFloat(m_spacing.group(VALUE_POSITION)));\n\t\t\t\t\n\t\t\tstream.close();\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}", "@Override\n public Map<String, String> readProperty(String fileName) {\n Map<String, String> result = new HashMap<>();\n Properties prop = new Properties();\n InputStream input;\n try {\n input = FullPropertyReader.class.getClassLoader().getResourceAsStream(fileName);\n prop.load(input);\n Set<String> strings = prop.stringPropertyNames();\n for (String string : strings) {\n result.put(string, prop.getProperty(string));\n }\n } catch (IOException e) {\n throw new PropertyReaderException(\"Trouble in FullPropertyReader\", e);\n }\n return result;\n }", "public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }", "void loadProperties(File propertiesFile) throws IOException\n {\n // Load the properties.\n LOGGER.info(\"Loading properties from \\\"{}\\\" file...\", propertiesFile);\n try (InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(propertiesFile), \"UTF-8\"))\n {\n properties.load(inputStreamReader);\n }\n\n // Log all properties except for password.\n StringBuilder propertiesStringBuilder = new StringBuilder();\n for (Object key : properties.keySet())\n {\n String propertyName = key.toString();\n propertiesStringBuilder.append(propertyName).append('=')\n .append(HERD_PASSWORD_PROPERTY.equalsIgnoreCase(propertyName) ? \"***\" : properties.getProperty(propertyName)).append('\\n');\n }\n LOGGER.info(\"Successfully loaded properties:%n{}\", propertiesStringBuilder.toString());\n }", "private static void loadProperties(final String[] filenames, final Properties props,\n final Properties logProps) {\n\n for(String filename : filenames) {\n\n File f = new File(filename);\n\n if(!f.exists()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" does not exist\");\n System.exit(1);\n }\n\n if(!f.canRead()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" is not readable\");\n System.exit(1);\n }\n\n FileInputStream fis = null;\n Properties currProps = new Properties();\n\n try {\n fis = new FileInputStream(f);\n currProps.load(fis);\n if(f.getName().startsWith(\"log.\")) {\n logProps.putAll(resolveLogFiles(currProps));\n } else {\n props.putAll(currProps);\n }\n } catch(IOException ioe) {\n System.err.println(\"Start-up error: Problem reading configuration file, '\" + f.getAbsolutePath() + \"'\");\n Util.closeQuietly(fis);\n fis = null;\n System.exit(1);\n } finally {\n Util.closeQuietly(fis);\n }\n }\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "private static Properties loadProperties() throws SystemException {\r\n final Properties result;\r\n try {\r\n result = getProperties(PROPERTIES_DEFAULT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n throw new SystemException(\"properties not found.\", e);\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Default properties: \" + result);\r\n }\r\n Properties specific;\r\n try {\r\n specific = getProperties(PROPERTIES_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n specific = new Properties();\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading specific properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Specific properties: \" + specific);\r\n }\r\n result.putAll(specific);\r\n \r\n // Load constant properties\r\n Properties constant = new Properties();\r\n try {\r\n constant = getProperties(PROPERTIES_CONSTANT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n if (LOGGER.isWarnEnabled()) {\r\n LOGGER.warn(\"Error on loading contant properties.\");\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading contant properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Constant properties: \" + constant);\r\n }\r\n result.putAll(constant);\r\n \r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Merged properties: \" + result);\r\n }\r\n // set Properties as System-Variables\r\n for (final Object o : result.keySet()) {\r\n final String key = (String) o;\r\n String value = result.getProperty(key);\r\n value = replaceEnvVariables(value);\r\n System.setProperty(key, value);\r\n }\r\n return result;\r\n }", "@Override\r\n\tpublic void setPropFile(Properties prop) {\n\t\t\r\n\t}", "@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }", "public static final void initialize(Class<?> clazz) {\r\n Field[] fields = clazz.getDeclaredFields();\r\n\r\n Map<String, Field> nlsFields = new Hashtable<String, Field>();\r\n\r\n // Detect NLS fields (public String fields)\r\n for (Field field : fields) {\r\n if (isNLSField(field)) {\r\n nlsFields.put(field.getName(), field);\r\n }\r\n }\r\n\r\n // get a list of potential property files accoring to the current locale\r\n // for this class (MyClass_en_EN.properties, MyClass_en.properties, MyClass.properties)\r\n String baseName = clazz.getName();\r\n String[] variants = buildVariants(baseName);\r\n\r\n // Create holder for the messages. The put()-method of MessageProperties\r\n // will set a new property not only to the properties instance but\r\n // also to the appropriate field on \"clazz\"\r\n Properties messages = new Properties();\r\n\r\n // Load messages from properties files and set them (via MessageProperties)\r\n // to the appropriate fields on clazz\r\n loadProperties(messages, variants);\r\n\r\n applyProperties(messages, clazz, nlsFields);\r\n\r\n }", "@Override\n protected void updateProperties() {\n }", "@Override\n public void updateProperties(final String id, final Map<Name, Property> properties ) {\n final File sidecarFile = sidecarFile(id);\n try {\n final EditableDocument document;\n if (!sidecarFile.exists()) {\n if (properties.isEmpty()) {\n return;\n }\n sidecarFile.createNewFile();\n document = Schematic.newDocument();\n } else {\n try (final FileInputStream sidecarStream = new FileInputStream(sidecarFile)) {\n final Document existing = Json.read(sidecarStream, false);\n document = Schematic.newDocument(existing);\n }\n }\n properties.forEach((key, property) -> {\n if (property == null) {\n translator.removeProperty(document, key, null, null);\n } else {\n translator.setProperty(document, property, null, null);\n }\n });\n try (final FileOutputStream outputStream = new FileOutputStream(sidecarFile)) {\n Json.write(document, outputStream);\n }\n } catch (final IOException e) {\n throw new RepositoryRuntimeException(id, e);\n }\n }", "private String replaceDefaultValues(String line) {\r\n\r\n String result = line;\r\n\r\n while (result.indexOf(\"${\") >= 0) { //$NON-NLS-1$\r\n result = result.replace(attribute(PROPERTY_GLOBAL_JOB_NUMBER), fixBackslashes(JOB_NUMBER));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_OBJECT_NAME), fixBackslashes(OBJECT_NAME));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_LICENSED_PROGRAM), fixBackslashes(LICENSED_PROGRAM));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_OS_RELEASE), fixBackslashes(OS_RELEASE));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_SPACES), fixBackslashes(SPACES));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_TIMEZONE), fixBackslashes(TIMEZONE));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_SYSTEM_NAME), fixBackslashes(SYSTEM_NAME));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_STMT), fixBackslashes(STMT));\r\n\r\n result = result.replace(attribute(PROPERTY_PAGE_NUMBER_LABEL), fixBackslashes(PAGE_NUMBER_LABEL));\r\n result = result.replace(attribute(PROPERTY_PAGE_NUMBER_VALUE), fixBackslashes(PAGE_NUMBER_VALUE));\r\n result = result.replace(attribute(PROPERTY_PAGE_DATE), fixBackslashes(PAGE_DATE));\r\n result = result.replace(attribute(PROPERTY_PAGE_TIME), fixBackslashes(PAGE_TIME));\r\n\r\n result = result.replace(attribute(PROPERTY_HEADER_ATTRIBUTE_NAME), fixBackslashes(HEADER_ATTRIBUTE_NAME));\r\n result = result.replace(attribute(PROPERTY_HEADER_ATTRIBUTE_VALUE), fixBackslashes(HEADER_ATTRIBUTE_VALUE));\r\n\r\n result = result.replace(attribute(PROPERTY_MESSAGE_ID), fixBackslashes(MESSAGE_ID));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_TYPE), fixBackslashes(MESSAGE_TYPE));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_SEVERITY), fixBackslashes(MESSAGE_SEVERITY));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_DATE), fixBackslashes(MESSAGE_DATE));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_TIME), fixBackslashes(MESSAGE_TIME));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_CONTINUATION_LINE_INDENTION), fixBackslashes(MESSAGE_CONTINUATION_LINE_INDENTION));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_ATTRIBUTE_NAME), fixBackslashes(MESSAGE_ATTRIBUTE_NAME));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_ATTRIBUTE_VALUE), fixBackslashes(MESSAGE_ATTRIBUTE_VALUE));\r\n\r\n result = result.replace(attribute(PROPERTY_REGEX_START_OF_PAGE), fixBackslashes(regex_startOfPage));\r\n result = result.replace(attribute(PROPERTY_REGEX_HEADER_ATTRIBUTE), fixBackslashes(regex_headerAttribute));\r\n result = result.replace(attribute(PROPERTY_REGEX_MESSAGE_FIRST_LINE), fixBackslashes(regex_messageFirstLine));\r\n result = result.replace(attribute(PROPERTY_REGEX_MESSAGE_CONTINUATION_LINE), fixBackslashes(regex_messageContinuationLine));\r\n }\r\n\r\n return result;\r\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "private void readProperties() throws Exception{\n\t\t InputStream fisGlobal=null,fisModul=null; \n\t\t propiedades = new Properties();\n try {\n \t // Path directorio de configuracion\n \t String pathConf = System.getProperty(\"ad.path.properties\");\n \t \n \t // Propiedades globales\n \t fisGlobal = new FileInputStream(pathConf + \"sistra/global.properties\");\n \t propiedades.load(fisGlobal);\n \t\t \n \t // Propiedades modulo\n \t\t fisModul = new FileInputStream(pathConf + \"sistra/plugins/plugin-firma.properties\");\n \t\t propiedades.load(fisModul);\n \t \t \t\t \n } catch (Exception e) {\n \t propiedades = null;\n throw new Exception(\"Excepcion accediendo a las propiedadades del modulo\", e);\n } finally {\n try{if (fisGlobal != null){fisGlobal.close();}}catch(Exception ex){}\n try{if (fisModul != null){fisModul.close();}}catch(Exception ex){}\n }\t\t\n\t}", "protected void updateFromTemplate() {\r\n try {\r\n if (templateList.getSelectedItem() != null) {\r\n getConfigurer().loadPropertiesFromFile((String) templateList.getSelectedItem());\r\n Iterator<PropertyInputPanel> it = propertyInputPanels.iterator();\r\n while (it.hasNext()) {\r\n PropertyInputPanel panel = it.next();\r\n \r\n Object currentValue = getConfigurer().getProperty(panel.getName());\r\n if (currentValue != null && panel.isEnabled()) {\r\n panel.setValue(currentValue);\r\n }\r\n \r\n }\r\n }\r\n } catch (ClassCastException e) {\r\n Util.debugMsg(\"Saved template has incompatible data, it will be ignored\");\r\n }\r\n }", "private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }", "public void transformTemplate(Template t)\n\t{\n\t\tfor (ConstrainedProperty property : getPositionedProperties())\n\t\t{\n\t\t\t// only show the CMF admin properties that can be edited\n\t\t\tif (!property.isEditable())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property.getPropertyName());\n\t\t\t\n\t\t\tboolean\t\thandled = false;\n\t\t\tMimeType\tmimetype = property.getMimeType();\n\t\t\tif (mimetype != null)\n\t\t\t{\n\t\t\t\tif (!property.isAutoRetrieved())\n\t\t\t\t{\n\t\t\t\t\tif (0 == mimetype.toString().indexOf(\"image/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-image\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.RAW == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-raw\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (MimeType.APPLICATION_XHTML == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-xhtml\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.TEXT_PLAIN == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-text\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!handled)\n\t\t\t{\n\t\t\t\tif (property.isUrl())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-url\");\n\t\t\t\t}\n\t\t\t\telse if (property.isEmail())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-email\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\n\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t{\n\t\t\t\tt.removeValue(\"form_field-legend\");\n\t\t\t}\n\t\t}\n\n\t\t// display the regular properties\n\t\tfor (String property_name : getRegularProperties())\n\t\t{\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property_name);\n\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\t\t}\n\t}", "@Override\n public void updateProperties() {\n // unneeded\n }", "private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }", "private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}", "public void updateProperties() {\n\t\t\tEnumeration iter = properties.keys();\r\n\t\t\twhile (iter.hasMoreElements()) {\r\n\t\t\t\tString key = (String) iter.nextElement();\r\n\t\t\t\tif (key.startsWith(ConfigParameters.RECENT_FILE_PREFIX)) {\r\n\t\t\t\t\tproperties.remove(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Save the list of recent file information\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tproperties.put(ConfigParameters.RECENT_FILE_PREFIX + (i + 1),\r\n\t\t\t\t\t\tfiles[i]);\r\n\t\t\t}\r\n\t\t\t// Save the number of recent files\r\n\t\t\tproperties.remove(ConfigParameters.RECENT_FILE_NUMBER);\r\n\t\t\tproperties.put(ConfigParameters.RECENT_FILE_NUMBER, files.length\r\n\t\t\t\t\t+ \"\");\r\n\t\t\t// Save to external file\r\n\t\t\tsim.core.AppEngine.getInstance().system.systemParameters\r\n\t\t\t\t\t.saveProperties(properties);\r\n\t\t\tdirty = false;\r\n\t\t}", "protected void UpdateProperties(final Map<String, Object> props){\n //loop through the properties keys, check to see if it already exists,\n //if it does, update it, if it doesn't add it.\n props.keySet().forEach((k) -> {\n if(this.properties.get(k) == null){\n this.properties.put(k, props.get(k));\n }else{\n this.properties.replace(k, props.get(k));\n }\n }\n );\n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "public Map<String, String> fetchPropertyFromFile()\n {\n Map<String, String> components = new HashMap<>();\n Properties props = new Properties();\n InputStream in = null;\n try {\n in = new FileInputStream(\"/slog/properties/LogAnalyzer.properties\");\n props.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n catch (IOException e) {\n e.printStackTrace();\n }\n// Add component config , logname RegEx pattern to a Map. This map will be used to search matching files and forming logstash command\n for (String key : props .stringPropertyNames())\n {\n System.out.println(key + \" = \" + props .getProperty(key));\n components.put (key, props.getProperty(key));\n }\n\n return components;\n }", "private static void readCitProperties(String fileName) {\n/* */ try {\n/* 91 */ ResourceLocation e = new ResourceLocation(fileName);\n/* 92 */ InputStream in = Config.getResourceStream(e);\n/* */ \n/* 94 */ if (in == null) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 99 */ Config.dbg(\"CustomItems: Loading \" + fileName);\n/* 100 */ Properties props = new Properties();\n/* 101 */ props.load(in);\n/* 102 */ in.close();\n/* 103 */ useGlint = Config.parseBoolean(props.getProperty(\"useGlint\"), true);\n/* */ }\n/* 105 */ catch (FileNotFoundException var4) {\n/* */ \n/* */ return;\n/* */ }\n/* 109 */ catch (IOException var5) {\n/* */ \n/* 111 */ var5.printStackTrace();\n/* */ } \n/* */ }", "void readProperties(java.util.Properties p) {\n }", "void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}", "@Override\r\n\tpublic void setProperties(Properties properties) {\n\t\t\r\n\t}", "public void setProperties(Map<String, List<String>> properties) {\n\t\tthis.properties = properties;\n\t}", "public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "@Override\n public void loadFromProperties(PropertiesWrapper properties) {\n\n useForeignKeyPrefix = properties.getBoolean(\"namingConvention.useForeignKeyPrefix\", useForeignKeyPrefix);\n sequenceFormat = properties.get(\"namingConvention.sequenceFormat\", sequenceFormat);\n schema = properties.get(\"namingConvention.schema\", schema);\n }", "@Test\n public void test() throws Exception {\n System.out.println(\"teting PropertiesUtils\");\n Properties result = PropertiesUtils.load();\n assertNotNull(result);\n ResourceBundle result_ = PropertiesUtils.loadLanguage(result);\n assertNotNull(result_);\n }", "public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public synchronized void updateProperties(User user, Properties properties) {\r\n for (Property property : properties.getProperty()) {\r\n user.getProperties().getProperty().add(property);\r\n }\r\n this.putUser(user);\r\n }", "public void setProperties(Map properties);", "public void readProperties() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n propertyParserXML.readPropertyDefinition(configData.getPropertyList());\r\n propertyParserXML.processPropertyDependency();\r\n }\r\n Log.info(\"info.progress_control.load_property_description\");\r\n }", "public static void extractValues() throws IOException{\n GenerateFile generateFile = new GenerateFile();\n Stream<String> fileStream1 = createStreamFromPath(\"src\"+File.separator+\"test.properties\");\n logger.info(fileStream1.toString());\n Set<String> extractedKeys = generateFile.extractvalsFromPropertiesFile(fileStream1);\n List<String> newString = new ArrayList<>(extractedKeys);\n System.out.println(extractedKeys);\n generateFile.createFileFromList(newString,\"values.txt\");\n }", "@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}", "default void load(Map<String, Object> properties)\r\n {\r\n }", "private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}", "private static synchronized void setProperties(\n final String strPropertiesFilename) {\n if (msbPropertiesLoaded) {\n Verbose.warning(\"Properties already loaded; ignoring request\");\n\n return;\n }\n\n File oFile = new File(strPropertiesFilename);\n\n if (!oFile.exists()) {\n // Try to get it from jar file\n ClassLoader classLoader = Thread.currentThread()\n .getContextClassLoader();\n final InputStream input;\n\n if (classLoader == null) {\n classLoader = Class.class.getClassLoader();\n }\n input = classLoader\n .getResourceAsStream('/' + strPropertiesFilename);\n PropertyDef.setProperties(input, null);\n } else {\n PropertyDef.setProperties(new File(strPropertiesFilename), null,\n false);\n }\n if (strPropertiesFilename == DEFAULT_PROPERTIES_FILENAME) {\n oFile = new File(CUSTOMER_PROPERTIES_FILENAME);\n if (oFile.exists() && oFile.isFile()) {\n PropertyDef.addProperties(oFile);\n }\n }\n AdaptiveReplicationTool.msbPropertiesLoaded = true;\n }", "private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }", "@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}", "private static void processIncludedConfig() {\n String configName = \"config.\" + getRunMode() + \".properties\";\n\n //relative path cannot be recognized and not figure out the reason, so here use absolute path instead\n InputStream configStream = Configuration.class.getResourceAsStream(\"/\" + configName);\n if (configStream == null) {\n log.log(Level.WARNING, \"configuration resource {0} is missing\", configName);\n return;\n }\n\n try (InputStreamReader reader = new InputStreamReader(configStream, StandardCharsets.UTF_8)) {\n Properties props = new Properties();\n props.load(reader);\n CONFIG_VALUES.putAll(props);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Unable to process configuration {0}\", configName);\n }\n\n }", "public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}", "@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}", "private void read() {\n // Read the properties from the project\n EditableProperties sharedProps = antProjectHelper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n EditableProperties privateProps = antProjectHelper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);\n final ProjectConfiguration cfgs[] = configHelper.getConfigurations().toArray(new ProjectConfiguration[0]);\n final ProjectConfiguration confs[] = new ProjectConfiguration[cfgs.length];\n System.arraycopy(cfgs, 0, confs, 0, cfgs.length);\n setConfigurations(confs);\n // Initialize the property map with objects\n properties.put(J2ME_PROJECT_NAME, new PropertyInfo(new PropertyDescriptor(J2ME_PROJECT_NAME, true, DefaultPropertyParsers.STRING_PARSER), ProjectUtils.getInformation(project).getDisplayName()));\n for (PropertyDescriptor pd:PROPERTY_DESCRIPTORS) {\n EditableProperties ep = pd.isShared() ? sharedProps : privateProps;\n String raw = ep.getProperty( pd.getName());\n properties.put( pd.getName(), new PropertyInfo( pd, raw == null ? pd.getDefaultValue() : raw));\n for (int j=0; j<devConfigs.length; j++) {\n final PropertyDescriptor clone = pd.clone(CONFIG_PREFIX + devConfigs[j].getDisplayName() + '.' + pd.getName());\n raw = ep.getProperty(clone.getName());\n if (raw != null) {\n properties.put(clone.getName(), new PropertyInfo(clone, raw));\n }\n }\n }\n }", "private void initializePropertySubstitution() {\n log.debug(\"Initializing property substitution\");\r\n String discoveryBundleName = discoveryBootstrapService.getSymbolicBundleName();\r\n DiscoveryConfiguration discoveryConfiguration = getConfiguration(discoveryBundleName, DiscoveryConfiguration.class);\r\n\r\n // initialize discovery; may start a local discovery server and/or query existing servers\r\n Map<String, String> discoveryProperties = discoveryBootstrapService.initializeDiscovery(discoveryConfiguration);\r\n\r\n // register the properties learned from discovery (if any) under the \"discovery\" namespace\r\n this.addSubstitutionProperties(\"discovery\", discoveryProperties);\r\n }", "public interface IPropertiesHandler {\n\n /**\n * <p>\n * Returns property value from property value\n * </p>\n * @param filename name of resource bundle\n * @param lang localization\n * @param key property key\n * @return value for specific key and localization or only key if no value was found\n */\n String getPropertyValue(String filename, String lang, String key);\n}", "public static void main(String[] args) {\n\t\treadPropertiesFile();\n\t\twritePropertiesFile();\n\t\treadPropertiesFile();\n\n\t}", "void loadProperties(final String fileName){\n mProperties = new Properties();\n try {\n InputStreamReader stream = new InputStreamReader(CoreLib.getAppContext().getResources().\n getAssets().open(fileName));\n mProperties.load(stream);\n }catch (IOException e){\n throw new Error(\"Make sure you have both properties file(\" + fileName + \")present under assets\");\n }\n }", "public void getAndStoreSentencesForAllPropertyTriples() {\n try {\n List<String> properties = PropertyUtils.getAllProperties();\n for (String property : properties) {\n HashMap<Integer, HashMap<String, String>> tripleIdDataMap = PropertyUtils.getTriplesForProperty(property);\n for (Integer tripleId : tripleIdDataMap.keySet()) {\n HashMap<String, String> tripleDataMap = tripleIdDataMap.get(tripleId);\n String tripleSentence = getCandidateSentences(tripleDataMap);\n if (tripleSentence != null) {\n insertSentenceToDB(tripleId, property, tripleSentence);\n }\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public static Properties getProperties(String locale){\n\t\tInputStream input = null;\n\t\tProperties prop = new Properties();\n\ttry {\n\n\n\t\t//input = new FileInputStream(\"../properties/messages_\"+locale+\".properties\");\n\t\tinput = AppLocaleConstant.class.getResourceAsStream(\"/properties/messages_\"+locale+\".properties\");\n\t\t// load a properties file\n\t\tprop.load(new InputStreamReader(input, Charset.forName(\"UTF-8\")));\n\n\t} catch (IOException ex) {\n\t\tex.printStackTrace();\n\t} finally {\n\t\tif (input != null) {\n\t\t\ttry {\n\t\t\t\tinput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n\treturn prop;\n\t}", "private void ini_Translations()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Translations\");\r\n\t\tnew Translation(\"data\", FileType.Internal);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tTranslation.LoadTranslation(\"data/lang/en-GB/strings.ini\");\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public void updateSettings(FileObject file) {\n DataObject dobj = null;\n DataFolder folder = null;\n try {\n dobj = DataObject.find(file);\n folder = dobj.getFolder();\n } catch (DataObjectNotFoundException ex) {\n Exceptions.printStackTrace(ex);\n }\n if (dobj == null || folder == null) {\n return;\n }\n for (CreateFromTemplateAttributesProvider provider\n : Lookup.getDefault().lookupAll(CreateFromTemplateAttributesProvider.class)) {\n Map<String, ?> attrs = provider.attributesFor(dobj, folder, \"XXX\"); // NOI18N\n if (attrs == null) {\n continue;\n }\n Object aName = attrs.get(\"user\"); // NOI18N\n if (aName != null) {\n author = aName.toString();\n break;\n }\n }\n }", "private int RetrieveCleanUpProps()\r\n {\n String[] punctuationFiles = new String[] {\"punctuation.props\"};\r\n FileInputStream input;\r\n String tempStr;\r\n File ftemp;\r\n Collection c = new ArrayList<String>();\r\n\r\n // Get the list of the props file containing the words to remove (not the punctuation)\r\n DirList props = new DirList(inputDir, \"^(?!(punctuation)).*\\\\.props$\", 1);\r\n\t\tArrayList<File> wordsList = props.getListFiles();\r\n//\t\tSystem.out.println(\"props files:\"+wordsList);\r\n //TODO all properties are taken to a single arraylist. does it ok?.\r\n\t\tProperties enProps =new Properties ();\r\n\t\tString propsDir = inputDir.getPath().concat(File.separator).concat(searchdir);\r\n\t\t\r\n\t\t// Init the lists which will contain the words and chars to remove \r\n\t\tcleanUpStrings = new ArrayList<String>();\r\n\t\tcleanUpChars = new ArrayList<String>();\r\n\t\t\r\n\t try {\r\n\t \t// Retrieve words to remove\r\n for (File aWordsList : wordsList) {\r\n ftemp = aWordsList;\r\n if (ftemp.exists()) {\r\n enProps.load(input = new FileInputStream(ftemp.getAbsolutePath()));\r\n input.close();\r\n c = enProps.values();\r\n cleanUpStrings.addAll(c);\r\n enProps.clear();\r\n }\r\n }\r\n\r\n\t \t// Retrieve char to remove (punctuation for ex.)\r\n for (String punctuationFile : punctuationFiles) {\r\n tempStr = propsDir.concat(File.separator).concat(punctuationFile);\r\n ftemp = new File(tempStr);\r\n if (ftemp.exists()) {\r\n enProps.load(input = new FileInputStream(tempStr));\r\n input.close();\r\n c = enProps.values();\r\n cleanUpChars.addAll(c);\r\n enProps.clear();\r\n }\r\n }\r\n\t }\r\n\t catch (IOException e) {\r\n\t e.printStackTrace();\r\n\t return 1;\r\n\t }\r\n \treturn 0;\r\n }", "protected static Properties loadFileAsProperty(File file) throws FileNotFoundException, IOException {\r\n\t\tProperties result = new Properties();\r\n\t\tresult.load(new FileReader(file));\r\n\t\treturn result;\r\n\t}", "public void writeToPropertiesFile(String propertiesPath) {\n OrderedPropertiesBuilder builder = new OrderedPropertiesBuilder();\n builder.withOrdering(String.CASE_INSENSITIVE_ORDER);\n builder.withSuppressDateInComment(true);\n OrderedProperties props = builder.build();\n \n // Creating a File object which will point to location of\n // properties file\n File propertiesFile = new File(propertiesPath);\n \n try {\n \n // create a FileOutputStream by passing above properties file\n FileOutputStream xlsFos = new FileOutputStream(propertiesFile);\n \n // Taking hashMaps keys by first converting it to Set and than\n // taking iterator over it.\n Iterator mapIterator = properties.keySet().iterator();\n \n // looping over iterator properties\n while (mapIterator.hasNext()) {\n \n // extracting keys and values based on the keys\n String key = mapIterator.next().toString();\n \n String value = properties.get(key);\n \n // setting each properties file in props Object\n // created above\n props.setProperty(key, value);\n \n }\n \n // Finally storing the properties to real\n // properties file.\n props.store(xlsFos, null);\n \n } catch (FileNotFoundException e) {\n \n e.printStackTrace();\n \n } catch (IOException e) {\n \n e.printStackTrace();\n \n }\n }", "@Override\r\n protected void loadStrings() {\r\n \r\n mfile = settings.getProperty( \"mfile\" );\r\n rmode = settings.getProperty( \"rmode\" );\r\n cmap = settings.getProperty( \"cmap\" );\r\n cmapMin = Double.parseDouble( settings.getProperty( \"cmapMin\" ) );\r\n cmapMax = Double.parseDouble( settings.getProperty( \"cmapMax\" ) );\r\n \r\n }", "public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }" ]
[ "0.6065278", "0.6063569", "0.60305536", "0.6013456", "0.59936565", "0.5746558", "0.57210076", "0.5700878", "0.57004535", "0.5685501", "0.56708634", "0.5651446", "0.56288296", "0.56027347", "0.5556863", "0.5509454", "0.5507357", "0.5506507", "0.5500237", "0.54968464", "0.5492548", "0.5444405", "0.5425606", "0.5412693", "0.5404669", "0.5375502", "0.53717977", "0.53525966", "0.5345082", "0.53450495", "0.53332365", "0.5326644", "0.5301591", "0.52897155", "0.52866507", "0.5280474", "0.52776563", "0.5260564", "0.52598083", "0.52531683", "0.5234812", "0.52276605", "0.5223743", "0.52236557", "0.52190894", "0.52159125", "0.5205879", "0.51978123", "0.5186864", "0.5179234", "0.5166822", "0.5165453", "0.516453", "0.5153234", "0.5147508", "0.5146077", "0.5144134", "0.5132182", "0.5117052", "0.5115463", "0.51060545", "0.51000905", "0.5098025", "0.50797063", "0.5067834", "0.5067377", "0.5053544", "0.50456023", "0.50420034", "0.503927", "0.50386566", "0.50335723", "0.50297767", "0.50281554", "0.5025393", "0.50239825", "0.49992454", "0.4998087", "0.49927795", "0.49878448", "0.49875426", "0.49867347", "0.49819812", "0.49815172", "0.49747777", "0.49736026", "0.49700415", "0.49665394", "0.49663645", "0.49643916", "0.49628142", "0.49610662", "0.49609601", "0.49578264", "0.4924595", "0.4914522", "0.49108872", "0.4906757", "0.48937038", "0.48924497" ]
0.6092805
0
Converts the given String value to an object that can be set to the given field
private static final Object getFieldValue(Field field, String value) { if (String.class == field.getType()) { // for fields of type String return value as-is return value; } else { // in all other cases try to construct an object using it's class single-arg constructor return newObjectFromString(field.getType(), value); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected Object stringToValue(String valueString) throws ParseException {\r\n\t\ttry {\r\n\t\t\treturn PersistentBean.findOrCreate(beanClass, valueString);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new ParseException(e.getMessage(), 0);\r\n\t\t}\r\n\t}", "private static Object makeValue(String string, Schema schema) {\n if (string == null) {\n return null;\n }\n\n try {\n switch (schema.getType()) {\n case BOOLEAN:\n return Boolean.valueOf(string);\n case STRING:\n return string;\n case FLOAT:\n return Float.valueOf(string);\n case DOUBLE:\n return Double.valueOf(string);\n case INT:\n return Integer.valueOf(string);\n case LONG:\n return Long.valueOf(string);\n case ENUM:\n // TODO: translate to enum class\n if (schema.hasEnumSymbol(string)) {\n return string;\n } else {\n try {\n return schema.getEnumSymbols().get(Integer.valueOf(string));\n } catch (IndexOutOfBoundsException ex) {\n return null;\n }\n }\n case UNION:\n Object value = null;\n for (Schema possible : schema.getTypes()) {\n value = makeValue(string, possible);\n if (value != null) {\n return value;\n }\n }\n return null;\n case NULL:\n return null;\n default:\n // FIXED, BYTES, MAP, ARRAY, RECORD are not supported\n throw new RuntimeException(\n \"Unsupported field type:\" + schema.getType());\n }\n } catch (NumberFormatException ex) {\n return null;\n }\n }", "public void setField(String fieldName, String value, Class type) {\n Field field;\n try {\n field = this.getClass().getField(fieldName);\n } catch (NoSuchFieldException e) {\n log.error(String.format(\"Data record does not have field - %s. Error: %s\", fieldName, e.getMessage()));\n return;\n }\n\n final String typeString = type.toString();\n\n if (typeString.equals(Double.class.toString())) {\n setDouble(field, value);\n } else if (typeString.equals(String.class.toString())) {\n setString(field, value);\n }\n }", "public IValuable parse(String value);", "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n private void setStringValue(final String valueString) {\n // figure out the type of T and create object based on T=Integer, T=Double, T=Boolean, T=Valuable\n if (value instanceof List<?>) {\n List list = (List) get();\n list.clear();\n // remove start and end spaces\n String valueString2 = valueString.replaceAll(\"^\\\\s+\", \"\");\n valueString2 = valueString2.replaceAll(\"\\\\s+$\", \"\");\n // split into space-separated bits\n String[] valuesString = valueString2.split(\"\\\\s+\");\n for (int i = 0; i < valuesString.length; i++) {\n if (theClass.equals(Integer.class)) {\n list.add(new Integer(valuesString[i % valuesString.length]));\n } else if (theClass.equals(Double.class)) {\n list.add(new Double(valuesString[i % valuesString.length]));\n } else if (theClass.equals(Boolean.class)) {\n String str = valuesString[i % valuesString.length].toLowerCase();\n list.add(str.equals(\"1\") || str.equals(\"true\") || str.equals(\"yes\"));\n } else if (theClass.equals(String.class)) {\n list.add(new String(valuesString[i % valuesString.length]));\n }\n }\n return;\n }\n\n if (theClass.equals(Integer.class)) {\n setValue(new Integer(valueString));\n return;\n }\n if (theClass.equals(Double.class)) {\n \tsetValue(new Double(valueString));\n return;\n }\n if (theClass.equals(Boolean.class)) {\n final String valueString2 = valueString.toLowerCase();\n if (valueString2.equals(\"yes\") || valueString2.equals(\"true\")) {\n \tsetValue(Boolean.TRUE);\n return;\n } else if (valueString2.equals(\"no\") || valueString2.equals(\"false\")) {\n \tsetValue(Boolean.FALSE);\n return;\n }\n }\n if (theClass.equals(Function.class)) {\n \tfinal Function.Constant param = new Function.Constant(valueString);\n \tsetValue(param);\n param.getOutputs().add(BEASTObjectStore.INSTANCE.getBEASTObject(beastObject));\n return;\n }\n\n if (theClass.isEnum()) {\n \tif (possibleValues == null) {\n \t\tpossibleValues = (T[]) theClass.getDeclaringClass().getEnumConstants();\n \t}\n for (final T t : possibleValues) {\n if (valueString.equals(t.toString())) {\n \tsetValue(t);\n return;\n }\n }\n throw new IllegalArgumentException(\"Input 104: value \" + valueString + \" not found. Select one of \" + Arrays.toString(possibleValues));\n }\n\n // call a string constructor of theClass\n try {\n Constructor ctor;\n Object v = valueString;\n try {\n \tctor = theClass.getDeclaredConstructor(String.class);\n } catch (NoSuchMethodException e) {\n \t// we get here if there is not String constructor\n \t// try integer constructor instead\n \ttry {\n \t\tif (valueString.startsWith(\"0x\")) {\n \t\t\tv = Integer.parseInt(valueString.substring(2), 16);\n \t\t} else {\n \t\t\tv = Integer.parseInt(valueString);\n \t\t}\n \tctor = theClass.getDeclaredConstructor(int.class);\n \t\n \t} catch (NumberFormatException e2) {\n \t// could not parse as integer, try double instead\n \t\tv = Double.parseDouble(valueString);\n \tctor = theClass.getDeclaredConstructor(double.class);\n \t}\n }\n ctor.setAccessible(true);\n final Object o = ctor.newInstance(v);\n setValue(o);\n if (o instanceof BEASTInterface) {\n ((BEASTInterface) o).getOutputs().add(BEASTObjectStore.INSTANCE.getBEASTObject(beastObject));\n }\n } catch (Exception e) {\n throw new IllegalArgumentException(\"Input 103: type mismatch, cannot initialize input '\" + getName() +\n \"' with value '\" + valueString + \"'.\\nExpected something of type \" + getType().getName() +\n \".\\n\" + (e.getMessage() != null ? e.getMessage() : \"\"));\n }\n }", "public IMessageFieldValue createFromString( String text) throws Exception;", "T convert(String value);", "protected final Object fromStringImpl(String string)\n throws TypeValueException {\n int y, m, d;\n try {\n y = Integer.parseInt(string.substring(0, 4));\n m = Integer.parseInt(string.substring(4, 6));\n d = Integer.parseInt(string.substring(6, 8));\n } catch (NumberFormatException nfe) {\n\n // Should never happen, since isValidValueImpl(String) will have been\n // called\n throw new TypeValueException(this, string);\n }\n\n // Check that the values are in the correct range\n return new Value(y, m, d);\n }", "private Object convertDBToField(Object value, Field field) {\n if(value == null)\n return null;\n \n Class<?> clazz = field.getType();\n \n if(Enum.class.isAssignableFrom(clazz))\n return Enum.valueOf((Class<Enum>)clazz, value.toString());\n \n if(Base.class.isAssignableFrom(clazz))\n return createInstance((Class<? extends Base>)clazz, (DBObject) value);\n \n if(value instanceof BasicDBList) {\n BasicDBList list = (BasicDBList)value;\n\n if(Collection.class.isAssignableFrom(clazz))\n return convertDBToCollectionField(list, field);\n \n if(clazz.isArray())\n return convertDBToArrayField(list, clazz);\n \n return value;\n }\n \n if(value instanceof BasicDBObject) {\n BasicDBObject map = (BasicDBObject)value;\n\n if(Map.class.isAssignableFrom(clazz))\n return convertDBToMapField(map, field);\n \n return value; \n }\n \n return clazz.isPrimitive() ? convertPrimitiveType(value, clazz) : value;\n }", "protected Object parseValue (String value)\n throws Exception\n {\n return value;\n }", "void setValue4Po(String poFieldName, Object val);", "public Object makeValue(String source) throws Exception\n {\n if (isNil)\n return null;\n if (fromStringMethod == null) {\n try {\n fromStringMethod = MethodCache.getInstance().getMethod(javaType, \"fromString\", STRING_CLASS);\n } catch (Exception e) {\n throw new IntrospectionException(e.toString());\n }\n }\n return fromStringMethod.invoke(null,new Object [] { source });\n }", "public static InitFieldConfig from(String initFieldConfigString) {\n String fieldName = null;\n String entityName = null;\n InitValue value = null;\n\n String[] equalsParts = initFieldConfigString.split(\"[=]\");\n if (equalsParts.length > 2) {\n throw new IllegalArgumentException(\"Inconsistent: found multiple '=' characters\");\n } else if (equalsParts.length == 2) {\n value = parseValueString(equalsParts[1]);\n }\n\n String[] fieldSpecs = equalsParts[0].split(\"[%]\");\n fieldName = fieldSpecs[0];\n if (fieldSpecs.length == 2) {\n entityName = fieldSpecs[1];\n } else if (fieldSpecs.length > 2) {\n throw new IllegalArgumentException(\"Inconsistent: found multiple '%' characters\");\n }\n return new AutoValue_InitFieldConfig(fieldName, entityName, value);\n }", "public Object stringToObject(String s, Class c){\n Gson gson = new Gson();\n Object o = gson.fromJson(s, c);\n return o;\n }", "private static Object parseStringValue(String value) {\n // Boolean (Boolean.parseBoolean() only detects 'true' properly).\n if (value.equalsIgnoreCase(\"true\")) {\n return Boolean.TRUE;\n }\n if (value.equalsIgnoreCase(\"false\")) {\n return Boolean.FALSE;\n }\n\n // Long.\n try {\n return Long.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Double.\n try {\n return Double.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Fallback to String.\n return value;\n }", "private static Object parseStringToObject(String text, Class ObjectType) {\n if (ObjectType == Integer.class) return Integer.parseInt(text);\n else if (ObjectType == Float.class) return Float.parseFloat(text);\n else if (ObjectType == Double.class) return Double.parseDouble(text);\n return null;\n }", "public T parse(String value);", "@CheckReturnValue\n T setField(String field, @Nullable Object value);", "protected abstract T prepareObject(String extracted);", "public Builder setObject(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n object_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "public void setValue(String fieldName, Object value) {\n try {\n Field field = FieldUtils.getField(object.getClass(), fieldName, true);\n if (field != null) {\n FieldUtils.writeField(field, object, value, true);\n } else {\n logger.error(\"Unable to set value on field because the field does not exits on class: \" + object.getClass());\n }\n } catch (IllegalAccessException e) {\n logger.error(e);\n }\n }", "public Value(String s) {\n string = s;\n itemClass = String.class;\n type = DataType.STRING;\n }", "public static Value makeStr(String s) {\n Value r = new Value();\n r.str = s;\n return canonicalize(r);\n }", "public String makeConversion(String value);", "@Nullable\n\tObject getFieldValue(String field);", "public void set(Object requestor, String field);", "@objid (\"261a4d72-4079-4832-9c3d-48b507d6b152\")\n @Override\n public Object convertToObject(String value, ModelElement object) {\n if (getType().getBaseType() == null) {\n return value;\n }\n \n IDynamicPropertyResolver resolver = getDynamicPropertyResolver();\n if (resolver != null) {\n return resolver.convertToObject(this, value, object);\n } else {\n throw new UnsupportedOperationException(\"No DynamicBehavior found for the \" + this.toString() + \" property.\");\n }\n }", "private Field(String jsonString) {\n this.jsonString = jsonString;\n }", "@CheckReturnValue\n default T setFieldIfPresent(String field, @Nullable Object value) {\n if (value != null) {\n //noinspection ResultOfMethodCallIgnored\n setField(field, value);\n }\n //noinspection unchecked\n return (T)this;\n }", "public void set(String value){\n switch (field){\n case 0:\n nomComplet = value;\n break;\n case 1:\n rv1 = value;\n break;\n case 2:\n dateDispo = LocalDate.parse(value,formatter);\n break;\n case 3:\n competencePrincipale = value;\n break;\n case 4:\n exp = Double.parseDouble(value);\n break;\n case 5:\n trancheExp = value;\n break;\n case 6:\n ecole = value;\n break;\n case 7:\n classeEcole = value;\n break;\n case 8:\n fonctions = value;\n break;\n case 9:\n dateRV1 = LocalDate.parse(value,formatter);\n case 10:\n rv2 = value;\n break;\n case 11:\n metiers = value;\n break;\n case 12:\n originePiste = value;\n break;\n }\n field++;\n }", "<S> S fromStr(String s, Class<S> clazz);", "@SuppressWarnings(\"rawtypes\")\n public Object convert(Class type, String value) throws ConversionException {\n return value;\n }", "public static VariableValue createValueObject(String value) {\n\t\tif (value == null)\n\t\t\treturn null;\n\t\treturn new StringValue(value);\n\t}", "private T convert(String value)\n {\n if (value == null)\n {\n return null;\n }\n\n Object result = null;\n\n if (this.converter != null)\n {\n try\n {\n result = converter.convert(value);\n }\n catch (Exception e)\n {\n throw ExceptionUtils.throwAsRuntimeException(e);\n }\n }\n else if (String.class.equals(configEntryType))\n {\n result = value;\n }\n else if (Class.class.equals(configEntryType))\n {\n result = ClassUtils.tryToLoadClassForName(value);\n }\n else if (Boolean.class.equals(configEntryType))\n {\n Boolean isTrue = \"TRUE\".equalsIgnoreCase(value);\n isTrue |= \"1\".equalsIgnoreCase(value);\n isTrue |= \"YES\".equalsIgnoreCase(value);\n isTrue |= \"Y\".equalsIgnoreCase(value);\n isTrue |= \"JA\".equalsIgnoreCase(value);\n isTrue |= \"J\".equalsIgnoreCase(value);\n isTrue |= \"OUI\".equalsIgnoreCase(value);\n\n result = isTrue;\n }\n else if (Integer.class.equals(configEntryType))\n {\n result = Integer.parseInt(value);\n }\n else if (Long.class.equals(configEntryType))\n {\n result = Long.parseLong(value);\n }\n else if (Float.class.equals(configEntryType))\n {\n result = Float.parseFloat(value);\n }\n else if (Double.class.equals(configEntryType))\n {\n result = Double.parseDouble(value);\n }\n\n return (T) result;\n }", "public static Object convertField(Class<?> fieldConverterType, Object value) {\n return convertField(fieldConverterType, value, false);\n }", "private static Object convert(final String identifier, final Class<?> type, Object value) throws ParseException {\n if (type == Date.class) {\n return toDate(value, identifier);\n }\n if (type == PeriodDuration.class && value instanceof String) {\n try {\n return new PeriodDurationType((String) value);\n } catch (IllegalArgumentException ex) {\n // TODO: \"log and continue\" is not appropriate here, since the user can not know that his data is lost.\n LOGGER.log(Level.WARNING, \"Bad period duration value: {0} (property: {1})\",\n new Object[] {value, identifier});\n return null;\n }\n }\n if (InternationalString.class.isAssignableFrom(type) && value instanceof String) {\n return new SimpleInternationalString(value.toString());\n }\n if (Charset.class.isAssignableFrom(type) && value instanceof String) {\n return Charset.forName(value.toString());\n }\n if (Locale.class.isAssignableFrom(type) && value instanceof String) {\n String text = value.toString();\n text = text.substring(text.indexOf('.') + 1).trim();\n return Locales.parse(text);\n }\n if (!CharSequence.class.isAssignableFrom(type) && (value instanceof CharSequence)) {\n String text = value.toString();\n if (text.startsWith(\"nilReason:\")) {\n try {\n value = NilReason.valueOf(text.substring(\"nilReason:\".length())).createNilObject(type);\n } catch (URISyntaxException | IllegalArgumentException e) {\n throw new ParseException(\"Illegal value: \\\"\" + text + \"\\\".(property:\" + identifier + \")\", e);\n }\n } else {\n final boolean isCodeList = CodeList.class.isAssignableFrom(type);\n if (isCodeList || type == Locale.class || type == Charset.class || type.isEnum()) {\n text = text.substring(text.indexOf('.') + 1).trim();\n if (isCodeList) {\n value = Types.forCodeName(type.asSubclass(CodeList.class), text, false);\n } else {\n value = text;\n }\n }\n }\n }\n return value;\n }", "public abstract Object unpickle(String value);", "@Override\r\n\tpublic Object getValueFromString(ColumnWraper columnWraper, String fromValue) {\n\t\treturn fromValue;\r\n\t}", "public abstract void parseValue(String value);", "public static <T> T string2Object(String source, Class<T> type){\n\t\treturn JSON.parseObject(source, type);\n\t}", "public void setField(String value) {\n JsoHelper.setAttribute(jsObj, \"field\", value);\n }", "Object decodeObject(Object value);", "String convertStringForStorage(String value);", "public static void setInternalState(Object object, Class<?> fieldType, Object value) {\n setField(object, value, findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(fieldType)));\n }", "public Object parse(String s) throws JDBFException {\r\n s = s.trim();\r\n if (type == 'N' || type == 'F') {\r\n if (s.equals(\"\")) {\r\n s = \"0\";\r\n }\r\n try {\r\n if (getDecimalCount() == 0) {\r\n return new Long(s);\r\n } else {\r\n return new Double(s);\r\n }\r\n } catch (NumberFormatException numberformatexception) {\r\n throw new JDBFException(numberformatexception);\r\n }\r\n }\r\n if (type == 'C') {\r\n return s;\r\n }\r\n if (type == 'L') {\r\n if (s.equals(\"Y\") || s.equals(\"y\") || s.equals(\"T\") || s.equals(\"t\")) {\r\n return new Boolean(true);\r\n }\r\n if (s.equals(\"N\") || s.equals(\"n\") || s.equals(\"F\") || s.equals(\"f\")) {\r\n return new Boolean(false);\r\n } else {\r\n throw new JDBFException(\"Unrecognized value for logical field: \" + s);\r\n }\r\n }\r\n if (type == 'D') {\r\n SimpleDateFormat simpledateformat = new SimpleDateFormat(\"yyyyMMdd\");\r\n try {\r\n if (\"\".equals(s)) {\r\n return null;\r\n } else {\r\n return simpledateformat.parse(s);\r\n }\r\n } catch (ParseException parseexception) {\r\n //throw new JDBFException(parseexception);\r\n return null;\r\n }\r\n } else {\r\n throw new JDBFException(\"Unrecognized JDBFField type: \" + type);\r\n }\r\n }", "public static void setInternalState(Object object, String fieldName, Object value, Class<?> where) {\n if (object == null || fieldName == null || fieldName.equals(\"\") || fieldName.startsWith(\" \")) {\n throw new IllegalArgumentException(\"object, field name, and \\\"where\\\" must not be empty or null.\");\n }\n\n final Field field = getField(fieldName, where);\n try {\n field.set(object, value);\n } catch (Exception e) {\n throw new RuntimeException(\"Internal Error: Failed to set field in method setInternalState.\", e);\n }\n }", "void setValue(String childID, Object value) throws ConverterException, IllegalAccessException;", "public void decodeVal(String val)\n throws Exception\n { \n set(val); \n }", "String stringField(String name, boolean isDefined, String value,\n StringValidator validator) throws InvalidFieldValue;", "public abstract T parse(Object valueToParse, Type type);", "public void setPropertyWithAutoTypeCast(Object obj, Object value) {\n if(value==null) {\n setProperty(obj, value);\n return;\n }\n Class<?> propType = getPropertyType();\n if(propType.isAssignableFrom(value.getClass())) {\n setProperty(obj, value);\n return;\n }\n if(value instanceof Long && propType.equals(Integer.class)) {\n setProperty(obj, Integer.valueOf(value.toString()));\n return;\n }\n if(value instanceof Double || value instanceof Float || value instanceof BigDecimal) {\n if(propType.isAssignableFrom(Double.class)) {\n setProperty(obj, Double.valueOf(value.toString()));\n return;\n } else if(propType.isAssignableFrom(Float.class)) {\n setProperty(obj, Float.valueOf(value.toString()));\n return;\n } else if(propType.isAssignableFrom(BigDecimal.class)) {\n setProperty(obj, BigDecimal.valueOf(Double.valueOf(value.toString())));\n return;\n } else {\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }\n }\n if(value instanceof java.util.Date) {\n if(propType.isAssignableFrom(java.sql.Timestamp.class)) {\n setProperty(obj, new java.sql.Timestamp(((java.util.Date) value).getTime()));\n return;\n } else if(propType.isAssignableFrom(java.sql.Date.class)) {\n setProperty(obj, new java.sql.Date(((java.util.Date) value).getTime()));\n return;\n } else {\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }\n }\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }", "void setMyField(String val) {\n\t\ttry {\n\t\t\tmyField = Integer.parseInt(val);\n\t\t} catch (NumberFormatException e) {\n\t\t\tmyField = 0;\n\t\t}\n\t}", "private static void setValue(Object object, String fieldName, Object fieldValue) \n throws NoSuchFieldException, IllegalAccessException {\n \n Class<?> studentClass = object.getClass();\n while(studentClass != null){\n Field field = studentClass.getDeclaredField(fieldName);\n field.setAccessible(true);\n field.set(object, fieldValue);\n //return true;\n } \n //return false;\n }", "public void\n fromString\n (\n String value\n )\n {\n if (value == null)\n throw new IllegalArgumentException(\"Cannot set a Parameter value from a null string\");\n Double doubleValue = null;\n try {\n doubleValue = Double.valueOf(value);\n }\n catch(NumberFormatException ex) {\n throw new IllegalArgumentException\n (\"The value (\" + value + \") passed into the fromString method cannot be parsed \" +\n \"as a Double.\\n\" + ex.getMessage());\n }\n setValue(doubleValue);\n }", "public static <T> T parseSimple(String value, Class<T> argType) {\n if (UUID.class.equals(argType)) {\n try {\n return argType.cast(UUID.fromString(value));\n } catch (Exception e) {\n throw wrapException(\n BadRequest,\n e,\n UUID.randomUUID().toString());\n }\n }\n\n try {\n return argType.getConstructor(String.class).newInstance(value);\n } catch (Exception e) {\n return JSonUtil.parseJson(value, argType)\n .orElseThrow(() -> wrapException(\n BadRequest,\n new IllegalArgumentException(\"Unable to parse \" + value),\n UUID.randomUUID().toString()));\n }\n }", "public void setFieldValue(java.lang.String fieldValue) {\n this.fieldValue = fieldValue;\n }", "public Object stringToValue(String text) throws ParseException {\n Pattern pattern = getPattern();\n\n if (pattern != null) {\n Matcher matcher = pattern.matcher(text);\n\n if (matcher.matches()) {\n setMatcher(matcher);\n return super.stringToValue(text);\n }\n throw new ParseException(\"Pattern did not match\", 0);\n }\n return text;\n }", "protected static Value getValue(Object obj)\n {\n Value v = new Value();\n\n switch(getDataTypeFromObject(obj))\n {\n case Boolean:\n return v.setBoolean((Boolean) obj);\n case Integer:\n return v.setInteger((java.lang.Integer) obj);\n case Long:\n return v.setLong((java.lang.Long) obj);\n case Double:\n return v.setDouble((java.lang.Double) obj);\n default:\n return v.setString((java.lang.String) obj);\n }\n }", "void setValueString(org.hl7.fhir.String valueString);", "public void setField(String aValue) {\n String oldValue = field;\n field = aValue;\n changeSupport.firePropertyChange(\"field\", oldValue, aValue);\n }", "public static void setInternalState(Object object, String fieldName, Object value) {\n Field foundField = findFieldInHierarchy(object, fieldName);\n setField(object, value, foundField);\n }", "Object convertJavaValueToDBValue(Object value, Class<?> javaType);", "@Override\n protected void loadValue(String sValue) {\n value = sValue;\n }", "protected Object stringToVal(String propVal, Object target, String propName)\n\t\t\tthrows WekaException {\n\n\t\tObject resultVal = null;\n\t\ttry {\n\t\t\tPropertyDescriptor prop = getPropDescriptor(target, propName);\n\t\t\tif (prop == null) {\n\t\t\t\tthrow new WekaException(\"Unable to find method '\" + propName + \"'\");\n\t\t\t}\n\n\t\t\tMethod getMethod = prop.getReadMethod();\n\t\t\tObject current = getMethod.invoke(target);\n\t\t\tif (current.getClass().isArray()) {\n\t\t\t\tresultVal = Utils.forName(null, propVal, null);\n\t\t\t} else if (current instanceof SelectedTag) {\n\t\t\t\tTag[] legalTags = ((SelectedTag) current).getTags();\n\t\t\t\tint tagIndex = Integer.MAX_VALUE;\n\t\t\t\t// first try and parse as an integer\n\t\t\t\ttry {\n\t\t\t\t\tint specifiedID = Integer.parseInt(propVal);\n\t\t\t\t\tfor (int z = 0; z < legalTags.length; z++) {\n\t\t\t\t\t\tif (legalTags[z].getID() == specifiedID) {\n\t\t\t\t\t\t\ttagIndex = z;\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} catch (NumberFormatException e) {\n\t\t\t\t\t// try to match tag strings\n\t\t\t\t\tfor (int z = 0; z < legalTags.length; z++) {\n\t\t\t\t\t\tif (legalTags[z].getReadable().equals(propVal.trim())) {\n\t\t\t\t\t\t\ttagIndex = z;\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\tif (tagIndex != Integer.MAX_VALUE) {\n\t\t\t\t\tresultVal = new SelectedTag(tagIndex, legalTags);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new WekaException(\n\t\t\t\t\t\t\t\"Unable to set SelectedTag value for property \" + \"'\" + propName\n\t\t\t\t\t\t\t\t\t+ \"'\");\n\t\t\t\t}\n\t\t\t} else if (current instanceof Enum) {\n\t\t\t\tEnumHelper helper = new EnumHelper((Enum) current);\n\t\t\t\tresultVal = EnumHelper.valueFromString(helper.getEnumClass(), propVal);\n\t\t\t} else if (current instanceof OptionHandler) {\n\t\t\t\tString[] schemeAndOpts = Utils.splitOptions(propVal);\n\t\t\t\tif (schemeAndOpts.length > 0) {\n\t\t\t\t\tString schemeName = schemeAndOpts[0];\n\t\t\t\t\tschemeAndOpts[0] = \"\";\n\t\t\t\t\tresultVal = Utils.forName(null, schemeName, schemeAndOpts);\n\t\t\t\t}\n\t\t\t} else if (current instanceof Number) {\n\t\t\t\ttry {\n\t\t\t\t\tif (current instanceof Integer) {\n\t\t\t\t\t\tresultVal = new Integer(propVal);\n\t\t\t\t\t} else if (current instanceof Long) {\n\t\t\t\t\t\tresultVal = new Long(propVal);\n\t\t\t\t\t} else if (current instanceof Double) {\n\t\t\t\t\t\tresultVal = new Double(propVal);\n\t\t\t\t\t} else if (current instanceof Float) {\n\t\t\t\t\t\tresultVal = new Float(propVal);\n\t\t\t\t\t}\n\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\tthrow new WekaException(\"Unable to parse '\" + propVal\n\t\t\t\t\t\t\t+ \"' as a number\");\n\t\t\t\t}\n\t\t\t} else if (current instanceof Boolean) {\n\t\t\t\tresultVal =\n\t\t\t\t\t\tpropVal.equalsIgnoreCase(\"true\") || propVal.equalsIgnoreCase(\"yes\")\n\t\t\t\t\t\t\t\t|| propVal.equalsIgnoreCase(\"Y\");\n\t\t\t} else if (current instanceof String) {\n\t\t\t\tresultVal = propVal;\n\t\t\t} else if (current instanceof File) {\n\t\t\t\tresultVal = new File(propVal);\n\t\t\t}\n\n\t\t\tif (resultVal == null) {\n\t\t\t\tthrow new WekaException(\"Was unable to determine the value to set for \"\n\t\t\t\t\t\t+ \"property '\" + propName + \"'\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tthrow new WekaException(ex);\n\t\t}\n\n\t\treturn resultVal;\n\t}", "private T parse(String value)\n\t\t{\n\t\t\treturn null;\n\t\t}", "public static DataValue parseValue(String value) {\r\n \tif(value == null) {\r\n \t\tthrow new IllegalArgumentException(\"null value\");\r\n \t}\r\n \t\r\n \tint i = value.indexOf(\",\");\r\n \tif(i < 0 || i == value.length()) {\r\n \t\tthrow new IllegalArgumentException(\"wrong string format\");\r\n \t}\r\n \t\r\n \tString rmName = value.substring(0, i);\r\n \tDataValue dv = dataValueMap.get(rmName);\r\n \t\r\n \tif(dv == null) {\r\n \t\tthrow new IllegalArgumentException(\"unsupported RM class[\" + rmName + \"]\");\r\n \t}\r\n \t\r\n \tString v = value.substring(i + 1).trim(); \t\r\n \treturn dv.parse(v);\r\n }", "private void setValue(Object entity, Field targetField, String targetValue) {\n if ( null == entity || null == targetField || 0 >= targetField.getName().length() ) {\n throw new IllegalStateException();\n }\n final Method[] declaredMethods = entity.getClass().getDeclaredMethods();\n final String fieldName = targetField.getName();\n String expectedMethodName = null;\n if ( fieldName.length() > 1 ) {\n expectedMethodName = \"set\" + fieldName.substring(0).toUpperCase() + fieldName.substring(1, fieldName.length() - 1);\n } else {\n expectedMethodName = \"set\" + fieldName.substring(0).toUpperCase();\n }\n Method expectedMethod = null;\n for ( Method method : declaredMethods ) {\n if ( method.getName().equals(expectedMethodName) ) {\n expectedMethod = method;\n }\n }\n if ( null != expectedMethod ) {\n boolean accessibilityChanged = false;\n try {\n if ( !expectedMethod.isAccessible() ) {\n expectedMethod.setAccessible(true);\n accessibilityChanged = true;\n }\n expectedMethod.invoke(entity, targetValue);\n } catch (Exception e) {\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, e.getMessage(), e);\n } finally {\n if ( accessibilityChanged ) {\n expectedMethod.setAccessible(false);\n }\n }\n } else {\n boolean accessibilityChanged = false;\n if ( !targetField.isAccessible() ) {\n targetField.setAccessible(true);\n accessibilityChanged = true;\n }\n try {\n targetField.set(entity, targetValue);\n } catch (Exception e) {\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, e.getMessage(), e);\n } finally {\n if ( accessibilityChanged ) {\n targetField.setAccessible(false);\n }\n }\n }\n }", "private Variable stringToVariable(String value, int smiSyntax) {\n Variable var = AbstractVariable.createFromSyntax(smiSyntax);\n try {\n if (var instanceof AssignableFromString) {\n ((AssignableFromString) var).setValue(value);\n } else if (var instanceof AssignableFromInteger) {\n ((AssignableFromInteger) var).setValue(Integer.valueOf(value));\n } else if (var instanceof AssignableFromLong) {\n ((AssignableFromLong) var).setValue(Long.valueOf(value));\n } else {\n this.getLogger().error(\"Unsupported conversion of [\" + value +\"] to \" + var.getSyntaxString());\n var = null;\n }\n } catch (IllegalArgumentException e) {\n this.getLogger().error(\"Unsupported conversion of [\" + value +\"] to \" + var.getSyntaxString(), e);\n var = null;\n }\n return var;\n }", "@SuppressWarnings(\"boxing\")\r\n private static Object toType(String propertyName, String value, Class<?> type) throws HorizonDBException {\r\n\r\n try {\r\n\r\n if (int.class.equals(type)) {\r\n\r\n return Integer.parseInt(value);\r\n }\r\n\r\n if (long.class.equals(type)) {\r\n\r\n return Long.parseLong(value);\r\n }\r\n\r\n if (Path.class.equals(type)) {\r\n\r\n return FileSystems.getDefault().getPath(value);\r\n }\r\n\r\n } catch (NumberFormatException e) {\r\n\r\n throw new HorizonDBException(ErrorCodes.INVALID_CONFIGURATION, \"The value: '\" + value\r\n + \"' associated to the property: \" + propertyName + \" is not a valid \" + type + \".\");\r\n }\r\n\r\n throw new IllegalStateException(\"Convertion to the type: \" + type + \" is not supported.\");\r\n }", "public void setFieldValue(String fieldValue) {\n this.fieldValue = fieldValue;\n }", "public final IValue parseString(String s) {\r\n SimpleType v = doParseString(s);\r\n if (v != null) {\r\n v.blueprint = false;\r\n }\r\n return (IValue) v;\r\n }", "public ORM setS(String field, String val) {\n if (this.fields_values == \"\") {\n this.fields_values = field + \"='\" + val + \"'\";\n } else {\n this.fields_values = this.fields_values + \",\" + field + \"='\" + val + \"'\";\n }\n //System.out.println(\"after setS: \" + this.fields_values);\n return this;\n }", "public Object parse(String arg) {\n return (arg);\n }", "public static Object parseStringObject(String value, Schema.Type dataType) throws TimeSeriesException {\r\n\t\tswitch(dataType) {\r\n\t\t\tcase DOUBLE: \r\n\t\t\t\treturn new Double(Double.parseDouble(value));\r\n\t\t\tcase BOOLEAN: \r\n\t\t\t\treturn new Boolean(Boolean.parseBoolean(value));\r\n\t\t\tcase FLOAT: \r\n\t\t\t\treturn new Float(Float.parseFloat(value));\r\n\t\t\tcase INT: \r\n\t\t\t\treturn new Integer(Integer.parseInt(value));\r\n\t\t\tcase LONG: \r\n\t\t\t\treturn new Long(Long.parseLong(value));\r\n\t\t\tcase STRING: \r\n\t\t\t\treturn value;\r\n\t\t\tcase BYTES: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t\tdefault: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t}\r\n\t}", "@Override\n\tpublic String fieldConvert(String field) {\n\t\tif (!StringUtils.isEmpty(field)) {\n\t\t\tswitch (field) {\n\t\t\tcase \"code\":\n\t\t\t\treturn \"CODE\";\n\t\t\tcase \"name\":\n\t\t\t\treturn \"NAME\";\n\t\t\tcase \"createTime\":\n\t\t\t\treturn \"CREATE_TIME\";\n\t\t\tcase \"updateTime\":\n\t\t\t\treturn \"UPDATE_TIME\";\n\t\t\tdefault:\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "protected String convertPropertyValue(String originalValue) {\n\t\treturn originalValue;\n\t}", "public static void set(Class<?> c, String fieldName, Object value) {\n Field field = getField(c, fieldName);\n try {\n field.set(null, value);\n } catch (IllegalArgumentException | IllegalAccessException e) {\n throw propagate(e);\n }\n }", "public abstract Object fromProtoValue(Object in);", "public static void setValue(\n Object fieldInstance,\n String fieldName,\n Object value) throws NoSuchFieldException, IllegalAccessException {\n Field f = fieldInstance.getClass().getDeclaredField(fieldName);\n f.setAccessible(true);\n f.set(fieldInstance, value);\n }", "void setValue(java.lang.String value);", "public static Value makeTemporaryStr(String s) {\n if (s == null)\n throw new NullPointerException();\n Value r = new Value();\n r.str = s;\n return r; // don't canonicalize here!\n }", "Object convertDBValueToJavaValue(Object value, Class<?> javaType);", "public static void setRestrictedFieldValue(Object obj, Class theClass, String fieldName,\n Object value) throws NoSuchFieldException {\n Field field = theClass.getDeclaredField(fieldName);\n field.setAccessible(true);\n try {\n field.set(obj, value);\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex);\n }\n }", "public static <T> T parse(String value, Class<T> clz){\r\n\r\n if (StringUtils.isEmpty(value)) {\r\n return null;\r\n }\r\n try {\r\n return mapper.readValue(value, clz);\r\n }\r\n catch (Exception e) {\r\n throw new IllegalStateException(e);\r\n }\r\n }", "public abstract void fromString(String s, String context);", "void setValue(String value);", "void setValue(String value);", "protected abstract MAJOR_JAVA_TYPE parseValue(@Nonnull String value) throws ParsingException;", "public static void setPartDataFromField(PartData data, String value, EntryFieldLabel field) {\n switch (field) {\n case PI:\n data.setPrincipalInvestigator(value);\n break;\n\n case PI_EMAIL: {\n data.setPrincipalInvestigatorEmail(value);\n break;\n }\n\n case FUNDING_SOURCE: {\n data.setFundingSource(value);\n break;\n }\n\n case IP:\n data.setIntellectualProperty(value);\n break;\n\n case BIO_SAFETY_LEVEL:\n Integer level = BioSafetyOption.intValue(value);\n if (level == null) {\n if (value.contains(\"1\"))\n level = 1;\n else if (value.contains(\"2\"))\n level = 2;\n else if (\"restricted\".equalsIgnoreCase(value))\n level = -1;\n else\n break;\n }\n data.setBioSafetyLevel(level);\n break;\n\n case NAME:\n data.setName(value);\n break;\n\n case ALIAS:\n data.setAlias(value);\n break;\n\n case KEYWORDS:\n data.setKeywords(value);\n break;\n\n case SUMMARY:\n data.setShortDescription(value);\n break;\n\n case NOTES:\n data.setLongDescription(value);\n break;\n\n case REFERENCES:\n data.setReferences(value);\n break;\n\n case LINKS:\n ArrayList<String> links = new ArrayList<>();\n links.add(value);\n data.setLinks(links);\n break;\n\n case STATUS:\n data.setStatus(value);\n break;\n\n case SELECTION_MARKERS:\n ArrayList<String> selectionMarkers = new ArrayList<>();\n selectionMarkers.add(value);\n data.setSelectionMarkers(selectionMarkers);\n break;\n\n case HOST:\n case GENOTYPE_OR_PHENOTYPE:\n data.setStrainData(setStrainDataFromField(data.getStrainData(), value, field));\n break;\n\n case BACKBONE:\n case ORIGIN_OF_REPLICATION:\n case CIRCULAR:\n case PROMOTERS:\n case REPLICATES_IN:\n data.setPlasmidData(setPlasmidDataFromField(data.getPlasmidData(), value, field));\n break;\n\n case HOMOZYGOSITY:\n case ECOTYPE:\n case HARVEST_DATE:\n case GENERATION:\n case SENT_TO_ABRC:\n case PLANT_TYPE:\n case PARENTS:\n data.setSeedData(setSeedDataFromField(data.getSeedData(), value, field));\n break;\n\n case ORGANISM:\n case FULL_NAME:\n case GENE_NAME:\n case UPLOADED_FROM:\n data.setProteinData(setProteinDataFromField(data.getProteinData(), value, field));\n break;\n\n case CREATOR:\n data.setCreator(value);\n break;\n\n case CREATOR_EMAIL:\n data.setCreatorEmail(value);\n break;\n\n default:\n break;\n }\n }", "protected abstract SimpleType doParseString(String s);", "public void setFieldValue(final Object target, final String fieldName, final Object value) {\n final Field f = getField(target, fieldName);\n try {\n f.set(target, value);\n } catch (final IllegalAccessException e) {\n throw new IllegalStateException(\"Error setting field value\", e);\n }\n }", "private CData convert(EValueType type, String str) {\n switch (type)\n {\n case DOUBLE_64:\n return new CData(type, Double.valueOf(str));\n case FLOAT_32:\n return new CData(type, Float.valueOf(str));\n case INT_16:\n return new CData(type, Short.valueOf(str));\n case INT_32:\n return new CData(type, Integer.valueOf(str));\n case INT_64:\n return new CData(type, Long.valueOf(str));\n case INT_8:\n return new CData(type, str.charAt(0));\n case UINT_64:\n return new CData(type, Long.valueOf(str));\n case UINT_32:\n return new CData(type, Long.valueOf(str));\n case UINT_16:\n return new CData(type, Character.valueOf(str.charAt(0)));\n case UINT_8:\n return new CData(type, str.charAt(0));\n case VOID:\n default:\n return CData.VOID;\n }\n }", "public static Object convertString(Class targetType, String value) {\r\n\t\tValidate.notNull(targetType, \"Null targetType not allowed.\");\r\n\t\tif (value == null) {\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\tif (ClassUtils.isAssignable(targetType, String.class)) {\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\tif (ClassUtils.isAssignable(targetType, Integer.class)) {\r\n\t\t\treturn Integer.valueOf(value);\r\n\t\t}\r\n\t\tif (ClassUtils.isAssignable(targetType, int.class)) {\r\n\t\t\treturn Integer.valueOf(value);\r\n\t\t}\r\n\t\tif (ClassUtils.isAssignable(targetType, Long.class)) {\r\n\t\t\treturn Long.valueOf(value);\r\n\t\t}\r\n\t\tif (ClassUtils.isAssignable(targetType, long.class)) {\r\n\t\t\treturn Long.valueOf(value);\r\n\t\t}\r\n\t\tBoolean bValue = BooleanUtils.toBooleanObject(value);\r\n\t\tif (bValue != null) {\r\n\t\t\treturn bValue;\r\n\t\t}\r\n\t\t\r\n\t\tthrow new MonetaException(\"Property type not supported\")\r\n\t\t\t.addContextValue(\"targetType\", targetType.getName());\r\n\t}", "public Object decodeValue (final String value) throws EncodingException {\n\n final Object object;\n\n try {\n\n // might throw an EncodingException;\n final String valueString = this.unmarkEncodingString(value);\n\n // might throw an IllegalArgument-, IO-, Security- or\n // ClassNotFoundException;\n object = this.string2Object(valueString);\n\n } catch (final Exception ex) {\n\n final String message = String.format(\n ObjectStringConverter.ERROR_DECODING_FAILED,\n value,\n ex.getMessage());\n\n throw new EncodingException(message);\n }\n\n return object;\n }", "public static FieldType fromString(String s) \n {\n if (s!=null) \n for (FieldType t : FieldType.values())\n if (s.equalsIgnoreCase(t.name))\n return t;\n \n return null;\n }", "protected static void setParam(Object o, Field f, CommandSetting s, String key) throws ReflectiveOperationException,\r\n\t\t\tNameNotFoundException, IllegalArgumentException, notFoundException, CannotConvertException {\n\t\tf.setAccessible(true);\r\n\t\tClass<?> cls = f.getType();\r\n\t\tif (cls == int.class) {\r\n\t\t\tf.set(o, s.getAsInt(key));\r\n\t\t} else if (cls == double.class) {\r\n\t\t\tf.set(o, s.getAsDouble(key));\r\n\t\t} else if (cls == boolean.class) {\r\n\t\t\tf.set(o, s.getAsBool(key));\r\n\t\t} else if (Sequence.class.isAssignableFrom(cls)) {\r\n\t\t\tassert false;\r\n\r\n\t\t\t// f.set(o, Sequence.getSequence(s.getAsStr(key)));\r\n\t\t} else {\r\n\t\t\tf.set(o, s.get(key));\r\n\t\t}\r\n\t}", "public void setField(String field, String contents) throws RemoteException;", "public Builder setStringValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n typeCase_ = 5;\n type_ = value;\n onChanged();\n return this;\n }", "private void insertValue(String field, String value) {\n switch (mapFieldsTypes.get(field)) {\n case DBCreator.STRING_TYPE:\n insertStringValue(field, value);\n break;\n case DBCreator.INTEGER_TYPE:\n insertIntegerValue(field, Integer.valueOf(value));\n break;\n }\n }", "public Object getTypeValueForInternalValue(String value) {\n\t\tObject r = null;\n\t\tString prefix = value.split(getValueConcatenator())[0] + getValueConcatenator();\n\t\tEntityObject eo = getEntityObject(prefix);\n\t\tif (eo!=null) {\n\t\t\tr = eo.getTypeValueForInternalValue(value);\n\t\t}\n\t\treturn r;\n\t}" ]
[ "0.65259737", "0.64361966", "0.6392772", "0.6355866", "0.61398774", "0.61234623", "0.6118285", "0.61090344", "0.60992587", "0.6063202", "0.60105675", "0.6008586", "0.60059756", "0.6001763", "0.59781563", "0.5962194", "0.59469664", "0.5856743", "0.5832075", "0.57986367", "0.5798568", "0.5740585", "0.5733735", "0.5707602", "0.5697196", "0.5696803", "0.56859386", "0.5667895", "0.5665219", "0.5658767", "0.5649248", "0.564335", "0.5615693", "0.5610461", "0.5573075", "0.55229974", "0.55024594", "0.54916114", "0.54911745", "0.54744977", "0.54732007", "0.5472417", "0.54652065", "0.5456038", "0.5446528", "0.5440959", "0.54362935", "0.54312974", "0.54299915", "0.5427306", "0.5403188", "0.5400279", "0.5390612", "0.5384811", "0.538007", "0.53743297", "0.53725547", "0.5372152", "0.53706336", "0.5364109", "0.536069", "0.5360666", "0.5350552", "0.53314036", "0.53276014", "0.5325342", "0.531798", "0.531488", "0.5314805", "0.53041816", "0.5300221", "0.52996695", "0.52918464", "0.5291528", "0.52890337", "0.5288543", "0.52680176", "0.52618945", "0.52587485", "0.5257307", "0.52570206", "0.5251866", "0.52513635", "0.52505684", "0.52480894", "0.52447134", "0.52447134", "0.5242019", "0.5240774", "0.52291435", "0.52286017", "0.522758", "0.5221212", "0.52133554", "0.5210526", "0.52069616", "0.52038443", "0.52029335", "0.5188442", "0.5180329" ]
0.75881875
0
Instantiates a new object of the given type with the given message The type must have a (declared) constructor that takes a single string parameter
private static final Object newObjectFromString(Class<?> type, String message) { Constructor<?> constructor; try { constructor = type.getDeclaredConstructor(String.class); constructor.setAccessible(true); } catch (Exception ex) { throw new RuntimeException(String.format(MSG_MISSINGCONSTRUCTOR, type.getSimpleName(), ex.getMessage()), ex); } try { return constructor.newInstance(message); } catch (Exception ex) { throw new RuntimeException(String.format(MSG_COULDNOTINSTANTIATECLASS, type.getName(), type.getSimpleName()), ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message(String type, Object message) {\n\t\tthis.type = type;\n\t\tthis.message = message;\n\t}", "public <T extends org.ros.internal.message.Message> T buildMessage(String typeString) {\n return messageFactory.newFromType(typeString);\n }", "public Message newMessage(String type, String addr) {\n\tMessage message = null;\n\n\tif (type.equals(MessageConnection.TEXT_MESSAGE)) {\n\n\t message = new TextObject(addr);\n\t} else {\n\t if (type.equals(MessageConnection.BINARY_MESSAGE)) {\n\n message = new BinaryObject(addr);\n\t } else {\n throw new IllegalArgumentException(\n \"Message type not supported\");\n\t }\n\t}\n\n\n\treturn message;\n }", "MessageType createMessageType();", "public Message newMessage(String message, Object... params) {\n/* 61 */ return new SimpleMessage(message);\n/* */ }", "public ChatMessage(MessageType type, Object message) {\n m_type = type;\n m_message = message;\n }", "public Message createMessage(MessageType type, String message) throws MessageFormatException {\n String salesMessage[] = message.split(\" \");\n switch (type) {\n case SINGLE:\n if (salesMessage.length == 2) {\n return new SingleSaleMessage(salesMessage);\n }\n throw new MessageFormatException(\"Message type \\\"single\\\" should contain the product type and price.\" +\n \"e.g. \\\"single apple 10p\\\"\");\n case MULTIPLE:\n if (salesMessage.length == 3) {\n return new MultipleSaleMessage(salesMessage);\n }\n throw new MessageFormatException(\"Message type \\\"multiple\\\" should contain the quantity, product type and price.\" +\n \"e.g. \\\"multiple 10 apple 10p\\\"\");\n case ADJUSTMENT:\n if (salesMessage.length == 3) {\n return new PriceAdjustmentMessage(salesMessage);\n }\n throw new MessageFormatException(\"Message type \\\"adjustment\\\" should contain the adjustment operation,\" +\n \" adjustment price and product type. e.g. \\\"adjustment add 10p apple\\\"\");\n default:\n throw new MessageFormatException(\"Message type %s not supported.\" +\n \"Supported message types are %s\", type.toString(), Arrays.toString(MessageType.values()));\n }\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3) {\n/* 93 */ return new SimpleMessage(message);\n/* */ }", "MessagesType createMessagesType();", "public MessageFactory(int type) {\n super(type);\n }", "public Message newMessage(String message, Object p0) {\n/* 69 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0, Object p1) {\n/* 77 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String type) {\n\tString address = null;\n\n\t/*\n * Provide the default address from the original open.\n */\n\n\tif (((m_mode & Connector.WRITE) > 0) && (host != null)) {\n\t address = ADDRESS_PREFIX + host;\n\t if (m_iport != 0) {\n\t\taddress = address + \":\" + String.valueOf(m_iport);\n\t }\n\t}\n\n\treturn newMessage(type, address);\n }", "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n/* 101 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) {\n/* 109 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0, Object p1, Object p2) {\n/* 85 */ return new SimpleMessage(message);\n/* */ }", "public Message(String type, String content, String status, Long date, String sender) {\n if (type == null || type.isEmpty()) {\n throw new IllegalArgumentException(\"Type cannot be null or empty\");\n }\n if (!type.equals(\"text\") && !type.equals(\"image\") && !type.equals(\"location\")) {\n throw new IllegalArgumentException(\"Message object needs type of text, image or location\");\n }\n if (content == null || content.isEmpty()) {\n throw new IllegalArgumentException(\"Content cannot be null or empty\");\n }\n if (status == null || status.isEmpty()) {\n throw new IllegalArgumentException(\"Status cannot be null or empty\");\n }\n if (!status.equals(\"read\") && !status.equals(\"unread\")){\n throw new IllegalArgumentException(\"Message object needs a status of read or unread\");\n }\n if (date == null) {\n throw new IllegalArgumentException(\"Date cannot be null\");\n }\n if (sender == null || sender.isEmpty()) {\n throw new IllegalArgumentException(\"Sender cannot be null or empty\");\n }\n\n this.type = type;\n this.content = content;\n this.status = status;\n this.date = date;\n this.sender = sender;\n }", "public Message() {}", "public Message() {}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n/* 145 */ return new SimpleMessage(message);\n/* */ }", "public Message(){}", "public MessageFactory(int type, int id){\n super(type, id);\n }", "private Message(MessageType handle) {\n this(handle, null, null);\n }", "private Message(){\n // default constructor\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) {\n/* 118 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) {\n/* 136 */ return new SimpleMessage(message);\n/* */ }", "public Message(Type type, Player messageSender, String messageContent) {\n\t\tif (type == null) {\n\t\t\tthrow new InvalidParameterException(\"Type cannot be null\");\n\t\t}\n\t\tif (messageSender == null) {\n\t\t\tthrow new InvalidParameterException(\"MessageReceiver cannot be null\");\n\t\t}\n\t\tif (messageContent == null) {\n\t\t\tthrow new InvalidParameterException(\"MessageContent cannot be null\");\n\t\t}\n\t\tthis.type = type;\n\t\tthis.messageSender = messageSender;\n\t\tthis.messageReceiver = new Player(\"SERVER\", Player.Team.SERVER);\n\t\tthis.messageContent = messageContent;\n\t}", "public static void typeMessage(String message) {\n\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) {\n/* 127 */ return new SimpleMessage(message);\n/* */ }", "public Message(Type type, Player messageSender, Player messageReceiver, String messageContent) {\n\t\tif (type == null) {\n\t\t\tthrow new InvalidParameterException(\"Type cannot be null\");\n\t\t}\n\t\tif (messageSender == null) {\n\t\t\tthrow new InvalidParameterException(\"MessageSender cannot be null\");\n\t\t}\n\t\tif (messageReceiver == null) {\n\t\t\tthrow new InvalidParameterException(\"MessageReceiver cannot be null\");\n\t\t}\n\t\tif (messageContent == null) {\n\t\t\tthrow new InvalidParameterException(\"MessageContent cannot be null\");\n\t\t}\n\t\tthis.type = type;\n\t\tthis.messageSender = messageSender;\n\t\tthis.messageReceiver = messageReceiver;\n\t\tthis.messageContent = messageContent;\n\t}", "public Message() {\n }", "public Message() {\n }", "public ConsoleLogObj(MessageType messageType, String logStr) {\n\t\tsuper();\n\t\tthis.messageType = messageType;\n\t\tthis.logStr = logStr;\n\t}", "public TrackedMessage(int messageType) {\n\tsuper(messageType);\n }", "public Message() {\n }", "public static Message buildMessage(String type, HashMap<String, String> parameters) throws MessageException {\n Class<?> clazz;\n try {\n clazz = Class.forName(type); \n } catch (ClassNotFoundException e) {\n throw new MessageException(MSG.cat(MSG.MSG_UNKNOWN_TYPE, type), e);\n }\n \n try {\n Constructor<?> constructor;\n constructor = clazz.getConstructor();\n Message m = (Message) constructor.newInstance();\n for (String k : parameters.keySet())\n m.set(Key.valueOf(k), parameters.get(k));\n return m;\n } catch (EmptyParameterException | IllegalAccessException | IllegalArgumentException | InstantiationException | NoSuchMethodException | SecurityException | InvocationTargetException e) {\n throw new MessageException(MSG.cat(MSG.cat(MSG.MSG_UNABLE_BUILD, type), e),e);\n } \n }", "public ValidationMessage(Type type, String field, String messageKey) {\n this.type = type;\n this.field = field;\n this.messageKey = messageKey;\n }", "protected abstract Message createMessage(Object object, MessageProperties messageProperties);", "private Message(MessageType handle, String srcName) {\n this(handle, srcName, null);\n }", "private Message createMsg(long type,Object event){\r\n Message msg=new Message(0,type,0,\"\",new Object[]{event},\r\n System.currentTimeMillis(),0,0,null,0,0,0);\r\n return msg;\r\n }", "public ModelMessage(MessageType messageType, String id, FreeColGameObject source) {\n this(messageType, id, source, getDefaultDisplay(messageType, source));\n }", "public Message(String message){\n\t\tthis(message, 5000);\n\t}", "private Message(MessageType handle, String srcName, String text) {\n msgType = handle;\n // Save the properly formatted identifier for the user sending the\n // message.\n msgSender = srcName;\n // Save the text of the message.\n msgText = text;\n }", "private MessageType(String value) {\n\t\tthis.value = value;\n\t}", "public MessageClackData(String userName, String message, int type) {\n super(userName, type);\n this.message = message;\n }", "public JDBFException (String message, Object type){\r\n super(Messages.format(message, type));\r\n }", "DynamicMessage createDynamicMessage();", "public IMessageFieldValue createFromString( String text) throws Exception;", "public ValidationMessage(Type type, String field, String messageKey, String[] messageParameters) {\n this.type = type;\n this.field = field;\n this.messageKey = messageKey;\n this.messageParameters = messageParameters;\n }", "protected SJMessageCommunicationType createType(SJTypeSystem ts, Type messageType) throws SemanticException {\n return ts.SJSendType(target, messageType);\r\n }", "public Message generateMessage(MessageType messageType) {\n Message msg = null;\n switch (messageType) {\n case REGISTER:\n msg = new RegisterMessage(deviceID);\n break;\n case UPDATE:\n break;\n case MAP_UPDATE:\n break;\n case QUERY:\n msg = new QueryMessage(deviceID);\n break;\n case REPLY:\n msg = new ReplyMessage(deviceID);\n break;\n case REQUEST:\n msg = new RequestMessage(deviceID);\n break;\n case RESPONSE:\n msg = new ResponseMessage(deviceID);\n break;\n }\n\n return msg;\n }", "public MessageParseException() {\n }", "public ModelMessage(MessageType messageType, String id, FreeColGameObject source, FreeColObject display) {\n super(id, TemplateType.TEMPLATE);\n this.messageType = messageType;\n this.sourceId = source.getId();\n this.displayId = (display != null) ? display.getId() : source.getId();\n this.ownerId = null;\n }", "protected Message createMessage(Object object, MessageProperties messageProperties, @Nullable Type genericType) {\n\t\treturn createMessage(object, messageProperties);\n\t}", "private Message(String message, long visibleTime, long creationTime, long id){\n\t\tthis(message, visibleTime);\n\t\tthis.creationTime = creationTime;\n\t\tthis.id = id;\n\t}", "public MessageInfo() { }", "public Message() {\n\t\tsuper();\n\t}", "private MessageType(String nameId) {\r\n\t\tthis.nameId = nameId;\r\n\t}", "public ProtocolWorker(String message){\n this.message = message;\n }", "public ServerMessage(int type)\n\t{\n\t\tthis.type = type;\n\t\tthis.key = Tools.generateUniqueKey();\n\t}", "public Protocol(char msgType, int numArgs, String[] args)\r\n {\r\n this.msgType = msgType;\r\n this.numArgs = numArgs;\r\n this.args = args;\r\n }", "public TypeException(String msg) {\n super(msg);\n }", "MessageSerializer<T> create();", "public FlowMonMessage(){}", "public Message(MessageType messageType, byte[] payload) {\n\t this.messageType = messageType;\n\t this.payloadLength = ByteBuffer.allocate(4).putInt(payload.hashCode()).array();\n\t this.payload = payload;\n\t}", "public static com.nhcsys.webservices.getmessages.getmessagestypes.v1.MessageType newInstance() {\n return (com.nhcsys.webservices.getmessages.getmessagestypes.v1.MessageType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader()\n .newInstance(type,\n null);\n }", "public ChatRequest(String message)\r\n\t{\r\n\t\tthis.message = message;\r\n\t}", "public SystemMessage() {\r\n\t}", "public ServiceMessage() {\r\n\t}", "public void testCtor2() {\n instance = new LogMessage(type, id, operator, message);\n\n assertEquals(\"'type' should be correct.\", type, instance.getType());\n assertEquals(\"'id' should be correct.\", id, instance.getId());\n assertEquals(\"'message' should be correct.\", message, instance.getMessage());\n assertNull(\"'error' should be correct.\", instance.getError());\n }", "public CallMessage() {\n\t}", "public Message(String text, Person person) {\n\t\tthis(text, person, null, null);\n\t}", "public static AbstractMT create( final int messageType ) {\n\t\treturn create(messageType, BIC.TEST8, BIC.TEST8);\n\t}", "public void setMessageType(java.lang.String messageType) {\r\n this.messageType = messageType;\r\n }", "Message newMessage(Uuid id, Uuid author, Uuid conversation, String body, Time creationTime);", "public abstract String construct();", "Type createType();", "Type createType();", "Type createType();", "RAMTypeException(String message) {\n super(message);\n }", "public MessageRequest() {\n\t}", "<U extends T> U create(String name, Class<U> type) throws InvalidUserDataException;", "public void testCtor1() {\n instance = new LogMessage(type, id, operator, message, error);\n\n assertEquals(\"'type' should be correct.\", type, instance.getType());\n assertEquals(\"'id' should be correct.\", id, instance.getId());\n assertEquals(\"'message' should be correct.\", message, instance.getMessage());\n assertSame(\"'error' should be correct.\", error, instance.getError());\n }", "public ServerMessage(String message) {\n this.message = message;\n }", "public CodeMessage(Integer code, T message) {\n this.code = code;\n this.message = message;\n }", "public Message(MESSAGE_TYPE t, SENDER s) {\n type = t;\n sender = s;\n options = new Hashtable<String, Object>();\n }", "public MessageEntity() {\n }", "public Message(long msg) {\n m_msg = msg;\n m_type = getType(msg);\n parseMessage();\n }", "public void setMessageType(MessageType messageType) {\n this.messageType = messageType;\n }", "public ImMessage() {\r\n }", "public LCAmsg2 () { }", "public static FailureClass of(Class<? extends Message> value) {\n return new FailureClass(checkNotNull(value));\n }", "public Message createMessage(String messageText)\n {\n Message msg =\n new MessageIcqImpl(messageText,\n OperationSetBasicInstantMessaging.DEFAULT_MIME_TYPE,\n OperationSetBasicInstantMessaging.DEFAULT_MIME_ENCODING, null);\n\n return msg;\n }", "public Message(String messgeType, String contentLocation, String contentType){\n\t\tthis.messageInfo[0] = messgeType; \t// Request Type\n\t\tthis.messageInfo[1] = contentLocation;\t// Content URL\n\t\tthis.messageInfo[2] = contentType;\t// Content Type\n\n\t\theaderLines = new ArrayList<ArrayList<String>>();\n\t\tentity = new byte[0];\n\t}", "public TypeException() {\n }", "protected MessageToMessageEncoder()\r\n/* 17: */ {\r\n/* 18: 59 */ this.matcher = TypeParameterMatcher.find(this, MessageToMessageEncoder.class, \"I\");\r\n/* 19: */ }", "GetMessagesType(Message message) {\n super(message);\n }", "public AmqpMessage() {}", "private CommandType(String name) {\n\t\t\n\t\tthis.name = name;\n\t}" ]
[ "0.7697294", "0.7384831", "0.7124312", "0.70689195", "0.69183207", "0.68989724", "0.6890423", "0.6849094", "0.68278015", "0.676891", "0.6737052", "0.67339844", "0.67035896", "0.6679399", "0.6678752", "0.6677471", "0.66690147", "0.6597369", "0.65867573", "0.65867573", "0.65855014", "0.6563613", "0.6554054", "0.6511135", "0.6497875", "0.648331", "0.6478157", "0.64578146", "0.6408266", "0.63975435", "0.6318061", "0.6309439", "0.6309439", "0.63020307", "0.6299334", "0.62842345", "0.6260968", "0.623143", "0.6226404", "0.62107295", "0.61865973", "0.61512285", "0.6113999", "0.6093741", "0.6088169", "0.6057282", "0.603908", "0.6031771", "0.5956991", "0.5951768", "0.5947011", "0.59408796", "0.58926463", "0.58920544", "0.5870131", "0.5865057", "0.58647096", "0.58503795", "0.5847411", "0.5824481", "0.58073866", "0.5796903", "0.5792763", "0.5768441", "0.57670933", "0.57619494", "0.57430685", "0.5739002", "0.57375824", "0.57358855", "0.57349735", "0.5730738", "0.57200867", "0.57073456", "0.57023805", "0.5681179", "0.5666975", "0.5662618", "0.5662618", "0.5662618", "0.56583196", "0.564838", "0.56459683", "0.5634617", "0.56270546", "0.5618718", "0.56101793", "0.56074286", "0.56053627", "0.56043136", "0.56026375", "0.5598819", "0.55931854", "0.55911535", "0.5590068", "0.55882716", "0.55872744", "0.55819196", "0.5571233", "0.55609995" ]
0.8380341
0
Checks if the given field is an "NLS field". A NLS field must be public static and not final.
private static final boolean isNLSField(Field field) { int modifier = field.getModifiers(); String problem = null; // check if modifiers are correct if (!Modifier.isStatic(modifier)) { problem = "not static"; } else if (Modifier.isFinal(modifier)) { problem = "final"; } else if (!Modifier.isPublic(modifier)) { problem = "not public"; } NLSMessage nlsMessage = field.getAnnotation(NLSMessage.class); if (problem != null) { if (nlsMessage == null) { // not an NLS field, no problem, just ignore it return false; } // NLS-annotation on a field with wrong modifiers (not public static non-final) throw new RuntimeException(String.format(MSG_MISUSEDNLSANNOTATION, field.getDeclaringClass().getName(), field .getName(), problem)); } // NLS fields are fields with @NLSMessage annotation and fields with type String and Exception code (and subclasses) return (nlsMessage != null) || (field.getType() == String.class) || ExceptionCode.class.isAssignableFrom(field.getType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isFixedField(final String code) {\n return Global.FIXED_FIELDS.contains(code);\n }", "public static boolean isValidField(int whichField) {\r\n\t\tboolean valid = false;\r\n\t\ttry {\r\n\t\t\tDataDictionary dictionary = CurrentFIXDataDictionary\r\n\t\t\t\t\t.getCurrentFIXDataDictionary().getDictionary();\r\n\t\t\tvalid = dictionary.isField(whichField);\r\n\t\t} catch (Exception anyException) {\r\n\t\t\t// Ignore\r\n\t\t}\r\n\t\treturn valid;\r\n\t}", "public static boolean isRdfTypeField(String field){\n return SUB_TYPE_LABEL.equalsIgnoreCase(field);\n }", "private static boolean hasFieldProperModifier(Object object, Field field) {\n return ((object instanceof Class<?> && Modifier.isStatic(field.getModifiers()))\n || ((object instanceof Class<?> == false && Modifier.isStatic(field.getModifiers()) == false)));\n }", "@Override\n public boolean isFieldLine(int line) {\n return lineToField.containsKey(line);\n }", "public boolean hasField(String s)\n {\n int i;\n for (i=0; i<fields.size(); i++)\n {\n String name = (String) fields.elementAt(i);\n if (name.equalsIgnoreCase(s))\n return true;\n }\n return false;\n }", "public boolean isPrimitiveOrString(Field field) {\r\n Class type = field.getType();\r\n String name = type.getName();\r\n\r\n return type.isPrimitive() || name.startsWith(\"java\") || name.startsWith(\"sun\");\r\n }", "boolean hasFieldEnum();", "public boolean hasField (String f) {\n return getFieldTypMap().containsKey(f);\n }", "public static boolean patternField(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"patternField\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, PATTERN_FIELD, \"<pattern field>\");\n r = patternField_0(b, l + 1);\n r = r && pattern(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "private boolean isFieldNumeric( String fsComponent, String fsField )\n {\n try\n {\n VSMetaQuery loVsmq =\n AMSDataObject.constructMetaQueryFromMetaInfoTable( fsComponent, getSession() ) ;\n\n VSMetaColumn loColumn = loVsmq.getMetaColumn( fsField ) ;\n\n /*\n * Versata returns true if the data type is Yes/No\n * In that case we return false\n */\n if ( loColumn.getColumnType() == DataConst.BIT )\n {\n return false ;\n } /* end if ( loColumn.getColumnType() == DataConst.BIT ) */\n else\n {\n return loColumn.isNumberType() ;\n } /* end else */\n } /* end try */\n catch ( Exception loEx )\n {\n return false ;\n } /* end catch */\n }", "boolean hasField3();", "public static boolean fieldFormalParameter(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"fieldFormalParameter\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, FIELD_FORMAL_PARAMETER, \"<field formal parameter>\");\n r = fieldFormalParameter_0(b, l + 1);\n r = r && fieldFormalParameter_1(b, l + 1);\n r = r && fieldFormalParameter_2(b, l + 1);\n r = r && fieldFormalParameter_3(b, l + 1);\n r = r && consumeToken(b, DOT);\n r = r && referenceExpression(b, l + 1);\n r = r && fieldFormalParameter_6(b, l + 1);\n r = r && fieldFormalParameter_7(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INNER_STR:\n return isSetInner_str();\n case INNER_DOUBLE:\n return isSetInner_double();\n }\n throw new IllegalStateException();\n }", "boolean hasFieldTypeId();", "private boolean checkField(Field field) {\n if (field.isAnnotationPresent(Transient.class) || field.isAnnotationPresent(JsonIgnore.class)) {\n return false;\n }\n\n return (field.isAnnotationPresent(Column.class) || field.isAnnotationPresent(Id.class) ||\n field.isAnnotationPresent(ManyToOne.class) || field.isAnnotationPresent(ManyToMany.class) ||\n field.isAnnotationPresent(OneToOne.class) || field.isAnnotationPresent(OneToMany.class) ||\n field.isAnnotationPresent(ElementCollection.class) || field.isAnnotationPresent(Embedded.class));\n }", "boolean isFieldUnitIgnored(final int field) {\n\t\treturn isFieldUnitIgnored(pattern, field);\n\t}", "boolean hasField2();", "boolean hasField4();", "private boolean isAcceptable(final Field field) {\n return Modifier.isStatic(field.getModifiers())\n && (field.getType() == String.class || field.getType().isAssignableFrom(List.class) || field.getType()\n .isArray() && field.getType().getComponentType() == String.class);\n }", "@Override\r\n\tpublic boolean visit(FieldDeclaration node) {\n\t\treturn super.visit(node);\r\n\t}", "boolean hasField0();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }", "java.lang.String getField1833();", "public interface ScopedField {\n\n /**\n * @return whether or not this field is for internal use only\n */\n boolean isInternal();\n\n /**\n * @return whether or not this field can be used to create reports\n */\n boolean isInReportMaker();\n}", "java.lang.String getField1216();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case LST_SUB_SVR_INFO:\n return isSetLstSubSvrInfo();\n case LST_CHANNEL:\n return isSetLstChannel();\n case LST_MANAGE_CHANNEL:\n return isSetLstManageChannel();\n case I_SVR_TYPE:\n return isSetISvrType();\n case STR_IP:\n return isSetStrIP();\n case I_LBPORT:\n return isSetILBPort();\n case I_NET_PORT:\n return isSetINetPort();\n case I_CONTROL_PORT:\n return isSetIControlPort();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isIgnoredField(String field, DeclaredType type) {\n boolean res = false;\n String fqcn = type.toString();\n String simpleName = type.asElement().getSimpleName().toString();\n\n String lastIgnoredField = null;\n for (String ignoredField : fields) {\n lastIgnoredField = ignoredField;\n if (ignoredField.equalsIgnoreCase(field)) {\n res = true;\n break;\n } else if (ignoredField.contains(\".\")) {\n if ((fqcn + \".\" + field).equalsIgnoreCase(ignoredField)) {\n res = true;\n break;\n } else if ((simpleName + \".\" + field).equalsIgnoreCase(ignoredField)) {\n res = true;\n break;\n }\n }\n }\n\n if (res) { // remove ignore field from unused\n unusedFields.remove(lastIgnoredField);\n } else if (parent != null) { // Call parent since we have nothing to check here\n res = parent.isIgnoredField(field, type);\n }\n return res;\n }", "java.lang.String getField1022();", "java.lang.String getField1832();", "java.lang.String getField1831();", "public void checkFields(){\n }", "java.lang.String getField1834();", "public static boolean validateField(String field) {\n return !TextUtils.isEmpty(field);\n }", "boolean hasField1();", "java.lang.String getField1812();", "java.lang.String getField1232();", "private boolean isPersistentField(DeployBeanProperty prop) {\n Field field = prop.getField();\n if (field == null) {\n return false;\n }\n int modifiers = field.getModifiers();\n return !(Modifier.isStatic(modifiers) || Modifier.isTransient(modifiers)) && !field.isAnnotationPresent(Transient.class);\n }", "static boolean isFieldUnitIgnored(final String pattern, final int field) {\n\t\tint fieldLevel = CALENDAR_FIELD_TO_LEVEL[field];\n\t\tint level;\n\t\tchar ch;\n\t\tboolean inQuote = false;\n\t\tchar prevCh = 0;\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < pattern.length(); ++i) {\n\t\t\tch = pattern.charAt(i);\n\t\t\tif (ch != prevCh && count > 0) {\n\t\t\t\tlevel = PATTERN_CHAR_TO_LEVEL[prevCh - PATTERN_CHAR_BASE];\n\t\t\t\tif (fieldLevel <= level) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif (ch == '\\'') {\n\t\t\t\tif ((i + 1) < pattern.length() && pattern.charAt(i + 1) == '\\'') {\n\t\t\t\t\t++i;\n\t\t\t\t} else {\n\t\t\t\t\tinQuote = !inQuote;\n\t\t\t\t}\n\t\t\t} else if (!inQuote && ((ch >= 0x0061 /*'a'*/&& ch <= 0x007A /*'z'*/) || (ch >= 0x0041 /*'A'*/&& ch <= 0x005A /*'Z'*/))) {\n\t\t\t\tprevCh = ch;\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\tif (count > 0) {\n\t\t\t// last item\n\t\t\tlevel = PATTERN_CHAR_TO_LEVEL[prevCh - PATTERN_CHAR_BASE];\n\t\t\tif (fieldLevel <= level) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "java.lang.String getField1003();", "public boolean isKnownNonManagedField(String classPath,\n String fieldName,\n String fieldSig)\n throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError\n {\n affirm(classPath);\n affirm(fieldName);\n affirm(fieldSig);\n try {\n final JDOClass clazz = getJDOClass(classPath);\n if (clazz == null) {\n // class not known to be persistence-capable\n return true;\n }\n \n // check whether field is managed only if field's\n // persistence-modifier is known by the JDO model\n final JDOField field = clazz.getField(fieldName);\n if (field != null && (field.getPersistenceModifier()\n != PersistenceModifier.UNSPECIFIED)) {\n // only field's persistence-modifier known by model\n return !field.isManaged();\n }\n\n // field not known by JDOClass (not specified in JDO XML)\n // apply model's method of default calculation without\n // changing the model's state\n JavaType fieldType = javaModel.getJavaType(javaModel.getTypeName(fieldSig));\n affirm(fieldType != null, \n \"cannot get java type for: \" + fieldSig);\n return !TypeSupport.isPersistenceFieldType(fieldType);\n } catch (ModelFatalException ex) {\n throw new EnhancerMetaDataUserException(ex);\n }\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case CIPHERTEXT:\n return isSetCiphertext();\n }\n throw new IllegalStateException();\n }", "boolean getFieldTypeIdNull();", "java.lang.String getField1822();", "private boolean isPublic(FieldBinding fieldBinding) {\n \t\tif (fieldBinding instanceof InterTypeFieldBinding) return true;\n \t\treturn fieldBinding.isPublic();\n \t}", "public boolean hasField(String fname) {\n boolean result = false;\n\n try {\n cut.getField(fname);\n result = true;\n } catch (Exception e) {\n }\n\n return result;\n }", "java.lang.String getField1218();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "private void checkForCLassField(ClassField classField, Obj obj) {\n \tif (obj == Tab.noObj) {\r\n\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+obj.getName()+\" nije deklarisano! \", null);\r\n \t}\r\n \r\n \t\r\n \tif (obj.getType().getKind() != Struct.Class && obj.getType().getKind() != Struct.Interface) {\r\n \t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+ obj.getName() +\" mora oznacavati objekat unutrasnje klase!\", null);\r\n \t}\r\n \t\r\n \tCollection<Obj> lokals = null;\r\n \t\r\n \tif (obj.getName().equals(\"this\")) { // ja ovo zovem iz funkcije klase, zaro uzimam scope klase; moze samo prvi put (this.a)\r\n \t\tlokals = Tab.currentScope().getOuter().getLocals().symbols();\r\n \t}\r\n \telse {\r\n \t\tlokals = obj.getType().getMembers();\r\n \t}\r\n \r\n \tStruct klasa = obj.getType();\r\n \tObj elem = null;\r\n \tint ok = 0 ;\r\n \t\r\n \twhile (klasa != null) {\r\n\t \telem = null;\r\n\t \tfor(Iterator<Obj> iterator = lokals.iterator();iterator.hasNext();) {\r\n\t \t\telem = iterator.next();\r\n\t \t\tif (elem.getName().equals(classField.getFieldName())) {\r\n\t \t\t\tok = 1;\r\n\t \t\t\tbreak;\r\n\t \t\t}\r\n\t \t}\r\n\t \t\r\n\t \tif (ok == 1)\r\n\t \t\tbreak;\r\n\t \tklasa = klasa.getElemType();\r\n\t \tif (klasa != null) {\r\n\t \t\tlokals = klasa.getMembers();\r\n\t \t}\r\n \t}\r\n \t\r\n \tclassField.obj = elem;\r\n \t\r\n \tif (ok == 0) {\r\n \t\tclassField.obj = Tab.noObj;\r\n \t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+classField.getFieldName()+\" mora biti polje ili metoda navedene unutrasnje klase!\", null);\r\n \t}\r\n \telse {\r\n \t\tStruct trenutna = null;\r\n \t\tif (currentClass != null)\r\n \t\t\ttrenutna = currentClass;\r\n \t\tif (currentAbsClass != null)\r\n \t\t\ttrenutna = currentAbsClass;\r\n// \t\tif (trenutna == null) // dal je moguce? ---> jeste u main-u npr\r\n// \t\t\treturn;\r\n \t\t// znaci polje sam klase \"klasa\" ; zovem se sa . nesto...sig sam polje ili metoda klase\r\n \t\tif (elem.getKind() == Obj.Fld || elem.getKind() == Obj.Meth) { \r\n \t\t\tif (elem.getFpPos() == 1 || elem.getFpPos() == -9) { // public\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (elem.getFpPos() == 2 || elem.getFpPos() == -8) { // protected\r\n \t\t\t\tif (trenutna == null) {\r\n \t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, protected je!\", null);\r\n \t\t\t\t}\r\n \t\t\t\telse {\r\n \t\t\t\t\tif (!(checkCompatibleForClasses(klasa, trenutna))) { // ako je klasa u kojoj se nalazim NIJE izvedena iz klase iz koje potice field\r\n \t\t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, protected je!\", null);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (elem.getFpPos() == 3 || elem.getFpPos() == -7) { // private\r\n \t\t\t\tif (trenutna != klasa) {\r\n \t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, private je!\", null);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n// \t\tif (elem.getKind() == Obj.Meth) {\r\n// \t\t\tif (elem.getFpPos() == 1 || elem.getFpPos() == -9) { // nikad ne bi smeo ni da zove aps ... [-9,-8,-7] \r\n// \t\t\t//ONDA OSTAJE ISTI USLOV ZA METH I FLD\t\r\n// \t\t\t}\r\n// \t\t}\r\n \t}\r\n \t\r\n }", "java.lang.String getField1033();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case TOKEN_INDEX:\n return isSetTokenIndex();\n case TEXT:\n return isSetText();\n case TEXT_SPAN:\n return isSetTextSpan();\n case RAW_TEXT_SPAN:\n return isSetRawTextSpan();\n case AUDIO_SPAN:\n return isSetAudioSpan();\n }\n throw new java.lang.IllegalStateException();\n }", "@Override\n\tpublic boolean isValid(SchemaField field, Data data) {\n\t\treturn false;\n\t}", "java.lang.String getField1432();", "private boolean isFieldInCar(String fieldName)\n {\n boolean result = true;\n try\n {\n CarDO.class.getDeclaredField(fieldName);\n }\n catch (NoSuchFieldException ex)\n {\n result = false;\n }\n return result;\n }", "java.lang.String getField1842();" ]
[ "0.6027546", "0.58527404", "0.5777854", "0.55922973", "0.54688966", "0.5433169", "0.5432952", "0.5397106", "0.53572273", "0.535342", "0.53517896", "0.5337468", "0.53046465", "0.5303826", "0.5303087", "0.5297618", "0.5280643", "0.52623737", "0.5254701", "0.5244146", "0.5238103", "0.52133083", "0.52051836", "0.5189248", "0.5187067", "0.51841843", "0.51765925", "0.51666534", "0.5165526", "0.5161115", "0.5152462", "0.5147152", "0.5141494", "0.51357615", "0.5134355", "0.51227975", "0.5121092", "0.511836", "0.5105315", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5099052", "0.5096781", "0.50956744", "0.509313", "0.5091737", "0.50914556", "0.5088924", "0.50879294", "0.5085172", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.50799996", "0.5076594", "0.5069474", "0.50576985", "0.50549203", "0.5052303", "0.50518686", "0.5036384" ]
0.8627732
0
Build an array of property files to search. The returned array contains the property fields in order from most specific to most generic. So, in the FR_fr locale, it will return file_fr_FR.properties, then file_fr.properties, and finally file.properties.
private static final String[] buildVariants(String root) { if (nlSuffixes == null) { // build list of suffixes for loading resource bundles String nl = Locale.getDefault().toString(); ArrayList<String> result = new ArrayList<String>(4); int lastSeparator; while (true) { result.add('_' + nl + EXTENSION); lastSeparator = nl.lastIndexOf('_'); if (lastSeparator == -1) { break; } nl = nl.substring(0, lastSeparator); } // add the empty suffix last (most general) result.add(EXTENSION); nlSuffixes = result.toArray(new String[result.size()]); } root = root.replace('.', '/'); String[] variants = new String[nlSuffixes.length]; for (int i = 0; i < variants.length; i++) { variants[i] = root + nlSuffixes[i]; } return variants; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadPropertyFiles() {\n if ( _sax_panel != null ) {\n _property_files = ( ( SAXTreeModel ) _sax_panel.getModel() ).getPropertyFiles();\n if ( _property_files == null )\n return ;\n HashMap filelist = new HashMap();\n ArrayList resolved = new ArrayList();\n Iterator it = _property_files.keySet().iterator();\n while ( it.hasNext() ) {\n Object o = it.next();\n if ( o == null )\n continue;\n File f = null;\n if ( o instanceof File ) {\n f = ( File ) o;\n Long lastModified = ( Long ) _property_files.get( f );\n filelist.put( f, lastModified );\n }\n else if ( _project != null ) {\n String value = o.toString();\n String filename = value;\n if ( value.startsWith( \"${\" ) && value.endsWith( \"}\" ) ) {\n filename = filename.substring( 2, filename.length() - 1 );\n }\n filename = _project.getProperty( filename );\n if ( filename != null )\n f = new File( filename );\n if ( f != null && !f.exists() ) {\n f = new File( _project.getBaseDir(), filename );\n }\n if ( f != null && f.exists() ) {\n filelist.put( f, new Long( f.lastModified() ) );\n resolved.add( value );\n }\n // see issue #21, Ant standard is to quietly ignore files not found\n //else\n // _logger.warning( \"Unable to find property file for \" + value );\n }\n }\n it = resolved.iterator();\n while ( it.hasNext() ) {\n filelist.remove( it.next() );\n }\n _property_files = filelist;\n }\n }", "private List<DocumentFile> convertFromProperties(@NonNull final Context context, @NonNull final List<DocumentProperties> properties) {\n final List<DocumentFile> resultFiles = new ArrayList<>();\n for (DocumentProperties result : properties) {\n DocumentFile docFile = fromTreeUriCached(context, result.uri);\n // Following line should be the proper way to go but it's inefficient as it calls queryIntentContentProviders from scratch repeatedly\n //DocumentFile docFile = DocumentFile.fromTreeUri(context, uri.left);\n if (docFile != null)\n resultFiles.add(new CachedDocumentFile(docFile, result.name, result.size, result.isDirectory));\n }\n return resultFiles;\n }", "private static File findPropertyFile(String startPath) {\n var defaultConfig = new File(startPath);\n var list = defaultConfig\n .listFiles((dir, name) -> name\n .endsWith(GENERAL_PROPERTIES));\n\n if (nonNull(list) && list.length > 0) {\n return list[0];\n } else if (nonNull(list)) {\n var inner = defaultConfig.listFiles();\n File result = null;\n for (File element : inner) {\n if (element.isDirectory()) {\n result = findPropertyFile(element.getPath());\n }\n if (nonNull(result)) {\n return result;\n }\n }\n }\n return null;\n }", "private static Properties resolveLogFiles(final Properties logProps) {\n\n Properties filteredProps = new Properties();\n\n for(String key : logProps.stringPropertyNames()) {\n if(key.endsWith(\".File\")) {\n String filename = logProps.getProperty(key);\n if(filename.startsWith(\"/\")) {\n filteredProps.put(key, filename);\n } else {\n filteredProps.put(key, systemInstallDir() + filename);\n }\n } else {\n filteredProps.put(key, logProps.getProperty(key));\n }\n }\n\n return filteredProps;\n }", "public Map<String, String> fetchPropertyFromFile()\n {\n Map<String, String> components = new HashMap<>();\n Properties props = new Properties();\n InputStream in = null;\n try {\n in = new FileInputStream(\"/slog/properties/LogAnalyzer.properties\");\n props.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n catch (IOException e) {\n e.printStackTrace();\n }\n// Add component config , logname RegEx pattern to a Map. This map will be used to search matching files and forming logstash command\n for (String key : props .stringPropertyNames())\n {\n System.out.println(key + \" = \" + props .getProperty(key));\n components.put (key, props.getProperty(key));\n }\n\n return components;\n }", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "public static Properties getProperties(String locale){\n\t\tInputStream input = null;\n\t\tProperties prop = new Properties();\n\ttry {\n\n\n\t\t//input = new FileInputStream(\"../properties/messages_\"+locale+\".properties\");\n\t\tinput = AppLocaleConstant.class.getResourceAsStream(\"/properties/messages_\"+locale+\".properties\");\n\t\t// load a properties file\n\t\tprop.load(new InputStreamReader(input, Charset.forName(\"UTF-8\")));\n\n\t} catch (IOException ex) {\n\t\tex.printStackTrace();\n\t} finally {\n\t\tif (input != null) {\n\t\t\ttry {\n\t\t\t\tinput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n\treturn prop;\n\t}", "public abstract List<BeanPropertyDefinition> findProperties();", "private List<Locale> findAvailableLocales(File directory) {\n\t\t\n\t\tif(directory == null) throw new NullPointerException();\n\t\t\n\t\tArrayList<Locale> localeList = new ArrayList<Locale>();\n\n\t\tif(!directory.exists() || !directory.isDirectory()) {\n\t\t\treturn localeList;\n\t\t}\n\n\t\tFile[] files = directory.listFiles();\n\t\t\n\t\tPattern pattern01 = Pattern.compile(RESOURCE_BUNDLE_BASE_NAME + \"(?:_([.[^_]]+)){1}(?:_([.[^_]]+)){1}(?:_(.+)){0,}\" + \"\\\\.\" + RESOURCE_BUNDLE_EXTENSION);\n\t\tPattern pattern02 = Pattern.compile(RESOURCE_BUNDLE_BASE_NAME + \"(?:_([.[^_]]+)){1}(?:_([.[^_]]+)){0,}\" + \"\\\\.\" + RESOURCE_BUNDLE_EXTENSION);\n\t\t\n//\t\tSystem.out.println(\"\\n\\n\\n\");\n\n\t\tfor(File file : files) {\n\t\t\t\n\t\t\tString fileName = file.getName();\n\t\t\t\n\t\t\tString language = \"\";\n\t\t\tString country = \"\";\n\t\t\tString variant = \"\";\n\t\t\t\n//\t\t\tSystem.out.println(\"testing file \\\"\" + fileName + \"\\\"\");\n\n\t\t\tMatcher matcher01 = pattern01.matcher(fileName);\n\t\t\t\n\t\t\tif(matcher01.matches()) {\n\t\t\t\t\n//\t\t\t\tfor(int i = 0; i < matcher01.groupCount(); i++) {\n//\t\t\t\t\tSystem.out.println(i + \" = \" + matcher01.group(i + 1));\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlanguage = matcher01.group(1);\n\t\t\t\tcountry = matcher01.group(2);\n\t\t\t\tvariant = matcher01.group(3) != null ? matcher01.group(3) : \"\";\n\t\t\t\t\n\t\t\t\tlocaleList.add(new Locale(matcher01.group(1), matcher01.group(2), matcher01.group(3) != null ? matcher01.group(3) : \"\"));\n\t\t\t\n\t\t\t} else {\n\n\t\t\t\tMatcher matcher02 = pattern02.matcher(fileName);\n\t\t\t\t\n\t\t\t\tif(matcher02.matches()) {\n\t\t\t\t\t\n//\t\t\t\t\tfor(int i = 0; i < matcher02.groupCount(); i++) {\n//\t\t\t\t\t\tSystem.out.println(i + \" = \" + matcher02.group(i + 1));\n//\t\t\t\t\t}\n\n\t\t\t\t\tlanguage = matcher02.group(1);\n\t\t\t\t\tcountry = matcher02.group(2) != null ? matcher02.group(2) : \"\";\n\n\t\t\t\t\tlocaleList.add(new Locale(matcher02.group(1), matcher02.group(2) != null ? matcher02.group(2) : \"\"));\n\n\t\t\t\t} else {\n//\t\t\t\t\tSystem.out.println(\"not matches\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tSystem.out.println(\"language = \" + language);\n//\t\t\tSystem.out.println(\"country = \" + country);\n//\t\t\tSystem.out.println(\"variant = \" + variant);\n\t\t\t\n//\t\t\tSystem.out.println();\n\t\t}\n\n//\t\tfor(Locale l : localeList) {\n//\t\t\tSystem.out.println(\"found -> \" + \"language=\" + l.getLanguage() + \",country=\" + l.getCountry() + \",variant=\" + l.getVariant());\n//\t\t}\n\t\t\n\t\treturn localeList;\n\t}", "File getPropertiesFile();", "Property[] getProperties();", "public static HashMap<String,FileConfig> listInstalledConfigs(String propertyFolderPath, Predicate<String> p, Function<String,String> filenameToFilecode ) {\n\t\tLogger.trace(\"init...\");\n\t\tFile f = new File( propertyFolderPath );\n\t\tif (!f.exists()) {\n\t\t\t//TODO Exception\n\t\t\treturn null;\n\t\t}\n\t\tFile[] foundFiles = f.listFiles((dir, name) -> {\n\t\t\t// Logger.trace(\"dir=\"+dir+\", name=\"+name);\n\t\t\treturn p.test(name);\n\t\t});\n\t\tHashMap<String,FileConfig> foundConfigs=new HashMap<>();//new FileConfig[foundFiles.length];//found\n\t\tfor (int i = 0; i < foundFiles.length; i++) {\n\t\t\tString s=filenameToFilecode.apply( foundFiles[i].getName() );\n\t\t\tfoundConfigs.put(s, new FileConfig(s, foundFiles[i] ) );\n\t\t}\n\t\treturn foundConfigs;\n\t}", "public ArrayList<Property> getProperties() {\r\n\t\ttry {\r\n\t\t\tproperties.clear();\r\n\t\t\tFileInputStream fis = new FileInputStream(PROPERTY_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \t\r\n \tProperty obj = null;\r\n \twhile ((obj=(Property)ois.readObject())!=null) {\r\n \t\tproperties.add(obj);\r\n \t}\r\n \tois.close();\r\n }\r\n\t\tcatch (EOFException e) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n }\r\n catch (ClassNotFoundException e) {\r\n \te.printStackTrace();\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n }\r\n\t\treturn properties;\r\n\t}", "public ArrayList<Pair> getAllProperties(String filePath2, Object keyResource) {\n\t\tModel model = ModelFactory.createDefaultModel();\n\t\tmodel.read(filePath2);\n\n\t\t/*\n\t\t * String queryString =\n\t\t * \"PREFIX : <http://extbi.lab.aau.dk/ontology/business/>\\r\\n\" +\n\t\t * \"PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" +\n\t\t * \"PREFIX afn: <http://jena.apache.org/ARQ/function#>\\r\\n\" +\n\t\t * \"SELECT ?v ?extrLabel ?o\\r\\n\" + \"WHERE\\r\\n\" +\n\t\t * \" {\t?v\ta\t:Municipality ;\\r\\n\" + \"\t?p\t?o\\r\\n\" +\n\t\t * \"\tBIND(afn:localname(?p) AS ?extrLabel)\\r\\n\" + \"}\";\n\t\t */\n\n\t\tString queryString = \"SELECT ?p ?o WHERE {?s ?p ?o. \" + \"FILTER regex(str(?s), '\" + keyResource.toString()\n\t\t\t\t+ \"')}\";\n\t\t\n\t\tQuery query = QueryFactory.create(queryString);\n\t\tQueryExecution qe = QueryExecutionFactory.create(query, model);\n\t\tResultSet results = ResultSetFactory.copyResults(qe.execSelect());\n\t\t\n\t\tArrayList<Pair> propertylist = new ArrayList<>();\n\t\t\n\t\twhile (results.hasNext()) {\n\t\t\tQuerySolution querySolution = (QuerySolution) results.next();\n\t\t\t\n\t\t\tRDFNode property = querySolution.get(\"p\");\n\t\t\tRDFNode value = querySolution.get(\"o\");\n\t\t\t\n\t\t\tString propertyString = property.toString();\n\t\t\tpropertyString = new StringBuilder(propertyString).reverse().toString();\n\t\t\t\n\t\t\tString regEx = \"(.*?)/(.*?)$\";\n\t\t\tPattern pattern = Pattern.compile(regEx);\n\t\t\tMatcher matcher = pattern.matcher(propertyString);\n\t\t\t\n\t\t\twhile (matcher.find()) {\n\t\t\t\tpropertyString = matcher.group(1);\n\t\t\t\tpropertyString = new StringBuilder(propertyString).reverse().toString();\n\t\t\t\t\n\t\t\t\tPair pair = new Pair();\n\t\t\t\tpair.setKey(propertyString);\n\t\t\t\tpair.setValue(value);\n\t\t\t\tpropertylist.add(pair);\n\t\t\t}\n\t\t}\n\t\t\n\t\tqe.close();\n\t\t\n\t\treturn propertylist;\n\t}", "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 }", "String getPropertyValue(String filename, String lang, String key);", "public static Properties getProperties(String filename)\r\n/* 13: */ {\r\n/* 14:26 */ Properties properties = new Properties();\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17:29 */ properties.load(new FileInputStream(System.getProperty(\"user.dir\") + \"/properties/\" + filename));\r\n/* 18: */ }\r\n/* 19: */ catch (IOException ex)\r\n/* 20: */ {\r\n/* 21:31 */ logger.error(\"Can't load properties file: \" + filename, ex);\r\n/* 22: */ }\r\n/* 23:33 */ return properties;\r\n/* 24: */ }", "String[] getPropertyKeys();", "private static ArrayList<File> buildFilesArray() {\n ArrayList<File> result = new ArrayList<>();\n rAddFilesToArray(workingDirectory, result);\n return result;\n }", "protected List<String> getFileNames(@NonNull ConfigQuery query, @NonNull T context) {\n val paths = interpolateVarStrings(getPaths(), query);\n log.trace(\"{} retrieving filenames for paths: {}\", this, paths);\n return paths.stream()\n .flatMap(name -> maybeListDirectory(name, context))\n .distinct()\n .collect(Collectors.toList());\n }", "public static List<String> getFilesFromDirectory(){\n File wordTextFolder = new File(FOLDER_OF_TEXT_FILES.toString());\n File[] filesInsideFolder = wordTextFolder.listFiles();\n List<String> paths = new ArrayList<>();\n String name;\n\n for (File txtFile : filesInsideFolder){\n paths.add( txtFile.getPath() );\n name = txtFile.getName();\n name = name.substring(0, name.lastIndexOf('.'));\n\n if(name.length() > Table.maxFileNameLength){\n Table.setMaxFileNameLength(name.length());\n }\n }\n return paths;\n }", "public Map<String, FileModel> listFiles(final String fileExt) {\r\n Set<String> files = FileUtils.getListFiles(path, fileExt);\r\n\r\n if (files.isEmpty()) {\r\n return null;\r\n } else {\r\n Map<String, FileModel> listFiles = new HashMap<>();\r\n Map<String, FileModel> listLangFiles = new HashMap<>();\r\n\r\n for (String file : files) {\r\n\r\n String fileLangSuffix = file.substring(file.lastIndexOf(\"_\") + 1)\r\n .replace(Constants.XML_FILE_EXT, \"\");\r\n\r\n if (mapLanguages.containsKey(fileLangSuffix)) {\r\n if (lang.getLangFrom().equals(mapLanguages.get(fileLangSuffix))) {\r\n String fileOriginal = file.substring(0, file.lastIndexOf(\"_\"))\r\n .concat(Constants.XML_FILE_EXT);\r\n\r\n listLangFiles.put(fileOriginal, new FileModel(file, fileLangSuffix));\r\n }\r\n } else {\r\n listFiles.put(file, new FileModel(file, Constants.LANG_SUFFIX_DEFAULT));\r\n }\r\n }\r\n listLangFiles.forEach(listFiles::put);\r\n\r\n return listFiles;\r\n }\r\n }", "public static void extractValues() throws IOException{\n GenerateFile generateFile = new GenerateFile();\n Stream<String> fileStream1 = createStreamFromPath(\"src\"+File.separator+\"test.properties\");\n logger.info(fileStream1.toString());\n Set<String> extractedKeys = generateFile.extractvalsFromPropertiesFile(fileStream1);\n List<String> newString = new ArrayList<>(extractedKeys);\n System.out.println(extractedKeys);\n generateFile.createFileFromList(newString,\"values.txt\");\n }", "public abstract String getPropertyFile();", "private List<DocumentProperties> queryDocumentFiles(\n @NonNull final DocumentFile parent,\n final FileHelper.NameFilter nameFilter,\n boolean listFolders,\n boolean listFiles,\n boolean stopFirst) {\n if (null == client) return Collections.emptyList();\n final List<DocumentProperties> results = new ArrayList<>();\n\n try (Cursor c = getCursorFor(parent.getUri())) {\n if (c != null)\n while (c.moveToNext()) {\n final String documentId = c.getString(0);\n final String documentName = c.getString(1);\n boolean isFolder = c.getString(2).equals(DocumentsContract.Document.MIME_TYPE_DIR);\n final long documentSize = c.getLong(3);\n\n // FileProvider doesn't take query selection arguments into account, so the selection has to be done manually\n if ((null == nameFilter || nameFilter.accept(documentName)) && ((listFiles && !isFolder) || (listFolders && isFolder)))\n results.add(new DocumentProperties(buildDocumentUriUsingTreeCached(parent.getUri(), documentId), documentName, documentSize, isFolder));\n\n // Don't do the whole loop if the point is to find a single element\n if (stopFirst && !results.isEmpty()) break;\n }\n } catch (Exception e) {\n Timber.w(e, \"Failed query\");\n }\n return results;\n }", "public List getFiles(HasMetricsFilter filter) {\n if (fileLookup == null) {\n buildFileLookupMap();\n }\n List<BaseFileInfo> result = newArrayList();\n for (BaseFileInfo fileInfo : fileLookup.values()) {\n if (filter.accept(fileInfo)) {\n result.add(fileInfo);\n }\n }\n return result;\n }", "public static List<File> getSettingsFiles() {\n\t\tString[] pathList = System.getProperty(SETTINGS_FILE_PROPERTY, DEFAULT_SETTINGS_FILEPATH).split(\n\t\t\t\tFile.pathSeparator);\n\t\tList<File> result = new ArrayList<File>();\n\t\tfor (String path : pathList) {\n\t\t\tif (path.trim().length() != 0) {\n\t\t\t\tFile settingsFile = new File(path);\n\t\t\t\tif (settingsFile.isFile()) {\n\t\t\t\t\tresult.add(settingsFile);\n\t\t\t\t} else {\n\t\t\t\t\tlog.debug(\"Ignoring non-existing file {}\", settingsFile);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private File[] getFiles() {\n\n if (mPPTFilePath == null) {\n mPPTFilePath = getArguments().getString(PPTPathString);\n }\n\n String Path = mPPTFilePath;\n File mFile = new File(Path);\n if (mFile.exists() && mFile.isDirectory() && mFile.listFiles()!=null) {\n\n return mFile.listFiles();\n } else {\n Log.d(TAG, \"File==null\");\n return null;\n }\n }", "public HashMap<String, String> readPropertyFile(String propertyFilePath) throws Exception {\n File propertyFile = null;\n InputStream inputStream = null;\n Properties properties = null;\n HashMap<String, String> propertyMap = new HashMap<String, String>();\n try {\n\n //creating file object\n propertyFile = new File(propertyFilePath);\n\n //check if property file exists on hard drive\n if (propertyFile.exists()) {\n inputStream = new FileInputStream(propertyFile);\n // check if the file exists in web environment or relative to class path\n } else {\n inputStream = getClass().getClassLoader().getResourceAsStream(propertyFilePath);\n }\n\n if (inputStream == null) {\n throw new Exception(\"FILE NOT FOUND : inputStream = null : \" + propertyFilePath);\n }\n\n properties = new Properties();\n properties.load(inputStream);\n Enumeration enuKeys = properties.keys();\n while (enuKeys.hasMoreElements()) {\n\n String key = (String) enuKeys.nextElement();\n String value = properties.getProperty(key);\n\n //System.out.print(\"key = \"+key + \" : value = \"+value);\n propertyMap.put(key, value);\n }\n if (propertyMap == null) {\n throw new Exception(\"readPropertyFile : propertyMap = null\");\n }\n\n return propertyMap;\n } catch (Exception e) {\n throw new Exception(\"readPropertyFile : \" + e.toString());\n } finally {\n try {\n inputStream.close();\n } catch (Exception e) {\n }\n try {\n properties = null;\n } catch (Exception e) {\n }\n }\n }", "public static HashMap<String, String> listeFichier(String source, String extension) {\n if (extension.length() < 1) {\n return null;\n }\n HashMap<String, String> sources = new HashMap<>();\n String tmp = \"\";\n String src = \"\";\n try {\n Path path = Paths.get(source);\n DirectoryStream<Path> stream;\n stream = Files.newDirectoryStream(path);\n try {\n Iterator<Path> iterator = stream.iterator();\n while (iterator.hasNext()) {\n Path p = iterator.next();\n tmp = p.toString();\n tmp = tmp.substring(tmp.length() - extension.length());\n if (tmp.equals(extension)) {\n if (p.getName(0).toString().equals(\"Ressource\")) {\n tmp = \"\";\n for (int i = 1; i < p.getNameCount() - 1; i++) {\n tmp += p.getName(i) + \"/\";\n }\n }\n src = tmp + p.getName(p.getNameCount() - 1).toString();\n tmp = p.getName(p.getNameCount() - 1).toString();\n tmp = tmp.substring(0, tmp.length() - (extension.length() + 1));\n sources.put(tmp, src);\n }\n }\n } finally {\n stream.close();\n }\n } catch (IOException ex) {\n System.out.println(\"Bug lecture des sources, source ou/et extensions incorectes\");\n }\n return sources;\n }", "static Multimap<String, File> createMapOfFiles(File folder) throws Exception {\n Multimap<String, File> map = ArrayListMultimap.create();\n return createMapOfFiles(folder, map);\n }", "public static List<String> getProcessorPropertyConfigNames(NifiProperty property) {\n return getConfigPropertyKeysForNiFi(property).stream().map(k -> \"nifi.\" + toPropertyName(StringUtils.substringAfterLast(property.getProcessorType(), \".\") + \".\" +k)).collect(Collectors.toList());\n }", "private static Properties getProperties(final String filename) throws IOException, FileNotFoundException {\r\n \r\n final Properties result = new Properties();\r\n final InputStream propertiesStream = getInputStream(filename);\r\n result.load(propertiesStream);\r\n return result;\r\n }", "@Override\n public Map<String, String> readProperty(String fileName) {\n Map<String, String> result = new HashMap<>();\n Properties prop = new Properties();\n InputStream input;\n try {\n input = FullPropertyReader.class.getClassLoader().getResourceAsStream(fileName);\n prop.load(input);\n Set<String> strings = prop.stringPropertyNames();\n for (String string : strings) {\n result.put(string, prop.getProperty(string));\n }\n } catch (IOException e) {\n throw new PropertyReaderException(\"Trouble in FullPropertyReader\", e);\n }\n return result;\n }", "static List<String> plainFilenamesIn(File dir) {\n String[] files = dir.list(PLAIN_FILES);\n if (files == null) {\n return null;\n } else {\n Arrays.sort(files);\n return Arrays.asList(files);\n }\n }", "String[] getFileTypes();", "public List<String> getFiles();", "List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;", "List<Property<?>> getProperties(ProjectEntity entity);", "private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}", "public String[] getProperties() \n {\n String[] props = {\"discussionSearch.subject\", \"discussionSearch.content\"}; \n return props;\n }", "public static List<String> getProcessorNamePropertyConfigNames(NifiProperty property) {\n\n return getConfigPropertyKeysForNiFi(property).stream().map(k -> \"nifi.\" + toPropertyName(StringUtils.substringAfterLast(property.getProcessorType(), \".\") + \"[\"+property.getProcessorName()+\"].\" + k)).collect(Collectors.toList());\n }", "private static Properties readProps() {\n Path[] candidatePaths = {\n Paths.get(System.getProperty(\"user.home\"), \".sourcegraph-jetbrains.properties\"),\n Paths.get(System.getProperty(\"user.home\"), \"sourcegraph-jetbrains.properties\"),\n };\n\n for (Path path : candidatePaths) {\n try {\n return readPropsFile(path.toFile());\n } catch (IOException e) {\n // no-op\n }\n }\n // No files found/readable\n return new Properties();\n }", "private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}", "List<String> getFiles(String path, String searchPattern) throws IOException;", "public String[] getListOfFileInArray() {\n String[] items = new String[this.listOfFile.size()];\n for(int x=0;x<this.listOfFile.size();x++) {\n items[x]=this.listOfFile.get(x).getName();\n }\n return items;\n }", "public Properties getProperties(Properties getList);", "public String[] getPropertyNames();", "private Configuration searchConfigs(String propertyFile) throws ConfigurationException\n {\n return new PropertiesConfiguration(propertyFile);\n }", "public String[] GetAllFileNames() {\n \tFile dir = new File(fileStorageLocation.toString());\n \tString[] matchingFiles = dir.list(new FilenameFilter() {\n \t public boolean accept(File dir, String name) {\n \t return name.startsWith(\"1_\");\n \t }\n \t});\n \t\n \tfor (int i=0; i < matchingFiles.length; i++)\n \t{\n \t\tmatchingFiles[i] = matchingFiles[i].replaceFirst(\"1_\", \"\");\n \t}\n \t\n return matchingFiles;\n }", "public static void generateLocalizedFile() throws IOException {\n GenerateFile generateFile = new GenerateFile();\n Stream<String> fileStream1 = createStreamFromPath(\"src\"+File.separator+\"test.properties\");\n Stream<String> fileStream2 = createStreamFromPath(\"src\"+File.separator+\"test.txt\");\n Map<String, String> with_key_values = convertTomap(fileStream1, \"=\");\n Map<String, String> with_only_values = convertTomap(fileStream2, \"\\\\|\");\n if (!with_key_values.isEmpty() && with_key_values != null && !with_only_values.isEmpty() && with_only_values != null) {\n generateFile.createFileFromList(findAndAppendkeyWithValue(with_key_values, with_only_values),\"file.properties\");\n } else {\n logger.info(\"Either one of your files are not following the rules\");\n }\n }", "private static <T> InputStream getPropertiesFile(Class<T> clazz, ULocale locale) {\r\n String localeStr = \"\";\r\n if(locale != null) {\r\n localeStr = '_' + locale.getName();\r\n }\r\n String filePath = clazz.getName().replace(DOT, SLASH) + localeStr + PROPERTIES_EXT;\r\n return clazz.getClassLoader().getResourceAsStream(filePath);\r\n }", "public abstract List<String> getFiles( );", "List<String> getConfigFilePaths();", "ArrayList<PropertyMetadata> getProperties();", "private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }", "public static List<PathMatcher> loadAndParseFileSystemConfig(String configPropertyName) {\n String config = Config.get(configPropertyName, Normal.EMPTY);\n return parseFileSystemConfig(config);\n }", "public static List<String> getAllPropNames(Provider propCat) {\n return PersistenceCfgProperties.getKeys(propCat);\n }", "List<File> getSystemDescriptionFiles();", "public static ResourceBundle getProperties(String language) {\r\n\r\n\t\treturn properties.get(language);\r\n\t}", "@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 synchronized Enumeration<String> getPropertyNames() {\n return PropertyArray.enumerate(props);\n }", "protected FileNameExtensionFilter[] getExtensions()\n {\n List<FileNameExtensionFilter> filters = new ArrayList<FileNameExtensionFilter>();\n\n // Step through each engine factory\n for (ScriptEngineFactory factory : scriptFactories)\n {\n // Get the engine language name\n String name = factory.getLanguageName();\n\n // Check if the name begins with \"ECMA\"\n if (name.toLowerCase().startsWith(\"ecma\"))\n {\n // Use \"JavaScript\" in place of \"ECMAScript\"\n name = \"JavaScript\";\n }\n // Not JavaScript\n else\n {\n // Capitalize the first letter of the engine name\n name = Character.toString(name.charAt(0)).toUpperCase()\n + name.substring(1);\n }\n\n // Add the engine extension to the list\n filters.add(new FileNameExtensionFilter(name + \" files\",\n factory.getExtensions().toArray(new String[0])));\n }\n\n // Sort the engine extensions by extension description\n Collections.sort(filters, new Comparator<FileNameExtensionFilter>()\n {\n /******************************************************************\n * Compare the descriptions of two engine extensions. Force lower\n * case to eliminate case differences in the comparison\n *****************************************************************/\n @Override\n public int compare(FileNameExtensionFilter ext1, FileNameExtensionFilter ext2)\n {\n return ext1.getDescription().toLowerCase().compareTo(ext2.getDescription().toLowerCase());\n }\n });\n\n return filters.toArray(new FileNameExtensionFilter[0]);\n }", "private static void loadProperties(final String[] filenames, final Properties props,\n final Properties logProps) {\n\n for(String filename : filenames) {\n\n File f = new File(filename);\n\n if(!f.exists()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" does not exist\");\n System.exit(1);\n }\n\n if(!f.canRead()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" is not readable\");\n System.exit(1);\n }\n\n FileInputStream fis = null;\n Properties currProps = new Properties();\n\n try {\n fis = new FileInputStream(f);\n currProps.load(fis);\n if(f.getName().startsWith(\"log.\")) {\n logProps.putAll(resolveLogFiles(currProps));\n } else {\n props.putAll(currProps);\n }\n } catch(IOException ioe) {\n System.err.println(\"Start-up error: Problem reading configuration file, '\" + f.getAbsolutePath() + \"'\");\n Util.closeQuietly(fis);\n fis = null;\n System.exit(1);\n } finally {\n Util.closeQuietly(fis);\n }\n }\n }", "static List<String> plainFilenamesIn(String dir) {\n return plainFilenamesIn(new File(dir));\n }", "void mergeFileProperties() {\n JMeterProperty fileName = getProperty(FILE_NAME);\n JMeterProperty paramName = getProperty(FILE_FIELD);\n JMeterProperty mimeType = getProperty(MIMETYPE);\n HTTPFileArg oldStyleFile = new HTTPFileArg(fileName, paramName, mimeType);\n \n HTTPFileArgs fileArgs = getHTTPFileArgs();\n \n HTTPFileArgs allFileArgs = new HTTPFileArgs();\n if (oldStyleFile.isNotEmpty()) { // OK, we have an old-style file definition\n allFileArgs.addHTTPFileArg(oldStyleFile); // save it\n // Now deal with any additional file arguments\n if (fileArgs != null) {\n HTTPFileArg[] infiles = fileArgs.asArray();\n for (HTTPFileArg infile : infiles) {\n allFileArgs.addHTTPFileArg(infile);\n }\n }\n } else {\n if (fileArgs != null) { // for new test plans that don't have FILE/PARAM/MIME properties\n allFileArgs = fileArgs;\n }\n }\n // Updated the property lists\n setHTTPFileArgs(allFileArgs);\n removeProperty(FILE_FIELD);\n removeProperty(FILE_NAME);\n removeProperty(MIMETYPE);\n }", "public void setPriorityFiles(List<String> files);", "private static List<String[]> process(String[] files) {\n String path = files[0];\n List<String[]> list = new ArrayList<String[]>();\n for (int i = 1, j = 0; i < files.length; i++) {\n String name = files[i];\n for (j = 0; j < name.length(); j++) {\n if (name.charAt(j) == '('){\n break;\n }\n }\n list.add(new String[]{path+\"/\"+name.substring(0, j), name.substring(j+1, name.length() - 1)});\n }\n \n return list;\n }", "public static final String[] getListFileStringList(final ListFile var) {\n if (var == null)\n return new String[0];\n final CMProps p = p();\n final Object[] objs = p.sysLstFileLists;\n if (objs[var.ordinal()] == null) {\n objs[var.ordinal()] = CMParms.toStringArray(CMParms.parseCommas(getRawListFileEntry(var.getKey()), true));\n p.sysLstFileSet[var.ordinal()] = null;\n }\n return ((String[]) objs[var.ordinal()]);\n }", "java.util.List<java.lang.String>\n getFileNamesList();", "public File getPropertyFile() { return propertyFile; }", "public File[] getFiles(String mkey) {\n\t\tFile last;\n\t\tint i = 0;\n\t\tArrayList<File> v = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tlast = getFile(mkey + i);\n\t\t\ti++;\n\t\t\tif (last == null)\n\t\t\t\tbreak;\n\t\t\tv.add(last);\n\t\t}\n\t\tif (v.size() != 0) {\n\t\t\tFile[] path = new File[v.size()];\n\t\t\treturn v.toArray(path);\n\t\t} else {\n\t\t\treturn (File[]) getDefault(mkey);\n\t\t}\n\t}", "public ArrayList<File> getFileList(File file){\r\n\t\tFile dir = new File(file.getParent());\r\n\t\r\n\t\tString filename = file.getName();\r\n\t\t//get all files with the same beginning and end\r\n\t\tint index = filename.indexOf(\"Version\");\r\n\t\tString stringStart = filename.substring(0, index-1);\r\n\t\t\r\n\t\tArrayList<File> files = new ArrayList<File>();\r\n\t\t\r\n\t\tfor(File f:dir.listFiles()){\r\n\t\t\tif(f.getName().contains(stringStart))files.add(f);\r\n\t\t}\r\n\t\t\r\n\t\treturn files;\t\r\n\t}", "public abstract List<PropertyType> getBuiltInProperties();", "public interface PropertiesFactory {\n\n\t/**\n\t * Creates properties list.\n\t * @param app properties for app\n\t * @param localization localization for properties\n\t * @param onLanguageSetCallback callback when language is set\n\t * @return a list of properties\n\t */\n\tList<PropertiesArray> createProperties(App app, Localization localization,\n\t\t\tLanguageProperty.OnLanguageSetCallback onLanguageSetCallback);\n}", "java.util.List<java.lang.String>\n getResourcePatternsList();", "java.util.List<java.lang.String>\n getFileNamesList();", "@Override\r\n public List<File> getValues(final String term) throws IOException {\n {\r\n File file = new File(term);\r\n // is a directory -> get all children\r\n if (file.exists() && file.isDirectory()) {\r\n return children(file, fileFilter);\r\n }\r\n File parent = file.getParentFile();\r\n // is not a directory but has parent -> get siblings\r\n if (parent != null && parent.exists()) {\r\n return children(parent, normalizedFilter(term));\r\n }\r\n }\r\n // case 2: relative path\r\n {\r\n for (File path : paths) {\r\n File file = new File(path, term);\r\n // is a directory -> get all children\r\n if (file.exists() && file.isDirectory()) {\r\n return toRelativeFiles(children(file, fileFilter), path);\r\n }\r\n File parent = file.getParentFile();\r\n // is not a directory but has parent -> get siblings\r\n if (parent != null && parent.exists()) {\r\n return toRelativeFiles(children(parent, normalizedFilter(file.getAbsolutePath())), path);\r\n }\r\n }\r\n }\r\n return Collections.emptyList();\r\n }", "private List<String> loadLanguages() {\n\t\tFile directory = new File(\"./src/resources/languages\");\t// load current directory\n\t\t\n\t\tFilenameFilter textFilter = new FilenameFilter() {\n\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\tif(!name.startsWith(\"Syntax\") && !name.startsWith(\"LanguageCodes\")) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\t\t\n\t\tResourceFilter filter = new ResourceFilter(directory, textFilter);\n\t\t\n\t\tList<String> languages = (List<String>) filter.getFilteredList();\n\t\t\n\t\tlanguages = languages.stream()\n\t\t\t\t\t\t\t .map(m -> m.replace(UNWANTED_EXTENSION, \"\"))\n\t\t\t\t \t\t\t .collect(Collectors.toList());\n\t\t\n\t\treturn languages;\n\t}", "public Map executeFileLoader(String propertyFile) {\r\n\t\t\r\n\t\tProperties propertyVals = new Properties();\r\n\t\ttry {\r\n\t\t\tInputStream inputStream = getClass().getClassLoader().getResourceAsStream(propertyFile);\r\n\t\t\tpropertyVals.load(inputStream);\r\n\t\t\t\t\r\n\t\t\tString URL =\tpropertyVals.getProperty(\"URL\");\r\n\t\t\tString Depth =\tpropertyVals.getProperty(\"Depth\");\r\n\t\t\tfactorVals = new HashMap<String, String>();\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<2; i++)\r\n\t\t\t{\r\n\t\t\t\tif(i==0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfactorVals.put(\"URL\", URL);\r\n\t\t\t\t\t}\t\r\n\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfactorVals.put(\"Depth\", Depth);\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.out.println(\"File not Found.\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn factorVals;\t\r\n\t}", "private List<org.jajuk.base.File> getFiles() {\n List<org.jajuk.base.File> files;\n if (Mode.DJ.equals(data.get(Variable.MODE))) {\n files = UtilPrepareParty.getDJFiles((String) data.get(Variable.ITEM));\n } else if (Mode.Ambience.equals(data.get(Variable.MODE))) {\n files = UtilPrepareParty.getAmbienceFiles((String) data.get(Variable.ITEM));\n } else if (Mode.Playlist.equals(data.get(Variable.MODE))\n || Mode.ProvidedPlaylist.equals(data.get(Variable.MODE))) {\n try {\n Playlist tempPlaylist = (Playlist) data.get(Variable.TEMP_PLAYLIST);\n files = UtilPrepareParty.getPlaylistFiles((String) data.get(Variable.ITEM), tempPlaylist);\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Shuffle.equals(data.get(Variable.MODE))) {\n files = UtilPrepareParty.getShuffleFiles();\n } else if (Mode.BestOf.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getBestOfFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Queue.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getQueueFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Bookmarks.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getBookmarkFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Novelties.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getNoveltiesFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else {\n throw new IllegalArgumentException(\"Unknown mode in PreparePartyWizard: \"\n + data.get(Variable.MODE));\n }\n // filter by media first\n if (isTrue(Variable.ONE_MEDIA_ENABLED) && !isTrue(Variable.CONVERT_MEDIA)) {\n files = UtilPrepareParty.filterMedia(files, (String) data.get(Variable.ONE_MEDIA));\n }\n // then filter out by rating\n if (data.containsKey(Variable.RATING_LEVEL)) {\n files = UtilPrepareParty.filterRating(files, (Integer) data.get(Variable.RATING_LEVEL));\n }\n // filter max length\n if (isTrue(Variable.MAXLENGTH_ENABLED)) {\n files = UtilPrepareParty.filterMaxLength(files, (Integer) data.get(Variable.MAXLENGTH));\n }\n // filter max size\n if (isTrue(Variable.MAXSIZE_ENABLED)) {\n files = UtilPrepareParty.filterMaxSize(files, (Integer) data.get(Variable.MAXSIZE));\n }\n // filter max tracks\n if (isTrue(Variable.MAXTRACKS_ENABLED)) {\n files = UtilPrepareParty.filterMaxTracks(files, (Integer) data.get(Variable.MAXTRACKS));\n }\n return files;\n }", "public static List<String> getGlobalAllProcessorsPropertyConfigNames(NifiProperty property) {\n return getConfigPropertyKeysForNiFi(property).stream().map(k ->\"nifi.all_processors.\" + toPropertyName(k)).collect(Collectors.toList());\n }", "private static final void loadProperties(Properties messages, String[] variants) {\r\n for (String variant : variants) {\r\n InputStream is = null;\r\n try {\r\n is = Thread.currentThread().getContextClassLoader().getResourceAsStream(variant);\r\n if (is != null) {\r\n messages.load(is);\r\n }\r\n } catch (IOException ex) {\r\n /**\r\n * @todo [13-Dec-2009:KASI] This should cause a RuntimeException as there's something wrong in the application\r\n * setup.\r\n */\r\n System.err.printf(MSG_COULDNOTREADPROPERTIES, variant, ex.getMessage());\r\n } finally {\r\n Utilities.close(is);\r\n }\r\n }\r\n }", "private String[] getColumns(String[] properties) {\r\n String[] dst = new String[properties.length];\r\n int i = 0;\r\n for (String string : properties) {\r\n dst[i++] = getProjectionColumn(string);\r\n }\r\n return dst;\r\n }", "public Iterable<String> getPropertyKeys();", "private List<String> getValidFiles(File currentFolder) {\n File[] subFiles = currentFolder.listFiles();\n List<String> sValidFiles = new ArrayList<>();\n\n // recurse through root directory, http://stackoverflow.com/questions/1844688/read-all-files-in-a-folder\n // valid file must not be a directory, not be the redirect file, and be a supported content type\n if (subFiles != null) {\n for (File fileEntry : subFiles) {\n String sFileName = fileEntry.getPath();\n if (fileEntry.isDirectory()) {\n sValidFiles.addAll(getValidFiles(fileEntry));\n } else if (isValidContentType(sFileName) && !sFileName.equals(REDIRECT_FILE_NAME)) {\n sValidFiles.add(sFileName.replaceFirst(\".\",\"\").toLowerCase());\n }\n }\n }\n return sValidFiles;\n }", "public List<String> getListFilePath() throws AncestryException {\n\t\tList<String> listFormKey = new ArrayList<String>();\n\t\tConnection con = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT filepath FROM \" + management + \" WHERE step =4 GROUP BY filepath ORDER BY filepath\";\n\t\t\tcon = db.getConnectByProject(project);\n\t\t\tlistFormKey = JdbcHelper.queryToSingleList(con, sql , true);\n\t\t} catch (Exception e) {\n\t\t\tthrow new AncestryException(\"getListFilePath : \" + e.toString() ,e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.close(con);\n\t\t}\n\t\treturn listFormKey;\n\t}", "public static Properties loadProperties(String filePath)\n {\n \tProperties listProperties = new Properties();\n\t\t//System.out.println(filePath);\n\n\t\tFileInputStream file = null;\n\t\ttry \n\t\t{\n\t\t\tfile = new FileInputStream(filePath);\n\t\t\t\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry \n\t\t{\n\t\t\t listProperties.load(file);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listProperties;\n }", "private String _getPropFileName(String baseName) throws Exception\n {\n \t\n \tString hostName = getHostName();\n \n if (baseName == null || baseName.length() == 0)\n baseName = \"WsAggregatore\";\n else\n baseName = baseName.toLowerCase();\n\n String fileName = (baseName + (hostName.length() != 0 ? \"_\" + hostName.trim() : \"\") + \".properties\").toLowerCase();\n\n System.out.println(\"Initialization file: \" + fileName);\n\n return fileName;\n }", "public List<File> getFiles();", "public String[] getFiles() throws Exception\n {\n if (dir == null)\n {\n throw new Exception(\"No directory specified for filelist.\");\n }\n\n if (filenames.size() == 0)\n {\n throw new Exception(\"No files specified for filelist.\");\n }\n\n String[] result = new String[filenames.size()];\n filenames.copyInto(result);\n return result;\n }", "List<Path> getFiles();", "java.lang.String getProperties();", "public List<PmPropertyLanguageBean> selectPropertyWithLanguages(Map Paramter);", "private List<File> getSearchFiles() {\n\t\tif (searchDirs == null || searchDirs.size() <= 0) {\n\n\t\t\tsearchDirs = new ArrayList<File>();\n\t\t\t\n\t\t\tsearchDirs.add(StorageUtils.getLocalCacheDir(this));\n//\t\t\tsearchDirs.add(StorageUtils.getExternalCacheDir(this));\n\t\t\tsearchDirs.add(StorageUtils.getFavorDir(this));\n\t\t}\n\t\treturn searchDirs;\n\t}", "public static String[] listFilesAsArray() {\n\t\t// Recursively find all .java files\n\t\tFile path = new File(Project.pathWorkspace());\n\t\tFilenameFilter filter = new FilenameFilter() {\n\n\t\t\tpublic boolean accept(File directory, String fileName) {\n\t\t\t\treturn fileName.endsWith(\".java\");\n\t\t\t}\n\t\t};\n\t\tCollection<File> files = listFiles(path, filter, true);\n\n\t\tArrayList<File> t = new ArrayList<File>(files);\n\t\tfor (int i = 0; i < t.size(); i++) {\n\t\t\tString s = t.get(i).getAbsolutePath();\n\t\t\tif (s.contains(\"XX\") || s.contains(\"testingpackage\") || s.contains(\"datageneration\")) {\n\t\t\t\tt.remove(t.get(i));\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tfiles = t;\n\n\t\t// Convert the Collection into an array\n\t\tFile[] allJavaFiles = new File[files.size()];\n\t\tfiles.toArray(allJavaFiles);\n\n\t\tString[] allTestClasses = new String[allJavaFiles.length];\n\t\tString temp = \"\";\n\n\t\t// convert file path to full package declaration for the class\n\t\tfor (int i = 0; i < allJavaFiles.length; i++) {\n\t\t\ttemp = allJavaFiles[i].toString();\n\t\t\ttemp = temp.replace(\".java\", \"\").replace(\"\\\\\", \".\"); // remove .java convert backslash\n\t\t\tif (temp.indexOf(\"com.textura\") < 0) {\n\t\t\t\tallTestClasses[i] = \"null\";\n\t\t\t} else {\n\t\t\t\ttemp = temp.substring(temp.indexOf(\"com.textura\"));\n\t\t\t\ttemp = temp.replace(\"com.\", \"\");\n\t\t\t\tallTestClasses[i] = temp;\n\t\t\t}\n\t\t}\n\t\treturn allTestClasses;\n\t}", "public List<Resource> getFileLocations() throws IOException;", "public List getAllLogFileNames() {\n File folder = new File(path);\n File[] listOfFiles = folder.listFiles();\n List<String> fileList = new ArrayList<>();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n String fileName = listOfFiles[i].getName();\n if ((!fileName.contains(\".tar\")) && (!fileName.contains(\".zip\")) && (!fileName.contains(\".gz\")) && (!fileName.contains(\".lck\")))\n fileList.add(fileName);\n }\n }\n return fileList;\n }", "public static File[] getFileOfArguments( final String[] args ) {\n if( args == null || args.length != 2 ) {\n throw new IllegalArgumentException( \"Usage: CompareAndPrintWithPrintsetting <PDF-File1> <PDF-File2>\" );\n }\n return new File[] { checkAndGetFile( args[0] ), checkAndGetFile( args[1] ) };\n }", "private static String[] readFile(final String pathToFile) {\n try (BufferedReader reader = new BufferedReader(new FileReader(pathToFile))) {\n final List<String> lines = new ArrayList<>();\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n if (!line.startsWith(\"#\")) {\n lines.add(line);\n }\n }\n return lines.toArray(new String[lines.size()]);\n } catch (final IOException e) {\n throw new OpenGammaRuntimeException(\"Couldn't read properties file - \" + pathToFile, e);\n }\n }" ]
[ "0.6304972", "0.5855405", "0.5757471", "0.55797505", "0.54690534", "0.5333287", "0.53157914", "0.5314347", "0.5302906", "0.5297543", "0.5273795", "0.526607", "0.52509356", "0.5222292", "0.5204124", "0.52040684", "0.5173221", "0.51557535", "0.51274335", "0.51240504", "0.5097978", "0.5093485", "0.5089176", "0.5084799", "0.5057965", "0.50338733", "0.5027673", "0.5019819", "0.5015151", "0.5001552", "0.49944484", "0.49929196", "0.49874452", "0.4966121", "0.4939033", "0.49219635", "0.4919778", "0.4903558", "0.4902805", "0.49009877", "0.48985422", "0.48867488", "0.48813075", "0.48809", "0.487822", "0.4870181", "0.48651963", "0.48287788", "0.48187503", "0.48162612", "0.48098922", "0.48066455", "0.4800658", "0.47917607", "0.47887602", "0.47883323", "0.47867543", "0.4785443", "0.47801232", "0.4777085", "0.4773613", "0.47488585", "0.47477266", "0.47323355", "0.4732303", "0.4715789", "0.47127208", "0.47090402", "0.47023097", "0.46994102", "0.46977505", "0.4693327", "0.4692896", "0.4690424", "0.4689318", "0.46816894", "0.46791375", "0.4678", "0.46683723", "0.46682197", "0.4666383", "0.4642184", "0.46400934", "0.46324104", "0.4632213", "0.4631485", "0.46258414", "0.46081066", "0.46061984", "0.4601037", "0.46005622", "0.4596655", "0.4589769", "0.45877454", "0.45791996", "0.4572103", "0.45706514", "0.45705897", "0.45645636", "0.4564215" ]
0.457206
96
Load all (existing) properties files, that are specified in variants. Properties files listed in variants, that are not existing, are ignored
private static final void loadProperties(Properties messages, String[] variants) { for (String variant : variants) { InputStream is = null; try { is = Thread.currentThread().getContextClassLoader().getResourceAsStream(variant); if (is != null) { messages.load(is); } } catch (IOException ex) { /** * @todo [13-Dec-2009:KASI] This should cause a RuntimeException as there's something wrong in the application * setup. */ System.err.printf(MSG_COULDNOTREADPROPERTIES, variant, ex.getMessage()); } finally { Utilities.close(is); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void loadProperties(final String[] filenames, final Properties props,\n final Properties logProps) {\n\n for(String filename : filenames) {\n\n File f = new File(filename);\n\n if(!f.exists()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" does not exist\");\n System.exit(1);\n }\n\n if(!f.canRead()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" is not readable\");\n System.exit(1);\n }\n\n FileInputStream fis = null;\n Properties currProps = new Properties();\n\n try {\n fis = new FileInputStream(f);\n currProps.load(fis);\n if(f.getName().startsWith(\"log.\")) {\n logProps.putAll(resolveLogFiles(currProps));\n } else {\n props.putAll(currProps);\n }\n } catch(IOException ioe) {\n System.err.println(\"Start-up error: Problem reading configuration file, '\" + f.getAbsolutePath() + \"'\");\n Util.closeQuietly(fis);\n fis = null;\n System.exit(1);\n } finally {\n Util.closeQuietly(fis);\n }\n }\n }", "private void loadPropertyFiles() {\n if ( _sax_panel != null ) {\n _property_files = ( ( SAXTreeModel ) _sax_panel.getModel() ).getPropertyFiles();\n if ( _property_files == null )\n return ;\n HashMap filelist = new HashMap();\n ArrayList resolved = new ArrayList();\n Iterator it = _property_files.keySet().iterator();\n while ( it.hasNext() ) {\n Object o = it.next();\n if ( o == null )\n continue;\n File f = null;\n if ( o instanceof File ) {\n f = ( File ) o;\n Long lastModified = ( Long ) _property_files.get( f );\n filelist.put( f, lastModified );\n }\n else if ( _project != null ) {\n String value = o.toString();\n String filename = value;\n if ( value.startsWith( \"${\" ) && value.endsWith( \"}\" ) ) {\n filename = filename.substring( 2, filename.length() - 1 );\n }\n filename = _project.getProperty( filename );\n if ( filename != null )\n f = new File( filename );\n if ( f != null && !f.exists() ) {\n f = new File( _project.getBaseDir(), filename );\n }\n if ( f != null && f.exists() ) {\n filelist.put( f, new Long( f.lastModified() ) );\n resolved.add( value );\n }\n // see issue #21, Ant standard is to quietly ignore files not found\n //else\n // _logger.warning( \"Unable to find property file for \" + value );\n }\n }\n it = resolved.iterator();\n while ( it.hasNext() ) {\n filelist.remove( it.next() );\n }\n _property_files = filelist;\n }\n }", "@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }", "public void load(Map<String, String> props) {\n if (props != null && props.size() > 0) {\n for (String key : props.keySet()) {\n if (isSupported(key)) {\n String suffix = getSuffix(key);\n String value = props.get(key);\n loadProperty(suffix, value);\n }\n }\n }\n }", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}", "void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}", "public synchronized void update() {\n // set lastCheck first to reduce risk of recursive calls\n this.lastCheck = System.currentTimeMillis();\n if (getChecksum() != this.lastChecksum) {\n // First collect properties into a temporary collection,\n // in a second step copy over new properties,\n // and in the final step delete properties which have gone.\n ResourceProperties temp = new ResourceProperties();\n temp.setIgnoreCase(this.ignoreCase);\n\n // first of all, properties are load from default properties\n if (this.defaultProperties != null) {\n this.defaultProperties.update();\n temp.putAll(this.defaultProperties);\n }\n\n // next we try to load properties from the application's\n // repositories, if we belong to any application\n if (this.resourceName != null) {\n Iterator iterator = this.app.getRepositories().iterator();\n while (iterator.hasNext()) {\n try {\n RepositoryInterface repository = (RepositoryInterface) iterator.next();\n ResourceInterface res = repository.getResource(this.resourceName);\n if (res != null && res.exists()) {\n\t\t\t\t\t\t\tInputStreamReader reader = new InputStreamReader(\n\t\t\t\t\t\t\t\t\tres.getInputStream());\n\t\t\t\t\t\t\ttemp.load(reader);\n\t\t\t\t\t\t\treader.close();\n }\n } catch (IOException iox) {\n iox.printStackTrace();\n }\n }\n }\n\n // if these are subproperties, reload them from the parent properties\n if (this.parentProperties != null && this.prefix != null) {\n this.parentProperties.update();\n Iterator it = this.parentProperties.entrySet().iterator();\n int prefixLength = this.prefix.length();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry) it.next();\n String key = entry.getKey().toString();\n if (key.regionMatches(this.ignoreCase, 0, this.prefix, 0, prefixLength)) {\n temp.put(key.substring(prefixLength), entry.getValue());\n }\n }\n\n }\n\n // at last we try to load properties from the resource list\n if (this.resources != null) {\n Iterator iterator = this.resources.iterator();\n while (iterator.hasNext()) {\n try {\n ResourceInterface res = (ResourceInterface) iterator.next();\n if (res.exists()) {\n\t\t\t\t\t\t\tInputStreamReader reader = new InputStreamReader(\n\t\t\t\t\t\t\t\t\tres.getInputStream());\n\t\t\t\t\t\t\ttemp.load(reader);\n\t\t\t\t\t\t\treader.close();\n }\n } catch (IOException iox) {\n iox.printStackTrace();\n }\n }\n }\n\n // Copy over new properties ...\n putAll(temp);\n // ... and remove properties which have been removed.\n Iterator it = super.keySet().iterator();\n while (it.hasNext()) {\n if (!temp.containsKey(it.next())) {\n it.remove();\n }\n }\n // copy new up-to-date keyMap to ourself\n this.keyMap = temp.keyMap;\n\n this.lastChecksum = getChecksum();\n this.lastCheck = this.lastModified = System.currentTimeMillis();\n }\n }", "@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }", "private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}", "private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }", "private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }", "public final void loadPropertiesFromFile(final String fileName)\n {\n\n Properties tempProp = PropertyLoader.loadProperties(fileName);\n fProp.putAll(tempProp);\n\n }", "private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }", "public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }", "private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }", "void loadProperties(final String fileName){\n mProperties = new Properties();\n try {\n InputStreamReader stream = new InputStreamReader(CoreLib.getAppContext().getResources().\n getAssets().open(fileName));\n mProperties.load(stream);\n }catch (IOException e){\n throw new Error(\"Make sure you have both properties file(\" + fileName + \")present under assets\");\n }\n }", "private static Properties loadProperties() throws SystemException {\r\n final Properties result;\r\n try {\r\n result = getProperties(PROPERTIES_DEFAULT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n throw new SystemException(\"properties not found.\", e);\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Default properties: \" + result);\r\n }\r\n Properties specific;\r\n try {\r\n specific = getProperties(PROPERTIES_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n specific = new Properties();\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading specific properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Specific properties: \" + specific);\r\n }\r\n result.putAll(specific);\r\n \r\n // Load constant properties\r\n Properties constant = new Properties();\r\n try {\r\n constant = getProperties(PROPERTIES_CONSTANT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n if (LOGGER.isWarnEnabled()) {\r\n LOGGER.warn(\"Error on loading contant properties.\");\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading contant properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Constant properties: \" + constant);\r\n }\r\n result.putAll(constant);\r\n \r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Merged properties: \" + result);\r\n }\r\n // set Properties as System-Variables\r\n for (final Object o : result.keySet()) {\r\n final String key = (String) o;\r\n String value = result.getProperty(key);\r\n value = replaceEnvVariables(value);\r\n System.setProperty(key, value);\r\n }\r\n return result;\r\n }", "public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}", "public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }", "private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }", "public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "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}", "public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}", "private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "@Override\n public final boolean loadProperties() {\n if (props == null) {\n return false;\n }\n\n if (!loadFile()) {\n return false;\n }\n\n if (!loadFields()) {\n return false;\n }\n\n if (!loadFieldWidths()) {\n return false;\n }\n\n if (!loadTableName()) {\n return false;\n }\n\n if (!loadPkey()) {\n return false;\n }\n\n loadFieldOffsets();\n\n loadBatchSize();\n\n loadColumnTypes();\n\n loadRowValidator();\n // load column names. where they follow a given pattern.\n // load table name.\n\n return true;\n }", "public static void LoadIntoConfigFiles()\n {\n \tProperties prop = new Properties();\n ///*\n \ttry {\n \t\t//set the properties value\n \n prop.setProperty(\"comp_name\", \"Teledom International Ltd\");\n prop.setProperty(\"com_city\", \"Lagos\");\n \t\tprop.setProperty(\"State\", \"Lagos\");\n \t\tprop.setProperty(\"logo_con\", \"logo.png\");\n \t\tprop.setProperty(\"front_frame\", \"front.png\");\n prop.setProperty(\"back_frame\", \"back.png\");\n \n \n \n \n \t\t//save properties to project root folder\n \t\tprop.store(new FileOutputStream(setupFileName), null);\n \n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n }\n // */\n \n \n \n }", "private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}", "private static Properties readProps() {\n Path[] candidatePaths = {\n Paths.get(System.getProperty(\"user.home\"), \".sourcegraph-jetbrains.properties\"),\n Paths.get(System.getProperty(\"user.home\"), \"sourcegraph-jetbrains.properties\"),\n };\n\n for (Path path : candidatePaths) {\n try {\n return readPropsFile(path.toFile());\n } catch (IOException e) {\n // no-op\n }\n }\n // No files found/readable\n return new Properties();\n }", "public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}", "private static synchronized void setProperties(\n final String strPropertiesFilename) {\n if (msbPropertiesLoaded) {\n Verbose.warning(\"Properties already loaded; ignoring request\");\n\n return;\n }\n\n File oFile = new File(strPropertiesFilename);\n\n if (!oFile.exists()) {\n // Try to get it from jar file\n ClassLoader classLoader = Thread.currentThread()\n .getContextClassLoader();\n final InputStream input;\n\n if (classLoader == null) {\n classLoader = Class.class.getClassLoader();\n }\n input = classLoader\n .getResourceAsStream('/' + strPropertiesFilename);\n PropertyDef.setProperties(input, null);\n } else {\n PropertyDef.setProperties(new File(strPropertiesFilename), null,\n false);\n }\n if (strPropertiesFilename == DEFAULT_PROPERTIES_FILENAME) {\n oFile = new File(CUSTOMER_PROPERTIES_FILENAME);\n if (oFile.exists() && oFile.isFile()) {\n PropertyDef.addProperties(oFile);\n }\n }\n AdaptiveReplicationTool.msbPropertiesLoaded = true;\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 }", "public static void readProperties(String propFilename){\n\t\tString propertiesFilename = propFilename;\n\t\tProperties properties = new Properties();\n\n\t\tFileInputStream in;\n\t\ttry {\n\t\t\tin = new FileInputStream(propertiesFilename);\n\t\t\tproperties.load(in);\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading properties \"+propertiesFilename);\n\t\t\tSystem.exit(1);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tString path=\"Not set\";\n\t\tint popSize=0;\n\t\tint features=0;\n\t\tint maxGenerations=0;\n\t\tboolean log=false;\n\t\tboolean debug=false;\n\t\tboolean printbest=false;\n\t\tboolean cwd=false;\n\t\tboolean arrcache=false;\n\t\tdouble addSubRangeH;\n\t\tdouble divMultRangeH;\n\t\tdouble randomThicknessRange;\n\t\tdouble randomVelocityRange;\n\n\t\tdouble addSubRangeVS;\n\t\tdouble divMultRangeVS;\n\n\t\tint zThreshold=0;\n\t\tboolean useThreshold = true;\n\n\tif(properties.containsKey(\"path\")){\n\t\tpath = ((String)properties.get(\"path\"));\n\t\tif(properties.containsKey(\"cwd\")){\n\t\t\tcwd = Boolean.parseBoolean((String)properties.get(\"cwd\"));\n\t\t}\n\t\tc.path=path;\n\t\tc.setPaths(cwd);\n\t}else{\n\t\tSystem.out.println(\"Path : \"+path);\n\t\tSystem.exit(1);\n\t}if(properties.containsKey(\"populationSize\")){\n\t\tpopSize = Integer.parseInt((String)properties.get(\"populationSize\"));\n\t\tc.populationSize =popSize;\n\t}if(properties.containsKey(\"printBest\")){\n\t\tprintbest = Boolean.parseBoolean((String)properties.get(\"printBest\"));\n\t\tc.printBest=printbest;\n\t}if(properties.containsKey(\"maxGenerations\")){\n\t\tmaxGenerations = Integer.parseInt((String)properties.get(\"maxGenerations\"));\n\t\tc.maxGenerations=maxGenerations;\n\t}if(properties.containsKey(\"log\")){\n\t\tlog = Boolean.parseBoolean((String)properties.get(\"log\"));\n\t\tc.log=log;\n\t}if(properties.containsKey(\"debug\")){\n\t\tdebug = Boolean.parseBoolean((String)properties.get(\"debug\"));\n\t\tc.debug=debug;\n\t}if(properties.containsKey(\"features\")){\n\t\tfeatures = Integer.parseInt((String)properties.get(\"features\"));\n\t\tc.features=features;\n\t}if(properties.containsKey(\"addSubRangeH\")){\n\t\taddSubRangeH = Double.parseDouble((String)properties.get(\"addSubRangeH\"));\n\t\tc.addSubRangeH=addSubRangeH;\n\t}if(properties.containsKey(\"addSubRangeVS\")){\n\t\taddSubRangeVS = Double.parseDouble((String)properties.get(\"addSubRangeVS\"));\n\t\tc.addSubRangeVS=addSubRangeVS;\n\t}if(properties.containsKey(\"divMultRangeH\")){\n\t\tdivMultRangeH = Double.parseDouble((String)properties.get(\"divMultRangeH\"));\n\t\tc.divMultRangeH=divMultRangeH;\n\t}if(properties.containsKey(\"divMultRangeVS\")){\n\t\tdivMultRangeVS = Double.parseDouble((String)properties.get(\"divMultRangeVS\"));\n\t\tc.divMultRangeVS=divMultRangeVS;\n\t}if(properties.containsKey(\"randomThicknessRange\")){\n\t\trandomThicknessRange = Double.parseDouble((String)properties.get(\"randomThicknessRange\"));\n\t\tc.randomThicknessRange=randomThicknessRange;\n\t}if(properties.containsKey(\"randomVelocityRange\")){\n\t\trandomVelocityRange = Double.parseDouble((String)properties.get(\"randomVelocityRange\"));\n\t\tc.randomVelocityRange=randomVelocityRange;\n\t}if(properties.containsKey(\"zThreshold\")){\n\t\tzThreshold = Integer.parseInt((String)properties.get(\"zThreshold\"));\n\t\tc.zThreshold=zThreshold;\n\t}if(properties.containsKey(\"useThreshold\")){\n\t\tuseThreshold = Boolean.parseBoolean((String)properties.get(\"useThreshold\"));\n\t\tc.useThreshold=useThreshold;\n\t}\n\n\tSystem.out.println(\" Debug? \"+debug + \" | Log? \"+ log + \" | printBest? \"+ printbest);\n\tSystem.out.println(\"Pop: \"+c.populationSize+\" | Max Gens: \"+ maxGenerations+ \"\\nPath: \"+c.path);\n\tSystem.out.println(\"randomThicknessRange :\"+c.randomThicknessRange+\" randomVelocityRange :\"+c.randomVelocityRange);\n\tSystem.out.println(\"AddSubRange H :\"+c.addSubRangeH+\" VS :\"+c.addSubRangeVS);\n\tSystem.out.println(\"divMultRange H :\"+c.divMultRangeH+\" VS :\"+c.divMultRangeVS);\n\tSystem.out.println(\"Threshold ? \"+c.useThreshold+\" : \"+c.zThreshold);\n\t}", "private void loadProperties() {\n\t\tInputStream propsFile;\n\t\tProperties tempProp = new Properties();\n\n\t\ttry {\n\t\t\t//propsFile = new FileInputStream(\"plugins\\\\balloonplugin\\\\BalloonSegmentation.properties\");\n\t\t\tpropsFile = getClass().getResourceAsStream(\"/BalloonSegmentation.properties\");\n\t\t\ttempProp.load(propsFile);\n\t\t\tpropsFile.close();\n\n\t\t\t// load properties\n\t\t\tinit_channel = Integer.parseInt(tempProp.getProperty(\"init_channel\"));\t\t\t\t// initial channel selected for segmenting the cell architecture 1 - red, 2 - green, 3 - blue\n\t\t\tinit_max_pixel = Integer.parseInt(tempProp.getProperty(\"init_max_pixel\"));\t\t\t// initial max pixel intensity used for finding the doundaries of the colony of cells\n\t\t\tinit_HL = Integer.parseInt(tempProp.getProperty(\"init_HL\"));\t\t\t\t\t\t// initial H*L factor used finding seeds in the population\n\t\t\tinit_min_I = Integer.parseInt(tempProp.getProperty(\"init_min_I\"));\t\t\t\t\t// initial pixel intensity when balloon algorithm starts\n\t\t\tinit_max_I = Integer.parseInt(tempProp.getProperty(\"init_max_I\"));\t\t\t\t\t// final pixel intensity when balloon algorithm stops\n\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tIJ.error(\"I/O Exception: cannot read .properties file\");\n\t\t}\n\t}", "@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}", "public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}", "@Override public void loadSettings(Map pProps, Map pSettings) {\n pSettings.put(getSourceTypeInternalName() + PATH, pProps.get(CDS_PATH));\n pSettings.put(IS_LOCAL + getSourceTypeInternalName(), pProps.get(LOCAL));\n pSettings.put(getSourceTypeInternalName() + HOST_MACHINE, pProps.get(HOST_MACHINE));\n pSettings.put(getSourceTypeInternalName() + PORT, pProps.get(PORT));\n }", "default void load(Map<String, Object> properties)\r\n {\r\n }", "public void readProperties() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n propertyParserXML.readPropertyDefinition(configData.getPropertyList());\r\n propertyParserXML.processPropertyDependency();\r\n }\r\n Log.info(\"info.progress_control.load_property_description\");\r\n }", "public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }", "private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "public static synchronized void initProjectProperties() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties\");\n try {\n String projectPropertiesFilename = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROPERTIES_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_SERVED_PROJECTNAME_PREFIX + getTestProjectName() + \".properties\";\n File projectPropertiesFile = new File(projectPropertiesFilename);\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties project properties file name: [\" + projectPropertiesFilename + \"]\");\n\n if (projectPropertiesFile.exists()) {\n // If the properties file exists, delete it, so we can create a fresh one.\n projectPropertiesFile.delete();\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties deleting existing property file.\");\n }\n // Make sure the properties directory exists...\n if (!projectPropertiesFile.getParentFile().exists()) {\n projectPropertiesFile.getParentFile().mkdirs();\n }\n\n // Make sure the property file exists. (This should create it.)\n if (projectPropertiesFile.createNewFile()) {\n AbstractProjectProperties projectProperties = ProjectPropertiesFactory.getProjectPropertiesFactory().buildProjectProperties(getTestProjectName(), QVCSConstants.QVCS_SERVED_PROJECT_TYPE);\n\n // This is where the archives go...\n String projectLocation = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROJECTS_DIRECTORY\n + File.separator\n + getTestProjectName();\n\n File archiveLocation = new File (projectLocation);\n String canonicalArchiveLocation = archiveLocation.getCanonicalPath();\n\n // This the root directory for the archives for this project.\n projectProperties.setArchiveLocation(canonicalArchiveLocation);\n\n // Make sure the directory exists.\n File projectDirectory = new File(projectLocation);\n projectDirectory.mkdirs();\n\n // Set the project info for the reference copies\n projectProperties.setCreateReferenceCopyFlag(false);\n\n // Set the ignore case flag.\n projectProperties.setIgnoreCaseFlag(true);\n\n projectProperties.setDirectoryContentsInitializedFlag(true);\n\n projectProperties.saveProperties();\n }\n } catch (IOException e) {\n Logger.getLogger(TestHelper.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public void setConfigFiles(final Set<String> configFiles) {\n final Properties properties = new Properties();\n\n try {\n configFiles.forEach(x -> {\n final Resource resource = new ClassPathResource(x);\n logger.info(this.getClass().getName() + \" loading properties from \" + resource.getFilename());\n\n try {\n try (InputStream inputStream = resource.getInputStream()) {\n final Properties prop = new Properties();\n prop.load(inputStream);\n if (prop != null) {\n properties.putAll(prop);\n }\n }\n }\n catch (final Exception e) {\n System.out.println(\"Error occurs, message: \" + e.getMessage());\n }\n });\n }\n catch (final Exception e) {\n System.out.println(\"Error occurs, message: \" + e.getMessage());\n }\n\n /*System.out.print(\"All properties resolved.\\n \");\n final Enumeration<?> propertySet = properties.propertyNames();\n \n while (propertySet.hasMoreElements()) {\n final String candidate = (String) propertySet.nextElement();\n System.out.print(candidate + \" = \" + properties.getProperty(candidate) + \"\\n \");\n }\n System.out.println();\n */\n\n this.setProperties(properties);\n }", "protected void loadProperties(ClassLoader al, URL url) {\n try (InputStream is = url.openStream()) {\n if (is == null) {\n log(\"Could not load definitions from \" + url,\n Project.MSG_WARN);\n return;\n }\n Properties props = new Properties();\n props.load(is);\n for (String key : props.stringPropertyNames()) {\n name = key;\n classname = props.getProperty(name);\n addDefinition(al, name, classname);\n }\n } catch (IOException ex) {\n throw new BuildException(ex, getLocation());\n }\n }", "private void loadI18n(String prefix, String baseName) throws IOException {\n LogManager.log(\"... loading i18n properties using prefix \\\"\" + prefix + \"\\\" with base name \\\"\" + baseName + \"\\\"\");\n InputStream is = ResourceUtils.getResource(EngineResources.ENGINE_CONTENTS_LIST);\n String[] resources = StringUtils.splitByLines(StreamUtils.readStream(is));\n is.close();\n List<String> list = new ArrayList<String>();\n LogManager.log(\"... total engine resources: \" + resources.length); //NOI18N\n for (String res : resources) {\n if (res.startsWith(prefix + baseName) &&\n res.endsWith(FileUtils.PROPERTIES_EXTENSION)) {\n list.add(res);\n }\n }\n LogManager.log(\"... total i18n resources: \" + list.size()); //NOI18N\n setI18n(list);\n }", "@Override\n public Map<String, String> readProperty(String fileName) {\n Map<String, String> result = new HashMap<>();\n Properties prop = new Properties();\n InputStream input;\n try {\n input = FullPropertyReader.class.getClassLoader().getResourceAsStream(fileName);\n prop.load(input);\n Set<String> strings = prop.stringPropertyNames();\n for (String string : strings) {\n result.put(string, prop.getProperty(string));\n }\n } catch (IOException e) {\n throw new PropertyReaderException(\"Trouble in FullPropertyReader\", e);\n }\n return result;\n }", "void mergeFileProperties() {\n JMeterProperty fileName = getProperty(FILE_NAME);\n JMeterProperty paramName = getProperty(FILE_FIELD);\n JMeterProperty mimeType = getProperty(MIMETYPE);\n HTTPFileArg oldStyleFile = new HTTPFileArg(fileName, paramName, mimeType);\n \n HTTPFileArgs fileArgs = getHTTPFileArgs();\n \n HTTPFileArgs allFileArgs = new HTTPFileArgs();\n if (oldStyleFile.isNotEmpty()) { // OK, we have an old-style file definition\n allFileArgs.addHTTPFileArg(oldStyleFile); // save it\n // Now deal with any additional file arguments\n if (fileArgs != null) {\n HTTPFileArg[] infiles = fileArgs.asArray();\n for (HTTPFileArg infile : infiles) {\n allFileArgs.addHTTPFileArg(infile);\n }\n }\n } else {\n if (fileArgs != null) { // for new test plans that don't have FILE/PARAM/MIME properties\n allFileArgs = fileArgs;\n }\n }\n // Updated the property lists\n setHTTPFileArgs(allFileArgs);\n removeProperty(FILE_FIELD);\n removeProperty(FILE_NAME);\n removeProperty(MIMETYPE);\n }", "private void overrideProperties() throws BuildException {\n // remove duplicate properties - last property wins\n // Needed for backward compatibility\n Set set = new HashSet();\n for (int i = properties.size() - 1; i >= 0; --i) {\n Property p = (Property) properties.get(i);\n if (p.getName() != null && !p.getName().equals(\"\")) {\n if (set.contains(p.getName())) {\n properties.remove(i);\n } else {\n set.add(p.getName());\n }\n }\n }\n Enumeration e = properties.elements();\n while (e.hasMoreElements()) {\n Property p = (Property) e.nextElement();\n p.setProject(newProject);\n p.execute();\n }\n getProject().copyInheritedProperties(newProject);\n }", "public static void loadProperties(Properties p, String fileName)throws IOException {\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL f = classLoader.getResource(fileName);\n FileInputStream fr = new FileInputStream(new File(fileName));\n p.load(fr);\n fr.close();\n }", "public static void loadPropertyFile() throws IOException {\n\t\tPropertyFileReader.property = new Properties();\n\t\tPropertyFileReader.targetPlatform = System.getProperty(\"targetPlatform\");\n\t\tPropertyFileReader.targetDevice = System.getProperty(\"targetDevice\");\n\n\t\t// Load the property file based on platform and device\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"android\")) {\n\t\t\tfinal File file = new File(String.valueOf(System.getProperty(\"user.dir\"))\n\t\t\t\t\t+ \"\\\\src\\\\main\\\\resources\\\\testdata\\\\\" + PropertyFileReader.targetPlatform + \"\\\\\"\n\t\t\t\t\t+ PropertyFileReader.targetDevice + \"\\\\capabilities.properties\");\n\t\t\tPropertyFileReader.filereader = new FileReader(file);\n\t\t\tPropertyFileReader.property.load(PropertyFileReader.filereader);\n\t\t}\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"iOS\")) {\n\t\t\t// To do in case of iOS\n\t\t}\n\t}", "public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n Map<String, String> properties = new HashMap<>();\n Properties props = new Properties();\n props.load(stream);\n for (String key : props.stringPropertyNames()) {\n properties.put(key, props.getProperty(key));\n }\n LOG.log(Level.FINEST, \"Loaded properties from \" + file);\n this.properties = properties;\n } catch (IOException e) {\n LOG.log(Level.FINEST, \"Cannot load properties from \" + file, e);\n }\n }", "private static void readCitProperties(String fileName) {\n/* */ try {\n/* 91 */ ResourceLocation e = new ResourceLocation(fileName);\n/* 92 */ InputStream in = Config.getResourceStream(e);\n/* */ \n/* 94 */ if (in == null) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 99 */ Config.dbg(\"CustomItems: Loading \" + fileName);\n/* 100 */ Properties props = new Properties();\n/* 101 */ props.load(in);\n/* 102 */ in.close();\n/* 103 */ useGlint = Config.parseBoolean(props.getProperty(\"useGlint\"), true);\n/* */ }\n/* 105 */ catch (FileNotFoundException var4) {\n/* */ \n/* */ return;\n/* */ }\n/* 109 */ catch (IOException var5) {\n/* */ \n/* 111 */ var5.printStackTrace();\n/* */ } \n/* */ }", "private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }", "public static void load() {\n for (DataSourceSwapper each : ServiceLoader.load(DataSourceSwapper.class)) {\n loadOneSwapper(each);\n }\n }", "private void initProperties(URL url) {\n if(null == url) {\n LOGGER.error(\"Can Load empty path.\");\n return;\n }\n\n Properties invProperties = getProperties(url);\n if(null == invProperties || invProperties.isEmpty()) {\n LOGGER.error(\"Load invsvr.properties failed !\");\n return;\n }\n\n INVTABLEPREFIX = invProperties.getProperty(\"tableprefix\");\n EXTENSIONTABLEPOSTFIX = invProperties.getProperty(\"exttablepostfix\");\n RELATIONTABLEPOSTFIX = invProperties.getProperty(\"relationtablepostfix\");\n CHANGESETAUTHOR = invProperties.getProperty(\"changesetauthor\");\n DEFAULTSCHEMA = invProperties.getProperty(\"defaultschema\");\n BASICTABLEFIXEDCOLIMN = invProperties.getProperty(\"basictablefixedcolumn\").split(\"/\");\n EXRENSIONTABLECOLUMN = invProperties.getProperty(\"exttablecolumn\").split(\"/\");\n EXTENDINDEXS = invProperties.getProperty(\"exttableindex\").split(\"/\");\n RELATIONTABLECOLUMN = invProperties.getProperty(\"relationtablecolumn\").split(\"/\");\n RELATIONINDEXS = invProperties.getProperty(\"relationtableindex\").split(\"/\");\n\n INFOMODELPREFIX = invProperties.getProperty(\"infomodelprefix\");\n DATAMODELPREFIX = invProperties.getProperty(\"datamodelprefix\");\n RELAMODELPREFIX = invProperties.getProperty(\"relamodelprefix\");\n RELATIONTYPEVALUES = getRelationTypeValues(invProperties.getProperty(\"relationtypevalue\"));\n }", "public void loadProducts() throws RetailException {\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\ttry {\n\t\t\tif (!dataLoadedIndicator) {\n\t\t\t\tproductData = Collections.unmodifiableMap((Map<String, Product>) objectMapper.readValue(\n\t\t\t\t\t\tThread.currentThread().getContextClassLoader().getResourceAsStream(\"products.json\"),\n\t\t\t\t\t\tnew TypeReference<HashMap<String, Product>>() {\n\t\t\t\t\t\t}));\n\t\t\t\t// load properties file\n\t\t\t\tsalesTaxConfig = new Properties();\n\t\t\t\tsalesTaxConfig.load(Thread.currentThread().getContextClassLoader()\n\t\t\t\t\t\t.getResourceAsStream(\"sales_tax_entries.properties\"));\n\t\t\t\tdataLoadedIndicator = true;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"There was an exception trying to upoad product data {}\", e);\n\t\t\tthrow new RetailException(ErrorCodes.ERR_PRODUCT_DATA_LOAD_ERROR);\n\t\t}\n\t}", "public void loadGuilds(Collection<Server> guilds) {\n\t\tfor (var guild : guilds) {\n\t\t\tvar file = dir.resolve(guild.getId() + \".json\");\n\t\t\tvar config = GuildConfig.loadOrCreate(guild, file);\n\t\t\tthis.guilds.put(guild.getId(), config);\n\t\t\tlog.info(\"Loaded guild config for guild {} ({}).\", guild.getName(), guild.getId());\n\t\t}\n\t}", "public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}", "private static void loadConfigs(String[] args) {\n String chosenConfigFile, chosenSensorsFile;\n\n // select config files (allow for specifying)\n if(args.length >= 2) {\n chosenConfigFile = args[0];\n chosenSensorsFile = args[1];\n }\n else {\n chosenConfigFile = DEFAULT_CONFIG_FILE;\n chosenSensorsFile = DEFAULT_SENSORS_FILE;\n }\n // filenames starting with \"/\" and \"./\" are later interpreted as being outside JAR\n if(chosenConfigFile.charAt(0) == '/' || chosenConfigFile.substring(0, 2).equals(\"./\"))\n System.out.println(\"retreiving \" + chosenConfigFile + \" from this filesystem (not the JAR)\");\n if(chosenSensorsFile.charAt(0) == '/' || chosenSensorsFile.substring(0, 2).equals(\"./\"))\n System.out.println(\"retreiving \" + chosenSensorsFile + \" from this filesystem (not the JAR)\");\n\n // load general configuration\n Properties props = new Properties();\n try {\n if(chosenConfigFile.charAt(0) == '/' || chosenConfigFile.substring(0, 2).equals(\"./\"))\n // get the config file from the user's filesystem\n props.load(new FileInputStream(new File(chosenConfigFile)));\n else\n // get the config file saved in this JAR\n props.load(Main.class.getResourceAsStream(\"/\" + chosenConfigFile));\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n\n // load sensors\n if(chosenSensorsFile.charAt(0) == '/' || chosenSensorsFile.substring(0, 2).equals(\"./\"))\n // get the sensors file from the user's filesystem\n sensors = ConfigLoader.getSensorsFromFile(chosenSensorsFile);\n else\n // get the sensors file saved in this JAR\n sensors = ConfigLoader.getSensorsFromFile(Main.class.getResourceAsStream(\"/\" + chosenSensorsFile));\n }", "public static void initialize()\n\t{\n\t\t/* Start to listen for file changes */\n\t\ttry\n\t\t{\n\t\t\t// We have to load the internal one initially to figure out where the external data directory is...\n\t\t\tURL resource = PropertyWatcher.class.getClassLoader().getResource(PROPERTIES_FILE);\n\t\t\tif (resource != null)\n\t\t\t{\n\t\t\t\tconfig = new File(resource.toURI());\n\t\t\t\tloadProperties(false);\n\n\t\t\t\t// Then check if there's another version in the external data directory\n\t\t\t\tString path = get(ServerProperty.CONFIG_PATH);\n\t\t\t\tif (!StringUtils.isEmpty(path))\n\t\t\t\t{\n\t\t\t\t\tFile potential = new File(path);\n\t\t\t\t\tif (potential.exists() && potential.isFile())\n\t\t\t\t\t{\n\t\t\t\t\t\t// Use it\n\t\t\t\t\t\tLogger.getLogger(\"\").log(Level.INFO, \"Using external config.properties: \" + potential.getAbsolutePath());\n\t\t\t\t\t\tconfig = potential;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Finally, load it properly. This is either the original file or the external file.\n\t\t\t\tloadProperties(true);\n\n\t\t\t\t// Then watch whichever file exists for changes\n\t\t\t\tFileAlterationObserver observer = new FileAlterationObserver(config.getParentFile());\n\t\t\t\tmonitor = new FileAlterationMonitor(1000L);\n\t\t\t\tobserver.addListener(new FileAlterationListenerAdaptor()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFileChange(File file)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (file.equals(config))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tloadProperties(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tmonitor.addObserver(observer);\n\t\t\t\tmonitor.start();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private static void processIncludedConfig() {\n String configName = \"config.\" + getRunMode() + \".properties\";\n\n //relative path cannot be recognized and not figure out the reason, so here use absolute path instead\n InputStream configStream = Configuration.class.getResourceAsStream(\"/\" + configName);\n if (configStream == null) {\n log.log(Level.WARNING, \"configuration resource {0} is missing\", configName);\n return;\n }\n\n try (InputStreamReader reader = new InputStreamReader(configStream, StandardCharsets.UTF_8)) {\n Properties props = new Properties();\n props.load(reader);\n CONFIG_VALUES.putAll(props);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Unable to process configuration {0}\", configName);\n }\n\n }", "public static Properties load() throws IOException {\n Properties properties = new Properties();\n\n try (InputStream defaultProperties = PropertiesLoader.class.getClassLoader().getResourceAsStream(DEFAULT_PROPERTIES_PATH)) {\n properties.load(defaultProperties);\n }\n\n try (InputStream overwriteProperties = PropertiesLoader.class.getClassLoader().getResourceAsStream(OVERWRITE_PROPERTIES_PATH)) {\n if (overwriteProperties != null) {\n properties.load(overwriteProperties);\n }\n }\n\n String systemPropertiesPath = System.getProperty(SYSTEM_PROPERTY);\n if (systemPropertiesPath != null) {\n try (InputStream overwriteProperties = new FileInputStream(systemPropertiesPath)) {\n properties.load(overwriteProperties);\n }\n }\n\n properties.putAll(System.getProperties());\n\n return properties;\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "protected void readProperties() throws RepositoryException {\n try {\n log.debug(\"Reading meta file: \" + this.metaFile);\n this.properties = new HashMap();\n BufferedReader reader = new BufferedReader(new FileReader(this.metaFile));\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n String name;\n String typeName;\n String value;\n try {\n name = line.substring(0, line.indexOf(\"<\")).trim();\n typeName = line.substring(line.indexOf(\"<\")+1, line.indexOf(\">\")).trim();\n value = line.substring(line.indexOf(\":\")+1).trim();\n } catch (StringIndexOutOfBoundsException e) {\n throw new RepositoryException(\"Error while parsing meta file: \" + this.metaFile \n + \" at line \" + line);\n }\n Property property = new DefaultProperty(name, PropertyType.getType(typeName), this);\n property.setValueFromString(value);\n this.properties.put(name, property);\n }\n reader.close();\n } catch (IOException e) {\n throw new RepositoryException(\"Error while reading meta file: \" + metaFile + \": \" \n + e.getMessage());\n }\n }", "private void restoreProperties() {\n restoreModeAndItemValue();\n restoreStringValue(Variable.DEST_PATH);\n restoreBooleanValue(Variable.MAXTRACKS_ENABLED);\n restoreIntValue(Variable.MAXTRACKS);\n restoreBooleanValue(Variable.MAXSIZE_ENABLED);\n restoreIntValue(Variable.MAXSIZE);\n restoreBooleanValue(Variable.MAXLENGTH_ENABLED);\n restoreIntValue(Variable.MAXLENGTH);\n restoreBooleanValue(Variable.ONE_MEDIA_ENABLED);\n restoreStringValue(Variable.ONE_MEDIA);\n restoreBooleanValue(Variable.CONVERT_MEDIA);\n restoreStringValue(Variable.CONVERT_COMMAND);\n if (StringUtils.isBlank((String) data.get(Variable.CONVERT_COMMAND))) {\n data.put(Variable.CONVERT_COMMAND, \"pacpl\"); // use default value if none set\n // yet\n }\n restoreBooleanValue(Variable.NORMALIZE_FILENAME);\n restoreIntValue(Variable.RATING_LEVEL);\n }", "@Override\n public void loadFromProperties(PropertiesWrapper properties) {\n\n useForeignKeyPrefix = properties.getBoolean(\"namingConvention.useForeignKeyPrefix\", useForeignKeyPrefix);\n sequenceFormat = properties.get(\"namingConvention.sequenceFormat\", sequenceFormat);\n schema = properties.get(\"namingConvention.schema\", schema);\n }", "@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }", "@Override\r\n\tpublic void setPropFile(Properties prop) {\n\t\t\r\n\t}", "private void setupFiles(){\n\t\t// Copies the default configuration files to the workspace \n\t\ttry{\n\t\t\tBundle bundle = Platform.getBundle(Activator.PLUGIN_ID);\n\t\t\tIPath destBasePath = Platform.getStateLocation(bundle);\n\t\t\tpropertiesFile = destBasePath.append(PreferencesConstants.PROP_BUNDLE_STATE_PATH).toFile();\n\t\t\tif(!propertiesFile.exists()){\n\n\t\t\t\tURI sourceBaseURI = bundle.getEntry(PreferencesConstants.DEFAULT_CONFIG_BUNDLE_PATH).toURI();\n\t\t\t\t//TODO: fix the item below?\n\t\t\t\tEnumeration<URL> entries = bundle.findEntries(PreferencesConstants.DEFAULT_CONFIG_BUNDLE_PATH, null, true);\n\t\t\t\tfor(; entries != null && entries.hasMoreElements();){\n\t\t\t\t\tURL url = entries.nextElement();\n\t\t\t\t\tURI uri = url.toURI();\n\t\t\t\t\tURI relativeURI = sourceBaseURI.relativize(uri);\n\t\t\t\t\tIPath destPath = destBasePath.append(relativeURI.toString());\n\n\t\t\t\t\tif(destPath.hasTrailingSeparator()){\n\t\t\t\t\t\t// it's a folder\n\t\t\t\t\t\tdestPath.toFile().mkdirs();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t// it's a file\n\t\t\t\t\t\tURL contentURL = FileLocator.resolve(url);\n\t\t\t\t\t\tSystemUtils.blt(contentURL.openStream(), new FileOutputStream(destPath.toFile()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//now save the destination paths to the System properties\n\t\t\t//save the report paths\n\t\t\tString reportTemplatePath = destBasePath.append(PreferencesConstants.DEFAULT_REPORT_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_REPORT_TEMPLATE_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE, \n\t\t\t\t\treportTemplatePath);\n\t\t\tSystem.out.println(\"report template file: \" + reportTemplatePath);\t\t\n\t\t\t\n\t\t\tString reportPath = destBasePath.append(PreferencesConstants.DEFAULT_REPORT_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_REPORT_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT, \n\t\t\t\t\treportPath);\t\t\t\n\t\t\tSystem.out.println(\"report file: \" + reportPath);\t\t\t\n\t\t\t\n\t\t\t//save the rule paths\n\t\t\tString ruleSessionPath = destBasePath.append(PreferencesConstants.DEFAULT_RULE_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_RULE_SESSION_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION, \n\t\t\t\t\truleSessionPath);\t\t\t\n\t\t\tSystem.out.println(\"rule session file: \" + ruleSessionPath);\t\t\t\t\t\n\t\t\t\n\t\t\tString ruleSessionOutPath = destBasePath.append(PreferencesConstants.DEFAULT_RULE_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_RULE_SESSION_OUT_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT, \n\t\t\t\t\truleSessionOutPath);\t\t\t\n\t\t\tSystem.out.println(\"rule session out file: \" + ruleSessionOutPath);\t\t\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\t\n\t\t/*\n\t\tString pluginName = Activator.PLUGIN_ID;\n\t\tBundle bundle = Platform.getBundle(pluginName);\n\n\t\tString propFileStr = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.PROP_URL);\n\t\tFile sourcePropFile = new File(propFileStr);\n\n\t\t//propertiesFile = new File(fixedPath);\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\n\t\tIWorkspaceRoot root = workspace.getRoot();\n\t\tIPath location = root.getLocation();\n\t\t//location.toString()\n\t\t//String path = location.toString() + location.SEPARATOR + \".metadata\" \n\t\t//\t+ location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\t\tString path = location.toString() + location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\t\t//URL entry = Platform.getInstallLocation().getURL();\n\t\t//String path = entry.toString() + location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\n\t\tFile usersResourceDir = new File(path);\n\t\tpropertiesFile = new File(path + PreferencesConstants.PROP_URL);\n\t\tSystem.out.println(\"properties file \" + propertiesFile.getAbsolutePath());\n\t\tFile reportDir;\n\t\tFile ruleDir;\n\t\tif(!usersResourceDir.exists()){\n\t\t\ttry{\n\t\t\t\tSystemUtils.createDirectory(usersResourceDir);\n\t\t\t}\n\t\t\tcatch(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\t//copy the properties file\n\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyFile(sourcePropFile, propertiesFile);\n\t\t\t}\n\t\t\tcatch(IOException e1){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\t//copy report directory\n\t\t\tString fixedReportPath = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.DEFAULT_REPORT_PATH);\n\t\t\treportDir = new File(fixedReportPath);\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyDirectory(reportDir, usersResourceDir);\n\t\t\t}\n\t\t\tcatch(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\t//copy rule directory\n\t\t\tString fixedRulePath = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.DEFAULT_RULE_PATH);\n\t\t\truleDir = new File(fixedRulePath);\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyDirectory(ruleDir, usersResourceDir);\n\t\t\t}\n\t\t\tcatch(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\tSystem.out.println(\"success\");\n\t\t}\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_TEMPLATE_URL);\n\t\tSystem.out.println(\"report template file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE));\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_URL.substring(1));\n\t\tSystem.out.println(\"report file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_REPORT));\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_SESSION_URL.substring(1));\n\t\tSystem.out.println(\"rule session file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION));\n\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_SESSION_OUT_URL.substring(1));\n\t\tSystem.out.println(\"rule session file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT));\n\t\t*/\n\t}", "private static synchronized void initialize(String prop) {\n\t\tFileInputStream is=null;\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tis = new FileInputStream(prop);\n\t\t\tif (is == null) {\n\t\t\t System.out.println(\"The prop is null.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproperties.load(is);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t System.out.println(\"properties loading fails.\");\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\tfinally{\n\t\t\t\ttry{\n\t\t\t\t\tif(is!=null)\n\t\t\t\t\t\tis.close();\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex){\n\t\t\t\t System.out.println(\"properties loading fails for runtime exception.\");\n\t\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t}\n\t}", "private void readProperties() throws Exception{\n\t\t InputStream fisGlobal=null,fisModul=null; \n\t\t propiedades = new Properties();\n try {\n \t // Path directorio de configuracion\n \t String pathConf = System.getProperty(\"ad.path.properties\");\n \t \n \t // Propiedades globales\n \t fisGlobal = new FileInputStream(pathConf + \"sistra/global.properties\");\n \t propiedades.load(fisGlobal);\n \t\t \n \t // Propiedades modulo\n \t\t fisModul = new FileInputStream(pathConf + \"sistra/plugins/plugin-firma.properties\");\n \t\t propiedades.load(fisModul);\n \t \t \t\t \n } catch (Exception e) {\n \t propiedades = null;\n throw new Exception(\"Excepcion accediendo a las propiedadades del modulo\", e);\n } finally {\n try{if (fisGlobal != null){fisGlobal.close();}}catch(Exception ex){}\n try{if (fisModul != null){fisModul.close();}}catch(Exception ex){}\n }\t\t\n\t}", "public static void init(String propfile, String processname, String args[]) throws Exception\r\n\t{\r\n\t\tif(initdone)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Standard file encoding\r\n\t\tSystem.setProperty(\"file.encoding\", Constant.ENCODE_UTF8);\r\n\r\n\t\tLOG.init();\r\n\r\n\t\tlog = LOG.getLog(Option.class);\r\n\r\n\t\tlog.info(\"BINROOT \" + Locator.findBinROOT());\r\n\r\n\t\t// Properties parsen\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// XML Configfile\r\n\t\t\tconfig = new XMLConfiguration();\r\n\t\t\tconfig.setEncoding(\"UTF8\");\r\n\t\t\tconfig.setDelimiterParsingDisabled(true);\r\n\r\n\t\t\tif(Validation.notEmpty(propfile))\r\n\t\t\t{\r\n\t\t\t\t// Include von externen Configfiles: <import file=\"ALIAS\" /> \r\n\t\t\t\tGrouper includer = new Grouper(\"<import file=\\\"(.*?)\\\".?/>\", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE);\r\n\r\n\t\t\t\tString org = new String(Tool.readchararray(Locator.findBinROOT() + propfile));\r\n\r\n\t\t\t\tString[] includefile = includer.matchall(org);\r\n\r\n\t\t\t\tfor(int i = 0; i < includefile.length; i = i + 2)\r\n\t\t\t\t{\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// read include file\r\n\t\t\t\t\t\tString include = new String(Tool.readchararray(Locator.findBinROOT() + includefile[i + 1]));\r\n\r\n\t\t\t\t\t\torg = org.replace(includefile[i], include.trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(Exception e)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlog.error(\"Configfile missing\", e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconfig.load(new ByteArrayInputStream(org.trim().getBytes(\"UTF8\")));\r\n\r\n\t\t\t\tstage = config.getString(\"staging\", \"test\");\r\n\r\n\t\t\t\treplace = new Replacer(\"\\\\$\\\\{staging\\\\}\");\r\n\r\n\t\t\t\tSystem.out.println(\"FOUND STAGE: [\" + stage + \"]\");\r\n\t\t\t}\r\n\r\n\t\t\t// Property Configfile\r\n\t\t\t// config = new PropertiesConfiguration(\"TestServer.properties\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tlog.error(e);\r\n\t\t\tthrow e;\r\n\t\t}\r\n\r\n\t\tboolean hascmd = isClassInPath(\"org.apache.commons.cli.CommandLineParser\",\r\n\t\t \"Commandline parser disabled Lib is missing!\");\r\n\t\tif(hascmd && options != null)\r\n\t\t{\r\n\t\t\t// keine default options mehr\r\n\t\t\t// initDefaultOptions(); \r\n\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tcmd = new PosixParser().parse(options, args);\r\n\t\t\t\t//cmd = new GnuParser().parse(options, args);\r\n\t\t\t\t//cmd = new BasicParser().parse(options, args);\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tprintHelp(processname);\r\n\t\t\t}\r\n\r\n\t\t\tif(cmd.hasOption(HELP))\r\n\t\t\t{\r\n\t\t\t\tprintHelp(processname);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// DB initialisieren\r\n\r\n\t\tif(isClassInPath(\"gawky.database.DB\",\r\n\t\t \"DB wurde nicht gefunden Parameter werden ignoriert!\"))\r\n\t\t{\r\n\t\t\tDB.init();\r\n\t\t}\r\n\r\n\t\tinitdone = true;\r\n\r\n\t\treturn;\r\n\t}", "public void load(String fileName)\n throws FileNotFoundException, IOException, MissingRequiredTestPropertyException\n {\n\t\tinitializeTestProperties(new BufferedInputStream(new FileInputStream(fileName)));\n\t}", "@Test\n public void testLoadDifferentSources() throws ConfigurationException\n {\n factory.setFile(MULTI_FILE);\n Configuration config = factory.getConfiguration();\n assertFalse(config.isEmpty());\n assertTrue(config instanceof CombinedConfiguration);\n CombinedConfiguration cc = (CombinedConfiguration) config;\n assertEquals(\"Wrong number of configurations\", 1, cc\n .getNumberOfConfigurations());\n\n assertNotNull(config\n .getProperty(\"tables.table(0).fields.field(2).name\"));\n assertNotNull(config.getProperty(\"element2.subelement.subsubelement\"));\n assertEquals(\"value\", config.getProperty(\"element3\"));\n assertEquals(\"foo\", config.getProperty(\"element3[@name]\"));\n assertNotNull(config.getProperty(\"mail.account.user\"));\n\n // test JNDIConfiguration\n assertNotNull(config.getProperty(\"test.onlyinjndi\"));\n assertTrue(config.getBoolean(\"test.onlyinjndi\"));\n\n Configuration subset = config.subset(\"test\");\n assertNotNull(subset.getProperty(\"onlyinjndi\"));\n assertTrue(subset.getBoolean(\"onlyinjndi\"));\n\n // test SystemConfiguration\n assertNotNull(config.getProperty(\"java.version\"));\n assertEquals(System.getProperty(\"java.version\"), config\n .getString(\"java.version\"));\n\n // test INIConfiguration\n assertEquals(\"Property from ini file not found\", \"yes\",\n config.getString(\"testini.loaded\"));\n\n // test environment configuration\n EnvironmentConfiguration envConf = new EnvironmentConfiguration();\n for (Iterator<String> it = envConf.getKeys(); it.hasNext();)\n {\n String key = it.next();\n String combinedKey = \"env.\" + key;\n assertEquals(\"Wrong value for env property \" + key,\n envConf.getString(key), config.getString(combinedKey));\n }\n }", "private void initializeProperties() throws IOException {\n String userHome = org.wattdepot.util.logger.WattDepotUserHome.getHomeString();\n String wattDepotHome = userHome + \"/.wattdepot\";\n String clientHome = wattDepotHome + \"/client\";\n String propFile = clientHome + \"/datainput.properties\";\n initializeProperties(propFile);\n }", "public void init(Properties properties) throws IOException;", "public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initializePropertySubstitution() {\n log.debug(\"Initializing property substitution\");\r\n String discoveryBundleName = discoveryBootstrapService.getSymbolicBundleName();\r\n DiscoveryConfiguration discoveryConfiguration = getConfiguration(discoveryBundleName, DiscoveryConfiguration.class);\r\n\r\n // initialize discovery; may start a local discovery server and/or query existing servers\r\n Map<String, String> discoveryProperties = discoveryBootstrapService.initializeDiscovery(discoveryConfiguration);\r\n\r\n // register the properties learned from discovery (if any) under the \"discovery\" namespace\r\n this.addSubstitutionProperties(\"discovery\", discoveryProperties);\r\n }", "private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }", "ResourceFilesHandler() throws MissingResourceException {\n\t\tLocale locale = Locale.getDefault();\n\t\tif (!SUPPORTED_LOCALES.contains(locale)) {\n\t\t\tlocale = DEFAULT_LOCALE;\n\t\t}\n\n\t\t// generate the path to the *.properties files\n\t\tfinal String path = getClass().getPackage().getName().replaceAll(\"\\\\.\", ESCAPED_FILE_SEPERATOR);\n\n\t\t// create the ResourceBundle\n\t\tbundleConstants = ResourceBundle.getBundle(path + ESCAPED_FILE_SEPERATOR + DOMINION_CARD);\n\t\tbundleI18N = ResourceBundle.getBundle(path + ESCAPED_FILE_SEPERATOR + DOMINION_LANGUAGE, locale);\n\t}", "public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }", "private Properties loadConfig(String baseFileName, String userPathParamName) throws IOException {\n\t\tString fileName = baseFileName + \".properties\";\n\t\tProperties properties = new Properties();\n\t\ttry (InputStream configStream = ApiInitializer.class.getClassLoader().getResourceAsStream(fileName)) {\n\t\t\tif (configStream != null) {\n\t\t\t\tproperties.load(configStream);\n\t\t\t}\n\t\t}\n\n\t\t// Then, override with whatever the user set up.\n\t\tString userFilePath = servletContext.getInitParameter(userPathParamName);\n\t\tif (userFilePath == null) {\n\t\t\tuserFilePath = \"WEB-INF/\" + baseFileName + \".properties\";\n\t\t} else {\n\t\t\tPath path = Paths.get(userFilePath, baseFileName + \".properties\");\n\t\t\tuserFilePath = path.toString();\n\t\t}\n\t\ttry (InputStream inStream = servletContext.getResourceAsStream(userFilePath);) {\n\t\t\tif (inStream != null) {\n\t\t\t\tproperties.load(inStream);\n\t\t\t}\n\t\t}\n\n\t\treturn properties;\n\t}", "private static Properties loadOverrideProperties() {\n String confFile = System.getProperty(HAPI_PROPERTIES);\n if(confFile != null) {\n try {\n Properties props = new Properties();\n props.load(new FileInputStream(confFile));\n return props;\n }\n catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties file: \" + confFile, e);\n }\n }\n\n return null;\n }", "private void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\n is.close();\n\t}", "private static synchronized void setProperties(final String[] astrArgs) {\n try {\n final String strPropertiesFilename;\n\n if (Args.exists(astrArgs,\n AdaptiveReplicationTool.KEY_PROPERTIES_FILENAME)) {\n final Args args = AdaptiveReplicationTool.KEY_PROPERTIES_FILENAME\n .get(astrArgs);\n\n strPropertiesFilename = args.getArg(0);\n } else {\n strPropertiesFilename = DEFAULT_PROPERTIES_FILENAME;\n }\n setProperties(strPropertiesFilename);\n } catch (Exception excp) {\n throw new RuntimeException(excp);\n } // end try\n }", "private void loadTextures() {\n textureIdMap.keySet().forEach((i) -> {\n //for (int i = 0; i < textureFileNames.length; i++) {\n try {\n URL textureURL;\n textureURL = getClass().getClassLoader().getResource(textureIdMap.get(i));\n if (textureURL != null) {\n BufferedImage img = ImageIO.read(textureURL);\n ImageUtil.flipImageVertically(img);\n Texture temp = AWTTextureIO.newTexture(GLProfile.getDefault(), img, true);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP_TO_EDGE);\n textures.put(i, temp);\n }\n } catch (IOException | GLException e) {\n e.printStackTrace();\n }\n });\n textures.get(0).enable(gl);\n }", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }", "public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\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\n\t\treturn prop;\n\t}", "public void loadGame(){\n\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n System.out.println(\"--- LOADING GAMEFILE PROPERTIES ---\");\n\n int highestReachedLevel = getHighestLevelFromProperties();\n GameModel.getInstance().setHighestCompletedLevel(highestReachedLevel);\n\n GameModel.getInstance().setfirstTimePlay(false);\n\n //TODO: Save properties to gameModel\n\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n GameModel.getInstance().setfirstTimePlay(true);\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void loadFiles(){\n\n\t\t/* Remove all names from the combo boxes to begin with */\n\t\tpath1.removeAllItems();\n\t\tpath2.removeAllItems();\n\n\t\t/* List all files in the current working directory */\n\t\tFile file = new File(\"./\");\n\t\tFile[] configs =file.listFiles();\n\n\t\t/* For every file */\n\t\tfor (int i=0;i<configs.length;i++){\n\n\t\t\t/* Retrieve the name and if it ends with .con extension then add it\n\t\t\t * to the two combo boxes */\n\t\t\tString name = configs[i].getName();\n\t\t\tif((!(name.length()<4)) && name.substring(name.length()-4).equals(\".con\")){\n\t\t\t\tpath1.addItem(name.substring(0,name.length()-4));\n\t\t\t\tpath2.addItem(name.substring(0,name.length()-4));\n\t\t\t}\n\t\t}\n\t}", "public void loadPlugins() {\n\n ServiceLoader<Pump> serviceLoader = ServiceLoader.load(Pump.class);\n for (Pump pump : serviceLoader) {\n availablePumps.put(pump.getPumpName(), pump);\n }\n\n Pump dummy = new DummyControl();\n availablePumps.put(dummy.getName(), dummy);\n\n Pump lego = new LegoControl();\n availablePumps.put(lego.getName(), lego);\n }", "public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void loadProducts(String filename);" ]
[ "0.6460107", "0.6381417", "0.6207326", "0.61426866", "0.6135131", "0.6116478", "0.6104548", "0.6031824", "0.5959479", "0.59037185", "0.58934844", "0.5873892", "0.5865385", "0.5825572", "0.5817445", "0.57852364", "0.57715046", "0.5766124", "0.57538205", "0.5747367", "0.5726561", "0.568611", "0.5682668", "0.5665314", "0.5618794", "0.55762476", "0.55575144", "0.55447394", "0.5544024", "0.5533131", "0.54935014", "0.548748", "0.54767567", "0.5459876", "0.5406536", "0.5406447", "0.540012", "0.536811", "0.5365339", "0.5361607", "0.535957", "0.5348608", "0.5346542", "0.53424627", "0.5329288", "0.5313097", "0.5279336", "0.5276017", "0.52736956", "0.52720165", "0.52351713", "0.52278984", "0.5222113", "0.5213139", "0.5195032", "0.518993", "0.51886564", "0.51758987", "0.51718134", "0.5170207", "0.51670796", "0.51649326", "0.5162484", "0.51486427", "0.5137765", "0.51312226", "0.5128493", "0.51027876", "0.51004773", "0.5097949", "0.50964713", "0.5093682", "0.5088067", "0.5066173", "0.5066111", "0.5044131", "0.5039955", "0.5038034", "0.50329864", "0.50246084", "0.50224966", "0.5019913", "0.50171083", "0.50147384", "0.5013691", "0.5011944", "0.5001939", "0.49941677", "0.49897042", "0.49890465", "0.49879402", "0.49815086", "0.49804774", "0.49796256", "0.49760848", "0.49741715", "0.49721885", "0.49697396", "0.49675146", "0.4958758" ]
0.75746167
0
Inserts payment details into database.
public boolean insertPaymentDetails(Payment payment) throws ApplicationException { Transaction transaction = null; Session session = null; try { session = getSession(); session.flush(); transaction = session.beginTransaction(); System.out.println(payment); session.save(payment); System.out.println(session.save(payment)); transaction.commit(); session.clear(); return true; } catch (HibernateException e) { e.printStackTrace(); throw new ApplicationException("Some error occured while inserting details of Cart: " +payment.getId(),e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int insert(Payment record);", "void insert(PaymentTrade record);", "int insert(PurchasePayment record);", "int insert(BusinessRepayment record);", "void insertCustomerDDPay(CustomerDDPay cddp);", "void insert(IrpSignInfo record) throws SQLException;", "public void insert(PaymentSummary object)\n throws SQLException {\n object.doSetId(this.getNextChelseaId());\n this.execute(new ParametricStatement[] {\n new ParametricStatement(insertSql, fromObjectToBean(object).toList())\n });\n }", "int insert(SsPaymentBillPerson record);", "public static int insertPayment(User u) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n System.out.println(\"DBSetup @ LINE 101\");\n String query\n = \"INSERT INTO payment (userID, creditCardType, cardNumber, expireMonth, expireYear, cvv) \"\n + \"VALUES (?, ?, ?, ?, ?, ?)\";\n try {\n ps = connection.prepareStatement(query);\n ps.setInt(1, u.getUserID());\n ps.setString(2, u.getPaymentType().getCreditCardType());\n ps.setString(3, u.getPaymentType().getCardNumber());\n ps.setString(4, u.getPaymentType().getExpireMonth());\n ps.setString(5, u.getPaymentType().getExpireYear());\n ps.setInt(6, Integer.parseInt(u.getPaymentType().getCvv()));\n return ps.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e);\n return 0;\n } finally {\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "int insert(RepaymentPlanInfoUn record);", "public long insertPayment(String name, String price, String details) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n // `id` will be inserted automatically.\n values.put(Payment.COLUMN_NAME, name);\n values.put(Payment.COLUMN_PRICE, price);\n values.put(Payment.COLUMN_DETAILS, details);\n values.put(Payment.COLUMN_TIMESTAMP, DateFormat.getDateTimeInstance().format(new Date()));\n\n // insert row\n long id = db.insert(tableName, null, values);\n\n // close db connection\n db.close();\n\n // return newly inserted row id\n return id;\n }", "public void insert(UsersTransaction transaction) throws DBException {\n\t\tConnection con = null;\n\t\tPreparedStatement pst = null;\n\t\ttry {\n\t\t\tcon = ConnectionUtil.getConnection();\n\t\t\tString sql = \"insert into transaction_details (id,donor_id,fund_id,amount_funded) values ( ?,?,?,?)\";\n\t\t\tpst = con.prepareStatement(sql);\n\t\t\tpst.setInt(3, transaction.getFundRequestId());\n\t\t\tpst.setInt(2, transaction.getDonorId());\n\t\t\tpst.setInt(1, transaction.getTransactionId());\n\t\t\tpst.setDouble(4, transaction.getTargetAmount());\n\t\t\tint rows = pst.executeUpdate();\n\t\t\tLogger.info(\"No of rows inserted :\" + rows);\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DBException(\"unable to insert rows\");\n\t\t} finally {\n\t\t\tConnectionUtil.close(con, pst);\n\t\t}\n\t}", "public static void addOnePayment(Payment pagamento) throws ClassNotFoundException{\r\n\t\t\r\n\t\t//Insertion occurs in table \"metododipagamento\"\r\n \t//username:= postgres\r\n \t//password:= effe\r\n \t//Database name:=strumenti_database\r\n \t\r\n \tClass.forName(\"org.postgresql.Driver\");\r\n \t\r\n \ttry (Connection con = DriverManager.getConnection(JDBC_URL, JDBC_USERNAME, JDBC_PASSWORD)){\r\n \t\t\r\n \t\ttry (PreparedStatement pst = con.prepareStatement(\r\n \t\t\t\t\"INSERT INTO \" + NOME_TABELLA + \" \"\r\n \t\t\t\t+ \"(cliente, nomemetodo, credenziali) \"\r\n \t\t\t\t+ \"VALUES (?,?,?)\")) {\r\n \t\t\t\r\n \t\t\tpst.setString(1, pagamento.getUserMailFromPayment());\r\n \t\t\tpst.setString(2, pagamento.getNomeMetodo());\r\n \t\t\tpst.setString(3, pagamento.getCredenziali());\r\n \t\t\t\r\n \t\t\tint n = pst.executeUpdate();\r\n \t\t\tSystem.out.println(\"Inserite \" + n + \" righe in tabella \" \r\n \t\t\t\t\t\t\t\t+ NOME_TABELLA + \": \" + pagamento.getUserMailFromPayment() + \".\");\r\n \t\t\t\r\n \t\t} catch (SQLException e) {\r\n \t\t\tSystem.out.println(\"Errore durante inserimento dati: \" + e.getMessage());\r\n \t\t}\r\n \t\t\r\n \t} catch (SQLException e){\r\n \t\tSystem.out.println(\"Problema durante la connessione iniziale alla base di dati: \" + e.getMessage());\r\n \t}\r\n\t\t\r\n\t}", "public void insert() throws SQLException {\n String sql = \"INSERT INTO course (courseDept, courseNum, courseName, credit, info) \"\n + \" values ('\"\n + this.courseDept + \"', '\"\n + this.courseNum + \"', '\"\n + this.courseName + \"', \"\n + this.credit + \", '\"\n + this.info + \"')\";\n\n DatabaseConnector.updateQuery(sql);\n }", "void insert(OrderPreferential record) throws SQLException;", "int insert(OrderDetails record);", "@Override\r\n\tpublic void save(XftPayment xtp) {\n\t\ttry {\r\n\t\t\tlogger.info(\"save..........servicr.....:\"+JSONUtils.beanToJson(xtp));\t\r\n\t\t\txftPaymentMapper.insert(xtp);\r\n\t\t}catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static int insert(Order order) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n System.out.println(\"DBSetup @ LINE 101\");\n String query\n = \"INSERT INTO orders (dateNow, userID, taxRate, totalCost, paid) \"\n + \"VALUES (?, ?, ?, ?, ?)\";\n try {\n ps = connection.prepareStatement(query);\n //ps.setInt(1, order.getOrderNumber());\n ps.setTimestamp(1, order.getDate());\n ps.setInt(2, order.getUser().getUserID());\n System.out.println(\"order @ line 166 \" + order.getUser().getUserID());\n ps.setFloat(3, order.getTaxRate());\n ps.setDouble(4, order.getTotal());\n ps.setBoolean(5, order.getPaid());\n return ps.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e);\n return 0;\n } finally {\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "int insert(PayLogInfoPo record);", "int insert(AccountPaymentMethodEntityWithBLOBs record);", "int insert(TmpUserPayAccount record);", "int insert(OrderDetail record);", "public void insert(){\n Connection conn = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n \n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverManager.getConnection(\n \"jdbc:mysql://localhost:3306/process_checkout\",\"root\",\"\"\n );\n \n String query = \"INSERT INTO area (name) VALUES (?)\";\n \n PreparedStatement preparedStmt = conn.prepareStatement(query);\n preparedStmt.setString(1, name);\n preparedStmt.execute();\n \n }catch(SQLException e){\n \n } catch (ClassNotFoundException ex) {\n \n }finally{\n try {\n if(rs != null)rs.close();\n } catch (SQLException e) {\n /* ignored */ }\n try {\n if(ps != null)ps.close();\n } catch (SQLException e) {\n /* ignored */ }\n try {\n if(conn != null)conn.close();\n } catch (SQLException e) {\n /* ignored */ }\n }\n \n }", "int insert(FinancialManagement record);", "public boolean registerPayment(Payment transfer) {\n boolean done = false;\n String sql = \"INSERT INTO payment(description, total, member_id) VALUES(?,?,?)\";//pay_date: en la base de datos poner por defecto el valor del tiempo actual con el metodo now()\n try ( Connection con = connect(); PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setString(1, transfer.getDescription());\n pstmt.setInt(2, (int) transfer.getTotal());\n\n pstmt.setInt(3, transfer.getMember_id());\n pstmt.executeUpdate();\n done = true;\n\n System.out.println(\"Payment transfered\");\n } catch (SQLException e) {\n System.out.println(\"Error in the transaction\");\n System.out.println(e.getMessage());\n }\n\n return done;\n }", "@Override\r\n\tpublic void insertPurchase(Purchase Purchase) throws Exception {\n\t\t\r\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}", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "int insertSelective(Payment record);", "public void insertBillDrink(Bill billDrink) {\n\tString sql = \"INSERT INTO bills ( Id_food, Id_drink, Id_employees, Price, Serial_Number_Bill, TOTAL ) VALUES (?,?,?,?,?,?)\";\n\n\ttry {\n\t\tPreparedStatement ps = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\t\tps.setString(1, null);\n\t\t\tps.setInt(2, billDrink.getIdD());\n\t\t ps.setInt(3, billDrink.getIdE());\n\t\t\tps.setDouble(4, billDrink.getPrice());\n\t\t\tps.setString(5, billDrink.getSerialNumber());\n\t\t\tps.setDouble(6, billDrink.getTotal());\n\t\t\tps.execute();\n\t\t \n\t\t \n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\n}\n\t\n}", "public boolean savePayment(Pagamento payment) {\n\t\tString pattern = \"yyyy-MM-dd HH:mm:ss\";\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\tString query = \"INSERT INTO pagamenti (id_veicolo, importo, orario, tipologia) VALUES (\";\n\t\tquery += \"'\" + payment.idVeicolo + \"',\" + Double.toString(payment.importo) + \",\";\n\t\tquery += \"'\" + simpleDateFormat.format(payment.orario) + \"','\" + payment.tipologia + \"')\";\n\t\t\n\t\treturn db.writeData(query);\n\t}", "void insert(CusBankAccount record);", "public void createAccount(String acctId, String pass, String cardNo, String email) {\n accountId = acctId;\n password = pass;\n cardNumber = cardNo;\n customerEmail = email;\n \n try {\n //conect to database\n Class.forName(\"com.mysql.jdbc.Driver\");\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/make_order_request\", \"root\", \"admin\");\n Statement mystmt = con.createStatement();\n\n //write SQL query to update code in database\n String query = \"INSERT INTO customer_account(account_id, password, card_no, customer_email) VALUES (?,?,?,?)\";\n PreparedStatement ps = con.prepareStatement(query);\n ps.setString(1, accountId);\n ps.setString(2, password);\n ps.setInt(3, Integer.parseInt(cardNumber));\n ps.setString(4, customerEmail);\n\n ps.executeUpdate();\n\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n \n }\n\n }", "int insertSelective(PurchasePayment record);", "int insert(DepAcctDO record);", "public void insertDB() {\n sql = \"Insert into Order (OrderID, CustomerID, Status) VALUES ('\"+getCustomerID()+\"','\"+getCustomerID()+\"', '\"+getStatus()+\"')\";\n db.insertDB(sql);\n \n }", "public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }", "public void insert(ChargePolicy chargePolicy);", "int insert(BankUserInfo record);", "int insert(BankUserInfo record);", "public String addBilling(Tour t,Event e){\n \n \n String result = \"0\";\n Connection con = null;\n //build the sql\n String SQLCommand = \"INSERT INTO billing(id,lineup_order,event_id,artist_id,tour_id)\" +\n \" values (seq_billing_id.NEXTVAL,?,?,?,?)\";\n \n try{\n //obtain the database connection by calling getConn() \n con = getConn();\n Billing b = t.getBills().get(0);\n \n \n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql , parameters are represented by ? in the sql\n PreparedStatement ps = con.prepareStatement(SQLCommand); \n \n //setting the parameters values\n ps.setInt(1,b.getLineupOrder());\n ps.setLong(2,e.getId());\n ps.setLong(3, b.getArtist().getId());\n ps.setLong(4, t.getId());\n \n //exceuting the insert or update operation \n ps.executeUpdate(); \n }\n catch (SQLException ex){\n ex.printStackTrace();\n result = ex.getMessage();\n }\n return result;\n }", "public void insertBillFood(Bill billFood) {\nString sql = \"INSERT INTO bills ( Id_food, Id_drink, Id_employees, Price, Serial_Number_Bill, TOTAL ) VALUES (?,?,?,?,?,?)\";\n \ntry {\n\tPreparedStatement ps = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t \n\t\n\t\tps.setInt(1, billFood.getIdF());\n\t\tps.setString(2,null);\n\t ps.setInt(3, billFood.getIdE());\n\t\tps.setDouble(4, billFood.getPrice());\n\t\tps.setString(5, billFood.getSerialNumber());\n\t\tps.setDouble(6, billFood.getTotal());\n\t\tps.execute();\n\t\t\n\t\n\t \n} catch (SQLException e) {\n\t// TODO Auto-generated catch block\n\te.printStackTrace();\n}\n\n\t\n\t\n}", "int insert(DangerMerchant record);", "private void updatePayments(int id, int toPay) {\n\t\tint customer_id=id;\n\t\tint payment=toPay;\n\t\ttry {\n\t\t\tPreparedStatement pstmt=con.prepareStatement(\"insert into payments(customerNumber,payments) values(?,?)\");\n\t\t\tpstmt.setInt(1, customer_id);\n\t\t\tpstmt.setInt(2, payment);\n\t\t\tint rowseffected=pstmt.executeUpdate();\n\t\t\tif(rowseffected>0) {\n\t\t\t\tSystem.out.println(\"--------------------------------ORDER PLACED--------------------------------\");\n\t\t\t\tuserTasks();\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\t\n\t}", "void insertSelective(IrpSignInfo record) throws SQLException;", "int insert(MedicalOrdersExecutePlan record);", "@Override\n\tpublic void insertOrder(Orders order) throws SQLException {\n\t\tConnection conn = null;\n PreparedStatement stmt = null;\n String sql=\"INSERT INTO orders(orderName,orderAddress,orderPhone,orderNumber,orderTime,bookName,orderMemo) VALUES(?,?,?,?,?,?,?)\";\n try {\n conn = DBCPUtils.getConnection();\n stmt = conn.prepareStatement(sql);\n stmt.setString(1,order.getOrderName());\n stmt.setString(2,order.getOrderAddress());\n stmt.setString(3,order.getOrderPhone());\n stmt.setInt(4,order.getOrderNumber());\n stmt.setString(5,order.getOrderTime());\n stmt.setString(6,order.getBookName());\n stmt.setString(7,order.getOrderMemo());\n stmt.executeUpdate();\n \n } catch (SQLException e) {\n e.printStackTrace();\n }finally{\n DBCPUtils.releaseConnection(conn, stmt, null); \n }\n\t\t\n\t\t\n\t}", "int insert(CartDO record);", "int insert(ClOrderInfo record);", "void insert(Disproduct record);", "public static void insertOrders() {\n Connection con = getConnection();\n\n String insertString1, insertString2, insertString3, insertString4;\n insertString1 = \"insert into Orders values(543, 'Belt', 6323)\";\n insertString2 = \"insert into Orders values(432, 'Bottle', 1234)\";\n insertString3 = \"insert into Orders values(876, 'Ring', 5678)\";\n\n try {\n stmt = con.createStatement();\n stmt.executeUpdate(insertString1);\n stmt.executeUpdate(insertString2);\n stmt.executeUpdate(insertString3);\n\n stmt.close();\n con.close();\n\n } catch (SQLException ex) {\n System.err.println(\"SQLException: \" + ex.getMessage());\n }\n JOptionPane.showMessageDialog(null, \"Data Inserted into Orders Table\");\n }", "public void insert() throws SQLException;", "int insert(ProcRecInvoice record);", "int insert(cskaoyan_mall_order_goods record);", "@Override\n\tpublic void addTransactionToDatabase(Transaction trans) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into transaction_history values(default, ?, ?, ?, now())\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setInt(1, trans.getAccountId());\n\t\t\tprepStmt.setString(2, trans.getUsername());\n\t\t\tprepStmt.setDouble(3, trans.getAmount());\n\t\t\tprepStmt.executeUpdate();\n\t}", "private void insertPerform(){\n \tif(!verify()){\n \t\treturn;\n \t}\n \tString val=new String(\"\");\n \tval=val+\"'\"+jTextField1.getText()+\"', \"; // poNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker1.getValue()\n \t\t)\n \t\t+\"', \"; // poDate\n \tval=val+\"'\"+vndList[jTextField2.getSelectedIndex()-1]+\"', \"; // vndNo\n \tval=val+\"'\"+jTextField3.getText()+\"', \"; // qtnNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker2.getValue()\n \t\t)\n \t\t+\"', \"; // qtnDate\n \tval=val+\"'\"+poAmount+\"', \"; // poTotal\n \tval=val+\"'pending', \"; // poStatus\n \tval=val+\"'\"+jEditorPane1.getText()+\"' \"; // remark\n \t\n \ttry{\n \t\tdbInterface1.cmdInsert(\"poMaster\", val);\n \t\tinsertPoBomDesc();\n \t\tinsertPoDesc();\n\t \tupdateBOM();\n \t}\n \tcatch(java.sql.SQLException ex){\n \t\tSystem.out.println (ex);\n \t}\n \tresetPerform();\n }", "int insert(PmPost record);", "int insert(UserPonumberGoods record);", "int insert(GoodsPo record);", "int insert(FundManagerDo record);", "public void addCustomer(int Id, String name, String dob, String gender, String number, String email, String address, String password, Boolean promo, Integer reward, Boolean reg) throws SQLException { //code for add-operation \n st.executeUpdate(\"INSERT INTO IOTBAY.CUSTOMER \" + \"VALUES ('\" \n + Id + \"','\" + name + \"', '\" + dob + \"', '\" \n + gender + \"', '\" + number + \"', '\" \n + email + \"', '\" + address + \"', '\" \n + password + \"', '\" + promo + \"', '\"+ reward + \"', '\"+ reg \n + \"')\");\n\n }", "int insertGenDetail(Integer uid, Integer merid, Double paymoney, Double sendmoney, Double tomoney, Double balance, Double topupbalance, Double givebalance, String ordernum, Date createTime, Integer paysource, String remark);", "int insert(Transaction record);", "public int nextadd(Long id,Long broker_name,Long bankaccountNo, String bankname, String branchname,\r\n\t\tString pancard_no, Long demataccountNo,double balance) throws SQLException {\n\tint j=DbConnect.getStatement().executeUpdate(\"insert into customer_details values(\"+id+\",'\"+pancard_no+\"','\"+bankname+\"','\"+branchname+\"',\"+bankaccountNo+\",\"+demataccountNo+\",\"+broker_name+\")\");\r\n\tint k=DbConnect.getStatement().executeUpdate(\"insert into account values(\"+bankaccountNo+\",\"+balance+\")\");\r\n\treturn j;\r\n}", "public int insertFinance(Object params) throws Exception;", "public void insertBooking(Booking booking) throws SQLException, Exception;", "public static void insertDemoData() throws SQLException\n {\n insertAccount(new Account(0, \"John Doe\", \"Marvin Gardens\", false));\n insertAccount(new Account(0, \"Robert Roe\", \"Louisiana Avenue\", false));\n }", "int insert(FinanceAccount record);", "@Override\r\n\tpublic int insert(PayRecord record) {\n\t\treturn this.session.insert(\"com.icss.dao.PayRecordMapper.insert\", record);\r\n\t}", "int insert(Promo record);", "int insert(PrescriptionVerifyRecordDetail record);", "void insert(GfanCodeBanner record) throws SQLException;", "public void insert(VRpDyTrxTotal record) {\r\n getSqlMapClientTemplate().insert(\"V_RP_DY_TRX_TOTAL.ibatorgenerated_insert\", record);\r\n }", "int insert(UcOrderGuestInfo record);", "int insert(OrderPO record);", "Purchase create(Purchase purchase) throws SQLException, DAOException;", "int insert(ShopAccount record);", "public void addindbpayment(){\n \n \n double tot = calculateTotal();\n Payment pms = new Payment(0,getLoggedcustid(),tot);\n \n System.out.println(\"NI Payment \"+getLoggedcustid()+\" \"+pms.getPaymentid()+\" \"+pms.getTotalprice());\n session = NewHibernateUtil.getSessionFactory().openSession();\n session.beginTransaction();\n session.save(pms);\n try \n {\n session.getTransaction().commit();\n session.close();\n } catch(HibernateException e) {\n session.getTransaction().rollback();\n session.close();\n }\n clear();\n setBookcart(null);\n test.clear();\n itemdb.clear();\n \n \n try{\n FacesContext.getCurrentInstance().getExternalContext().redirect(\"/BookStorePelikSangat/faces/index.xhtml\");\n } \n catch (IOException e) {}\n \n\t}", "@Override\n\tpublic ResultMessage add(PaymentOrderPO po) {\n\t\tString sql=\"insert into paymentlist(ID,date,amount,payer,bankaccount,entry,note)values(?,?,?,?,?,?,?)\";\n\t\ttry {\n\t\t\tstmt=con.prepareStatement(sql);\n\t\t\tstmt.setString(1, po.getID());\n\t\t\tstmt.setString(2, po.getDate());\n\t\t\tstmt.setDouble(3, po.getAmount());\n\t\t\tstmt.setString(4, po.getPayer());\n\t\t\tstmt.setString(5, po.getBankAccount());\n\t\t\tstmt.setString(6, po.getEntry());\n\t\t\tstmt.setString(7, po.getNote());\n\t\t\tstmt.executeUpdate();\n\t\t\treturn ResultMessage.Success;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn ResultMessage.Fail;\n\t\t}\n\t}", "public void insert(Deptpk record) throws SQLException {\r\n sqlMapClient.insert(\"SCOTT_DEPTPK.abatorgenerated_insert\", record);\r\n }", "int insert(MVoucherDTO record);", "public void transaction() throws DBException {\n\t\tUsersTransaction transaction = new UsersTransaction();\n\t\tScanner scan = new Scanner(System.in);\n\t\tLogger.info(\"================TRANSACTION DETAILS TO DONATE======================\");\n\t\tLogger.info(\"Enter the transaction ID\");\n\t\ttransactionId = scan.nextInt();\n\t\tLogger.info(\"Enter the donor ID\");\n\t\tdonorId = scan.nextInt();\n\t\tLogger.info(\"Enter the fund Id\");\n\t\tfundRequestId = scan.nextInt();\n\t\tLogger.info(\"Enter the amount to be funded\");\n\t\ttargetAmount = scan.nextInt();\n\t\ttransaction.setTransactionId(transactionId);\n\t\ttransaction.setDonorId(donorId);\n\t\ttransaction.setFundRequestId(fundRequestId);\n\t\ttransaction.setTargetAmount(targetAmount);\n\t\tinsert(transaction);\n\t\tdonorFundRequest(reqType);\n\t}", "int insert(AccountBankStatementImportJournalCreationEntity record);", "int insertSelective(SsPaymentBillPerson record);", "public void createpay(String date1, String cname, String amt, String desci) {\n\t\tContentValues cv=new ContentValues();\n\t\tcv.put(Sales_Date, date1);\n\t\tcv.put(Sales_Cname, cname);\n\t\t\n\t\tcv.put(Sales_Amt, Integer.parseInt(amt));\n\t\tcv.put(Sales_Des, desci);\n\t\tourDatabase.insert(DATABASE_TABLE3, null, cv);\n\t\n\t}", "@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}", "@Override\r\n\tpublic long insertPostPaidAccount(int customerID, PostpaidAccount account) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic boolean addPayment(Payment payment) throws Exception {\n\t\ttry {\n\t\t\t\n\t\t\tint ret = registerMapper.addPayment(payment) ;\n\t\t\tif(ret >0){\n\t\t\t\tStudent student = new Student() ;\n\t\t\t\tstudent.setApp_info_code(payment.getApp_info_code()) ;\n\t\t\t\tstudent.setCode(payment.getStudent_code()) ;\n\t\t\t\tstudent.setPaid_amount(payment.getAmount()) ;\n\t\t\t\tret = registerMapper.updateRegInfo(student) ;\n\t\t\t\tif(ret<1){\n\t\t\t\t\tthrow new Exception(\"更新总金额失败\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn true ;\n\t\t\t}else{\n\t\t\t\tthrow new Exception(\"付费写入失败\") ;\n\t\t\t}\n\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t\n\t\t\tthrow new RunTimeException(e.getMessage()) ;\n\t\t}\n\t\t\n\t}", "int insert(PmKeyDbObj record);", "public void insert(BibliographicDetails bibDetails) {\n\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n session.save(bibDetails);\n tx.commit();\n } catch (RuntimeException e) {\n \n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "int insert(FundsPackageRatio record);", "@Insert({\n \"insert into PURCHASE (ID, SDATE, \",\n \"STYPE, SMONEY, TOUCHING, \",\n \"ACCOUNT, CHECKSTATUS, \",\n \"DEMO1, DEMO2, DEMO3)\",\n \"values (#{id,jdbcType=DECIMAL}, #{sdate,jdbcType=TIMESTAMP}, \",\n \"#{stype,jdbcType=VARCHAR}, #{smoney,jdbcType=DECIMAL}, #{touching,jdbcType=VARCHAR}, \",\n \"#{account,jdbcType=VARCHAR}, #{checkstatus,jdbcType=DECIMAL}, \",\n \"#{demo1,jdbcType=DECIMAL}, #{demo2,jdbcType=VARCHAR}, #{demo3,jdbcType=DECIMAL})\"\n })\n int insert(Purchase record);", "@Override\r\n\tpublic void insert(Customer customer) throws SQLException {\r\n\r\n\t\tString insertSql = \"INSERT INTO \" + tableName\r\n\t\t\t\t+ \"(name, surname, birth_date, birth_place, address, city, province, cap, phone_number, newsletter, email)\"\r\n\t\t\t\t+ \" VALUES (?,?,?,?,?,?,?,?,?,?,?)\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(insertSql);\r\n\t\t\tpreparedStatement.setString(1, customer.getName());\r\n\t\t\tpreparedStatement.setString(2, customer.getSurname());\r\n\t\t\tpreparedStatement.setDate(3, (Date) customer.getBirthdate());\r\n\t\t\tpreparedStatement.setString(4, customer.getBirthplace());\r\n\t\t\tpreparedStatement.setString(5, customer.getAddress());\r\n\t\t\tpreparedStatement.setString(6, customer.getCity());\r\n\t\t\tpreparedStatement.setString(7, customer.getProvince());\r\n\t\t\tpreparedStatement.setInt(8, customer.getCap());\r\n\t\t\tpreparedStatement.setString(9, customer.getPhoneNumber());\r\n\t\t\tpreparedStatement.setInt(10, customer.getNewsletter());\r\n\t\t\tpreparedStatement.setString(11, customer.getEmail());\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t}", "public void insertOrdertable(int rorderId, java.util.Date rorderDate, int clientId, double totalPrice, String paymentMethod, String transactionId, String pinNumber, String address) throws SQLException {\r\n\r\n connection = Database.getConnection();\r\n String queryRo = \"insert into order_table (order_id, order_date, client_id, total_price, payment_method, transaction_id, pin_number, delivery_address, order_status)\"\r\n + \" values (?,?,?,?,?,?,?,?,?)\";\r\n PreparedStatement pstm1 = connection.prepareStatement(queryRo);\r\n pstm1.setInt(1, rorderId);\r\n pstm1.setDate(2, (Date) rorderDate);\r\n pstm1.setInt(3, clientId);\r\n pstm1.setDouble(4, totalPrice);\r\n pstm1.setString(5, paymentMethod);\r\n pstm1.setString(6, transactionId);\r\n pstm1.setString(7, pinNumber);\r\n pstm1.setString(8, address);\r\n pstm1.setString(9, \"Accepted\");\r\n\r\n int addRo = pstm1.executeUpdate();\r\n\r\n String qureyRol = \"INSERT INTO order_line (order_serial, order_id, client_id, product_id, quantity, total, date )\"\r\n + \"SELECT rorder_serial, rorder_id, client_id, product_id, quantity, total, date \\n\"\r\n + \"FROM requested_orderline\\n\"\r\n + \"WHERE (rorder_id=\" + rorderId + \")\";\r\n PreparedStatement pstm2 = connection.prepareStatement(qureyRol);\r\n int q = pstm2.executeUpdate();\r\n\r\n String update = \"update requested_order set order_status='Accepted' where rorderid=\"+rorderId+\"\";\r\n PreparedStatement pstm3 = connection.prepareStatement(update);\r\n int u = pstm3.executeUpdate();\r\n\r\n pstm1.close();\r\n pstm2.close();\r\n pstm3.close();\r\n\r\n Database.close(connection);\r\n //return arr2;\r\n }", "public static void addPayment(Payment payment) {\r\n\t\tEntityManager em = DBUtil.getEntityManagerFactory()\r\n\t\t\t\t.createEntityManager();\r\n\t\tEntityTransaction entityTrans = em.getTransaction();\r\n\t\tentityTrans.begin();\r\n\r\n\t\ttry {\r\n\t\t\tem.persist(payment);\r\n\t\t\tentityTrans.commit();\r\n\t\t} catch (Exception e) {\r\n\t\t\tentityTrans.rollback();\r\n\t\t} finally {\r\n\t\t\tem.close();\r\n\t\t}\r\n\t}", "int insert(SmtOrderProductAttributes record);", "int insert(CGcontractCredit record);", "public void addRecord(Record record, String clientName, String assessmentYear, String taxType, String paymentDate, String paymentAmount) {\n\n String add = \"INSERT INTO \" + TABLE_RECORDS + \" VALUES\" + \"(\\\"\" + clientName + \"\\\",\\\"\" + assessmentYear + \"\\\"\" + \",\\\"\" + taxType + \"\\\"\" + \",\\\"\" +\n paymentDate + \"\\\"\" + \",\\\"\" + paymentAmount + \"\\\")\";\n records.add(record);\n\n try {\n statement = connection.prepareStatement(add);\n statement.executeUpdate();\n logFile.modifyLogFile(\"New record added successfully in database\"); //writing insert statement into log file\n } catch (SQLException e) {\n logFile.modifyLogFile(\"Error adding new record in database : \" + e.getMessage());\n e.printStackTrace();\n }\n }", "int insert(NeeqCompanyAccountingFirmOnline record);", "@Insert({\n \"insert into order (id, orderid, \",\n \"name, price, userid)\",\n \"values (#{id,jdbcType=BIGINT}, #{orderid,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{userid,jdbcType=VARCHAR})\"\n })\n int insert(Order record);" ]
[ "0.7183719", "0.71617275", "0.71064353", "0.6930649", "0.68803203", "0.6864145", "0.6633516", "0.6625772", "0.6563608", "0.6426866", "0.6407366", "0.6386649", "0.63450795", "0.63225734", "0.6306047", "0.63039356", "0.62708914", "0.6245052", "0.62404644", "0.6185782", "0.6185768", "0.6181042", "0.6179918", "0.6175257", "0.616018", "0.6155604", "0.6147697", "0.6139793", "0.61186826", "0.6109146", "0.6094891", "0.60941446", "0.60707664", "0.6041688", "0.6040768", "0.60367537", "0.60314476", "0.60272896", "0.6020298", "0.6020298", "0.5989721", "0.5979747", "0.5975596", "0.5972204", "0.5967297", "0.5954497", "0.5952722", "0.59510624", "0.5950247", "0.5946789", "0.5931128", "0.59294796", "0.5921106", "0.5915109", "0.5902283", "0.5901396", "0.5898309", "0.58965385", "0.58904326", "0.5890209", "0.58887815", "0.5887545", "0.58873713", "0.58806133", "0.58660257", "0.5864618", "0.586199", "0.58527595", "0.5852111", "0.58390534", "0.58224934", "0.5816856", "0.5815592", "0.581225", "0.58121824", "0.5812167", "0.5811969", "0.580863", "0.58006877", "0.57850754", "0.5784566", "0.5782311", "0.578038", "0.57752585", "0.57674325", "0.57595205", "0.57586277", "0.57569295", "0.5755347", "0.5752665", "0.57514125", "0.5747451", "0.57451826", "0.5744416", "0.57414913", "0.57394594", "0.57319087", "0.57311875", "0.57308894", "0.57258946" ]
0.67069304
6
Retrieves the payment list present in the database.
@SuppressWarnings("unchecked") public List<Payment> retrievePaymentDetails() throws ApplicationException { Session session = null; try { session = getSession(); return session.createQuery("FROM PurchaseOrder").list(); } catch (HibernateException e) { throw new ApplicationException("Some error occured while listing the details of all cart",e); } finally { session.flush(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Payment> findAll(){\n\t\treturn paymentRepository.findAll();\n\t}", "public ArrayList<Payment> getPaymentList(){\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tArrayList<Payment> list = new ArrayList<Payment>();\n\t\ttry{\n\t\t\tCriteria cr = session.createCriteria(TblPayment.class);\n\t\t\tList<TblPayment> payments = cr.list();\n\t\t\tif (payments.size() > 0){\n\t\t\t\tfor (Iterator<TblPayment> iterator = payments.iterator(); iterator.hasNext();){\n\t\t\t\t\tTblPayment tblpayment = iterator.next();\n\t\t\t\t\tPayment payment = new Payment();\n\t\t\t\t\tpayment.convertFromTable(tblpayment);\n\t\t\t\t\tlist.add(payment);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tSystem.err.println(\"ERROR IN LIST!!!!!!\");\n\t\t\te.printStackTrace();\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn list;\n\t}", "@GetMapping(\"/payments\")\n public List<Payment> getAllPayments() {\n log.debug(\"REST request to get all Payments\");\n return paymentRepository.findAll();\n }", "public List<Payment> getAllPayments() {\n\t\treturn null;\r\n\t}", "public List<Payment> listPayments() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(Payment.class);\n\t}", "@GetMapping(\"/payment\")\n\tpublic ResponseEntity<List<Payment>> viewAllPayments() {\n\t\tlogger.info(\"View all Payments\");\n\t\treturn ResponseEntity.ok().body(payService.viewAllPayments());\n\t}", "public List<PaymentEntity> getPaymentMethods() {\n return entityManager.createNamedQuery(\"getAllPaymentMethods\", PaymentEntity.class).getResultList();\n\n }", "public List<Payment> retrievePaymentsByPedido(Order order) throws DatabaseException {\n\t\ttry {\n\t\t\tthis.startConnection();\n\t\t\tString sql = \"SELECT id_payment FROM purchase WHERE id_order = \"\n\t\t\t\t\t+ returnValueStringBD(String.valueOf(order.getId()));\n\t\t\tResultSet rs = command.executeQuery(sql);\n\t\t\tList<String> id_payments = new ArrayList<String>();\n\t\t\twhile (rs.next()) {\n\t\t\t\tString pu = rs.getString(\"id_payment\");\n\t\t\t\tid_payments.add(pu);\n\t\t\t}\n\t\t\tList<Payment> payments = new ArrayList<Payment>();\n\t\t\tfor (String id : id_payments) {\n\t\t\t\tPayment pa = this.select(Integer.parseInt(id));\n\t\t\t\tpayments.add(pa);\n\t\t\t}\n\t\t\treturn payments;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tthis.closeConnection();\n\t\t}\n\t\treturn null;\n\t}", "@GetMapping(\"/paymentGateway/payments\")\n\tpublic PaymentHistory getAllPaymentsFromGateway() {\n\t\treturn paymentQueryService.getAllPayments();\n\t}", "public ArrayList<PaymentPO> getPayment() throws RemoteException {\n\t\treturn null;\r\n\t}", "public ArrayList<Table> getTablePayment() {\n \tArrayList<Table> fetchedTables = new ArrayList<Table>();\n \tfetchedTables = getTable(tablePayment);\n \treturn fetchedTables;\n }", "@Override\n\tpublic List<RotatePayment> list(HashMap<String, Object> map) {\n\t\treturn paymentDao.list(map);\n\t}", "public Collection<Payment> getPayments(CustomerItem customerItem);", "public List<BillingRecord> list() {\n\t\tList<BillingRecord> billingRecords = new ArrayList<BillingRecord>();\n\t\tbillingRecords = billingRecordRepo.findAll();\n\t\treturn billingRecords;\n\t}", "public static List<Payment> getPaymentsFromDatabase(String mailUtente) throws ClassNotFoundException {\r\n\t\t\r\n\t\t//Query occurs in table \"metododipagamento\"\r\n \t//username:= postgres\r\n \t//password:= effe\r\n \t//Database name:=strumenti_database\r\n\t\t\r\n\t\tList<Payment> pagamentiAggiornati = new ArrayList<Payment>();\r\n \t\r\n \tClass.forName(\"org.postgresql.Driver\");\r\n \t\r\n \ttry (Connection con = DriverManager.getConnection(JDBC_URL, JDBC_USERNAME, JDBC_PASSWORD)){\r\n \t\t\r\n \t\ttry (PreparedStatement pst = con.prepareStatement(\r\n \t\t\t\t\"SELECT * FROM \" + NOME_TABELLA + \" \"\r\n \t\t\t\t+ \"WHERE cliente = ?\")) {\r\n \t\t\t\r\n \t\t\tpst.setString(1, mailUtente);\r\n \t\t\t\r\n \t\t\tResultSet rs = pst.executeQuery();\r\n \t\t\t\r\n \t\t\twhile (rs.next()) {\r\n\r\n \t\t\t\tString userMail = rs.getString(\"cliente\");\r\n \t\t\t\tString nomeMetodo = rs.getString(\"nomemetodo\");\r\n \t\t\t\tString credenziali = rs.getString(\"credenziali\");\r\n \t\t\t\t\r\n \t\t\t\tpagamentiAggiornati.add(new Payment(userMail, nomeMetodo, credenziali));\r\n\r\n \t\t\t}\r\n \t\t\t\r\n \t\t} catch (SQLException e) {\r\n \t\t\tSystem.out.println(\"Errore durante query dei dati: \" + e.getMessage());\r\n \t\t}\r\n \t\t\r\n \t} catch (SQLException e){\r\n \t\tSystem.out.println(\"Problema durante la connessione iniziale alla base di dati: \" + e.getMessage());\r\n \t}\r\n \t\r\n \treturn pagamentiAggiornati;\r\n\t\t\r\n\t}", "public List<Payment> retrievePaymentsByClient(Client client) throws DatabaseException {\n\t\ttry {\n\t\t\tthis.startConnection();\n\t\t\tString sql = \"SELECT id_payment FROM purchase WHERE id_client = \"\n\t\t\t\t\t+ returnValueStringBD(String.valueOf(client.getId_client()));\n\t\t\tResultSet rs = command.executeQuery(sql);\n\t\t\tList<String> id_payments = new ArrayList<String>();\n\t\t\twhile (rs.next()) {\n\t\t\t\tString pu = rs.getString(\"id_payment\");\n\t\t\t\tid_payments.add(pu);\n\t\t\t}\n\t\t\tList<Payment> payments = new ArrayList<Payment>();\n\t\t\tfor (String id : id_payments) {\n\t\t\t\tPayment p = this.select(Integer.parseInt(id));\n\t\t\t\tpayments.add(p);\n\t\t\t}\n\t\t\treturn payments;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tthis.closeConnection();\n\t\t}\n\t\treturn null;\n\t}", "public ArrayList<Payment> getItemPayments(int item_id) {\n ArrayList<Payment> paymentList = new ArrayList<Payment>();\n SQLiteDatabase db = dbHandler.getWritableDatabase();\n Cursor cursor = db.query(TABLE_PAYMENTS, null, KEY_ITEM_ID + \"=\" + item_id, null, null, null, KEY_DATE + \" DESC\");\n\n if (cursor.getCount() == 0)\n return paymentList;\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Payment payment = new Payment(Integer.parseInt(cursor.getString(1)), Float.parseFloat(cursor.getString(2)), Long.parseLong(cursor.getString(3)));\n payment.set_id(Integer.parseInt(cursor.getString(0)));\n\n // Adding Payment to list\n paymentList.add(payment);\n } while (cursor.moveToNext());\n }\n cursor.close();\n\n // return Payment list\n return paymentList;\n\n }", "public List<Payment> getAllPayments(String cartid) {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Payment a where a.cartid='\"+cartid+\"' \").list()\t;\t\r\n \r\n\t}", "public List<BrainTreePaymentInfo> getPaymentMethods()\n\t{\n\t\treturn getPaymentMethods( getSession().getSessionContext() );\n\t}", "List<PaymentsIdResponse> getAllPaymentsId();", "public lnrpc.Rpc.ListPaymentsResponse listPayments(lnrpc.Rpc.ListPaymentsRequest request) {\n return blockingUnaryCall(\n getChannel(), getListPaymentsMethod(), getCallOptions(), request);\n }", "List<BusinessRepayment> selectAll();", "public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.ListPaymentsResponse> listPayments(\n lnrpc.Rpc.ListPaymentsRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getListPaymentsMethod(), getCallOptions()), request);\n }", "public List<CustomerPurchase> getAll() throws SQLException;", "public ObjectList getList(){\n return payroll;\n }", "@Override\n\tpublic List<RotatePaymentDetail> listPaymentDetail(HashMap<String, Object> map) {\n\t\treturn paymentDao.listPaymentDetail(map);\n\t}", "@GetMapping(\"/payment-infos\")\n @Timed\n public List<PaymentInfoDTO> getAllPaymentInfos() {\n log.debug(\"REST request to get all PaymentInfos\");\n return paymentInfoService.findAll();\n }", "public List<Buy> getAll() throws PersistException;", "List<OrdPaymentRefDTO> findAll();", "@GetMapping(\"/payment\")\n public List<Payment> getPayments(@RequestParam int userID) { return paymentDataTierConnection.getPayments(userID); }", "public Cursor getAll()\r\n {\r\n \treturn mDb.query(DB_TABLE_NAME, new String[] {\"_id\",\"fundId\", \"moneyPaid\", \"currentValue\", \"units\", \"simpleReturn\"}, null, null, null, null, null);\r\n }", "RecordSet loadAllPayment(PolicyHeader policyHeader);", "@Override\n\tpublic List<Payment> selectPayments(Payment payment) throws Exception {\n\t\treturn registerMapper.selectPayments(payment);\n\t}", "List<SimpleTransferVO> paymentVOs(Account account, Period period) throws DaoException;", "public List<BrainTreePaymentInfo> getPaymentMethods(final SessionContext ctx)\n\t{\n\t\tList<BrainTreePaymentInfo> coll = (List<BrainTreePaymentInfo>)getProperty( ctx, PAYMENTMETHODS);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "public List<PosPay> listPosPay(PosPay posPay)throws DataAccessException;", "@GetMapping(\"/payments-byuser/{id}\")\n public List<Payment> getPaymentByUser(@PathVariable Long id) {\n log.debug(\"REST request to get Payment : {}\", id);\n return paymentRepository.findByUserIsCurrentUser();\n }", "public Payment[] getPaymentInfo(){\n \t\n \treturn paymentArr;\n }", "public void listPayments(lnrpc.Rpc.ListPaymentsRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.ListPaymentsResponse> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(getListPaymentsMethod(), getCallOptions()), request, responseObserver);\n }", "public List<Payment> listByUserId(Integer user_id) {\n\t\t\n\t\tLOGGER.info(\"obteniendo lista de pagos del usuario {}\", user_id);\n\n\t\treturn paymentRepo.findByUserId(user_id);\n\t}", "@Override\n\tpublic List<Commande> getAll() {\n\n\t\ttry {\n\n\t\t\tps = this.connection.prepareStatement(\"SELECT * FROM commandes\");\n\n\t\t\trs = ps.executeQuery();\n\n\t\t\tList<Commande> listeCommandesBDD = new ArrayList<>();\n\t\t\tCommande commande = null;\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tcommande = new Commande(rs.getInt(1), rs.getDate(2), rs.getInt(3));\n\t\t\t\tlisteCommandesBDD.add(commande);\n\n\t\t\t} // end while\n\n\t\t\treturn listeCommandesBDD;\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"...(CommandeDAOImpl) erreur de l'execution de getAll()...\");\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t\tps.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} // end finally\n\n\t\treturn null;\n\n\t}", "public ArrayList<Debito> getAllDebitos() {\n ArrayList<Debito> debitos = new ArrayList<Debito>();\n String selectQuery = \"SELECT * FROM \" + TABLE_DEBITOS;\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n Debito td = new Debito();\n td.setCodigo(c.getInt(c.getColumnIndex(KEY_ID)));\n td.setValor(c.getDouble(c.getColumnIndex(KEY_VALOR)));\n td.setData(c.getString(c.getColumnIndex(KEY_DATA)));\n td.setEstabelecimento((c.getString(c.getColumnIndex(KEY_ESTABELECIMENTO))));\n\n // adding to todo list\n debitos.add(td);\n } while (c.moveToNext());\n }\n\n return debitos;\n }", "List<Reimbursement> retrieveAllReimbursements();", "public List<DietaBalanceada> consultar_dietaBalanceada();", "public List<Bill> getBill() {\n\tString sql =\"SELECT * FROM bills JOIN employees e on bills.Id_employees = e.Id_employees JOIN food f on bills.Id_food = f.Id_food\";\n\tList<Bill> list = new ArrayList<Bill>();\n\ttry {\n\t\tPreparedStatement preparedStatement = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\n\t\twhile(resultSet.next()) {\n\t\t\tBill getBill = new Bill();\n\t\t\tgetBill.setId(resultSet.getInt(\"Id_bills\"));\n\t\t\tgetBill.setFood(resultSet.getString(\"Name\"));\n\t\t\tgetBill.setEmployyes(resultSet.getString(\"Name_and_surname\"));\n\t\t\tgetBill.setPrice(resultSet.getDouble(\"Price\"));\n\t\t\tgetBill.setSerialNumber(resultSet.getString(\"Serial_Number_Bill\"));\n\t\t\tgetBill.setTotal(resultSet.getDouble(\"TOTAL\"));\n\t\t\tlist.add(getBill);\n\t\t}\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\treturn list;\n}", "public static List<Payment> getPayments(String startDate, String endDate) {\r\n\t\tEntityManager em = DBUtil.getEntityManagerFactory()\r\n\t\t\t\t.createEntityManager();\r\n\t\tString query = \"SELECT p from Payment p \"\r\n\t\t\t\t+ \"WHERE p.paymentDate >= :startDate AND \"\r\n\t\t\t\t+ \"p.paymentDate <= :endDate ORDER BY p.paymentDate DESC\";\r\n\t\tTypedQuery<Payment> q = em.createQuery(query, Payment.class);\r\n\t\tList<Payment> payments = null;\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tq.setParameter(\"startDate\", sdf.parse(startDate));\r\n\t\t\tq.setParameter(\"endDate\", sdf.parse(endDate));\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.err.println(e.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tpayments = q.getResultList();\r\n\t\t\tif (payments == null || payments.isEmpty())\r\n\t\t\t\tpayments = null;\r\n\t\t} catch (NoResultException n) {\r\n\t\t\tn.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tem.close();\r\n\t\t}\r\n\t\treturn payments;\r\n\t}", "List<Receipt> getAllReceipts() throws DbException;", "public void listPayments(lnrpc.Rpc.ListPaymentsRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.ListPaymentsResponse> responseObserver) {\n asyncUnimplementedUnaryCall(getListPaymentsMethod(), responseObserver);\n }", "public static List<modelPurchasesI> purchasesList(){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\tDataBaseSearch query = DataBaseSearch.queryDaTabella(\"Acquisti\");\r\n\t\t\ttry {\r\n\t\t\t\treturn query.find().stream()\r\n\t\t\t\t\t\t.map(e -> new modelPurchases(e))\r\n\t\t\t\t\t\t.collect(Collectors.toList());\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t}", "@Override\n\tpublic List<Order> readAll() {\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM orders\");) {\n\t\t\tList<Order> orderList = new ArrayList<>();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\torderList.add(modelFromResultSet(resultSet));\n\t\t\t}\n\t\t\treturn orderList;\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn new ArrayList<>();\n\t}", "List<Bill> all() throws SQLException;", "public Payment viewPayment(int id) {\n\t\treturn payments.get(id);\n\t}", "public ArrayList<Wallet> getAllWalletItems() {\n String[] columns = {\n COLUMN_WALLET_ID,\n COLUMN_WALLET_AMOUNT,\n COLUMN_WALLET_TITLE,\n COLUMN_WALLET_CURRENCY,\n COLUMN_WALLET_NOTE,\n COLUMN_WALLET_EXPIRES_ON,\n COLUMN_WALLET_TYPE\n };\n // sorting orders\n String sortOrder =\n COLUMN_WALLET_ID + \" DESC\";\n ArrayList<Wallet> walletList = new ArrayList<Wallet>();\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(WALLET_TABLE, columns, null, null, null, null, sortOrder); //The sort order\n\n if (cursor != null){\n if (cursor.moveToFirst()) {\n do {\n Wallet wallet = new Wallet();\n\n wallet.setId(cursor.getInt(cursor.getColumnIndex(COLUMN_WALLET_ID)));\n wallet.setAmount(cursor.getInt(cursor.getColumnIndex(COLUMN_WALLET_AMOUNT)));\n wallet.setTitle((cursor.getString(cursor.getColumnIndex(COLUMN_WALLET_TITLE))));\n wallet.setNote((cursor.getString(cursor.getColumnIndex(COLUMN_WALLET_NOTE))));\n wallet.setCurrency(cursor.getInt(cursor.getColumnIndex(COLUMN_WALLET_CURRENCY)));\n wallet.setExpiresOn(cursor.getString(cursor.getColumnIndex(COLUMN_WALLET_EXPIRES_ON)));\n wallet.setWalletType(cursor.getString(cursor.getColumnIndex(COLUMN_WALLET_TYPE)));\n\n walletList.add(wallet);\n } while (cursor.moveToNext());\n }\n }\n cursor.close();\n db.close();\n return walletList;\n }", "com.dogecoin.protocols.payments.Protos.Payment getPayment();", "Payment selectByPrimaryKey(Long id);", "@Override\r\n\tpublic List getOrderList() {\n\t\tList orderList = new ArrayList();\t\r\n\t\tConnection conn = null;\t\t\r\n\t\tStatement stmt = null;\t\t\r\n\t\tResultSet rs = null;\r\n\t\ttry{\r\n Class.forName(\"com.mysql.jdbc.Driver\");\t\t\t\r\n\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/gwap\",\"root\",\"\");\t\t\t\r\n\t\t\tstmt = conn.createStatement();\t\t\t\r\n\t\t\trs = stmt.executeQuery(\"select * from orderview\");\r\n\t\t\t\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tOrderview orderview = new Orderview();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\torderview.setLineid(rs.getString(\"lineid\"));\r\n\t\t\t\torderview.setOrderid(rs.getString(\"orderid\"));\r\n\t\t\t\torderview.setCost(rs.getString(\"cost\"));\r\n\t\t\t\torderview.setName(rs.getString(\"name\"));\r\n\t\t orderview.setPaystyle(rs.getString(\"paystyle\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\torderList.add(orderview);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\r\n ex.printStackTrace();\t\t\t\r\n\t\t\tthrow new RuntimeException(\"error when querying orders \",ex);\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\ttry {\r\n\t\t\t\trs.close();\r\n\t\t\t\tstmt.close();\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\t\t\t\t\r\n\t\t\t\tthrow new RuntimeException(\"error when querying orders \",ex);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn orderList;\r\n\t}", "List<transactionsProducts> purchasedProducts();", "public ArrayList<OrderDetail> getOrderDetailList(){\n \n ArrayList<OrderDetail> orderdetailList = new ArrayList<OrderDetail>();\n try { \n //connecting java with database\n Class.forName(\"com.mysql.jdbc.Driver\");\n Connection con = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1/doki_electronics\", \"root\", \"\");\n String query = \"SELECT * FROM order_details WHERE OrderNumber = ?\";\n \n ps = con.prepareStatement(query);\n ps.setInt(1, order.getOrderNum()-1);\n rs = ps.executeQuery();\n OrderDetail orderdetail;\n \n while(rs.next()){\n orderdetail = new OrderDetail(rs.getInt(\"OrderNumber\"),rs.getInt(\"ProductID\"),rs.getDouble(\"UnitPrice\"),rs.getInt(\"Quantity\"),rs.getDouble(\"Discount\"));\n orderdetailList.add(orderdetail);\n }\n }\n catch (SQLException ex) {\n Logger.getLogger(CashierProgram.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(CashierProgram.class.getName()).log(Level.SEVERE, null, ex);\n }\n return orderdetailList;\n }", "public List<Bill> getDrinkforBill() {\n\t\n\tString sql = \"SELECT * FROM bills join employees e on bills.Id_employees = e.Id_employees join drink d on bills.Id_drink = d.Id_drink\";\n\t\n\tList<Bill>getDrinkForBill = new ArrayList<Bill>();\n\t\n\ttry {\n\t\tPreparedStatement ps = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\tResultSet rs = ps.executeQuery();\n\t\t\n\t\twhile(rs.next()) {\n\t\t\t\n\t\t\tBill drinkBill = new Bill();\n\t\t\tdrinkBill.setId(rs.getInt(\"Id_bills\"));\n\t\t\tdrinkBill.setDrink(rs.getString(\"Name_Drink\"));\n\t\t\tdrinkBill.setEmployyes(rs.getString(\"Name_and_surname\"));\n\t\t\tdrinkBill.setPrice(rs.getDouble(\"Price\"));\n\t\t\tdrinkBill.setSerialNumber(rs.getString(\"Serial_Number_Bill\"));\n\t\t\tdrinkBill.setTotal(rs.getDouble(\"TOTAL\"));\n\t\t\t\n\t\t\tgetDrinkForBill.add(drinkBill);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\t\n\t\n\treturn getDrinkForBill;\n}", "public OrderList findOrders(){\n sql=\"SELECT * FROM Order\";\n Order order;\n try{\n ResultSet resultSet = db.SelectDB(sql);\n \n while(resultSet.next()){\n order = new Order();\n order.setOrderID(resultSet.getString(\"OrderID\"));\n order.setCustomerID(resultSet.getString(\"CustomerID\"));\n order.setStatus(resultSet.getString(\"Status\"));\n ordersList.addItem(order);\n }\n }\n catch(SQLException e){\n System.out.println(\"Crash finding all orders\" + e);\n }\n return ordersList;\n }", "public List<SelectItem> loadComboPaymentType() {\n\t\tlistPaymentType = new ArrayList<SelectItem>();\n\t\tlistPaymentType.add(new SelectItem(ContantsUtil.PaymentType.PAYMENT_TYPE_PREPAID,\n\t\t\t\tContantsUtil.PaymentType.PAYMENT_TYPE_PREPAID_NAME));\n\t\tlistPaymentType.add(new SelectItem(ContantsUtil.PaymentType.PAYMENT_TYPE_POSTPAID,\n\t\t\t\tContantsUtil.PaymentType.PAYMENT_TYPE_POSTPAID_NAME));\n\t\treturn listPaymentType;\n\t}", "public List<Payment> viewAllPaymentsPaginated(int start, int limit) {\n\t\tList<Payment> list = new ArrayList<>(payments.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "@GetMapping(\"/payments\")\n @Timed\n public ResponseEntity<List<PaymentDTO>> getAllPayments(Pageable pageable) {\n log.debug(\"REST request to get a page of Payments\");\n Page<PaymentDTO> page = paymentQueryService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/payments\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "List<Order> getAll();", "io.opencannabis.schema.commerce.CommercialOrder.OrderPayment getPayment();", "public List<T> list()\n\t{\n\t\tfinal List<T> list = this.dao.findAll();\n\t\treturn list;\n\t}", "List<WayBill> getAllWayBill();", "Payment find(int paymentID);", "@Override\n public List<Transaksi> getAll() {\n List<Transaksi> listTransaksi = new ArrayList<>();\n\n try {\n String query = \"SELECT id, date_format(tgl_transaksi, '%d-%m-%Y') AS tgl_transaksi FROM transaksi\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n Transaksi transaksi = new Transaksi();\n\n transaksi.setId(rs.getString(\"id\"));\n transaksi.setTglTransaksi(rs.getString(\"tgl_transaksi\"));\n\n listTransaksi.add(transaksi);\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return listTransaksi;\n }", "List<InvoiceDTO> fetchAll();", "public List<PaymentStatus> getAllPaymentStatuses() throws ContestManagementException {\n return null;\r\n }", "public List<PaymentStatus> getAllPaymentStatuses() throws ContestManagementException {\n return null;\r\n }", "public List<Payer> getPayers() {\n\t\tList<Payer> listPayer = new ArrayList<Payer>();\n\t\tAddTransaction transaction = new AddTransaction();\n\t\tPayer payer1 = new Payer();\n\t\tpayer1.setPayerName(\"DANNON\");\n\t\tlistPayer.add(payer1);\n\t\tPayer payer2 = new Payer();\n\t\tpayer2.setPayerName(\"UNILEVER\");\n\t\tlistPayer.add(payer2);\n\t\tPayer payer3 = new Payer();\n\t\tpayer3.setPayerName(\"MILLER COORS\");\n\t\tlistPayer.add(payer3);\n\t\ttransaction.addTransaction(\"DANNON\", 1000, LocalDateTime.parse(\"2020-11-02T14:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"UNILEVER\", 200, LocalDateTime.parse(\"2020-10-31T11:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"DANNON\", -200, LocalDateTime.parse(\"2020-10-31T15:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"MILLER COORS\", 10000, LocalDateTime.parse(\"2020-11-01T14:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"DANNON\", 300, LocalDateTime.parse(\"2020-10-31T10:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\treturn listPayer;\n\t}", "@Override\n\tpublic RotatePayment getPayment(String id) {\n\t\tRotatePayment payment = paymentDao.getPayment(id);\n\t\tHashMap<String, Object> map = new HashMap<>();\n\t\tmap.put(\"paymentId\", id);\n\t\tList<RotatePaymentDetail> details=paymentDao.listPaymentDetail(map);\n\t\tpayment.setDetailList(details);\n\t\treturn payment;\n\t}", "@ResponseBody\r\n\t@RequestMapping(\"/list\")\r\n\tpublic PageModel list(HttpServletRequest request, HttpServletResponse response) {\n\t\tPageModel page = PageUtil.getPageModel(Order.class, \"sql.order/getOrderlist\", request);\r\n\t\treturn page;\r\n\t}", "public List<Dept> list() {\n try {\n List<Dept> dept = new ArrayList<Dept>();\n PreparedStatement stmt = this.connection\n .prepareStatement(\"select * from dept_sr\"); //here\n\n ResultSet rs = stmt.executeQuery();\n\n while (rs.next()) {\n // adiciona a tarefa na lista\n dept.add(populateDept(rs));\n }\n\n rs.close();\n stmt.close();\n\n return dept;\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "public List<Bill> findAllBill() {\n\treturn iBillRespository.findAll();\n}", "public ArrayList<OrderRecord> getOrders() throws SQLException {\r\n ArrayList<OrderRecord> result = new ArrayList<>();\r\n String sqlQuery = \"SELECT * FROM `orders`\";\r\n try {\r\n PreparedStatement p = myConn.prepareStatement(sqlQuery);\r\n \r\n ResultSet rs = p.executeQuery(sqlQuery);\r\n while (rs.next()) {\r\n //table schema\r\n //id, name, tab_num, foodname, beveragename, served, billed, time\r\n \r\n // Customer name, orderid, table, items\r\n OrderRecord newOrder = new OrderRecord();\r\n \r\n newOrder.name = rs.getString(2);\r\n newOrder.id = rs.getInt(1);\r\n newOrder.table = rs.getInt(3);\r\n \r\n newOrder.food = rs.getString(4);\r\n newOrder.beverage = rs.getString(5);\r\n \r\n newOrder.served = (rs.getInt(6) == 1);\r\n newOrder.billed = (rs.getInt(7) == 1);\r\n \r\n result.add(newOrder);\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(\"Could not get orders \" + e.toString());\r\n System.out.println(myStmt);\r\n }\r\n return result;\r\n }", "List<CustomerDDPay> selectCustomerDDPay(CustomerDDPay cddp);", "@Override\n\tpublic List<Record> getAllRecord() {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tlist = dao.findAll();\n\t\t\ttx.commit();\n\t\t} catch (RuntimeException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\n\t\treturn list;\n\t}", "@Transactional(readOnly = true) \n public List<PtoPeriodDTO> findAll() {\n log.debug(\"Request to get all PtoPeriods\");\n List<PtoPeriodDTO> result = ptoPeriodRepository.findAll().stream()\n .map(ptoPeriodMapper::ptoPeriodToPtoPeriodDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n if(result.isEmpty()){\n \tresult.add(initialPtoPeriod());\n }\n \n return result;\n }", "private ObservableList<Order> getOrders() throws SQLException{\n DBConnect db = DBConnect.getInstance();\n return db.getOrders(selectedCustomer.getCustomer_id());\n }", "public List<LookUpDetailJson> getPayCycleList() {\r\n\t\tList<LookUpDetailJson> lookUpDetailJsonList = null;\r\n\t\ttry {\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tInteger currentMonth = cal.get(Calendar.MONTH);\r\n\t\t\tList<Integer> monthsRange = new ArrayList<Integer>();\r\n\t\t\tfor (int i = currentMonth, j = 0; j < 3; j++) {\r\n\t\t\t\tmonthsRange.add(i--);\r\n\t\t\t\tif (i < 0) {\r\n\t\t\t\t\ti = 11;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmonthsRange.add(currentMonth + 1);\r\n\r\n\t\t\tList<LookUpDetails> lookUpDetailList = lookUpRepository.getPayCycleList(monthsRange);\r\n\t\t\tif (lookUpDetailList != null && lookUpDetailList.size() > 0) {\r\n\t\t\t\tlookUpDetailJsonList = new ArrayList<LookUpDetailJson>();\r\n\t\t\t\tfor (LookUpDetails lookUpDetails : lookUpDetailList) {\r\n\t\t\t\t\tlookUpDetailJsonList.add(TransformDomainToJson.getLookUpDetailJson(lookUpDetails));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tLOG.error(\"Error at getPayCycleList() in LookUpService:\" + e.getMessage());\r\n\t\t}\r\n\t\treturn lookUpDetailJsonList;\r\n\t}", "public PaymentTypeObject[] getAllPaymentTypes() throws AppException;", "List<CheckoutProduct> findAll();", "@Override\n\tpublic List<CreditCard> getAll(){\n\t\t\n\t\treturn creditCardDao.findAll();\n\t}", "public static String getBills(){\n return \"select * from current_bills\";\n }", "List<Bill> todaysBills() throws SQLException;", "public List<OrderDetails> fetchOderList(){\n List<OrderDetails> orderDetails = null;\n orderDetails = mongoDbConnector.fetchOderList();\n return orderDetails;\n }", "@RequestMapping(value = \"\", method = RequestMethod.GET)\n public ArrayList<Invoice> getAllInvoice() {\n return DatabaseInvoicePostgre.getAllInvoice();\n }", "public com.jspgou.cms.entity.Payment getPayment () {\r\n\t\treturn payment;\r\n\t}", "@GetMapping(\"/paymentGateway/payments/{payment_id}\")\n\tpublic PaymentDetails getPayment(@PathVariable String payment_id) {\n\t\treturn paymentQueryService.getPayment(payment_id);\n\t}", "List<DangerMerchant> selectAll();", "public List<HashMap<String, Object>> PromoList() {\n\t\treturn sqlSession.selectList(\"main.PromoList\");\r\n\t}", "public List<Prescription> getPrescriptions(){\n return prescriptionRepository.findAll();\n }", "List<TmpUserPayAccount> selectAll();", "public static PayabbhiCollection<Payout> all() throws PayabbhiException {\n\t\treturn requestCollection(Method.GET, urlFor(Payout.class), null, Payout.class);\n\t}", "public static List<Invoice> getAllInvoices() {\n\t\tList<Invoice> invoiceList = new ArrayList<Invoice>();\n\t\tConnection conn = ConnectionFactory.getConnection();\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\t\n\t\tString query = \"SELECT invoiceKey, invoiceUuid, customerKey, personKey FROM Invoice\";\n\t\t\n\t\t//This try/catch executes the query from above to retrieve all invoices in the DB\n\t\ttry {\n\t\t\tps = conn.prepareStatement(query);\n\t\t\trs = ps.executeQuery();\n\t\t\t//while there are still invoices in the database continue\n\t\t\twhile (rs.next()) {\n\t\t\t\tint invoiceKey = rs.getInt(\"invoiceKey\"); \n\t\t\t\tString invoiceUuid = rs.getString(\"invoiceUuid\");\n\t\t\t\tint customerKey = rs.getInt(\"customerKey\");\n\t\t\t\tint personKey = rs.getInt(\"personKey\");\n\t\t\t\t\n\t\t\t\t//Get the corresponding customer, salesperson, and productList from the database\n\t\t\t\tCustomer customer = Customer.getCustomerByKey(customerKey);\n\t\t\t\tPerson salesPerson = Person.getPersonByKey(personKey);\n\t\t\t\tList<Product> productList = DatabaseReader.getProductList(invoiceKey);\n\t\t\t\t\n\t\t\t\tInvoice invoices = new Invoice(invoiceUuid, customer, salesPerson, productList);\n\t\t\t\tinvoiceList.add(invoices);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"SQLException: \");\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\t//Close the connections that were opened in this method.\n\t\t\tConnectionFactory.closeConnection(conn, ps, rs);\n\t\t}\n\t\treturn invoiceList;\n\t}", "public List<bill> selectBill() {\n\t\treturn this.b.selectBill();\n\t}", "@Override\n\tpublic List<BankTransaction> getAllTransactions() throws BusinessException {\n\t\tBankTransaction bankTransaction = null;\n\t\tList<BankTransaction> bankTransactionList = new ArrayList<>();\n\t\tConnection connection;\n\n\t\ttry {\n\t\t\tconnection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select transaction_id, account_id, transaction_type, amount, transaction_date from dutybank.transactionss\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\t\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tbankTransaction = new BankTransaction();\n\t\t\t\tbankTransaction.setTransactionid(resultSet.getInt(\"transaction_id\"));\n\t\t\t\tbankTransaction.setAccountid(resultSet.getInt(\"account_id\"));\n\t\t\t\tbankTransaction.setTransactiontype(resultSet.getString(\"transaction_type\"));\n\t\t\t\tbankTransaction.setTransactionamount(resultSet.getDouble(\"amount\"));\n\t\t\t\tbankTransaction.setTransactiondate(resultSet.getDate(\"transaction_date\"));\n\n\t\t\t\tbankTransactionList.add(bankTransaction);\n\t\t\t} \n\t\t\t\n\t\t\tif (bankTransactionList.size() == 0) {\n\t\t\t\tthrow new BusinessException(\"There is not data to retrieve\");\n\t\t\t}\n\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Some Error ocurred retrieving data for transactions\");\n\t\t}\n\t\t\n\t\treturn bankTransactionList;\n\t}" ]
[ "0.7888441", "0.7815711", "0.7377046", "0.7320367", "0.7224912", "0.7093689", "0.70189285", "0.68225646", "0.6761068", "0.6711848", "0.6684321", "0.66771847", "0.65771043", "0.6537952", "0.65320486", "0.6524977", "0.650039", "0.6474008", "0.64652216", "0.6429516", "0.64254886", "0.64112926", "0.6401121", "0.63738716", "0.63520676", "0.6328904", "0.6315479", "0.62437356", "0.62394476", "0.61958206", "0.6168383", "0.6136395", "0.6133877", "0.61098737", "0.6101139", "0.60838115", "0.6056444", "0.6031305", "0.602453", "0.6018856", "0.6008719", "0.59907794", "0.59877694", "0.59636486", "0.5958044", "0.5943311", "0.59291184", "0.59251535", "0.59112185", "0.5910027", "0.5904454", "0.5879229", "0.58497953", "0.58478045", "0.5845461", "0.5831617", "0.5827388", "0.5819677", "0.5796877", "0.5779719", "0.5770032", "0.57693404", "0.5768686", "0.57649916", "0.5751059", "0.57500356", "0.57498807", "0.5745361", "0.57426196", "0.5737424", "0.5731235", "0.5731235", "0.57203543", "0.57190317", "0.5701494", "0.56942916", "0.5693583", "0.5685427", "0.5681647", "0.5665194", "0.56478477", "0.5644603", "0.5641662", "0.5635144", "0.56221056", "0.5609118", "0.5605545", "0.56022686", "0.55957323", "0.559512", "0.55859363", "0.55817527", "0.55626714", "0.55553854", "0.55476713", "0.5541073", "0.5540072", "0.5534696", "0.55305785", "0.5530475" ]
0.69239974
7
Given numBottles full water bottles, you can exchange numExchange empty water bottles for one full water bottle. The operation of drinking a full water bottle turns it into an empty bottle. Return the maximum number of water bottles you can drink. Example 1: Input: numBottles = 9, numExchange = 3 Output: 13 Explanation: You can exchange 3 empty bottles to get 1 full water bottle. Number of water bottles you can drink: 9 + 3 + 1 = 13. Example 2: Input: numBottles = 15, numExchange = 4 Output: 19 Explanation: You can exchange 4 empty bottles to get 1 full water bottle. Number of water bottles you can drink: 15 + 3 + 1 = 19. Example 3: Input: numBottles = 5, numExchange = 5 Output: 6 Example 4: Input: numBottles = 2, numExchange = 3 Output: 2 Constraints: 1 <= numBottles <= 100 2 <= numExchange <= 100
public static int numWaterBottles(int numBottles, int numExchange) { if(numExchange > numBottles) { return numBottles; } if(numExchange == numBottles) { return numBottles + 1; } int result = 0; int newBottles = numBottles; while(newBottles >= numExchange) { int a = newBottles / numExchange; int b= newBottles % numExchange; result += newBottles - b; newBottles = a + b; } return result + newBottles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int numWaterBottles(int numBottles, int numExchange) {\n int num = numBottles;\n\n // Step2 - Create var to store remainders and leftOvers\n int remainder = numBottles;\n int leftOver;\n\n // Step3 - Continue dividing until the remains is smaller than the numExchange\n while (remainder >= numExchange) {\n\n // Step4 - Calculate the numWaterBottles dranked\n num += (remainder / numExchange);\n\n // Step5 - Calculate the remaining leftOver bottles\n leftOver = remainder % numExchange;\n remainder = (remainder / numExchange) + leftOver;\n\n System.out.println(\"num: \" + num);\n }\n\n return num;\n }", "private static int dialGreedy(ArrayList<Pair<Pair <Integer, Integer>,Integer>> wts, int money){\n int prevEdgeIndex = -1;\n int noDials = 10;\n int [][] dialArr = new int[money+1][noDials];\n BooleanHolder flip = new BooleanHolder(false);\n return greedyDialMax(wts, money,prevEdgeIndex,dialArr, flip);\n }", "String getMaximumRedeliveries();", "public int maxDistinction() {\n\n int distinctTiles = this.distincts().size(); // # of unique Scrabble tiles\n int maxDistinction = distinctTiles; // maximum # of distinct possibilities\n\n // If there are wildcards...\n int wilds = this.count(WILDCARD);\n if (wilds > 0) {\n int uniqueHardLetters = distinctTiles - 1; // # of unique letters (w/o wildcards)\n maxDistinction = uniqueHardLetters + wilds; // REVISED MAXIMUM DISTINCTION\n }\n\n return maxDistinction;\n }", "private static int maximum() {\n\t\tint popSize = 0;\n\t\tChromosome thisChromo = null;\n\t\tChromosome thatChromo = null;\n\t\tint winner = 0;\n\t\tboolean foundNewWinner = false;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\tfoundNewWinner = false;\n\t\t\tpopSize = population.size();\n\t\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\t\tif (i != winner) { // Avoid self-comparison.\n\t\t\t\t\tthisChromo = population.get(i);\n\t\t\t\t\tthatChromo = population.get(winner);\n\t\t\t\t\tif (thisChromo.conflicts() > thatChromo.conflicts()) {\n\t\t\t\t\t\twinner = i;\n\t\t\t\t\t\tfoundNewWinner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (foundNewWinner == false) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\t\treturn winner;\n\t}", "@Test\n public void returnMaxNumberOfBetsCanMade(){\n assertEquals(maxNumberOfBets,gameRule.getMaxBetsPerRound());\n }", "public static int maxMoneyLooted(int[] houses) {\n int n = houses.length;\n int dp[] = new int[n];\n if(n==0)\n return 0;\n dp[0] = houses[0];\n dp[1]= Math.max(houses[0], houses[1]);\n for(int i =2; i<n ; i++)\n {\n dp[i] = Math.max(houses[i] + dp[i-2], dp[i-1] );\n }\n \n return dp[n-1];\n\t}", "public static void main(String [] args) {\n\n int numBottles2 = 15, numExchange2 = 4;\n System.out.println(\"Num Water Bottles: \" + numWaterBottles(numBottles2, numExchange2));\n\n int numBottles3 = 5, numExchange3 = 5;\n System.out.println(\"Num Water Bottles: \" + numWaterBottles(numBottles3, numExchange3));\n\n int numBottles4 = 2, numExchange4 = 3;\n System.out.println(\"Num Water Bottles: \" + numWaterBottles(numBottles4, numExchange4));\n\n }", "static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n int max = 0, sum = 0;\n for (int i = 0; i < keyboards.length; i++) {\n for (int j = 0; j < drives.length; j++) {\n sum = keyboards[i] + drives[j];\n\n if (sum >= max && sum <= b){\n max = sum;\n\n }\n }\n }\n\n if (max == 0) return -1;\n return max;\n\n }", "static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n int max = 0;\n ArrayList<Integer> options = new ArrayList<Integer>();\n for(int i = 0 ; i < drives.length ; i++) {\n for(int j = 0 ; j < keyboards.length ; j++) {\n if(drives[i] + keyboards[j] <= b) {\n options.add(drives[i] + keyboards[j]);\n }\n }\n }\n if(options.size() == 0) {\n return -1;\n } else {\n max = options.get(0);\n for(int i = 0 ; i < options.size() ; i++) {\n if(options.get(i) > max) {\n max = options.get(i);\n }\n }\n return max;\n }\n }", "int getMaxCount();", "int getMaxCount();", "public static long stockmax(List<Integer> prices) {\n\t\t// Write your code here\n\t\tlong profit=0L;\n\t\tlong maxSoFar=0L;\n\t\t for (int i = prices.size() - 1; i > -1 ; i--) {\n\t if (prices.get(i) >= maxSoFar) {\n\t maxSoFar = prices.get(i);\n\t }\n\t profit += maxSoFar - prices.get(i);\n\t }\n\t return profit;\n\t}", "static int knapsack(Item[] items, int maxWeight) {\n return knapsack(items, maxWeight, 0);\n }", "private Pair[] bribeCalculateBag(final int maxCards,\n final HashMap<String, Integer> association) {\n final int minMoney = 5;\n final int maxBagSize = 3;\n if (getInventory().getMoney() < minMoney || numberOfIllegals(association) == 0) {\n return calculateBag(maxCards, association);\n }\n Pair[] result;\n if (numberOfIllegals(association) <= 2 || getInventory().getMoney() < minMoney * 2) {\n getInventory().getBagToGive().setBribe(minMoney);\n getInventory().setMoney(getInventory().getMoney() - minMoney);\n int duplicate = findIllegal(association);\n removeOneAsset(findIllegal(association));\n if (duplicate == findIllegal(association)) {\n result = new Pair[1];\n result[0] = new Pair<>(findIllegal(association), 2);\n getInventory().setNumberOfDeclared(2);\n } else {\n if (findIllegal(association) == -1) {\n result = new Pair[1];\n result[0] = new Pair<>(duplicate, 1);\n getInventory().setNumberOfDeclared(1);\n } else {\n result = new Pair[2];\n result[0] = new Pair<>(duplicate, 1);\n result[1] = new Pair<>(findIllegal(association), 1);\n getInventory().setNumberOfDeclared(2);\n }\n }\n removeOneAsset(findIllegal(association));\n getInventory().setDeclaredAssets(0);\n return result;\n } else {\n getInventory().getBagToGive().setBribe(minMoney * 2);\n getInventory().setMoney(getInventory().getMoney() - (minMoney * 2));\n int contor = maxCards - 1;\n final int contorStart = contor;\n int[] resultAux = new int[maxBagSize];\n getInventory().setDeclaredAssets(0);\n while (contor > 0 && findIllegal(association) != -1) {\n resultAux[findIllegal(association) % maxBagSize]++;\n removeOneAsset(findIllegal(association));\n contor--;\n }\n getInventory().setNumberOfDeclared(contorStart - contor);\n getInventory().setDeclaredAssets(0);\n contor = 0;\n for (int it : resultAux) {\n if (it != 0) {\n contor++;\n }\n }\n result = new Pair[contor];\n if (contor == maxBagSize) {\n result = new Pair[maxBagSize];\n result[0] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n result[1] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n result[2] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n } else {\n if (contor == 1) {\n result = new Pair[1];\n if (resultAux[0] > 0) {\n result[0] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n }\n if (resultAux[1] > 0) {\n result[0] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n }\n if (resultAux[2] > 0) {\n result[0] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n }\n } else {\n result = new Pair[2];\n int i = 0;\n if (resultAux[0] > 0) {\n result[i] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n i++;\n }\n if (resultAux[1] > 0) {\n result[i] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n i++;\n }\n if (resultAux[2] > 0) {\n result[i] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n }\n }\n }\n return result;\n }\n\n }", "int getMaximalIterationCount();", "private long getMaxValue( Item[] items, int maxWeight, int n) {\n\t\tif ( n == 0 || maxWeight == 0 )\n\t\t\treturn 0;\n\n\t\t// Weight of the nth item is more than maxWeight -> \n\t\t// We cannot include this item into the optimal solutions.\n\t\t// Fall back to to the nth-1 item.\n\t\tif ( items[n - 1].getWeight() > maxWeight)\n\t\t\treturn getMaxValue( items, maxWeight, n-1);\n\t\t\n\t\t// Return the maximum of these two cases:\n\t\t// 1) nth item included\n\t\t// 2) nth item is not included\n\t\t\n\t\tlong includedValue = items[n-1].getValue() + getMaxValue(items, maxWeight-items[n-1].getWeight(), n-1);\n\t\tlong notIncludedValue = getMaxValue(items, maxWeight, n - 1);\n\t\treturn Math.max( includedValue, notIncludedValue);\n\t}", "static int knapsack(int W, int wt[], int val[], int n)\n\t{\n\t\t// base case\n\t\tif (n==0 || W==0)\n\t\t\treturn 0;\n\t\t\n\t\t// If weight of nth item is more than knapsack capacity W, then\n\t\t// this item cannot be included in optimal solution\n\t\tif (wt[n-1] > W)\n\t\t\treturn knapsack(W, wt, val, n-1);\n\t\t\n\t\t// return maximum of two cases\n\t\t// nth item included\n\t\t// not included\n\t\telse return max(val[n-1] + knapsack(W-wt[n-1],wt,val,n-1),\n\t\t\t\tknapsack(W,wt,val,n-1)\n\t\t\t\t);\n\t}", "long getMaxItemFindings();", "public static int knapsackRep(int[] values, int[] weights, int twt) {\n //assume the two input are sorted\n int[] maxVals = new int[twt + 1];\n // maximum value for the minimum weight is corresponding value\n maxVals[weights[0]] = values[0];\n // iterate over until you get the target wt\n for (int currWt = weights[0] + 1; currWt <= twt; currWt++) {\n // initialize current max weight to be infinity\n int currMaxVal = -1;\n for (int wtInd = 0; wtInd < weights.length; wtInd++) {\n // prevWt to check is current\n if ((currWt == weights[wtInd]) && (values[wtInd] > currMaxVal)) {\n currMaxVal = values[wtInd];\n }\n int prevWt = currWt - weights[wtInd];\n // if the prevWt value is valid\n if ((prevWt > 0) && (prevWt <= twt)) {\n // if there is a valid value for prevWt\n if (maxVals[prevWt] > 0) {\n int candMaxVal = maxVals[prevWt] + values[wtInd];\n if (candMaxVal > currMaxVal) {\n currMaxVal = candMaxVal;\n }\n }\n }\n }\n if (currMaxVal != -1) {\n maxVals[currWt] = currMaxVal;\n }\n }\n printArr(maxVals, \"Maximum value is %d for weight %d\" + System.lineSeparator());\n return maxVals[twt];\n }", "int askForTempMax();", "public int getMaxTotalCost();", "static int knapSack(int totalWeight, int wt[], int val[], int n) {\n\t\t// Base Case\n\t\tif (n == 0 || totalWeight == 0)\n\t\t\treturn 0;\n\n\t\t// If weight of the nth item is more than Knapsack capacity W, then\n\t\t// this item cannot be included in the optimal solution\n\t\tif (wt[n - 1] > totalWeight)\n\t\t\treturn knapSack(totalWeight, wt, val, n - 1);\n\n\t\t// Return the maximum of two cases:\n\t\t// (1) nth item included\n\t\t// (2) not included\n\t\telse\n\t\t\treturn max(\n\t\t\t\t\tval[n - 1]\n\t\t\t\t\t\t\t+ knapSack(totalWeight - wt[n - 1], wt, val, n - 1),\n\t\t\t\t\tknapSack(totalWeight, wt, val, n - 1));\n\t}", "public void honourMaxCount() {\n // Get free and total counts\n int freeCount = getFreeLaunchers().size();\n int totalCount = getTotalLaunchers().size();\n\n // Scale down if max is exceeded, irrespective of free buffer count\n if (totalCount > maxCount) {\n log.info(\"Scaling down until [freeBufferCount] \" + freeBufferCount + \" is met since [Max Count] \"\n + maxCount + \" has been exceeded.\");\n\n while (freeCount <= freeBufferCount){\n log.info(\"Scaling DOWN: REASON -> [Total Count] \" + totalCount + \" > [Max Count] \" + maxCount);\n scaleDown();\n freeCount = getFreeLaunchers().size();\n }\n\n totalCount = getTotalLaunchers().size();\n freeCount = getFreeLaunchers().size();\n\n log.info(\"Stats after scale down operation: [Total Count] \" + totalCount + \", [Free Count] \" + freeCount);\n\n return;\n }\n\n // Don't scale down if there are not enough free launchers\n if (freeCount <= freeBufferCount) {\n log.info(\"Not scaling down since [Free Count] \" + freeCount + \" <= [Free Buffer Size] \" +\n freeBufferCount + \"...\");\n return;\n }\n\n // Don't scale down if the desired count is not exceeded\n if (totalCount <= desiredCount) {\n log.info(\"Not scaling down since [Total Count] \" + totalCount + \" <= [Desired Count] \" +\n desiredCount + \"...\");\n return;\n }\n\n // Scale down if desired count is exceeded, but with more free launchers than buffer count by stepDown count\n // TODO: to test scale down\n if ((freeCount - stepDown) >= freeBufferCount) {\n log.info(\"Scaling DOWN: REASON -> [Total Count] \" + totalCount + \" > [Desired Count] \" + desiredCount +\n \" AND [Free Count] - [Step Down] \" + freeCount + \" - \" + stepDown +\n \" >= [Free Buffer Count] \" + freeBufferCount);\n\n scaleDown();\n return;\n }\n\n // If after scaling down there wouldn't be enough free launchers, don't scale down\n log.info(\"Not scaling down since [Free Count] + [Step Down] \" + freeCount + \" + \" + stepDown +\n \" < [Free Buffer Count] \" + freeBufferCount);\n }", "public int getMaximumOrder() {\n\t\treturn 999;\n\t}", "private int getBouquetCount(int[] bloomDay, int k, int waitingDays) {\n int bouquetCount = 0;\n int requiredFlowers = k;\n for (final int day : bloomDay)\n if (day > waitingDays) {\n // Reset `requiredFlowers` since there was not enough adjacent flowers.\n requiredFlowers = k;\n } else if (--requiredFlowers == 0) {\n // Use k adjacent flowers to make a bouquet.\n ++bouquetCount;\n requiredFlowers = k;\n }\n return bouquetCount;\n }", "public int buyTickets(UUID uuid, int number) {\r\n\t\tPennyGame plugin = PennyGame.getPlugin(PennyGame.class);\r\n\t\tint previousTicketCount = getTicketCount(uuid);\r\n\t\t//number = Math.min(number, this.maxTicketCount - previousTicketCount);\r\n\t\tRegisteredServiceProvider<Economy> rsp = plugin.getServer().getServicesManager().getRegistration(Economy.class);\r\n\t\tEconomy econ = rsp.getProvider();\r\n\t\tOfflinePlayer player = Bukkit.getOfflinePlayer(uuid);\r\n\t\t//double balance = econ.getBalance(player);\r\n\t\t//number = (int)Math.min(number - (number - (balance / this.ticketPrice)), number);*/\r\n\t\t\r\n\t\tnumber = this.hasBalance(uuid, number);\r\n\t\t\r\n\t\tint buyCount = Math.min(number + previousTicketCount, this.maxTicketCount) - previousTicketCount;\r\n\t\tint totalCount = Math.min(number + previousTicketCount, this.maxTicketCount);\r\n\t\t\r\n\t\tif(buyCount <= 0) { // not enough balance to buy OR max count reached\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\tif(econ.withdrawPlayer(player, buyCount * this.ticketPrice).transactionSuccess()) {\t\t\t\r\n\t\t\tplugin.getSettings().set(\"participants.\" + uuid.toString(), totalCount);\r\n\t\t\tthis.tickets.put(uuid, totalCount);\r\n\t\t\t\r\n\t\t\tthis.jackpot += buyCount * ticketPrice - buyCount * tax;\r\n\t\t\tplugin.getSettings().set(\"jackpot\", this.jackpot);\r\n\t\t\tplugin.saveSettings();\r\n\t\t\treturn totalCount;\r\n\t\t} else {\r\n\t\t\treturn previousTicketCount;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint max_size,n; \n \n ArrayList<item> items=new ArrayList();\n\t\t// item 1, value 6, size 1\n items.add(new item(1, 6, 1));\n\t\t// item 2, value 10, size 2\n\t\titems.add(new item(2, 10, 2));\n\t\t// item 3, value 12, size 3\n\t\titems.add(new item(3, 12, 3));\n\t\t// the size of your knapsack\n max_size=5; \n\t\t// sort items by density\n\t\tsortitems(items);\n \n System.out.println(\"The maximum value we can place into the knapsack is \"+ greedyfractionalknapsack(items, max_size));\n\n\n\n}", "public double evalOverCapacity(int[] assig)\r\n {\r\n BOFLP BFLProblem = BOFLP.instance();\r\n\r\n int nClients = BFLProblem.nClients;\r\n int nDepots = BFLProblem.nDepots;\r\n\r\n double overCapacity;\r\n\r\n int[] requiredCapacity;\r\n requiredCapacity = new int[nDepots + 1];\r\n\r\n for (int i = 1; i <= nClients; i++)\r\n {\r\n int depot = assig[i - 1];\r\n requiredCapacity[depot] = requiredCapacity[depot] + BFLProblem.demand[i];\r\n }\r\n overCapacity = 0;\r\n for (int j = 1; j <= nDepots; j++)\r\n {\r\n overCapacity = overCapacity + Math.max(0, requiredCapacity[j] - BFLProblem.capacity[j]);\r\n }\r\n overCapacity = overCapacity / BFLProblem.sumCapacity;\r\n return overCapacity;\r\n }", "public int maxNumber(){\n int highest = 0;\n ArrayList<String> currentFileList = null;\n for (String word : hashWords.keySet()) {\n currentFileList= hashWords.get(word);\n int currentNum = currentFileList.size();\n if (currentNum > highest) {\n highest = currentNum;\n }\n // System.out.println(\"currentFileList \" + currentFileList +\"highest num = \"+ highest );\n }\n \n return highest;\n /*for (ArrayList s : hashWords.values()){\n if (s.size() > maxSize) {\n maxSize = s.size();\n }\n }\n return maxSize;*/\n }", "public int getMaxPayRaise ()\r\n {\r\n return maxPayRaise;\r\n }", "public long getPropertyBalanceMax();", "public double calculateMaximumAmount() {\n\t\t\n\t\tdouble maxAmount = 0;\n\t\t\n /**\n * The max(Collection<? extends T>, Comparator<? super T>) method is used \n * to return the maximum element of the given collection, according to the \n * order induced by the specified comparator\t\t\t\n */\t\n\t\tmaxAmount = (double)getMaximumSize()/Collections.max(tokenSizes.values());\n\t\t\n\t\treturn maxAmount;\t\n\t}", "public static void main(String[] args){ w = the total weight\n\t\t// i = item i\n\t\t// m[i, w] = maximum value attained with weight <= w using items up to i\n\t\t//\n\t\t// recurrence relation:\n\t\t// m[0, w] = 0, if there's zero items, the sum is zero\n\t\t// m[i, w] = m[i-1, w], if w(i) > w, the new item's weight > current weight limit\n\t\t// m[i, w] = max(m[i-1, w],\n\t\t// \t\t\t\t m[i-1, w-w(i)] + v(i), if w(i) <= w\n\t\t//\n\t\t//\n\t\tArrayList<Item> items = new ArrayList<Item>();\n\n\t\titems.add(new Item(10, 60));\n\t\titems.add(new Item(20, 100));\n\t\titems.add(new Item(30, 120));\n\n\t\tSystem.out.println(knapsack(items.size()-1, 50, items));\n\t}", "protected static int creatingMaxWQSelect(int train, Passenger[][] waitingRoom) {\n // Declaring the number for selecting.\n int maxQueueSelect;\n\n // When the waiting room is higher than 5.\n if (waitingRoomSize(train, waitingRoom) > 5) {\n maxQueueSelect = new Random().nextInt(6) + 1;\n }\n // When the waiting room is empty\n else if (waitingRoomSize(train, waitingRoom) == 0){\n maxQueueSelect = 0;\n }\n // When the waaiting room is not empty and less than or equal to 5.\n else {\n maxQueueSelect = new Random().nextInt(waitingRoomSize(train, waitingRoom)) + 1;\n }\n\n // Returning the generated random number.\n return maxQueueSelect;\n }", "public int getMaxAmount() {\n return _max;\n }", "@Override\r\n\tpublic Integer getCombinationMaxNumber() {\n\t\tString hql = \"select max(c.combination_number) from Combination c\";\r\n\t\treturn (Integer) HibernateUtil.getSession().createQuery(hql).uniqueResult();\r\n\t}", "@Test\n\tpublic void when_provided_maximum_size_list_with_all_elements_that_can_be_added_then_return_sum_in_allowable_amount_of_time() {\n\t\tfinal int[] elements = Fixture.initializeRandomList(MAX_NUM_ELEMENTS, MIN_ELEMENT_SIZE, 5);\n\t\tfinal int elementSum = IntStream.of(elements).sum();\n\t\tfinal long startTime = System.currentTimeMillis();\n\n\t\tfinal int result = Knapsack.getOptimalWeight(elementSum, elements);\n\n\t\tassertThat(result, is(elementSum));\n\t\tassertThat(System.currentTimeMillis() - startTime < Fixture.MAX_ALLOWABLE_CALCULATION_TIME, is(true));\n\t}", "static int getMoneySpent(final int[] keyboards, final int[] drives, final int b) {\n\n\t\t/*\n\t\t * Write your code here.\n\t\t */\n\t\t// Declaring variables:\n\n\t\tint maxAmountPaid = 0;\n\t\tArrayList<Integer> amountPaid = new ArrayList<Integer>();\n\n\t\t// Ordering the arrays keyboards and drives:\n\t\tArrays.sort(keyboards);\n\t\tArrays.sort(drives);\n\t\t//System.out.println(Arrays.toString(keyboards));\n\t\t//System.out.println(Arrays.toString(drives));\n\n\t\t// Choosing the matching combination (max keyboard option, max drives option)\n\t\tfor (int keyb : keyboards) {\n\t\t\tfor (int usb : drives) {\n\t\t\t\tamountPaid.add(keyb + usb);\t// For each loop, sum keyboard + drive into amountPaid\n\t\t\t\t//System.out.println(amountPaid.get(amountPaid.size()-1));\n\t\t\t}\n\t\t}\n\t\t// Ordering the amountPaid arraysList\n\t\tCollections.sort(amountPaid);\n\t\t//System.out.println(amountPaid);\n\n\t\tif (amountPaid.get(0) > b) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tfor (int amount = 0; amount < amountPaid.size(); amount++) {\n\t\t\t\tif (amountPaid.get(amount) > b && maxAmountPaid == 0) {\n\t\t\t\t\tmaxAmountPaid = amountPaid.get(amount-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn maxAmountPaid;\n\t\t}\n\t\t\n\t}", "Integer backlogCapacity();", "private int highestPossibleValue(List<Card> cards) {\n int value = 0;\n int assCounter = 0;\n\n // Calculate the value without taking * into account\n for (Card card : cards) {\n value += card.getValue();\n if (card.getName().equals(\"*\")) assCounter++;\n }\n\n // Subtracts value of *\n for (int i = 0; i < assCounter; i++) {\n if (value <= 21)\n break;\n value -= 10;\n }\n\n return value;\n }", "public int getMaxpower() {\n\t\treturn 0;\r\n\t}", "public static void maxStocks(String CompanyName[], double money) throws IOException {\n int menu, a = 1;\n double max;\n \n while (a != 0) {\n System.out.println(\"\\nPlease select a company.\");\n System.out.println(\"1. \" + CompanyName[0]);\n System.out.println(\"2. \" + CompanyName[1]);\n System.out.println(\"3. \" + CompanyName[2]); \n System.out.println(\"4. \" + CompanyName[3]); \n System.out.println(\"5. \" + CompanyName[4]); \n System.out.println(\"6. \" + CompanyName[5]); \n System.out.println(\"7. Return to Main Menu\\n\");\n \n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n try {\n menu = Integer.parseInt(in.readLine());\n switch (menu) {\n case 1:\n max= money/ StockPrice[0];\n max= Math.round(max);\n System.out.println(\"\\nYou can buy \" +max+ \" stocks from \" +CompanyName[0]); \n break; \n case 2:\n max= money/ StockPrice[1];\n max= Math.round(max);\n System.out.println(\"\\nYou can buy \" +max+ \" stocks from \" +CompanyName[1]); \n break;\n case 3:\n max= money/ StockPrice[2];\n max= Math.round(max);\n System.out.println(\"\\nYou can buy \" +max+ \" stocks from \" +CompanyName[2]);\n break;\n case 4: \n max= money/ StockPrice[3];\n max= Math.round(max);\n System.out.println(\"\\nYou can buy \" +max+ \" stocks from \" +CompanyName[3]);\n break; \n case 5: \n max= money/ StockPrice[4];\n max= Math.round(max);\n System.out.println(\"\\nYou can buy \" +max+ \" stocks from \" +CompanyName[4]);\n break; \n case 6:\n max= money/ StockPrice[5];\n max= Math.round(max);\n System.out.println(\"\\nYou can buy \" +max+ \" stocks from \" +CompanyName[5]);\n break;\n case 7:\n a = 0;\n break;\n default:\n System.out.println(\"Invalid entry!\");\n break;\n }\n } catch (NumberFormatException ex) {\n System.out.println(ex.getMessage() + \" is not a numeric value.\");\n }\n }\n }", "static int max(int ropeLen) {\n\t\tint[] dp = new int[ropeLen + 1];\n\t\tdp[0] = 1;\n\t\tfor (int i = 1; i <= ropeLen; i++) {\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tmax = Math.max(max, dp[j] * (i - j));\n\t\t\t}\n\t\t\tdp[i] = max;\n\t\t}\n\t\treturn dp[ropeLen];\n\t}", "public static int minimumNumberOfBlackWallsInStock()\n {\n return 0;\n }", "public int maximumRobots(int[] chargeTimes, int[] runningCosts, long budget) {\n int n = chargeTimes.length;\n // [front, end).\n int[] deque = new int[n];\n int front = 0;\n int end = 0;\n long sum = 0;\n int left = 0;\n int right = 0;\n for (; right < n; ++right) {\n // add right into the sliding window, so the window becomes [left, right].\n // update sliding window max and window sum.\n while (end - front > 0 && chargeTimes[deque[end - 1]] <= chargeTimes[right]) {\n --end;\n }\n deque[end++] = right;\n sum += runningCosts[right];\n // if the condition is met in the window, do nothing,\n // so the next window size will become one larger.\n // if the condition is not met in the window, shrink one from the front,\n // so the next window size will stay the same.\n if (chargeTimes[deque[front]] + (right - left + 1) * sum > budget) {\n while (end - front > 0 && deque[front] <= left) {\n ++front;\n }\n sum -= runningCosts[left];\n ++left;\n }\n }\n return right - left;\n }", "@Test\n public void testMaxQueue() throws Throwable {\n internalMaxQueue(\"core\");\n internalMaxQueue(\"openwire\");\n internalMaxQueue(\"amqp\");\n }", "public int solve(String infile) {\r\n\r\n\t\ttry {\r\n\t\t\treadData(infile);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//A temporary object array of bids\r\n\t\tBids[] numBids = populateBids();\r\n\t\t//A temporary integer array to hold the maximum value\r\n\t\tint[] storeMaxRev = new int[numBids.length];\r\n\t\t//A temporary variable for the maximum revenue that will be updated in the main loop.\r\n\t\tint maxRev = 0;\r\n\t\t\r\n\t\t//Invokes the comparator method defined earlier\r\n\t\tLotComparator compareFinishTimes = new LotComparator();\r\n\t\tArrays.sort(numBids,compareFinishTimes);\r\n\t\t\r\n\t\t\r\n\t\t//Edge case check if the number of bids is less than 0\r\n\t\tif(numBids.length <= 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\t//Choose the first bid in the object array.\r\n\t\tstoreMaxRev[0] = numBids[0].priceOfLot;\r\n\t\t\r\n\t\t//From the second element of the object array, iterate through the array and store the price\r\n\t\t//of the element that is larger than the previous element\r\n\t\tfor(int i = 1; i < numBids.length; i++) {\r\n\t\t\tstoreMaxRev[i] = Math.max(numBids[i].priceOfLot, storeMaxRev[i - 1]);\r\n\t\t\t\r\n\t\t\t//Iterating backwards from the second last element relative to i, check if the current element is compatible.\r\n\t\t\t//A compatible bid is when the ending lot number is less than the starting lot number of the next bid.\r\n\t\t\t//If it is an compatible bid, add the price of the current bid to the previous bid and take the maximum price out of the two.\r\n\t\t\tfor(int j = i - 1; j >= 0; j--) {\r\n\t\t\t\tif(numBids[j].endLot < numBids[i].beginningLot) {\r\n\t\t\t\t\tstoreMaxRev[i] = Math.max(storeMaxRev[i], numBids[i].priceOfLot + storeMaxRev[j]);\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\t\r\n\t\t\r\n\t\t//Once all of the bids in numBid object array is processed, we get an integer array that will contain the maximum revenue.\r\n\t\t//This loop iterates through storeMaxRev and selects the largest integer which is then set to the variable maxRev and returned as the answer\r\n\t\tfor(int priceIdx = 0; priceIdx < storeMaxRev.length; priceIdx++) {\r\n\t\t\tif(maxRev < storeMaxRev[priceIdx]) {\r\n\t\t\t\tmaxRev = storeMaxRev[priceIdx];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn maxRev;\r\n\t}", "public int houseRobberWithMaxAmount(int[] a) {\n\t\tint n = a.length;\n\t\tif (1 == n)\n\t\t\treturn a[0];\n\n\t\t// Rob house including 1stHouse, excluding last house\n\t\tint amt1 = houseRobberWithMaxAmountHousesFromItoJInConstantSpace(a, 0, a.length - 2);\n\t\t// Rob house excluding 1stHouse, including last house\n\t\tint amt2 = houseRobberWithMaxAmountHousesFromItoJInConstantSpace(a, 1, a.length - 1);\n\n\t\treturn Math.max(amt1, amt2);\n\t}", "public int nEigenOneOrGreater(){\n if(!this.pcaDone)this.pca();\n return this.greaterThanOneLimit;\n }", "public static void main(String[] args) {\n System.out.print(\"Number of balloon is: \" + maxNumberOfBalloons(\"llo\"));\n\n }", "int getMaxConcurrent();", "private float getMaxHeight(TECarpentersBlock TE)\n \t{\n \t\tfloat maxHeight = 1.0F / 16.0F;\n \t\t\n \t\tfor (int quadrant = 0; quadrant < 4; ++quadrant) {\n \t\t\tfloat quadHeight = Collapsible.getQuadHeight(TE, quadrant) / 16.0F;\n \t\t\tif (quadHeight > maxHeight)\n \t\t\t\tmaxHeight = quadHeight;\n \t\t}\t\t\n \n \t\treturn maxHeight;\n \t}", "public Integer maxMessages();", "public static int getMaxBEDSize(Vector<BEDCoord> sites) {\n\t\tint maxSize = 0;\n\t\tfor (int x = 0; x < sites.size(); x++) {\n\t\t\tint SIZE = sites.get(x).getFStrand().length;\n\t\t\tif (SIZE > maxSize) {\n\t\t\t\tmaxSize = SIZE;\n\t\t\t}\n\t\t}\n\t\treturn maxSize;\n\t}", "public static int calc(int numbteams) {\n int randomSize = (int) (Math.random() * ((numbteams - 1) + 1)) + 1;\n return randomSize;\n }", "int getMaximum();", "public void findMaxComb() {\n\t\tHashMap<Integer, HashSet<Integer>> adj = new HashMap<Integer, HashSet<Integer>>();\n\t\tfor (int row=0; row< w; row++) {\n\t\t\tfor (int col=0; col<l; col++) {\n\t\t\t\tHashSet<Integer> hs = new HashSet<Integer>();\n\t\t\t\t//go left\n\t\t\t\tif (inBoard(row, col-1) && visited[row][col-1] != visited[row][col]) //in board and not equal\n\t\t\t\t\ths.add(visited[row][col-1]);\n\n\t\t\t\t//go up\n\t\t\t\tif (inBoard(row-1, col) && visited[row-1][col] != visited[row][col])\n\t\t\t\t\ths.add(visited[row-1][col]);\n\n\t\t\t\t//go right\n\t\t\t\tif (inBoard(row, col+1) && visited[row][col+1] != visited[row][col])\n\t\t\t\t\ths.add(visited[row][col+1]);\n\n\t\t\t\t//go down\n\t\t\t\tif (inBoard(row+1, col) && visited[row+1][col] != visited[row][col])\n\t\t\t\t\ths.add(visited[row+1][col]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (adj.containsKey(visited[row][col])) {\n\t\t\t\t\tHashSet<Integer> tt = adj.get(visited[row][col]);\n\t\t\t\t\ttt.addAll(hs);//union, return boolen\n\t\t\t\t\tadj.put(visited[row][col], tt); \n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tadj.put(visited[row][col], hs);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tint tempMax = 0;\n\t\tfor (Integer key : adj.keySet()) {\n\t\t\tfor (Integer ele : adj.get(key)) {\n\t\t\t\ttempMax = Math.max(tempMax, map.get(key) + map.get(ele));\n\t\t\t}\n\t\t}\n\t\tmaxComb = tempMax;\n\t}", "public int selectionFunctionBiggestCoin(MyList<Integer> candidates){\n\n\t\t//-----------------------------\n\t\t//Output Variable --> InitialValue\n\t\t//-----------------------------\n\t\tint res = -1;\n\n\t\t//-----------------------------\n\t\t//SET OF OPS\n\t\t//-----------------------------\n\t\tint maxWeight = Integer.MIN_VALUE;\n\t\tint index = candidates.length() - 1;\n\n\n\t\twhile (index >= 0) {\n\t\t\t// OP1.1. Auxiliary variables:\n\t\t\t// We use 'e0' to compute the first item of 'candidate' just once.\n\t\t\tint e0 = candidates.getElement(index);\n\n\t\t\t// OP1.1. If a not previously considered item improves minWeight, we\n\t\t\t// update 'res' and 'minWeight'\n\t\t\tif (e0 > maxWeight) {\n\t\t\t\tres = index;\n\t\t\t\tmaxWeight = e0;\n\t\t\t}\n\n\t\t\t// OP1.2. We decrease 'index' so as to try the previous item of\n\t\t\t// 'candidates'\n\t\t\tindex--;\n\t\t}\n\n\t\t//-----------------------------\n\t\t//Output Variable --> Return FinalValue\n\t\t//-----------------------------\t\t\n\t\treturn res;\t\t\n\t}", "public int maxProfitBF(int prices[]) {\n int maxprofit = 0;\n for (int i = 0; i < prices.length - 1; i++) {\n for (int j = i + 1; j < prices.length; j++) {\n int profit = prices[j] - prices[i];\n if (profit > maxprofit)\n maxprofit = profit;\n }\n }\n return maxprofit;\n }", "default int getMaximumCount(int slot) {\n\t\treturn 64;\n\t}", "public int getMaxAmount() {\n return maxAmount;\n }", "public Knapsack bruteForceCalc (ArrayList <Item> items,int capacity, int num_items) {\n\t\tif (num_items <= 0) {\n\t\t\tKnapsack knapsack = new Knapsack(0);\n\t\t\treturn knapsack;\n\t\t} \n\t\telse if (items.get(num_items -1).getWeight() > capacity) {\n\t\t\treturn bruteForceCalc(items, capacity, num_items - 1);\n\t\t} else {\n\n\t\t\tKnapsack ignore = bruteForceCalc(items,capacity, num_items - 1);\n\t\t\tKnapsack take = bruteForceCalc(items,capacity - items.get(num_items -1).getWeight(), num_items - 1);\n\t\t\t\n\t\t\tint ignoreVal = ignore.getValue();\n\t\t\tint takeVal = items.get(num_items - 1).getValue() + take.getValue();\n\t\t\t \n\t\t\tif( Math.max(ignoreVal, takeVal) == ignoreVal ) \n\t\t\t\treturn ignore;\n\t\t\telse {\n\t\t\t\ttake.addItem(items.get(num_items - 1));\n\t\t\t\treturn take;\n\t\t\t}\n\t\t}\n\t}", "void downwardPassMaxBeliefUpdate(List<Vertex> orderedVertices) throws FactorException {\n\t\t_bumpOnUpwardPass = false;\n\t\tif(DEBUG) System.out.println(\"\\n\\ndownward pass!\\n\\n\");\n\t\tfor(int i = 0; i < orderedVertices.size(); i++) {\n\t\t\tVertex v = (Vertex) orderedVertices.get(i);\n\t\t\tif(DEBUG) System.out.printf(\"i:%d VertexMax:%s\\n\",i,v);\n\t\t\t// for each edge that is outgoing given our ordering\n\t\t\tfor(Edge e : v.getDownwardOutgoingNeighborEdges()) {\n\t\t\t\tif(DEBUG) System.out.println(\"sending msg over edge:\"+e);\n\t\t\t\t// send our message along that edge\n\t\t\t\tv.sendMessage(e);\n\t\t\t}\n\t\t}\n\t}", "static int knapsack(int[] weight, int[] value, int n, int maxWeight) {\n int[][] dp = new int[n+1][maxWeight+1];\n for (int i=0;i<=n;i++) {\n for (int j =0;j<=maxWeight;j++) {\n dp[i][j] = -1;\n }\n }\n int ans= knapsack(weight,value,n,maxWeight,dp);\n return ans;\n\n }", "@Nonnegative\n int getMaxReactionRounds()\n {\n return _maxReactionRounds;\n }", "public int getMaxRoundsPerBattle() {\n return maxRoundsPerBattle;\n }", "public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }", "public static void findMaxPalindromeBruteForce(Palindrome palind){\n\t\tfor (long i = Main.topLimit; i > Main.lowLimit; i--){\n\t\t\tfor (long j = i; j > Main.lowLimit; j--){\n\t\t\t\tlong mult = i * j;\n\t\t\t\tif (mult > palind.getMaxMultipl() && isPalindrome(mult + \"\")){\n\t\t\t\t\tpalind.setMaxMultipl(mult);\n\t\t\t\t\tpalind.setIMax(i);\n\t\t\t\t\tpalind.setJMax(j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int maxProfit(int[] prices) {\n\n if(prices.length==0) return 0;\n\n int[] dp = new int[3];\n\n dp[0] = -prices[0];\n\n dp[1] = Integer.MIN_VALUE;\n\n dp[2] = 0;\n\n for(int i=1; i<prices.length; i++){\n\n int hold = Math.max(dp[0], dp[2]- prices[i]);\n\n int coolDown = dp[0] + prices[i];\n\n int notHold = Math.max(dp[2], dp[1]);\n\n dp[0] = hold;\n\n dp[1] = coolDown;\n\n dp[2] = notHold;\n\n\n }\n\n return Math.max(Math.max(dp[0],dp[1]),dp[2]);\n\n }", "Integer getMaximumResults();", "private void equalizePressure() {\n for (int i = 0; i < 10; ++i) {\n HydraulicState hs = outputComponent.getHydroState();\n if (hs instanceof BlockedHydroState) { // we can't send anything\n break;\n } else {\n if (hs.getPressure() < getBottomPressure()) { // if our pressure is larger than the other one\n Water deltaWater = new Water(getWater().getTemperature(), Math.min((int)(3 * getWater().getParticlesPerKilo()), getWater().getParticleNr()));\n //System.out.println(\"C: Before: \" + outputComponent.getHydroState().pressure() + \" \" + getBottomPressure());\n send(deltaWater); // send 3 kg of water\n getWater().remove(deltaWater.getParticleNr());\n //System.out.println(\"C: After: \" + outputComponent.getHydroState().pressure() + \" \" + getBottomPressure());\n } else {\n // residual flow\n /*Water deltaWater = new Water(getWater().getTemperature(), new Kilograms(Math.min(0.01, getWaterMass())));\n send(deltaWater);\n getWater().remove(deltaWater.getParticleNr());*/\n }\n }\n } \n }", "public int getMaxCalls();", "private static int maxProfit(int[] prices) {\n\t\tint profit = 0;\n\t\tint buyPrice = prices[0]; //min price to buy the stock\n\t\tfor(int i=1; i< prices.length; i++) {\n\t\t\tbuyPrice = Math.min(buyPrice, prices[i]);\n\t\t\tprofit = Math.max(profit, (prices[i]-buyPrice));\n\t\t}\n\t\treturn profit;\n\t}", "public static int max() {\r\n\r\n\t\tint[] arr1 = ArrayMethods.get5();\r\n\t\tint[] arr2 = ArrayMethods.get5();\r\n\r\n\t\tint sum1 = 0;\r\n\t\tint sum2 = 0;\r\n\r\n\t\tint max = 0;\r\n\r\n\t\tfor (int num : arr1) {\r\n\t\t\tsum1 += num;\r\n\t\t}\r\n\t\tfor (int num : arr2) {\r\n\t\t\tsum2 += num;\r\n\t\t}\r\n\r\n\t\tif (sum1 > sum2) {\r\n\r\n\t\t\tmax = sum1;\r\n\r\n\t\t} else if (sum1 == sum2) {\r\n\r\n\t\t\tmax = sum1;\r\n\r\n\t\t} else {\r\n\r\n\t\t\tmax = sum2;\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public int getNumOfMatchedBets();", "private int evaluate(boolean maximizing) {\n int selfEval = getCountOfStonesFor(this);\n selfEval += countOfMills(this) * 5;\n selfEval += countOfPossibleMills(this) * 15;\n\n int opponentEval = getCountOfStonesFor(opponent);\n opponentEval += countOfMills(opponent) * 5;\n opponentEval += countOfPossibleMills(opponent) * 15;\n\n return (selfEval - opponentEval) * (maximizing ? 1 : -1);\n }", "int maxBeatNum();", "private int getMaxReconsumeTimes() {\n if (this.defaultMQPushConsumer.getMaxReconsumeTimes() == -1) {\n return Integer.MAX_VALUE;\n } else {\n return this.defaultMQPushConsumer.getMaxReconsumeTimes();\n }\n }", "public int getMaxPoolSize(Env env) {\n return client.getMaxPoolSize();\n }", "@Override\n\tpublic int getMaxSafePointTries() {\n\t\treturn this.getAttackTarget() == null ? 3\n\t\t\t\t: 3 + (int) (this.getHealth() - 1.0F);\n\t}", "public static void main(String[] args) {\n\t\tint[] len={1,2,3,4,5,6,7,8};\r\n\t\tint[] cost={1,5,8,9,10,17,17,20};\r\n\t\tSystem.out.println(maxPrice(len,cost,8,len.length-1,0));\r\n\t}", "public int adjustForCrowding() {\n int deadGuppyCount = 0;\n\n Collections.sort(this.guppiesInPool, new Comparator<Guppy>() {\n @Override\n public int compare(Guppy g1, Guppy g2) {\n return Double.compare(g1.getHealthCoefficient(), g2.getHealthCoefficient());\n }\n });\n\n Guppy weakestGuppy;\n Iterator<Guppy> it = guppiesInPool.iterator();\n double volumeNeeded = this.getGuppyVolumeRequirementInLitres();\n\n while (it.hasNext() && volumeNeeded > this.getVolumeLitres()) {\n weakestGuppy = it.next();\n volumeNeeded -= (weakestGuppy.getVolumeNeeded() / ML_TO_L_CONVERSION);\n\n weakestGuppy.setIsAlive(false);\n\n\n deadGuppyCount++;\n\n }\n return deadGuppyCount;\n }", "static int unboundedKnapsack(int [] val,int[] wt, int W){\n int n = val.length;\n int[][] dp = new int[n+1][W+1];\n for (int i =0;i<=n;i++){\n dp[i][0] = 0;\n }\n for (int j = 0;j<=W;j++){\n dp[0][j] = 0;\n }\n\n for (int i=1;i<=n;i++){\n for (int j = 1;j<=W;j++){\n if (wt[i-1] <= j){\n dp[i][j] = Math.max(dp[i-1][j], val[i-1] + dp[i][j - wt[i-1]]);\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][W];\n }", "protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}", "public int betThisAmountOrNextLargest(int y) {\n if (playerMoney >= y) {\n return y;\n } else {//\n return playerMoney;\n\n }\n\n }", "public int getMaximumWeight() { // get the max weight\n\t\treturn maximumWeight;\n\t}", "public int maxSatisfied2(int[] customers, int[] grumpy, int X) {\n int satisfied = 0;\n int max = 0;\n for (int i = 0, cur = 0; i < grumpy.length; i++) {\n satisfied += customers[i] * (1 - grumpy[i]);\n cur += grumpy[i] * customers[i];\n if (i >= X) {\n cur -= customers[i - X] * grumpy[i - X];\n }\n max = Math.max(cur, max);\n }\n return satisfied + max;\n }", "public int getBottles() {\n return totalBottles;\n }", "public int maxLen() {\n if (compositions == null) {\n return Math.max(maxLen(getAllele(0)), maxLen(getAllele(1)));\n } else {\n if (compositions.isEmpty())\n return 0;\n int maxLen = compositions.get(0).maxLen();\n for (Variant c : compositions) {\n maxLen = Math.max(maxLen, c.maxLen());\n }\n return maxLen;\n }\n }", "static int webknapSackRecur(int W, int wt[], int val[], int n) {\n // Base Case\n if (n == 0 || W == 0)\n return 0;\n\n // wt[i] represents the weight of the ith item\n // If weight of the nth item is more than Knapsack capacity W, then\n // this item cannot be included in the optimal solution\n if (wt[n - 1] > W)\n return webknapSackRecur(W, wt, val, n - 1);\n\n // Return the maximum of two cases:\n // (1) nth item included\n // (2) not included\n else return max(val[n - 1] + webknapSackRecur(W - wt[n - 1], wt, val, n - 1),\n webknapSackRecur(W, wt, val, n - 1)\n );\n }", "static long getMaxPairwiseProductNaive(int[] numbers) {\n long max_product = 0;\n int n = numbers.length;\n int maybeLarger = 0;\n\n for (int a = 0; a < n; a += 1) {\n for (int b = a + 1; b < n; b += 1) {\n maybeLarger = numbers[a] * numbers[b];\n if (maybeLarger > max_product) {\n max_product = maybeLarger;\n }\n }\n }\n\n return max_product;\n }", "static int maxProfit(int[] prices)\n\t{\n\t\tint len = prices.length;\n\t\tint min = Integer.MAX_VALUE;\n\t\tint profit = 0;\n\t\tfor (int i = 0; i < len; i++)\n\t\t{\n\t\t\tmin = min > prices[i] ? prices[i] : min;\n\t\t\tprofit = prices[i] - min > profit ? prices[i] - min : profit; \n\t\t}\n\t\treturn profit;\n\t}", "@Basic @Immutable\n\tpublic Weight getMaxWeight() {\n\t\treturn this.MAX_WEIGHT;\n\t}", "int getMax( int max );", "int getMaxAir(ItemStack stack);", "static int maxLoot(int hval[], int n)\n {\n if (n == 0) return 0;\n if (n == 1) return hval[0];\n if (n == 2) return Math.max(hval[0], hval[1]);\n // dp[i] represent the maximum value stolen so far after reaching house i.\n int[] dp = new int[n];\n // Initialize the dp[0] and dp[1]\n dp[0] = hval[0];\n dp[1] = Math.max(hval[0], hval[1]);\n // Fill remaining positions\n for (int i = 2; i<n; i++)\n dp[i] = Math.max(hval[i]+dp[i-2], dp[i-1]);\n return dp[n-1];\n }", "private static boolean canPack(int bigCount, int smallCount, int goal) {\n\n//Check if all parameters are in valid range\n if (bigCount < 0 || smallCount < 0 || goal < 0)\n return false;\n\n int pack = 0;\n\n //While we haven't created a pack\n while (pack < goal) {\n //see if a big flour bag can fit in the package\n if (bigCount > 0 && (pack + 5) <= goal) {\n bigCount--;\n pack += 5;\n\n }\n //see there is a small flour bag left, to add to the package\n else if (smallCount > 0) {\n smallCount--;\n pack += 1;\n }\n //if a big bag won't fit (or doesnt exist) and we dont have enough small bags\n else\n return false;\n }\n return (pack == goal);\n }", "public final int getMaxLinkCount() {\n\t\tint r = 0;\n\t\tlockMe(this);\n\t\tr = maxLinkCount;\n\t\tunlockMe(this);\n\t\treturn r;\n\t}", "private int computeMaxDependencyCount (Grid grid)\n {\n int maxDependencyCount = 0;\n for (int y = 0; y < grid.getHeight (); y++)\n {\n for (int x = 0; x < grid.getWidth (); x++)\n {\n Cell cell = grid.getCell (x, y);\n if (cell != null)\n {\n int dependencyCount = cell.getDependencyCount ();\n maxDependencyCount = Math.max (maxDependencyCount, dependencyCount);\n }\n }\n }\n return maxDependencyCount;\n }" ]
[ "0.68451107", "0.59404016", "0.5684633", "0.5575629", "0.54719126", "0.53924096", "0.5391419", "0.53637683", "0.53313273", "0.5252455", "0.51889443", "0.51889443", "0.51812726", "0.5146177", "0.5119206", "0.51166666", "0.5100547", "0.5094203", "0.5064957", "0.506301", "0.5061002", "0.5060697", "0.50559694", "0.5045139", "0.50417125", "0.504005", "0.50371575", "0.50328183", "0.5027288", "0.5012542", "0.5002888", "0.5001861", "0.49916643", "0.49891987", "0.4984534", "0.49790064", "0.49766514", "0.49690944", "0.4966941", "0.49579158", "0.4954516", "0.49384975", "0.49362317", "0.4930414", "0.49198315", "0.49177477", "0.49105763", "0.49012044", "0.48977202", "0.48945367", "0.4885988", "0.48834786", "0.487994", "0.48683167", "0.48681253", "0.48617655", "0.4858612", "0.48522878", "0.48463887", "0.48457012", "0.4840971", "0.48391968", "0.48334295", "0.48273", "0.48193517", "0.48148012", "0.4806042", "0.48041397", "0.47970322", "0.47916335", "0.4785223", "0.4780455", "0.47709984", "0.47638085", "0.4760044", "0.47567222", "0.4750576", "0.4748925", "0.4747214", "0.47420385", "0.47405985", "0.4734011", "0.4731406", "0.47295505", "0.47243655", "0.4723947", "0.47229958", "0.4722658", "0.4722632", "0.47220138", "0.47217134", "0.47173405", "0.47170296", "0.4715095", "0.4714539", "0.47142372", "0.47126803", "0.47087023", "0.47060356", "0.47031516" ]
0.6874078
0
bidirectional manytoone association to TypeSalle
@ManyToOne @JoinColumn(name="TYPESALLE") public TypeSalle getTypesalle() { return this.typesalle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.administration.customerservice.BillingInformation.type}\")\n \n @ManyToOne(fetch = FetchType.LAZY)\n@JoinColumn(name = \"TYPE_FK\")\[email protected](name = \"BILLINTYPE_FK\")\n\n public gov.nih.nci.calims2.domain.common.Type getType() {\n return type;\n }", "@ApiModelProperty(value = \"A categorization of the relationship (e.g.: migration, substitution, dependency, exclusivity)\")\n public String getType() {\n return type;\n }", "void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }", "@Override\n\t\tpublic Relationship getSingleRelationship(RelationshipType type, Direction dir) {\n\t\t\treturn null;\n\t\t}", "public String getType() {\n return relationshipName;\n }", "void setType(Type type)\n {\n this.type = type;\n }", "TypeAssociation getAssocieCommeSujetInstanceObjet();", "TypeAssociationEXT getConcerneUniteUnite();", "@XmlTransient\r\n @JsonIgnore\r\n public URI getType() {\r\n return this.type == null ? null : this.type.getType();\r\n }", "@Override\n\t\tpublic Relationship createRelationshipTo(Node otherNode, RelationshipType type) {\n\t\t\treturn null;\n\t\t}", "TypeAssociationEXT getEstPourTypeMateriel();", "public void setTypeId(final ReferenceTypeId typeId);", "@SuppressWarnings(\"unchecked\")\n @Override\n public <Y> ErraiSingularAttribute<? super X, Y> getId(Class<Y> type) {\n return (ErraiSingularAttribute<? super X, Y>) id;\n }", "public void setTypeId(com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId typeId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId target = null;\n target = (com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId)get_store().find_element_user(TYPEID$2, 0);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId)get_store().add_element_user(TYPEID$2);\n }\n target.set(typeId);\n }\n }", "Type persistir(Type type);", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "@Override\n public <S> CollectionBuilder<S> withType(Class<S> type) {\n BiAction<? super String, ? super ModelType<? extends S>> castOnCreate = Cast.uncheckedCast(onCreate);\n return new DelegatingCollectionBuilder<S>(delegate.withType(type), ModelType.of(type), castOnCreate);\n }", "TypeAssociation getConcerneTraitementObjectifTraitementObjectif();", "boolean isOneToMany();", "public Set(String name, IDatatype type, IModelElement parent) {\n super(name, DTYPE, type, parent);\n }", "public int getTypeId();", "public int getTypeId();", "@Override\r\n\tpublic int getTypeId() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}", "public void setPersonType(PersonType_Tp type) { this.personType = type; }", "TypeAssociation getAssocieCommeObjetAdresse();", "@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();", "public TypeId getTypeId() {\r\n return typeId;\r\n }", "public StacLink type(String type) {\n this.type = type;\n return this;\n }", "public Class<Camp> getEntityType() { return Camp.class; }", "PiEntityType entityType();", "TypeAssociation getConcernePlanFeuxPlanFeux();", "public void setNilCascadeType()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2011.metadata.CascadeType target = null;\r\n target = (com.microsoft.schemas.xrm._2011.metadata.CascadeType)get_store().find_element_user(CASCADETYPE$0, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas.xrm._2011.metadata.CascadeType)get_store().add_element_user(CASCADETYPE$0);\r\n }\r\n target.setNil();\r\n }\r\n }", "@Override\n\t\tpublic boolean hasRelationship(RelationshipType... types) {\n\t\t\treturn false;\n\t\t}", "public String getRelationshipTypeGUID()\n {\n return relationshipTypeGUID;\n }", "public void setType(String type) {\n this.type = type;\n }", "@Override\n\tpublic TypeDocument save(TypeDocument typeDocument) {\n\t\treturn typeDocumentRepository.save(typeDocument);\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public <Y> SingularAttribute<X, Y> getDeclaredId(Class<Y> type) {\n return (SingularAttribute<X, Y>) id;\n }", "public ModelObjectType getType() {\n return type;\n }", "public void saveEntity(@Valid WayToGet way, String type) {\n\t\tCommercialAccount account = getCommercialAccountById(way.getCompanyProvider().getId());\r\n\t\tway.setCompanyProvider(account);\r\n\t\tif(way.getId()==null) {\r\n\t\t\tswitch(type) {\r\n\t\t\tcase \"FLIGHT\":\r\n\t\t\t\tflightService.saveEntity(way);\r\n\t\t\t\treturn;\r\n\t\t\tcase \"BUS\":\r\n\t\t\t\tbusService.saveEntity(way);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tLOGGER.info(\"Id: \"+way.getId());\r\n\t\tLOGGER.info(\"Type: \"+type);\r\n\t\tif(checkWayForBus(way)) {\r\n\t\t\tLOGGER.debug(\"Saving bus Service\");\r\n\t\t\tbusService.saveEntity(way);\r\n\t\t}else if(checkWayForFlight(way)) {\r\n\t\t\tLOGGER.debug(\"Saving flight Service\");\r\n\t\t\tflightService.saveEntity(way);\r\n\t\t}\r\n\t\t\r\n\t}", "void setType(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type type);", "public EntityType getType()\n {\n return m_type;\n }", "@Override\r\n\tpublic void addTipoTramite(TipoTramite tipoTramite) {\n\t\t\r\n\t}", "@Override\n\tpublic Type getType() {\n\t\treturn null;\n\t}", "public String getType() {return type;}", "@NotNull\n @JsonProperty(\"typeId\")\n public ReferenceTypeId getTypeId();", "public String entityType();", "@Override\n public Type getType() {\n return null;\n }", "@Override\r\n public Class<UserSoftware> getEntityType() {\n return null;\r\n }", "public TYPE getType(){\n return this.type;\n }", "public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}", "@Override\n public Type getType() {\n return type;\n }", "@Override\n public Type getType() {\n return type;\n }", "@Override\npublic String getType() {\n\treturn null;\n}", "public void setType(Type type){\n\t\tthis.type = type;\n\t}", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "public void setType(Type type) {\n this.type = type;\n }", "public void setType(Type type) {\n this.type = type;\n }", "public void setType(Type type) {\n this.type = type;\n }", "public void setParentType(String type) {\n this.parentType = type;\n }", "Cascade createCascade();", "void setType(String type) {\n this.type = type;\n }", "public void addAssociation(String mPackage, Class type, RefObject a, RefObject b) throws CreationException {\n\t\t\n\t\ttrace.addTrace(TraceType.CREATION, \"Create Association of type \" + type.getSimpleName() + \" in target model.\");\n\t\t\n\t\tRefPackage pkg = loadBasePackage(mPackage);\n\t\tCollection<RefAssociation> assos = pkg.refAllAssociations();\n\t\tfor(RefAssociation ass:assos) {\n\t\t\t/* \n\t\t\t * The return type of java.lang.Class.getInterfaces()\n\t\t\t * has changed in Java 1.6.\n\t\t\t * To compile this file using Java 1.6 or later, change the\n\t\t\t * generic of the List 'interfaces' from List<Class> to\n\t\t\t * List<Class<?>>. \n\t\t\t */\n\t\t\tList<Class> interfaces = Arrays.asList(ass.getClass().getInterfaces());\n\t\t\tif(interfaces.contains(type)) {\n\t\t\t\tMethod add = null;\n\t\t\t\tMethod[] methods = ass.getClass().getMethods();\n\t\t\t\tfor(Method m : methods) {\n\t\t\t\t\tif (m.getName().equals(\"add\")) {\n\t\t\t\t\t\tadd = m;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (add == null) {\n\t\t\t\t\tthrow new CreationException(ADD_METHOD_NOT_FOUND + type.getSimpleName());\n\t\t\t\t}\n\t\t\t\n\t\t\t\tObject[] parameters = {a,b};\n\t\t\t\ttry {\n\t\t\t\t\tadd.invoke(ass, parameters);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\n\t\t\n\t\t}", "@Override\n\t\tpublic boolean hasRelationship(RelationshipType type, Direction dir) {\n\t\t\treturn false;\n\t\t}", "public void setType(String type) \n {\n this.type = type;\n }", "Type getForPersistentMapping_Type() {\n return type;\n }", "public AdvertisedContribution(Type type) {\n this.type = type;\n }", "public SpatialRelationBlock(int addr, TOP_Type type) {\n\t\tsuper(addr, type);\n\t\treadObject();\n\t}", "public abstract Type getType();", "@JsonIgnore\r\n public void setType(URI type) {\r\n this.type = type == null ? null : new TypeReference<AlternateIdType>(type);\r\n }", "public void setType(String type){\n this.type = type;\n }", "@Override\r\n\tpublic String getType() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getType() {\n\t\treturn null;\r\n\t}", "public interface Type<SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept<SomeType> {\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type<SomeType, SomeThing> asType() {\n return this;\n }\n\n @Override\n Remote<SomeType, SomeThing> asRemote(GraknClient.Transaction tx);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n\n interface Local<\n SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept.Local<SomeType>, Type<SomeType, SomeThing> {\n }\n\n /**\n * A Type represents any ontological element in the graph.\n * Types are used to model the behaviour of Thing and how they relate to each other.\n * They also aid in categorising Thing to different types.\n */\n interface Remote<\n SomeRemoteType extends Type<SomeRemoteType, SomeRemoteThing>,\n SomeRemoteThing extends Thing<SomeRemoteThing, SomeRemoteType>>\n extends SchemaConcept.Remote<SomeRemoteType>, Type<SomeRemoteType, SomeRemoteThing> {\n\n //------------------------------------- Modifiers ----------------------------------\n\n /**\n * Changes the Label of this Concept to a new one.\n *\n * @param label The new Label.\n * @return The Concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> label(Label label);\n\n /**\n * Sets the Type to be abstract - which prevents it from having any instances.\n *\n * @param isAbstract Specifies if the concept is to be abstract (true) or not (false).\n * @return The concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> isAbstract(Boolean isAbstract);\n\n /**\n * @param role The Role Type which the instances of this Type are allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> plays(Role role);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked in a strictly one-to-one mapping.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> key(AttributeType<?> attributeType);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> has(AttributeType<?> attributeType);\n\n //------------------------------------- Accessors ---------------------------------\n\n /**\n * @return A list of Role Types which instances of this Type can indirectly play.\n */\n Stream<Role.Remote> playing();\n\n /**\n * @return The AttributeTypes which this Type is linked with.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> attributes();\n\n /**\n * @return The AttributeTypes which this Type is linked with as a key.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> keys();\n\n /**\n * @return All the the super-types of this Type\n */\n @Override\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> sups();\n\n /**\n * Get all indirect sub-types of this type.\n * The indirect sub-types are the type itself and all indirect sub-types of direct sub-types.\n *\n * @return All the indirect sub-types of this Type\n */\n @Override\n @CheckReturnValue\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> subs();\n\n /**\n * Get all indirect instances of this type.\n * The indirect instances are the direct instances and all indirect instances of direct sub-types.\n *\n * @return All the indirect instances of this type.\n */\n @CheckReturnValue\n Stream<? extends Thing.Remote<SomeRemoteThing, SomeRemoteType>> instances();\n\n /**\n * Return if the type is set to abstract.\n * By default, types are not abstract.\n *\n * @return returns true if the type is set to be abstract.\n */\n @CheckReturnValue\n Boolean isAbstract();\n\n //------------------------------------- Other ----------------------------------\n\n /**\n * Removes the ability of this Type to play a specific Role\n *\n * @param role The Role which the Things of this Type should no longer be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unplay(Role role);\n\n /**\n * Removes the ability for Things of this Type to have Attributes of type AttributeType\n *\n * @param attributeType the AttributeType which this Type can no longer have\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unhas(AttributeType<?> attributeType);\n\n /**\n * Removes AttributeType as a key to this Type\n *\n * @param attributeType the AttributeType which this Type can no longer have as a key\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unkey(AttributeType<?> attributeType);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type.Remote<SomeRemoteType, SomeRemoteThing> asType() {\n return this;\n }\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n }\n}", "@Override\n public String getType(){\n return Type;\n }", "Relationship(final String id, final String type, final String target) {\r\n this.id = id;\r\n this.type = type;\r\n this.target = target;\r\n }", "public void setType(Class type) {\n\t this.type = type;\n\t }", "public String getType(){\n \treturn this.type;\n }", "@Override\n\t\tpublic Iterable<RelationshipType> getRelationshipTypes() {\n\t\t\treturn null;\n\t\t}", "public String getType(){\n return this.type;\n }", "@Override\n public VheicleType getType() {\n return sedanType;\n }", "private String getType(){\r\n return type;\r\n }", "public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }", "@ApiModelProperty(value = \"The type to which the place is referring. This may be \\\"Site\\\", \\\"FormattedAddress\\\", \\\"FieldedAddress\\\", \\\"ReferencedAddress\\\", or \\\"GeographicLocation\")\n\n\n public String getType() {\n return type;\n }", "public void setRelationtype( String relationtype ) {\n this.relationtype = relationtype;\n }", "public abstract SoType getTypeId();", "public String getType() {\n if(iType == null){\n ArrayList<Identification_to_quantitation> lLinkers = this.getQuantitationLinker();\n for (int j = 0; j < lLinkers.size(); j++) {\n if (lLinkers.get(j).getL_identificationid() == this.getIdentificationid()) {\n this.setType(lLinkers.get(j).getType());\n }\n }\n }\n return iType;\n }", "public static boolean isRelationshipElementType(IElementType type) {\r\n\t\tboolean result = false;\r\n\t\tEClass eclass = type.getEClass();\r\n\t\tif (UMLPackage.Literals.RELATIONSHIP.isSuperTypeOf(eclass)\r\n\t\t\t\t|| UMLPackage.Literals.CONNECTOR.isSuperTypeOf(eclass)) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public String getType(){\n\treturn type;\n }", "public int getType() {\n\t\treturn 1;\r\n\t}", "public void setType(String type){\n \tthis.type = type;\n }", "public abstract void setType();", "@Override\npublic boolean saveCharitCom(Long idcommande,Charite Charite) {\n\tCommande c1= commandeDao.findOne(idcommande);\n\tSet<Commande> c= new HashSet<Commande>();\n\tc.add(c1);\n\t//Events e1 = eventDAO.findOne(idcommande);\n\tCharite.setCommandeCharite(c);\n\tchariteRepository.save(Charite);\n\treturn true;\n}", "public void addRelationship(String classNameFrom, String classNameTo, String type) \n\t{\n\t\tstoreViewState();\n\t\tproject.addRelationship(classNameFrom, classNameTo, type);\n\t\tcheckStatus();\n\t}", "public String getType() { return type; }", "public BPRType createBPRole(String id, String value, TypeType type){\n\t\tBPRType bprType = mappingFactory.createBPRType();\n\t\tbprType.setId(id);\n\t\tbprType.setValue(value);\n\t\tbprType.setType(type);\t\t\n\t\treturn bprType;\t\t\n\t}", "public void setTypeId(Long typeId) {\r\n\t\tthis.typeId = typeId;\r\n\t}", "public LearningType findOne(Long id);", "public XActRelationshipEntry getTypeCode() {\n\t\treturn typeCode;\n\t}" ]
[ "0.62731326", "0.5651787", "0.56326836", "0.56168115", "0.5538171", "0.5461078", "0.54511416", "0.5431151", "0.53525275", "0.5329657", "0.5287304", "0.5282652", "0.5258562", "0.52318007", "0.52035964", "0.5200217", "0.51929474", "0.51661855", "0.516364", "0.51545805", "0.51543784", "0.51543784", "0.51300234", "0.51291776", "0.512126", "0.51154083", "0.5096529", "0.50927573", "0.50910664", "0.5087143", "0.50861937", "0.50839925", "0.5079326", "0.5071418", "0.50657064", "0.50401837", "0.5038076", "0.50331086", "0.5027296", "0.50244516", "0.5023322", "0.49924907", "0.49903062", "0.49844941", "0.4982239", "0.49749482", "0.49704376", "0.49672657", "0.49631968", "0.49546805", "0.4954087", "0.49521428", "0.49521428", "0.49471274", "0.49466655", "0.49455172", "0.49449572", "0.49439454", "0.49439454", "0.49439454", "0.49406624", "0.49351388", "0.49340507", "0.49213243", "0.4919258", "0.49087185", "0.49080822", "0.4907456", "0.49016687", "0.48967335", "0.48921213", "0.4888346", "0.48871163", "0.48871163", "0.48841947", "0.48831093", "0.48830575", "0.48729807", "0.4872261", "0.48660398", "0.48658296", "0.48621178", "0.48525673", "0.4851937", "0.48490143", "0.4846793", "0.48415625", "0.48414925", "0.4830655", "0.48289505", "0.48264933", "0.48263103", "0.48258978", "0.48251164", "0.48222572", "0.48205993", "0.48187524", "0.48092458", "0.47972238", "0.4793126" ]
0.66648567
0
bidirectional manytoone association to Deroulersalleevaluation
@OneToMany(mappedBy="salle") public List<Programmation> getProgrammations() { return programmations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();", "public EvaluationsDegree findByPrimaryKey(int evaluationsDegreeId) throws EvaluationsDegreeDaoException;", "public EvaluationsDegree findByPrimaryKey(EvaluationsDegreePk pk) throws EvaluationsDegreeDaoException;", "@Override\r\n\tpublic EvaluationDTO create(EvaluationDTO e) {\n\t\treturn null;\r\n\t}", "EReference getRelationReference();", "public void saveInwDepartCompetence(InwDepartCompetence inwDepartCompetence);", "public Education() {}", "@ManyToOne\r\n\t@JoinColumn(name=\"idevaluador\")\r\n\tpublic CalidadEvaluadoresSensoriale getCalidadEvaluadoresSensoriale() {\r\n\t\treturn this.calidadEvaluadoresSensoriale;\r\n\t}", "@ManyToOne\r\n\t@JoinColumn(updatable=false, insertable=false, name=\"applicantWorkExp_fk\")\r\n\tpublic Applicant getRelatedApplicant() {\r\n\t\treturn relatedApplicant;\r\n\t}", "public void addEducation(Education e) {\n ed.add(e);\n}", "@Test\n public void testAssocOneWithNullAssoc() {\n\n Database server = DB.getDefault();\n\n final ProductConfiguration pc = new ProductConfiguration();\n pc.setName(\"PC1\");\n server.save(pc);\n\n CalculationResult r = new CalculationResult();\n final Double charge = 100.0;\n r.setCharge(charge);\n r.setProductConfiguration(pc);\n r.setGroupConfiguration(null);\n server.save(r);\n }", "@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}", "public WeekAssignmentPerEmployee saveOne(WeekAssignmentPerEmployee weekAssignmentPerEmployee) {\n\t\ttry{\n\t\t\t//tx.begin();\n\t\t\tem.persist(weekAssignmentPerEmployee);\n\t\t\t\n\t // tx.commit();\n\t return weekAssignmentPerEmployee;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tthrow new BusinessException(new ExceptionMessage(\"Failed in WeekAssignmentPerEmployeDao : saveOne ...\"));\n\t \n\t\t}finally{\n\t\t\tem.close();\n\t\t}\n\n\t\t\n\t}", "public EvaluacionProveedorLogic getEvaluacionProveedorLogic()\t{\t\t\r\n\t\treturn evaluacionproveedorLogic;\r\n\t}", "AdminMerchantEvaluationVO toVO4Admin(MerchantEvaluation merchantEvaluation);", "@Override\n\tpublic Instances relationalValue(final Attribute att) {\n\t\treturn null;\n\t}", "public GestoreAule() {\n this.aule = new HashSet<>();\n }", "public void add(Evaluation evaluation){\r\n evaluations.add(evaluation);\r\n }", "public Education() {\n\t\tsuper();\n\t}", "public void addEducation(Education e) {\r\n\t\tedu.add(e);\t\t\r\n\t}", "@ManyToOne\r\n\t@JoinColumn(name=\"PRID_ID\")\r\n\tpublic PartidaIndividual getPartidaIndividual() {\r\n\t\treturn this.partidaIndividual;\r\n\t}", "EReference getModelReference();", "EReference getAnEReference();", "@Override\r\n\tpublic EvaluationDTO findEvaluationById(Integer id) {\n\t\treturn null;\r\n\t}", "public String getParticulierAssociation() {\r\n\t\treturn particulierAssociation;\r\n\t}", "public void _linkSupplier(ModelElement supplier1);", "Enrollment findOne(Long id);", "public void refrescarForeignKeysDescripcionesEvaluacionProveedor() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tEvaluacionProveedorConstantesFunciones.refrescarForeignKeysDescripcionesEvaluacionProveedor(this.evaluacionproveedorLogic.getEvaluacionProveedors());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tEvaluacionProveedorConstantesFunciones.refrescarForeignKeysDescripcionesEvaluacionProveedor(this.evaluacionproveedors);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Ejercicio.class));\r\n\t\tclasses.add(new Classe(Periodo.class));\r\n\t\tclasses.add(new Classe(Cliente.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//evaluacionproveedorLogic.setEvaluacionProveedors(this.evaluacionproveedors);\r\n\t\t\tevaluacionproveedorLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "RelationalDependency createRelationalDependency();", "public void nouvelleRelation(String formule,String commentaire, EOGenericRecord ecEnCours) {\r\n\t\tEOClassDescription descriptionIPrelation = EOClassDescription.classDescriptionForEntityName(\"IpRelationChoixEc\");\r\n\t\tEOGenericRecord nouvIpRelation=(EOGenericRecord)descriptionIPrelation.createInstanceWithEditingContext(null, null);\r\n\r\n\t\tmonEcSsShared.insertObject(nouvIpRelation);\r\n\t\tnouvIpRelation.takeValueForKey(formule,\"rceFormuleContrainte\");\t// normallement la clé primaire est attribuée d'office\r\n\t\tnouvIpRelation.takeValueForKey(commentaire,\"rceCommentaireContrainte\");\r\n\t\tSystem.out.println(\"ecEnCours ::::::::: \" + ecEnCours);\r\n\t\tnouvIpRelation.takeValueForKey(ecEnCours.valueForKey(\"fannKey\"), \"fannKey\");\r\n\t\tnouvIpRelation.takeValueForKey(ecEnCours.valueForKey(\"mrecKey\"), \"mrecKeyCible\");\r\n\t\tnouvIpRelation.takeValueForKey(eoDiplSelected.valueForKey(\"msemKey\"), \"msemKey\");\r\n\t\tnouvIpRelation.takeValueForKey(\"L\", \"rceTypeRelation\");\r\n\t\tmonEcSsShared.saveChanges();\r\n\t}", "public EvaluationStep() {\n ApplicationSession.setEvaluationStepInstance(this);\n }", "@Override\r\n public Evaluation getEvaluation ()\r\n {\r\n return evaluation;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof PrSalaryDeduction)) {\r\n return false;\r\n }\r\n PrSalaryDeduction other = (PrSalaryDeduction) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "NeeqCompanyAccountingFirmOnline selectByPrimaryKey(Integer id);", "public EnrollmentDbVoImpl getEnrollmentDbVo1() {\n return (EnrollmentDbVoImpl) findViewObject(\"EnrollmentDbVo1\");\n }", "EReference createEReference();", "@OneToOne(fetch = FetchType.EAGER)\n/* */ @PrimaryKeyJoinColumn\n/* 56 */ public VfeWorkflowsAdp getVfeWorkflowsAdp() { return this.vfeWorkflowsAdp; }", "@Override\r\n public void setEvaluation (Evaluation evaluation)\r\n {\r\n setShape(evaluation.shape, evaluation.grade);\r\n }", "@Override\n\tpublic long getEmployeeProofId() {\n\t\treturn _candidate.getEmployeeProofId();\n\t}", "public static void main(String[] args) {\nSessionFactory factory=new Configuration().configure(\"hibernate.cfg.xml\").addAnnotatedClass(Instructor.class).addAnnotatedClass(InstructorDetail.class).buildSessionFactory();\n//create session\nSession session=factory.getCurrentSession();\ntry {\n//\tcreate objects\n//\tInstructor tempIn=new Instructor(\"siri\",\"vinu\",\"[email protected]\");\n//\tInstructorDetail tempd=new InstructorDetail(\"http:luv2.com\",\"coding\");\n//\ttempIn.setInstructorDetail(tempd);\n////\tassociate the objects\n//\t\n////\tstart a transcation\n//\tsession.beginTransaction();\n////\tsave the student object\n////\tthis will also save the details object too because of the CascadeType.All\n//\tsession.save(tempIn);\n//\t\n////\tcommit the transaction\n//\tsession.getTransaction().commit();\n\tSystem.out.println(\"saved!!\");\n\tSession session1=factory.getCurrentSession();\n\tInstructor tempIn1=new Instructor(\"van\",\"vinu\",\"[email protected]\");\n\tInstructorDetail tempd1=new InstructorDetail(\"http:luv2gu.com\",\"coding\");\n\ttempIn1.setInstructorDetail(tempd1);\n\tsession1.beginTransaction();\n//\tsave the student object\n//\tthis will also save the details object too because of the CascadeType.All\n\tsession1.save(tempIn1);\n\tsession1.getTransaction().commit();\n}finally {\n\tfactory.close();\n}\n\t}", "public Goal saveGoalDiary(Integer goalid, Diary related_diary);", "@Override\n\tpublic long getEmployeeDesignationId() {\n\t\treturn _candidate.getEmployeeDesignationId();\n\t}", "@Override\r\n\tpublic EvaluationDTO update(Integer id, EvaluationDTO e) {\n\t\treturn null;\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Evaluacion)) {\n return false;\n }\n Evaluacion other = (Evaluacion) object;\n if ((this.idEvaluacion == null && other.idEvaluacion != null) || (this.idEvaluacion != null && !this.idEvaluacion.equals(other.idEvaluacion))) {\n return false;\n }\n return true;\n }", "protected void fillValueInOneToManyRel(Object value)\r\n\t{\r\n\t}", "public boolean isPureFK() { // derived property\n return !_additionalFK && !_referrerAsOne;\n }", "@Override\n\tpublic long getAssignmentId() {\n\t\treturn model.getAssignmentId();\n\t}", "boolean isSetFurtherRelations();", "Assessment getAssessment();", "public Related() {\n }", "@OneToOne(mappedBy = \"persona\")\n\tpublic Proveedor getProveedor() {\n\t\treturn proveedor;\n\t}", "@Override\n\tpublic DataSet evaluate(DataSetDefinition dataSetDefinition, EvaluationContext context) throws EvaluationException {\n\t\tFormRecentlyFilledDataSetDefinition dsd = (FormRecentlyFilledDataSetDefinition) dataSetDefinition;\n\t\tInteger total = dsd.getTotal();\n\t\t//PatientIdentifierType primaryIdentifierType = emrApiProperties.getPrimaryIdentifierType();\n\t\tStringBuilder sqlQuery = new StringBuilder(\n\t\t \"select\"\n\t\t + \" p.st_id as 'No. de patient attribué par le site', usr.username as utilisateur, entype.name as Fiche,\"\n\t\t + \" DATE(enc.date_created) as 'Date de création',\"\n\t\t + \" CASE WHEN enc.date_changed is null then enc.date_created ELSE enc.date_changed END as 'Dernière modification',\"\n\t\t + \" f.name as Fiches\");\n\t\tsqlQuery.append(\" FROM isanteplus.patient p, openmrs.encounter enc, openmrs.encounter_type entype, openmrs.form f, openmrs.users usr\");\n\t\tsqlQuery.append(\" WHERE p.patient_id=enc.patient_id\");\n\t\tsqlQuery.append(\" AND enc.encounter_type=entype.encounter_type_id\");\n\t\tsqlQuery.append(\" AND enc.form_id=f.form_id\");\n\t\tsqlQuery.append(\" AND enc.creator=usr.user_id\");\n\t\tsqlQuery.append(\" GROUP BY DATE(enc.date_created) DESC\");\n\t\tif (total > 0) {\n\t\t\tsqlQuery.append(\" LIMIT :total\");\n\t\t}\n\t\tSQLQuery query = sessionFactory.getCurrentSession().createSQLQuery(sqlQuery.toString());\n\t\t//query.setInteger(\"primaryIdentifierType\", primaryIdentifierType.getId());\n\t\t/*if (startDate != null) {\n\t\t\tquery.setTimestamp(\"startDate\", startDate);\n\t\t}\n\t\tif (startDate != null) {\n\t\t\tquery.setTimestamp(\"endDate\", endDate);\n\t\t}*/\n\t\t\n\t\tList<Object[]> list = query.list();\n\t\tSimpleDataSet dataSet = new SimpleDataSet(dataSetDefinition, context);\n\t\tfor (Object[] o : list) {\n\t\t\tDataSetRow row = new DataSetRow();\n\t\t\trow.addColumnValue(new DataSetColumn(\"numero\", \"numero\", String.class), o[0]);\n\t\t\trow.addColumnValue(new DataSetColumn(\"utilisateur\", \"utilisateur\", String.class), o[1]);\n\t\t\trow.addColumnValue(new DataSetColumn(\"fiche\", \"fiche\", String.class), o[2]);\n\t\t\trow.addColumnValue(new DataSetColumn(\"creation\", \"creation\", String.class), o[3]);\n\t\t\trow.addColumnValue(new DataSetColumn(\"modification\", \"modification\", String.class), o[4]);\n\t\t\trow.addColumnValue(new DataSetColumn(\"fiches\", \"fiches\", String.class), o[5]);\n\t\t\tdataSet.addRow(row);\n\t\t}\n\t\treturn dataSet;\n\t}", "@Override\n public void add(ReporteAccidente rep) {\n repr.save(rep);\n }", "public EvaluationsDegreePk insert(EvaluationsDegree dto) throws EvaluationsDegreeDaoException;", "@Override\n\tpublic Instances relationalValue(final int attIndex) {\n\t\treturn null;\n\t}", "@objid (\"661a22c1-2de2-4b65-a955-6b755461b1ac\")\n AssociationEnd getModel();", "public void setGeneralEvaluation(double generalEvaluation) {\n\t\tthis.generalEvaluation = generalEvaluation;\n\t}", "public final void rule__XRelationalExpression__Group_1_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4565:1: ( ( ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4566:1: ( ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4566:1: ( ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4567:1: ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getFeatureAssignment_1_1_0_0_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4568:1: ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4568:2: rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1_in_rule__XRelationalExpression__Group_1_1_0_0__1__Impl9451);\n rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getFeatureAssignment_1_1_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void setEnroll_definition_id(Long enroll_definition_id) {\n this.enroll_definition_id = enroll_definition_id;\n }", "@ManyToOne\r\n\t@JoinColumn(name=\"RLLB_ID\")\r\n\tpublic RelacionLaboral getRelacionLaboral() {\r\n\t\treturn this.relacionLaboral;\r\n\t}", "public EvaluationsDegree[] findWhereEvaluationsDegreeIdEquals(int evaluationsDegreeId) throws EvaluationsDegreeDaoException;", "Column referencedColumn();", "public Long getEnroll_definition_id() {\n return enroll_definition_id;\n }", "@Test\r\n\tpublic void testfindByIdCandidateOK() {\r\n\t\tassertTrue(evaluationService.findByIdCandidate(1).size() > 0); // Necessite au moins une evaluation associée au candidat de id=1\r\n\t}", "public void executeOneToManyAssociationsCriteria() {\n Session session = getSession();\n Transaction transaction = session.beginTransaction();\n\n // SELECT *\n // FROM Supplier s\n Criteria criteria = session.createCriteria(Supplier.class);\n\n // INNER JOIN Product p\n // ON s.id = p.supplier_id\n // WHERE p.price > 25;\n criteria.createCriteria(\"products\").add(Restrictions.gt(\"price\", new Double(25.0)));\n\n displaySupplierList(criteria.list());\n transaction.commit();\n }", "public Catalogue()\n {\n SupplierId = 0;\n }", "TypeAssociation getAssocieCommeSujetEvenementNRBC();", "org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance addNewDecisionSightDistance();", "@objid (\"ef92d9d1-93c5-49d4-9ec8-65c4eb806567\")\n EList<BpmnDataAssociation> getTargetOfDataAssociation();", "OrgIntegralDeductRule selectByPrimaryKey(Long id);", "public Date getEnrollment_date() {\n return enrollment_date;\n }", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "org.hl7.fhir.ObservationRelated addNewRelated();", "public Population()\n{\n year = 0;\n fate = new Random();\n eligibleDuas = new ArrayList<Caldean>();\n eligibleDuises = new ArrayList<Caldean>();\n theHouses = new LinkedList<House>();\n}", "DrpCommissionRule selectByPrimaryKey(Long id);", "public void edicationLoan() {\n\t\tSystem.out.println(\"hsbc -- education loan\");\n\t\t\n\t}", "public void setEnrollment_date(Date enrollment_date) {\n this.enrollment_date = enrollment_date;\n }", "public String getInverseRelationshipName ();", "PolicyDetail findPolicyByID(int policyId, int lenderId);", "public AssociationClass(UmlClass lc, Relationship r) {\n\t // Initialize the values\n id = lc.getId();\n logicalClass = lc;\n relationship = r;\n\t}", "public EvaluationsDegree[] findWhereEvaluationsDegreeNameEquals(String evaluationsDegreeName) throws EvaluationsDegreeDaoException;", "public Integer addPerformanceReview(PerformanceReview pr, User u) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n //build relationship\n u.getPerformanceReviews().add(pr);\n pr.setUser(u);\n\n session.save(pr);\n tx.commit();\n\n id = pr.getPerformanceReviewId();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n return id;\n }", "boolean isOneToMany();", "TrainingCourse selectByPrimaryKey(String id);", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface VehiculeRepository extends JpaRepository<Vehicule,Long> {\n \n @Query(\"select distinct vehicule from Vehicule vehicule left join fetch vehicule.noms\")\n List<Vehicule> findAllWithEagerRelationships();\n\n @Query(\"select vehicule from Vehicule vehicule left join fetch vehicule.noms where vehicule.id =:id\")\n Vehicule findOneWithEagerRelationships(@Param(\"id\") Long id);\n \n}", "Exam load(Long id);", "public void setSelfEvaluation(String selfEvaluation) {\n this.selfEvaluation = selfEvaluation;\n }", "Relationship createRelationship();", "public static void main(String[] args) {\n\t\tConfiguration cfg = new Configuration();\n\t\tcfg.configure(\"hibernate.cfg.xml\");\n\n\t\tSessionFactory factory = cfg.buildSessionFactory();\n\t\tSession session = factory.openSession();\n\t\t\n\t\tQuery qry=session.createQuery(\"from Company_has_role c\");\n\n\t List l=qry.list();\n\t Iterator it = l.iterator();\n\t while(it.hasNext())\n\t {\n\t \tObject o = it.next();\n\t \tCompany_has_role c = (Company_has_role)o;\n\t \tSystem.out.println(c.getCompany_has_roleid());\n\t \tRole v=c.getRole_roleid();\n\t \tSystem.out.println(v.getRolename());\n\t }\n\t\t\n\t\t\n\n\t/*\tRole c = new Role();\n\n\t\tc.setRoleid(101);\n\t\tc.setRolename(\"java4s\");\n\n\t\tCompany_has_role c1 = new Company_has_role();\n\n\t\tc1.setCompany_has_roleid(504);\n\t\tc1.setRole_roleid(c);\n\n\t\tTransaction tx = session.beginTransaction();\n\n\t\tsession.save(c1);\n\n\t\ttx.commit();*/\n\t\tsession.close();\n\t\tSystem.out.println(\"Many To One is Done..!!\");\n\t\tfactory.close();\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof SgcAutoevaluacionRef)) {\r\n return false;\r\n }\r\n SgcAutoevaluacionRef other = (SgcAutoevaluacionRef) object;\r\n if ((this.idAutref == null && other.idAutref != null) || (this.idAutref != null && !this.idAutref.equals(other.idAutref))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public static com.matisse.reflect.MtRelationship getGestionaRelationship(com.matisse.MtDatabase db) {\n return (com.matisse.reflect.MtRelationship)db.getCachedObject(gestionaCID);\n }", "@Override\n public String toString() {\n return \"RelatedOrg {\"\n + \"}\";\n }", "boolean hasRelation();", "@Test\r\n\tpublic void test02CascadeSave() {\r\n\t\tstudentLucy.setConfidential(confidential);\r\n\t\tconfidential.setStudent(studentLucy);\r\n\t\tstudentDao.save(studentLucy);\r\n\t\tconfidentialDao.save(confidential);\r\n\t\tlogger.debug(studentLucy);\r\n\t\tlogger.debug(confidential);\r\n\t}", "@Override\n\tpublic void addLecture(Lecture l) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tsession.persist(l);\n\t}", "@Test\n public void testDAM32102001() {\n // By default the loading related entity is eager.\n testDAM32101001();\n }", "public WeekAssignmentPerEmployee getOne(Long id) {\n\t\ttry{\n\t\t\t//tx.begin();\n\t\t\tWeekAssignmentPerEmployee weekAssignmentPerEmployee = (WeekAssignmentPerEmployee)em.find(WeekAssignmentPerEmployee.class, id);\n\t //tx.commit();\n\t return weekAssignmentPerEmployee;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tthrow new BusinessException(new ExceptionMessage(\"Failed in WeekAssignmentPerEmployeDao : getOne ...\"));\n\t\t}finally{\n\t\t\tem.close();\n\t\t}\n\n\t\t\n\t}", "public void inicializarActualizarBindingManualEvaluacionProveedor() throws Exception {\n\t\t\r\n\t\tthis.inicializarActualizarBindingBotonesManualEvaluacionProveedor(true);\r\n\t\t\r\n\t\t//FUNCIONALIDAD_RELACIONADO\r\n\t\tif(!this.evaluacionproveedorSessionBean.getEsGuardarRelacionado()) {\r\n\t\t\t\r\n\t\t\tthis.inicializarActualizarBindingBusquedasManualEvaluacionProveedor();\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//this.inicializarActualizarBindingtiposArchivosReportesAccionesEvaluacionProveedor() ;\r\n\t\t\t\r\n\t\t\tthis.inicializarActualizarBindingParametrosReportesPostAccionesManualEvaluacionProveedor(false) ;\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t}", "public Association association(ComplexEObject ceo)\n {\n if (_inverseFieldName == null)\n {\n return new Association(this, ceo);\n }\n else\n {\n return new Association(this, ceo, inverseField());\n }\n }", "public A getPartner(){\n return partner;\n }" ]
[ "0.551094", "0.52352756", "0.5162725", "0.51181614", "0.49532744", "0.49258167", "0.48894212", "0.4868181", "0.48670626", "0.48647434", "0.48559427", "0.48366106", "0.4799919", "0.47464573", "0.47223288", "0.46958846", "0.46936226", "0.46752557", "0.46734372", "0.4671107", "0.46537042", "0.46406835", "0.46387526", "0.4636537", "0.46308327", "0.462064", "0.45935985", "0.45662403", "0.45527127", "0.45517638", "0.45499963", "0.45396805", "0.4536591", "0.4527136", "0.4520264", "0.45020783", "0.44882464", "0.44809407", "0.4477555", "0.44775423", "0.44771394", "0.44375664", "0.44326463", "0.44229147", "0.4402978", "0.43984076", "0.43960527", "0.4392955", "0.4389758", "0.43895203", "0.43844658", "0.43827066", "0.4371814", "0.43627173", "0.43558723", "0.4354696", "0.43476856", "0.43365976", "0.43212864", "0.43190983", "0.4318865", "0.4316718", "0.43163761", "0.4312647", "0.43064252", "0.43043223", "0.43017152", "0.4300637", "0.4299836", "0.42909727", "0.4290328", "0.42869166", "0.4286779", "0.42841187", "0.42779297", "0.42776167", "0.4273087", "0.4272137", "0.42699996", "0.42655128", "0.4261527", "0.4261352", "0.42529675", "0.4243003", "0.42404532", "0.42327812", "0.422946", "0.42267087", "0.4223814", "0.42134413", "0.42032433", "0.41992918", "0.41951174", "0.41930163", "0.41915473", "0.41887817", "0.4188344", "0.4183836", "0.4183197", "0.41826376" ]
0.42900577
71
Use Xmx512m VM arg to increase memory
public static void main(String[] args) throws Exception { SpeechInput input = new SpeechInput(); input.afterPropertiesSet(); RuleGrammar ruleGrammar = input.getGrammar().getRuleGrammar(); System.out.println("Adding import"); Recognizer recognizer = ruleGrammar.getRecognizer(); System.out.println("Loading: " + new ClassPathResource("/grammar/hello.gram")); loadGrammar(recognizer, new ClassPathResource("/grammar/cooking.gram")); loadGrammar(recognizer, new ClassPathResource("/grammar/ingredient.gram")); loadGrammar(recognizer, new ClassPathResource("/grammar/recipe.gram")); loadGrammar(recognizer, new ClassPathResource("/grammar/step.gram")); loadGrammar(recognizer, new ClassPathResource("/grammar/timer.gram")); loadGrammar(recognizer, new ClassPathResource("/grammar/remy.gram")); // RuleGrammar helloRules = loadGrammar(recognizer, new ClassPathResource("/grammar/hello.gram")); // String name = helloRules.getName(); // System.out.println("Adding grammar: " + name); // ruleGrammar.addImport(new RuleName("hello.hello")); System.out.println("Added"); System.out.println("Committing changes"); input.getGrammar().commitChanges(); System.out.println("Committed"); Rule rule = ruleGrammar.getRule("command"); showRule(rule, ""); addGrammar(rule, "hello"); List<String> ingredients = Arrays.asList( "carrot", "broccoli", "kale" ); // String ingredientRuleStr = StringUtils.collectionToDelimitedString(ingredients, "|") // + ";"; // Rule ingredientsRule = ruleGrammar.ruleForJSGF(ingredientRuleStr); // RuleGrammar recipeGrammar = recognizer.getRuleGrammar("recipe"); // recipeGrammar.setRule("ingredient", ingredientsRule, true); RuleGrammar ingredientGrammar = recognizer.getRuleGrammar("ingredient"); GrammarLoader.loadWords("ingredient", ingredients, ingredientGrammar); // recipeGrammar.getRule("ingredient"); //ruleGrammar.getRecognizer().getRuleGrammar(s) input.getGrammar().commitChanges(); if (rule instanceof RuleAlternatives) { RuleAlternatives alts = (RuleAlternatives) rule; for(Rule r: alts.getRules()) { showRule(r, ""); if (r instanceof RuleSequence) { for (Rule rs : ((RuleSequence)r).getRules()) { showRule(rs, " "); } } } } //System.out.println("Alternatives: " + r.getRules() // System.out.println("Random sentence:"); // String randomSentence = input.getGrammar().getRandomSentence(); // System.out.println("\t" + randomSentence); System.out.println("Parsing..."); RuleParse result = ingredientGrammar.parse("kale", "ingredient"); System.out.println("Parse: " + result); WhatWasSaid utterance = null; do { System.out.println("Say something:"); utterance = input.recordUtterance(); System.out.println("Got utterance: " + utterance); } while (!utterance.getText().equals("quit")); System.out.println("Quitting"); input.destroy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n printMemory();\n\n byte[] buf1 = new byte[1*1024*1024];\n printMemory(\"分配1M内存\");\n\n byte[] buf2 = new byte[4*1024*1024];\n printMemory(\"分配4M内存\");\n }", "private void setMemorySize() { }", "public static void main(String[] args) {\r\n\t\tmeasureHeapMemory();\r\n\t}", "public void setMaxmemory(String max) {\r\n getCommandLine().setMaxmemory(max);\r\n }", "public void setMaxMemoryCacheSize(int val) {\n this.mMaxMemoryCacheSize = val;\n }", "public static native void setMaxCacheMem(int max_mem);", "public void customConfig() {\n KConfig kConfig = new KConfig.KConfigBuilder()\n .heapRatio(85.0f) //heap occupied ration in percent, 85.0f means use 85% memory of max heap\n .rootDir(this.getCacheDir().getAbsolutePath()) //root dir stores report and hprof files\n .heapOverTimes(3) //heap max times of over heap's used threshold\n .build();\n KOOM.getInstance().setKConfig(kConfig);\n }", "public void setMemory(int systemMemorySize)\n\t{\n\t\tmemorySize = systemMemorySize;\n\t}", "public void testPhysicalMemoryLessThanJvmAllocation() {\n String jvmOptions = \"-Xmx1024M -XX:MaxPermSize=128M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setPhysicalMemory(1207959551);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.ERROR_PHYSICAL_MEMORY + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_PHYSICAL_MEMORY));\n }", "public static void main(String[] args) {\n\t\tUnsafe unsafe = getUnsafe();\r\n\t\ttry {\r\n\t\tSystem.out.println(\"分配内存\");\r\n\t\tlong base = unsafe.allocateMemory(_1GB);\r\n\t\tSystem.in.read();\r\n\t\tSystem.out.println(\"释放内存\");\r\n\t\tunsafe.freeMemory(base);\r\n\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "long getMemLimit();", "public void setMemorySize(Integer memorySize) {\n this.MemorySize = memorySize;\n }", "public static void main(String[] var0) {\n\n// for(int i =0;i<10;i++){\n// Object object = new byte[2*1024*1024];\n// map.put(i+\"\",object);\n// }\n // map =null;\n System.gc();\n// System.out.println(\"打印出了最大可用堆内存\");\n// System.out.println(\"-Xmx\" + Runtime.getRuntime().maxMemory() / 1024L / 1024L + \"M\");\n }", "protected abstract Object createJvmMemoryMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);", "public BitmapMemoryCache() {\r\n //use 25% of available heap size\r\n setLimit(Runtime.getRuntime().maxMemory() / 4);\r\n }", "static private void inputMemorySize(System_Y3872052 system) {\n\t\tint memorySize = Integer.parseInt(getInputData(\"Please provide the memory size, in MB\"));\n\t\tsystem.setMemory(memorySize);\n\t}", "public void setMemorySize(Integer memorySize) {\n this.memorySize = memorySize;\n }", "public DataLoadingRequestBuilder setMemoryMB(final int memoryMB) {\n this.memoryMB = memoryMB;\n return this;\n }", "public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}", "long getMaxMemory();", "public void testPhysicalMemoryEqualJvmAllocation() {\n String jvmOptions = \"-Xmx1024M -XX:MaxPermSize=128M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setPhysicalMemory(1207959552);\n jvmRun.doAnalysis();\n Assert.assertFalse(Analysis.ERROR_PHYSICAL_MEMORY + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_PHYSICAL_MEMORY));\n }", "private static boolean doLowMemory() {\r\n\t\tProcessBuilder pb = new ProcessBuilder();\r\n\t\tif (!new File(\"open-ig-mapeditor-\" + MAP_EDITOR_JAR_VERSION + \".jar\").exists()) {\r\n\t\t\tpb.command(System.getProperty(\"java.home\") + \"/bin/java\", \"-Xmx\" + MINIMUM_MEMORY + \"M\", \"-cp\", \"./bin\", \"-splash:bin/hu/openig/xold/res/OpenIG_Splash.png\", \"hu.openig.editors.MapEditor\");\r\n\t\t} else {\r\n\t\t\tpb.command(System.getProperty(\"java.home\") + \"/bin/java\", \"-Xmx\" + MINIMUM_MEMORY + \"M\", \"-cp\", \"open-ig-mapeditor-\" + MAP_EDITOR_JAR_VERSION + \".jar\", \"-splash:hu/openig/xold/res/OpenIG_Splash.png\", \"hu.openig.editors.MapEditor\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t/* Process p = */pb.start();\r\n//\t\t\tcreateBackgroundReader(p.getInputStream(), System.out).start();\r\n//\t\t\tcreateBackgroundReader(p.getErrorStream(), System.err).start();\r\n//\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n//\t\t\t\t@Override\r\n//\t\t\t\tpublic void run() {\r\n//\t\t\t\t\tJFrame frame = new JFrame(\"Running MapEditor with correct memory settings...\");\r\n//\t\t\t\t\tframe.dispose();\r\n//\t\t\t\t}\r\n//\t\t\t});\r\n//\t\t\tp.waitFor();\r\n\t\t\treturn true;\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n//\t\t} catch (InterruptedException ex) {\r\n//\t\t\tex.printStackTrace();\r\n//\t\t\treturn false;\r\n\t\t}\r\n\t}", "private void kludgeMantis(Map<String, Monitor> map, StringMonitor args) {\n /*\n * the HotSpot 1.4.2 JVM with the +UseParallelGC option along\n * with its default +UseAdaptiveSizePolicy option has a bug with\n * the initialization of the sizes of the eden and survivor spaces.\n * See bugid 4890736.\n *\n * note - use explicit 1.4.2 counter names here - don't update\n * to latest counter names or attempt to find aliases.\n */\n\n String cname = \"hotspot.gc.collector.0.name\";\n StringMonitor collector = (StringMonitor)map.get(cname);\n\n if (collector.stringValue().compareTo(\"PSScavenge\") == 0) {\n boolean adaptiveSizePolicy = true;\n\n /*\n * HotSpot processes the -XX:Flags/.hotspotrc arguments prior to\n * processing the command line arguments. This allows the command\n * line arguments to override any defaults set in .hotspotrc\n */\n cname = \"hotspot.vm.flags\";\n StringMonitor flags = (StringMonitor)map.get(cname);\n String allArgs = flags.stringValue() + \" \" + args.stringValue();\n\n /*\n * ignore the -XX: prefix as it only applies to the arguments\n * passed from the command line (i.e. the invocation api).\n * arguments passed through .hotspotrc omit the -XX: prefix.\n */\n int ahi = allArgs.lastIndexOf(\"+AggressiveHeap\");\n int aspi = allArgs.lastIndexOf(\"-UseAdaptiveSizePolicy\");\n\n if (ahi != -1) {\n /*\n * +AggressiveHeap was set, check if -UseAdaptiveSizePolicy\n * is set after +AggressiveHeap.\n */\n //\n if ((aspi != -1) && (aspi > ahi)) {\n adaptiveSizePolicy = false;\n }\n } else {\n /*\n * +AggressiveHeap not set, must be +UseParallelGC. The\n * relative position of -UseAdaptiveSizePolicy is not\n * important in this case, as it will override the\n * UseParallelGC default (+UseAdaptiveSizePolicy) if it\n * appears anywhere in the JVM arguments.\n */\n if (aspi != -1) {\n adaptiveSizePolicy = false;\n }\n }\n\n if (adaptiveSizePolicy) {\n // adjust the buggy AdaptiveSizePolicy size counters.\n\n // first remove the real counters.\n String eden_size = \"hotspot.gc.generation.0.space.0.size\";\n String s0_size = \"hotspot.gc.generation.0.space.1.size\";\n String s1_size = \"hotspot.gc.generation.0.space.2.size\";\n map.remove(eden_size);\n map.remove(s0_size);\n map.remove(s1_size);\n\n // get the maximum new generation size\n String new_max_name = \"hotspot.gc.generation.0.capacity.max\";\n LongMonitor new_max = (LongMonitor)map.get(new_max_name);\n\n /*\n * replace the real counters with pseudo counters that are\n * initialized to to the correct values. The maximum size of\n * the eden and survivor spaces are supposed to be:\n * max_eden_size = new_size - (2*alignment).\n * max_survivor_size = new_size - (2*alignment).\n * since we don't know the alignment value used, and because\n * of other parallel scavenge bugs that result in oversized\n * spaces, we just set the maximum size of each space to the\n * full new gen size.\n */\n Monitor monitor = null;\n\n LongBuffer lb = LongBuffer.allocate(1);\n lb.put(new_max.longValue());\n monitor = new PerfLongMonitor(eden_size, Units.BYTES,\n Variability.CONSTANT, false, lb);\n map.put(eden_size, monitor);\n\n monitor = new PerfLongMonitor(s0_size, Units.BYTES,\n Variability.CONSTANT, false, lb);\n map.put(s0_size, monitor);\n\n monitor = new PerfLongMonitor(s1_size, Units.BYTES,\n Variability.CONSTANT, false, lb);\n map.put(s1_size, monitor);\n }\n }\n }", "public boolean overrideMaxMemAccess(String mnemo) {\n\t\treturn false;\n\t}", "protected void initJvmMemory(MBeanServer paramMBeanServer) throws Exception {\n/* 504 */ String str = getGroupOid(\"JvmMemory\", \"1.3.6.1.4.1.42.2.145.3.163.1.1.2\");\n/* 505 */ ObjectName objectName = null;\n/* 506 */ if (paramMBeanServer != null) {\n/* 507 */ objectName = getGroupObjectName(\"JvmMemory\", str, this.mibName + \":name=sun.management.snmp.jvmmib.JvmMemory\");\n/* */ }\n/* 509 */ JvmMemoryMeta jvmMemoryMeta = createJvmMemoryMetaNode(\"JvmMemory\", str, objectName, paramMBeanServer);\n/* 510 */ if (jvmMemoryMeta != null) {\n/* 511 */ jvmMemoryMeta.registerTableNodes(this, paramMBeanServer);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 517 */ JvmMemoryMBean jvmMemoryMBean = (JvmMemoryMBean)createJvmMemoryMBean(\"JvmMemory\", str, objectName, paramMBeanServer);\n/* 518 */ jvmMemoryMeta.setInstance(jvmMemoryMBean);\n/* 519 */ registerGroupNode(\"JvmMemory\", str, objectName, jvmMemoryMeta, jvmMemoryMBean, paramMBeanServer);\n/* */ } \n/* */ }", "public abstract long estimateMemorySize();", "Builder withCacheSizeInMiB(int sizeInMiB);", "public void MIPSme()\n {\n sir_MIPS_a_lot.getInstance().heap_allocate(size, targetReg);\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.965 -0500\", hash_original_method = \"B06B3FDC2D2CDF223C79F9432CF6B221\", hash_generated_method = \"EC13B61AE91A640A596BB8C3880035C6\")\n \n public void setCacheSize(int bytes){\n \t//Formerly a native method\n \taddTaint(bytes);\n }", "void setMaximumCacheSize(int maximumCacheSize);", "@Nullable\n BigInteger getMemoryMb();", "private static void init() {\n\t\tLogger.setPrinting(true);\n\n\t\tdouble gb = 1024 * 1024 * 1024;\n\t\tlog(\"Make sure that your memory limit is increased, using at least 8GB is recommended to process the KaVE datasets... (-Xmx8G)\");\n\t\tlog(\"Current max. memory: %.1f GB\", Runtime.getRuntime().maxMemory() / gb);\n\n\t\tJsonUtilsCcKaveRsseCalls.registerJsonAdapters();\n\t}", "private void setMaxCacheMemSize(long maxSize) {\n\t\tif ( maxSize < 25 * 1024 ) {\n\t\t\tthrow new IllegalAccessError(\"Cache size must be at least 25 KB (\"+(25*1024)+\" bytes)\");\n\t\t}\n\t\tlog.info(\"setCacheSize(): New cache size: \"+maxSize+\" bytes.\");\n\t\tfinal boolean shrink = this.maxSize > maxSize;\n\t\tthis.maxSize = maxSize;\n\t\tif ( shrink ) {\n\t\t\tpurgeCache(true);\n\t\t}\n\t}", "public void showOutOfMemory() {\n if (!isEnabled())\n return;\n \n System.gc();\n\n String msg = \"Not enough memory. Please load a smaller \" \n + \"dataset or use larger heap size.\\n\"\n + \"- initial JVM size: \" \n + Utils.doubleToString(toMegaByte(m_Initial), 1) + \"MB\\n\"\n + \"- total memory used: \" \n + Utils.doubleToString(toMegaByte(m_Total), 1) + \"MB\\n\"\n + \"- max. memory avail.: \" \n + Utils.doubleToString(toMegaByte(m_Max), 1) + \"MB\\n\"\n + \"\\n\"\n + \"Note:\\n\"\n + \"The Java heap size can be specified with the -Xmx option.\\n\"\n + \"E.g., to use 128MB as heap size, the command line looks like this:\\n\"\n + \" java -Xmx128m -classpath ...\\n\"\n + \"This does NOT work in the SimpleCLI, the java command refers\\n\"\n + \"to the one with which Weka is started.\";\n \n System.err.println(msg);\n \n if (getUseGUI())\n JOptionPane.showMessageDialog(\n null, msg, \"OutOfMemory\", JOptionPane.WARNING_MESSAGE);\n }", "public static void main(String[]args){\n int machineSize = Integer.parseInt(args[0]);\n int pageSize = Integer.parseInt(args[1]);\n int processSize = Integer.parseInt(args[2]);\n int jobType = Integer.parseInt(args[3]);\n int numReferencesPerProcess = Integer.parseInt(args[4]);\n String replacementType = args[5];\n\n int totalNumPages = (int) Math.ceil((double)machineSize/pageSize);\n\n demandPaging demandPagingTest = new demandPaging(machineSize, pageSize, processSize, numReferencesPerProcess, jobType, totalNumPages, replacementType);\n demandPagingTest.doSimulation();\n\n\n\n }", "public static void main(String[] args) {\n Memory mem = new Memory();\n System.out.println(\n \"Initial memory: \"\n + Utils.doubleToString(Memory.toMegaByte(mem.getInitial()), 1) + \"MB\" \n + \" (\" + mem.getInitial() + \")\");\n System.out.println(\n \"Max memory: \"\n + Utils.doubleToString(Memory.toMegaByte(mem.getMax()), 1) + \"MB\"\n + \" (\" + mem.getMax() + \")\");\n }", "public static void main(String[] args) throws InstanceNotFoundException, AttributeNotFoundException, MalformedObjectNameException, ReflectionException, MBeanException {\r\n \r\n MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();\r\n Object attribute = mBeanServer.getAttribute(new ObjectName(\"java.lang\",\"type\",\"OperatingSystem\"), \"TotalPhysicalMemorySize\");\r\n Object attribute2 = mBeanServer.getAttribute(new ObjectName(\"java.lang\",\"type\",\"OperatingSystem\"), \"FreePhysicalMemorySize\");\r\n System.out.println(\"Total memory: \"+ (double) Long.parseLong(attribute.toString()) / 1024/1024/1024 + \" gigabytes\");\r\n System.out.println(\"Free memory: \"+ (double) Long.parseLong(attribute2.toString()) / 1024/1024/1024 + \" gigabytes\");\t\r\n\r\n }", "public void setMemMax(long memMax) {\n this.memMax = memMax;\n }", "public void onMemoryExceed();", "long getMemory();", "long getMemory();", "private static void doWarnLowMemory(final long maxMem) {\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"<html><p>Unable to auto-start Open Imperium Galactica MapEditor for version \" + Configuration.VERSION + \".<br>Please make sure you have at least \" \r\n\t\t\t\t\t\t+ MINIMUM_MEMORY + \"MB defined for running a Java program in either your<br>\"\r\n\t\t\t\t\t\t+ \"operating system's configuration for Java programs,<br> or run the program from command line using the <code>-Xmx\" + MINIMUM_MEMORY + \"M</code> parameter.</p><br>\"\r\n\t\t\t\t\t\t+ \"<p>Nem sikerült automatikusan elindítani az Open Imperium Galaktika \" + Configuration.VERSION + \" MapEditor programot.<br>Kérem ellenőrizze, hogy alapértelmezésben a Java programok futtatásához \"\r\n\t\t\t\t\t\t+ \"legalább \" + MINIMUM_MEMORY + \"MB memória<br> van beállítva az Operációs Rendszerben,<br> vagy indítsa a program parancssorból a <code>-Xmx\" + MINIMUM_MEMORY + \"M</code> \"\r\n\t\t\t\t\t\t+ \"paraméter megadásával.</p>\"\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void setMemoryEntries(MemoryEntry[] inMemory);", "public static void main(String[] args) {\n\n Set<Long> ids = LongStream.range(0, 1_000_000).boxed().collect(Collectors.toSet());\n // HashSet\n // ArrayList\n // Long[]\n // long[]\n // int[]\n // LinkedList\n System.out.println(\"Allocated!\");\n\n System.out.println(PerformanceUtil.getUsedHeap());\n }", "public TransactionBuilder setCacheSize(long size);", "private void setMemory() {\n\t\tlong allMemory = MemoryManager.getPhoneTotalRamMemory();\n\t\tlong freeMemory = MemoryManager.getPhoneFreeRamMemory(this);\n\t\tlong usedMemory = allMemory - freeMemory;\n\t\tint angle = (int) (usedMemory*360/allMemory);\n\t\tclearView.setAngleWithAnim(angle);\n\t}", "public void setVmSize(String vmSize) {\n this.vmSize = vmSize;\n }", "public static void getOutOfMemoryErrorMetaspace() {\n LOGGER.info(String.format(MESSAGE, \"OutOfMemoryError\", \"to many loaded classes\"));\n\n for (int i = 0; i < 1700; i++) {\n try {\n Class clazz = classPool.makeClass(i + \"class\").toClass();\n } catch (CannotCompileException e) {\n e.printStackTrace();\n }\n }\n }", "WriterOptions memory(MemoryManager value) {\n memoryManagerValue = value;\n return this;\n }", "@Override\n public int getCacheSize() {\n return 4 * 1024 * 1024;\n }", "private long getCurrentJvmMaxMemoryInGB() throws IOException {\n String currentXmx = getCurrentXmxValue();\n char units = '-';\n Long value = 0L;\n if (currentXmx.length() > 1) {\n units = currentXmx.charAt(currentXmx.length() - 1);\n value = Long.parseLong(currentXmx.substring(0, currentXmx.length() - 1));\n } else {\n throw new IOException(\"No memory setting found in String: \" + currentXmx);\n }\n //some older .conf files might have the units as megabytes instead of gigabytes\n switch (units) {\n case 'g':\n case 'G':\n return value;\n case 'm':\n case 'M':\n return value / MEGA_IN_GIGA;\n default:\n throw new IOException(\"Units were not recognized as parsed: \" + units);\n }\n }", "public MemorySwapping(int sizeInKb) {\n\t\tsuper(sizeInKb);\n\t}", "default boolean hasEnoughMemory(long memory){\n return getUnusedMemory() >= memory;\n }", "public static void setTestAvailableOffHeapMemory(final String newTestAvailableOffHeapMemory) {\n testAvailableOffHeapMemory = newTestAvailableOffHeapMemory;\n }", "public void enforceMemoryLimits()\n {\n memoryManager.process(queries.values().stream()\n .filter(query -> query.getState() == RUNNING)\n .collect(toImmutableList()));\n }", "public synchronized void updateMemory(){\n \tint memory = Math.round(System.getRuntime().totalMemory()/System.getRuntime().freeMemory());\n \tstore(new DisplayableData(\"memory\", \"M\"+memory+\"%\", memory));\n }", "public int getMainMemorySize(){ return Integer.parseInt(mainMemorySize.getText()); }", "public JobBuilder memoryPerNode(String memoryPerNode) {\r\n job.setMemoryPerNode(memoryPerNode);\r\n return this;\r\n }", "public void enableLimit(boolean flag) {\n jniEnableLimit(addr, flag);\n}", "abstract int getMaxMemoryUsage();", "public static void main(String[] args) throws Exception {\n ParameterTool parameterTool = ParameterTool.fromArgs(args);\n String memoryText = parameterTool.get(\"allocateSize\", \"50MB\");\n final MemorySize memorySize = MemorySize.parse(memoryText);\n\n StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n StreamTableEnvironment tableEnv = FlinkSqlUtil.getBlinkTableEnv(env);\n\n String sourceDDL = \"CREATE TABLE orders (\\n\" +\n \" app INT,\\n\" +\n \" channel INT,\\n\" +\n \" user_id STRING,\\n\" +\n \" ts TIMESTAMP(3)\\n\" +\n \") WITH (\\n\" +\n \" 'connector' = 'datagen',\\n\" +\n \" 'rows-per-second'='1000000',\\n\" +\n \" 'fields.app.min'='1',\\n\" +\n \" 'fields.app.max'='10',\\n\" +\n \" 'fields.channel.min'='21',\\n\" +\n \" 'fields.channel.max'='30',\\n\" +\n \" 'fields.user_id.length'='10'\\n\" +\n \")\";\n\n tableEnv.executeSql(sourceDDL);\n\n Table query = tableEnv.sqlQuery(\"select * from orders\");\n tableEnv.toAppendStream(query, Row.class)\n .rebalance()\n .addSink(new MemoryLeakSink((int) memorySize.getBytes()))\n .name(\"MySink\");\n\n env.execute(NativeMemoryLeak.class.getSimpleName());\n }", "long getLocalOffHeapSizeInBytes();", "public static void main(String[] args) {\n\t\tMy2048 my2048 = new My2048();\n\t}", "public static void main(String[] args) {\n System.out.println(addPersistence(1999999999));\n System.out.println(mltPersistence(123456));\n }", "private void setRegToMax(int register) {\r\n\t\tsim40.memory[register] = 1024;\r\n\t\tswitchOnFlag(2);\r\n\t}", "public BinPackingAllocAlgorithm(VMCwMProblem instance) {\n super(instance);\n this.mappings = this.instance.getMappings();\n this.max_mig_percentile = this.instance.getMaxMigrationPercentile();\n this.pm_heap = buildPhysicalMachineHeap(this.instance.getPhysicalMachines(),\n this.mappings);\n this.vm_array = new VirtualMachine[this.instance.getVirtualMachines().size()];\n this.instance.getVirtualMachines().copyTo(this.vm_array);\n }", "public MemoryLogger(int size) {\n\t\tthis.size = size;\n\t}", "public Commandline.Argument createJvmarg() {\r\n return getCommandLine().createVmArgument();\r\n }", "public static void showMemoryInfo()\r\n\t{ \r\n\t\tRuntime rt = Runtime.getRuntime(); \r\n\t\tpf(\"Maxx : \\t %d Kb\\n\", rt.maxMemory() / 1024); \r\n\t\tpf(\"Free : \\t %d Kb\\n\", rt.freeMemory() / 1024); \r\n\t\tpf(\"Totl : \\t %d Kb\\n\", rt.totalMemory() / 1024); \r\n\t\tpf(\"Used : \\t %d Kb\\n\", (rt.totalMemory()-rt.freeMemory()) / 1024); \r\n\t}", "public ProcessInfoInner withPagedSystemMemorySize64(Long pagedSystemMemorySize64) {\n this.pagedSystemMemorySize64 = pagedSystemMemorySize64;\n return this;\n }", "public MemoryByteArrayOutputStream() {\n\t\tthis(4096, 65536);\n\t}", "private String getCurrentXmxValue() throws IOException {\n String[] settings;\n String currentSetting = \"\";\n File userConfFile = getUserFolderConfFile();\n if (!userConfFile.exists()) {\n settings = getDefaultsFromFileContents(readConfFile(getInstallFolderConfFile()));\n } else {\n settings = getDefaultsFromFileContents(readConfFile(userConfFile));\n }\n for (String option : settings) {\n if (option.startsWith(\"-J-Xmx\")) {\n currentSetting = option.replace(\"-J-Xmx\", \"\").trim();\n }\n }\n return currentSetting;\n }", "public void setMX(Long MX) {\n this.MX = MX;\n }", "private void expandCapacity() {\n heap = Arrays.copyOf(heap, heap.length * 2);\n }", "public int ProgramMemorySize() { return PROGRAM_MEMORY_SIZE; }", "long getLocalOnHeapSizeInBytes();", "public void testJvmOptionsPassedInOnCommandLine() {\n String options = \"MGM was here!\";\n GcManager gcManager = new GcManager();\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(options, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.doAnalysis();\n Assert.assertTrue(\"JVM options passed in are missing or have changed.\",\n jvmRun.getJvm().getOptions().equals(options));\n }", "@Override\n\t\tpublic void onTrimMemory(int level) {\n\t\t\t\n\t\t}", "protected JvmMemoryMeta createJvmMemoryMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 541 */ return new JvmMemoryMeta(this, this.objectserver);\n/* */ }", "private long getSystemMemoryInGB() {\n long memorySize = ((com.sun.management.OperatingSystemMXBean) ManagementFactory\n .getOperatingSystemMXBean()).getTotalPhysicalMemorySize();\n return memorySize / ONE_BILLION;\n }", "@Override\n\tpublic void setCacheSize(long bps) {\n\t\t\n\t}", "public void setPopulationSize(int m){\n\t\tsetParameters(m, type1Size, sampleSize);\n\t}", "public Builder setMaxCacheSizeOnVeryLowDiskSpace(int val) {\n this.mMaxCacheSizeOnVeryLowDiskSpace = val;\n return this;\n }", "public Builder setMaxCacheSizeOnLowDiskSpace(int val) {\n this.mMaxCacheSizeOnLowDiskSpace = val;\n return this;\n }", "private void detectLowMemory() throws Exception {\r\n\t\tif (Runtime.getRuntime().freeMemory() < 10000000) {\r\n\t\t\tthrow new Exception(\"Low on memory, please choose a report with less memory usage\");\r\n\t\t}\r\n\t}", "public void setJvm(String s) {\r\n getCommandLine().setVm(s);\r\n }", "public interface MemoryEstimator {\n\n /**\n * Returns an estimate of how much memory an object consumes.\n * @param instance the object instance\n * @return the estimated memory in bytes\n */\n long getObjectSize(Object instance);\n\n\n /**\n * A MemoryEstimator implementation that leverages org.github.jamm.MemoryMeter\n */\n class DefaultMemoryEstimator implements MemoryEstimator {\n\n private Object meter;\n private Method measureDeep;\n\n /**\n * Constructor\n */\n public DefaultMemoryEstimator() {\n try {\n final Class<?> clazz = Class.forName(\"org.github.jamm.MemoryMeter\");\n final Method method = clazz.getDeclaredMethod(\"hasInstrumentation\");\n final boolean instrumentation = (Boolean) method.invoke(clazz);\n if (instrumentation) {\n this.meter = clazz.newInstance();\n this.measureDeep = clazz.getDeclaredMethod(\"measureDeep\", Object.class);\n }\n } catch (ClassNotFoundException ex) {\n System.err.println(\"Unable to initialize MemoryMeter, class not found\");\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n\n @Override\n public long getObjectSize(Object instance) {\n try {\n final Object result = measureDeep != null ? measureDeep.invoke(meter, instance) : -1;\n return result instanceof Number ? ((Number)result).longValue() : -1;\n } catch (Exception ex) {\n throw new RuntimeException(\"Failed to measure memory for instance: \" + instance, ex);\n }\n }\n }\n\n}", "synchronized protected void enlargeArrays() {\n \t\tenlargeArrays(5);\n \t}", "@Override\n\tpublic boolean canfitLarge() {\n\t\treturn true;\n\t}", "long getMemswap();", "@FXML\n public void checkMemory()\n {\n long heapSize = Runtime.getRuntime().totalMemory(); \n System.out.println(\"Current: \" +heapSize);\n // Get maximum size of heap in bytes. The heap cannot grow beyond this size.// Any attempt will result in an OutOfMemoryException.\n long heapMaxSize = Runtime.getRuntime().maxMemory();\n System.out.println(\"Max: \" + heapMaxSize);\n }", "@Override\n\tpublic void enlarge() {\n\t\t\n\t}", "public Argument createJvmarg( final CommandlineJava commandline )\n {\n return commandline.createVmArgument();\n }", "public static void main(String[] args) throws MalformedObjectNameException, InstanceAlreadyExistsException,\n\t\t\tMBeanRegistrationException, NotCompliantMBeanException, InterruptedException {\n\t\tMBeanServer server = ManagementFactory.getPlatformMBeanServer();\n\t\tObjectName myJmxName = new ObjectName(\"jmxBean:name=myJmx\");\n\t\tserver.registerMBean(new MyJmx(), myJmxName);\n\t\tThread.sleep(60 * 60 * 1000);\n\t}", "public ProcessInfoInner withNonpagedSystemMemorySize64(Long nonpagedSystemMemorySize64) {\n this.nonpagedSystemMemorySize64 = nonpagedSystemMemorySize64;\n return this;\n }", "int getCacheSizeInMiB();", "public Memory(boolean useGUI) {\n m_UseGUI = useGUI;\n m_Runtime = Runtime.getRuntime();\n m_Max = m_Runtime.maxMemory();\n m_Total = m_Runtime.totalMemory();\n }", "@Override\n\tpublic void run(VirtualMachine vm) {\n\t\tint bytesToAllocCount=vm.popNumberFromStack(this.isExtended());\n\n\n\n\t\tfor(int i=0;i<bytesToAllocCount;i++)\n\t\t{\n\t\t\tvm.getHeap().add(new NumericByteCodeToken((byte)0));\n\t\t}\n\t}", "private static void speedup(String [] args){\n\t\t\n\t\tint warningCnt = 0;\n\t\t\n\t\tString applicationPath = convertApplication(args[2], null);\n\t\tConfMan baseConfigManager;\n\t\t\n\n\n\n\n\t\tbaseConfigManager = new ConfMan(args[1], applicationPath, false);\n\t\tConfMan[] cms;\n\t\t\n\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, \"config/sweep/cacheSpeedupSweep.json\",true);\n//\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, \"config/sweep/speedupSweep.json\",true);\n\n\t\tcms = sweepConfig.getConfManager();\n\t\tString[] configNames = sweepConfig.getSweepConfigurations();\n//\t\tString[] speedupIdentifier = sweepConfig.getSpeedupIdentifier();\n//\t\tboolean[] isShortTest = sweepConfig.getIsShortTest();\n\n\t\tTrace speedupTrace = new Trace(System.out, System.in, \"\", \"\");\n\t\tspeedupTrace.setPrefix(\"basic config\");\n\t\tbaseConfigManager.printConfig(speedupTrace);\n\n\t\tspeedupTrace.setPrefix(\"speedup\");\n\t\t\n//\t\tLinkedHashMap<String, SpeedupMeasurementResult> speedupResults = new LinkedHashMap<>();\n\t\tMeasurementResult[] measurementResults = new MeasurementResult[cms.length];\n\t\tLinkedHashMap<String, BaseLineStorage> baseLineStorage = new LinkedHashMap<String, BaseLineStorage>();\n\t\t\n//\t\tAmidarSimulationResult[] results = parallelRemoteSimulation(sweepConfig, \"trav\", 1099, 8, speedupTrace);\n\t\t\n\t\tdouble overhead = 0;\n\t\tint transmission = 0;\n\t\tint run = 0;\n\t\tdouble overheadCnt = 0;\n\t\t\n\n\t\t////////////////////////// SIMULATE //////////////////////////////////////////////\n\t\tfor(int i = 0; i<cms.length; i++){\n\t\t\t\n\t\t\t/////// FIRST SHORT /////////////////////////////\n\t\t\tConfMan conf = cms[i];\n\t\t\t\n\t\t\tboolean isShort = true;\n\t\t\tString appBaseName = conf.getApplicationPath();\n\t\t\tString [] appBasePath = appBaseName.split(\"/\");\n\t\t\t\n\t\t\t\n\t\t\tconf.setApplication(\"../axt/\" + appBaseName+ \"_short/\" + appBasePath[appBasePath.length-1] + \"_short.axt\");\n\n\t\t\tMeasurementResult speedupRes = measurementResults[i];\n\t\t\tif(speedupRes == null){\n\t\t\t\tspeedupRes = new MeasurementResult();\n\t\t\t\tmeasurementResults[i] = speedupRes;\n\t\t\t}\n\t\t\t\n\t\t\tString app = conf.getApplicationPath();\n\t\t\tint benchmarkScale = conf.getBenchmarkScale();\n\t\t\tapp = app+\"-benchMarkScale-\"+benchmarkScale;\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Running: \" + configNames[i] + \" SHORT\");\n\t\t\tif(!baseLineStorage.containsKey(app)){\n\t\t\t\tbaseLineStorage.put(app, new BaseLineStorage());\n\t\t\t}\n\t\t\t\n\t\t\tBaseLineStorage baseLine = baseLineStorage.get(app);\n \t\t\t\n\t\t\tif(!baseLine.isBaselineAvailable(isShort)){\n\t\t\t\tspeedupTrace.println(\"Running without synthesis...\");\n\t\t\t\tAmidarSimulationResult currentRes = run(conf, null, false);\n\t\t\t\tspeedupRes.addBaseline(currentRes, isShort);\n\t\t\t\tbaseLine.addBaseLine(isShort, currentRes);\n\t\t\t} else {\n\t\t\t\tspeedupRes.addBaseline(baseLine.getBaseLine(isShort), isShort);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tAmidarSimulationResult currentResult = null;\n\t\t\tconf.setSynthesis(true);\n\t\t\tspeedupTrace.println(\"Running with synthesis...\");\n\t\t\ttry{\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t} catch(AmidarSimulatorException e ){\n\t\t\t\tspeedupTrace.println(\"WARNING: Aliasing speculation failed. Switching of speculation and repeat...\");\n\t\t\t\twarningCnt++;\n\t\t\t\tconf.getSynthesisConfig().put(\"ALIASING_SPECULATION\", AliasingSpeculation.OFF);\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tif(isShort){\n//\t\t\t\tHashMap<String, Integer> stateCNT = currentResult.getCgraStateCount();\n//\t\t\t\tdouble transmissionCnt = stateCNT.get(\"SEND\") + stateCNT.get(\"REC\") +stateCNT.get(\"WAIT\");\n//\t\t\t\tdouble runCnt = stateCNT.get(\"RUN\");\n//\t\t\t\t\n//\t\t\t\tdouble overheadCurrent = transmissionCnt/(transmissionCnt + runCnt);\n//\t\t\t\t\n//\t\t\t\toverhead += overheadCurrent;\n//\t\t\t\ttransmission +=transmissionCnt;\n//\t\t\t\trun += runCnt;\n//\t\t\t\toverheadCnt++;\n//\t\t\t}\n\t\t\t\n\t\t\tspeedupRes.addResults(currentResult, isShort);\n\t\t\t\n\t\t\t/////// THEN LONG /////////////////////////////\n\t\t\t\n\t\t\tisShort = false;\n\t\t\tconf.setApplication(\"../axt/\" + appBaseName+ \"_long/\" + appBasePath[appBasePath.length-1] + \"_long.axt\");\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Running: \" + configNames[i] + \" LONG\");\n\t\t\tif(!baseLine.isBaselineAvailable(isShort)){\n\t\t\t\tconf.setSynthesis(false);\n\t\t\t\tspeedupTrace.println(\"Running without synthesis...\");\n\t\t\t\tAmidarSimulationResult currentRes = run(conf, null, false);\n\t\t\t\tspeedupRes.addBaseline(currentRes, isShort);\n\t\t\t\tbaseLine.addBaseLine(isShort, currentRes);\n\t\t\t} else {\n\t\t\t\tspeedupRes.addBaseline(baseLine.getBaseLine(isShort), isShort);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tconf.setSynthesis(true);\n\t\t\tspeedupTrace.println(\"Running with synthesis...\");\n\t\t\ttry{\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t} catch(AmidarSimulatorException e ){\n\t\t\t\tspeedupTrace.println(\"WARNING: Aliasing speculation failed. Switching of speculation and repeat...\");\n\t\t\t\twarningCnt++;\n\t\t\t\tconf.getSynthesisConfig().put(\"ALIASING_SPECULATION\", AliasingSpeculation.OFF);\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tif(isShort){\n//\t\t\t\tHashMap<String, Integer> stateCNT = currentResult.getCgraStateCount();\n//\t\t\t\tdouble transmissionCnt = stateCNT.get(\"SEND\") + stateCNT.get(\"REC\") +stateCNT.get(\"WAIT\");\n//\t\t\t\tdouble runCnt = stateCNT.get(\"RUN\");\n//\t\t\t\t\n//\t\t\t\tdouble overheadCurrent = transmissionCnt/(transmissionCnt + runCnt);\n//\t\t\t\t\n//\t\t\t\toverhead += overheadCurrent;\n//\t\t\t\ttransmission +=transmissionCnt;\n//\t\t\t\trun += runCnt;\n//\t\t\t\toverheadCnt++;\n//\t\t\t}\n\t\t\t\n\t\t\tspeedupRes.addResults(currentResult, isShort);\n\t\t}\n\t\t////////////////////////SIMULATE END//////////////////////////////////////////////\n\n\t\tspeedupTrace.printTableHeader(\"Speedup\");\n\t\t\n\t\tDecimalFormatSymbols symbols = new DecimalFormatSymbols();\n\t\tsymbols.setGroupingSeparator(',');\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat formater = new DecimalFormat(\"#0.000\", symbols);\n\t\t\n\t\t\n\t\t/// GATHER INFORMATION //////////////////////////////////////////\n\t\t\n\t\tdouble[] speedupList = new double[cms.length];\n\t\tdouble[] communicationOverhead = new double[cms.length];\n\t\tdouble[] dmaOverhead = new double[cms.length];\n\t\tdouble[] l1usage = new double[cms.length];\n\t\tdouble[] l2usage = new double[cms.length];\n\t\tdouble[] averageMemTime = new double[cms.length];\n\t\t\n\t\tdouble[][] blockTimesPrefetch = new double[TaskType.values().length][cms.length];\n\t\tdouble[][] blockTimesRegular = new double[TaskType.values().length][cms.length];\n\t\t\n\t\tint[] nrOfContexts = new int[cms.length];\n\t\tint[] nrOfL1Prefetches = new int[cms.length];\n\t\tint[] nrOfL2Prefetches = new int[cms.length];\n\t\tint[] nrOfUsedL1Prefetches = new int[cms.length];\n\t\tint[] nrOfUsedL2Prefetches = new int[cms.length];\n\t\t\n\t\tint[] nrOfHandledPrefetchRequests = new int[cms.length];\n\t\tint[] nrOfHandledPrefetchRequestsAlreadyAvailable = new int[cms.length];\n\t\t\n\t\tint[] cachelineFills = new int[cms.length];\n\t\tlong[] synthTime = new long[cms.length];\n\t\t\n\t\tfor(int i = 0; i < measurementResults.length; i++){\n\t\t\tString res = \"Speedup of \" + configNames[i] + \"\\t\";\n\t\t\tdouble speedup = measurementResults[i].getSpeedup();\n\t\t\tspeedupList[i] = speedup;\n\t\t\tres = res + \": \" + formater.format(speedup);\n\t\t\tspeedupTrace.println(res);\n\t\t\t\n\t\t\tcommunicationOverhead[i] = measurementResults[i].getCommunicationOverhead();\n\t\t\tdmaOverhead[i] = measurementResults[i].getDMAOverhead();\n\t\t\tl1usage[i]= measurementResults[i].getL1Usage();\n\t\t\tl2usage[i]= measurementResults[i].getL2Usage();\n\t\t\taverageMemTime[i] = measurementResults[i].getAverageMemoryAccessTime();\n\t\t\tfor(TaskType tt: TaskType.values()){\n\t\t\t\tblockTimesPrefetch[tt.ordinal()][i] = measurementResults[i].getBlockTimesInPercent(RequestType.Prefetch, tt);\n//\t\t\t\tSystem.out.println(\"\\tBlocktime Pref\" +tt + \":\\t\" +blockTimesPrefetch[tt.ordinal()][i]);\n\t\t\t\tblockTimesRegular[tt.ordinal()][i] = measurementResults[i].getBlockTimesInPercent(RequestType.Regular, tt);\n//\t\t\t\tSystem.out.println(\"\\tBlocktime Regu\" +tt + \":\\t\" +blockTimesRegular[tt.ordinal()][i]);\n \t\t\t}\n\t\t\tnrOfContexts[i] = measurementResults[i].getNrOfContexts();\n\t\t\tnrOfL1Prefetches[i] = measurementResults[i].getNrOfL1Prefetches();\n\t\t\tnrOfUsedL1Prefetches[i] = measurementResults[i].getNrOfUsedL1Prefetches();\n\t\t\tnrOfHandledPrefetchRequests[i] = measurementResults[i].getNrOfHandledPrefetchRequests();\n\t\t\tnrOfHandledPrefetchRequestsAlreadyAvailable[i] = measurementResults[i].getNrOfHandledPrefetchRequestsAlreadyAvailable();\n\t\t\tcachelineFills[i] = measurementResults[i].getCachelineFills();\n\t\t\tsynthTime[i] = measurementResults[i].getSynthTime();\n\t\t}\n\t\t///// PLOT INFORMATION //////////////////////////////////////////////\n\t\tSweepResultPlotter plotter = new SweepResultPlotter();\n//\t\tplotter.configurePlotter( \"UNROLL\", \"\", true);\n\t\tLinkedHashMap<String, LinkedHashSet<String>> sweepInfo = sweepConfig.getSweepInfo();\n\t\t\n\t\tString path = \"log/sweep\"+new Date().toString();\n\t\tplotter.setPath(path);\n\t\tplotter.saveSweepInfo(sweepInfo);\n\t\t\n\t\tplotter.saveResults(speedupList,\"speedup\");\n\t\tplotter.saveResults(communicationOverhead, \"communicationOverhead\");\n\t\tplotter.saveResults(dmaOverhead, \"dmaOverhead\");\n\t\tplotter.saveResults(l1usage,\"l1usage\");\n\t\tplotter.saveResults(l2usage, \"l2usage\");\n\t\tplotter.saveResults(averageMemTime, \"memTime\");\n\t\tplotter.saveResults(nrOfContexts, \"contexts\");\n\t\tplotter.saveResults(nrOfL1Prefetches, \"l1prefetches\");\n\t\tplotter.saveResults(nrOfUsedL1Prefetches, \"usedL1prefetches\");\n\t\tplotter.saveResults(nrOfHandledPrefetchRequests, \"handledPrefetchRequests\");\n\t\tplotter.saveResults(nrOfHandledPrefetchRequestsAlreadyAvailable, \"handledPrefetchRequestsAvail\");\n\t\tplotter.saveResults(cachelineFills, \"cachelineFills\");\n\t\tplotter.saveResults(synthTime, \"Synthtime\");\n\t\t\n\t\t\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\t\n//\t\t}\n\t\t\n\t\t///// PRINT ON CONSOLE ///////////////////////////////\n\t\tspeedupTrace.printTableHeader(\"Average Speedup\");\n\t\tplotter.plot(sweepInfo, speedupList, speedupTrace,\"log/\", \"\");\n\t\t\n\t\tif(warningCnt > 1){\n\t\t\tspeedupTrace.println(warningCnt + \" Warnings\");\n\t\t} else if(warningCnt == 1){\n\t\t\tspeedupTrace.println(\"1 Warning\");\n\t\t}\n\t\t\n//\t\tspeedupTrace.println(\"CGRA transmission overhead in Percent: \" + formater.format(overhead*100/overheadCnt) + \" Ticks Running: \" + (int)(run/overheadCnt+0.5) + \" Ticks Transmitting: \" + (int)(transmission/overheadCnt+0.5));\n\t\t\n\t\t\n//\t\tspeedupTrace.println(ObjectHistory.indep*100/(ObjectHistory.indep+ObjectHistory.dep)+\"% of all memory accesses are independant\");\n//\n//\t\t\n\t\tspeedupTrace.printTableHeader(\"Average Communication Overhead\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), communicationOverhead, speedupTrace, null, \"\");\n\t\tspeedupTrace.printTableHeader(\"Average DMA Overhead\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), dmaOverhead, speedupTrace, null, \"\");\n\t\tspeedupTrace.printTableHeader(\"Memtime\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), averageMemTime, speedupTrace, null, \"\");\n\t\t\n\t\tdouble[] cffd = new double[cachelineFills.length];\n\t\tfor(int i = 0; i < cffd.length; i++){\n\t\t\tcffd[i] = cachelineFills[i];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Cacheline fills\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), cffd, speedupTrace, null, \"\");\n\t\t\n\t\tdouble[] stdd = new double[synthTime.length];\n\t\tfor(int i = 0; i < stdd.length; i++){\n\t\t\tstdd[i] = synthTime[i];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Synth time\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), stdd, speedupTrace, null, \"\");\n\t\t\n//\t\t\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), l1usage, speedupTrace, null, \"\");\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), l2usage, speedupTrace, null, \"\");\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), averageMemTime, speedupTrace, null, \"\");\n\t\t\n//\t\tspeedupTrace.printTableHeader(\"CGRA blocked by Prefetch\");\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\tplotter.plot(sweepConfig.getSweepInfo(), blockTimesPrefetch[tt.ordinal()], speedupTrace,null, tt.toString());\n//\t\t}\n//\t\tspeedupTrace.printTableHeader(\"CGRA blocked by Regular Access\");\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\tplotter.plot(sweepConfig.getSweepInfo(), blockTimesRegular[tt.ordinal()], speedupTrace,null, tt.toString());\n//\t\t}\n\t\n\t}", "@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }", "static int m61448a(ActivityManager activityManager) {\n return activityManager.getLargeMemoryClass();\n }" ]
[ "0.6354841", "0.63430566", "0.5927715", "0.5858232", "0.58402675", "0.58399945", "0.57233423", "0.56295574", "0.5599804", "0.55611223", "0.55212253", "0.5518723", "0.55015415", "0.547642", "0.5461916", "0.5452682", "0.5450836", "0.54474837", "0.5339235", "0.53284365", "0.5316536", "0.53107226", "0.5280858", "0.52555096", "0.5233502", "0.52200913", "0.52027524", "0.5181993", "0.5181631", "0.5134348", "0.51307774", "0.51185274", "0.5117358", "0.51173234", "0.5112349", "0.5100773", "0.509312", "0.508215", "0.50820756", "0.5080385", "0.5080385", "0.50574934", "0.50558984", "0.49998823", "0.49806678", "0.4954406", "0.49543983", "0.49527678", "0.4937686", "0.49138492", "0.4906722", "0.49029097", "0.48669702", "0.4859323", "0.48351556", "0.48223233", "0.48186266", "0.4795462", "0.47617555", "0.47606042", "0.4757284", "0.4729301", "0.47281426", "0.47266153", "0.47123766", "0.4711954", "0.46910512", "0.46800944", "0.46702775", "0.46632844", "0.46533027", "0.46439418", "0.46415642", "0.46387622", "0.46360514", "0.4631703", "0.46305677", "0.46274373", "0.46258625", "0.46240866", "0.4621515", "0.4616937", "0.46104702", "0.4606024", "0.46050346", "0.46034038", "0.45919007", "0.45888382", "0.45883414", "0.45836148", "0.45705312", "0.45700276", "0.45699713", "0.45576286", "0.45441973", "0.4542949", "0.45374674", "0.45348018", "0.45318714", "0.45190632", "0.45139706" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { while(true) { Cliente c = criaCliente(); ArrayList<Integer> t = new ArrayList<Integer>(); t = geraTempoServicos(c.getServicosSolicitados().size()); // Atribui o tempo aos serviços da forma especificada na descrição do projeto // Obs: getServico() da classe serviço não gasta um serviço for(Servico s: c.getServicosSolicitados()) { if(s.getTipo() == TipoServico.PENTEADO) { s.setTempo(t.get(0)); t.remove(0); } else if(s.getTipo() == TipoServico.CORTE) { s.setTempo(t.get(0)); t.remove(0); } else if(s.getTipo() == TipoServico.DEPILACAO) { s.setTempo(t.get(0)); t.remove(0); } else if(s.getTipo() == TipoServico.PEDICURE) { s.setTempo(t.get(0)); t.remove(0); } else if(s.getTipo() == TipoServico.MASSAGEM) { s.setTempo(t.get(0)); t.remove(0); } } filas.insereEmFilaClientes(0, c); try { // Tempo de geração de clientes: 1 ~ 5 segundos Thread.sleep(500*(rand.nextInt(5)+1)); } catch(InterruptedException ex) { Thread.currentThread().interrupt(); } } }
{ "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
/ renamed from: c
private C25673a<Aweme, Object> m106813c() { return new C25673a<Aweme, Object>() { /* renamed from: a */ List<Aweme> f86095a; public final boolean checkParams(Object... objArr) { return false; } public final List getItems() { return this.f86095a; } public final boolean isHasMore() { return false; } public final void loadMoreList(Object... objArr) { } public final void refreshList(Object... objArr) { } public final void setItems(List<Aweme> list) { this.f86095a = list; } }; }
{ "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
/ renamed from: a
public final void mo84807a(boolean z) { this.f86088h.mo103181a(z, this.f86092l); }
{ "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 final C23360e mo84805a(int i) { if (!C6307b.m19566a((Collection<T>) this.f86083b) && i < this.f86083b.size()) { return (C23360e) this.f86083b.get(i); } return null; }
{ "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
private int m106810b(String str) { for (int i = 0; i < this.f86083b.size(); i++) { C23360e eVar = (C23360e) this.f86083b.get(i); if ((eVar instanceof StoryFeedItemViewModel) && str.equals(((StoryFeedItemViewModel) eVar).mo84780g())) { return i; } } return -1; }
{ "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 }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "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();", "protected abstract void a(bru parambru);", "public an b() {\n return a(this.a);\n }", "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);", "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 }", "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}", "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(String str) {\n ((b.b) this.b).e(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 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 }", "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 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 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 }", "public static Note getB() {return (Note)B.clone();}" ]
[ "0.64569855", "0.6283282", "0.62531567", "0.6252121", "0.6245442", "0.621636", "0.619463", "0.6194139", "0.6165022", "0.6141199", "0.6100174", "0.60973275", "0.607799", "0.6002063", "0.5998536", "0.5973506", "0.5973506", "0.59066874", "0.59057605", "0.5892315", "0.5887388", "0.5883261", "0.58562523", "0.58468115", "0.58427995", "0.58246225", "0.58242327", "0.58104837", "0.58023524", "0.58012456", "0.5795396", "0.5792103", "0.57915795", "0.5785196", "0.5773401", "0.57606757", "0.57359093", "0.57359093", "0.5735576", "0.5728301", "0.57214826", "0.5712414", "0.57070184", "0.56907666", "0.5653404", "0.5651857", "0.56508774", "0.565062", "0.5648304", "0.56411666", "0.5640902", "0.5640459", "0.56316125", "0.5599008", "0.55853003", "0.55838066", "0.5578858", "0.55744463", "0.5573307", "0.55726206", "0.55702573", "0.55641717", "0.555491", "0.5554184", "0.5548789", "0.5543568", "0.55363923", "0.55309266", "0.5519697", "0.5518723", "0.55159104", "0.5512562", "0.55048823", "0.55020446", "0.5492476", "0.5487243", "0.54822576", "0.547706", "0.54730666", "0.5471541", "0.54647017", "0.5460674", "0.5455757", "0.5455379", "0.5451797", "0.5443306", "0.54376775", "0.5434189", "0.54257286", "0.54245406", "0.54208034", "0.5417544", "0.54051054", "0.5401651", "0.53956497", "0.53888947", "0.53884465", "0.5388119", "0.5386286", "0.53853416", "0.5384207" ]
0.0
-1
/ renamed from: a
private void m106809a(C42006a aVar) { this.f86085d = aVar.f109120d; if (!aVar.f109117a) { this.f86083b.clear(); this.f86083b.add(this.f86090j); } else if (this.f86089i != null) { this.f86089i.mo61169c(); } for (int i = aVar.f109118b; i < this.f86088h.mo103182b(); i++) { this.f86083b.add(new StoryFeedItemViewModel(new C33068a(this.f86088h.mo103178a(i), this.f86088h), this, aVar.f109120d)); } mo60675b(); if (this.f86086e != null) { this.f86086e.mo75548a(this.f86083b, aVar); } }
{ "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
private List<Aweme> m106812b(boolean z) { ArrayList arrayList = new ArrayList(); for (int i = 0; i < this.f86088h.mo103182b(); i++) { String a = this.f86088h.mo103178a(i); Story story = this.f86088h.mo103177a(a).f109095a; if (story.isFollowing() && (z || !story.isRead())) { arrayList.addAll(this.f86088h.mo103177a(a).f109096b.getAwemeList()); } } return arrayList; }
{ "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: a
public final int mo84803a(String str) { int i = 0; for (int i2 = 0; i2 < this.f86088h.mo103182b(); i2++) { String a = this.f86088h.mo103178a(i2); if (this.f86088h.mo103177a(a).f109095a.isFollowing()) { i++; if (C23472a.m77066a(str, a)) { return i; } } } return -1; }
{ "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 final C1262a mo84804a(Context context) { if (this.f86089i == null) { HashMap hashMap = new HashMap(); if (this.f86091k != null) { hashMap.put(StoryFeedItemViewModel.class, this.f86091k); } else { hashMap.put(StoryFeedItemViewModel.class, StoryFeedItemView.class); } hashMap.put(C23509b.class, StoryFeedLoadMoreProgressBar.class); hashMap.put(DividerViewModel.class, DividerView.class); this.f86089i = new PageLoadingListMultiTypeAdapter(context, this.f86083b, hashMap) { /* renamed from: b */ public final C23360e mo61168b() { return null; } /* renamed from: g */ public final void mo61177g() { C6726a.m20843a(new Runnable() { public final void run() { C33086b.this.mo84807a(true); } }, VETransitionFilterParam.TransitionDuration_DEFAULT); } }; if (this.f86084c != null && !this.f86084c.f109119c) { this.f86089i.mo61170d(); } } return this.f86089i; }
{ "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 C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\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 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 void acionou(int a){\n\t\t\tb=a;\n\t\t}", "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 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 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 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 AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\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 }", "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.6249669", "0.6242452", "0.61399835", "0.6117525", "0.61137056", "0.6089649", "0.6046804", "0.6024678", "0.6020427", "0.5975322", "0.59474325", "0.5912173", "0.5883731", "0.58788097", "0.58703065", "0.58670723", "0.5864566", "0.58566767", "0.5830755", "0.58286554", "0.58273774", "0.5795474", "0.5789155", "0.5783806", "0.57760274", "0.5770078", "0.57680553", "0.57531226", "0.569103", "0.56793714", "0.56700987", "0.56654674", "0.56597596", "0.5659196", "0.56579614", "0.5654381", "0.56449133", "0.5640629", "0.56392074", "0.56302243", "0.5617243", "0.56158006", "0.5606678", "0.56051916", "0.56014943", "0.55958104", "0.55910474", "0.5590642", "0.5574573", "0.5556904", "0.5555496", "0.55513936", "0.5550494", "0.5545024", "0.55376655", "0.5529486", "0.55293244", "0.55268556", "0.55256003", "0.5522323", "0.551999", "0.5510038", "0.55079377", "0.5488427", "0.5486585", "0.54819757", "0.5481469", "0.54804444", "0.54803044", "0.54776204", "0.54668623", "0.5463463", "0.5450725", "0.5443272", "0.54416984", "0.54404145", "0.5431594", "0.5423848", "0.54228616", "0.5418331", "0.5403878", "0.5400301", "0.539958", "0.5394461", "0.53896564", "0.5389041", "0.53753597", "0.53690916", "0.53597134", "0.5356917", "0.5355392", "0.535527", "0.53550094", "0.5350454", "0.5341916", "0.532629", "0.53219014", "0.5321064", "0.5316172", "0.5312055", "0.5298763" ]
0.0
-1
/ renamed from: b
public final C23360e mo61168b() { return null; }
{ "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: g
public final void mo61177g() { C6726a.m20843a(new Runnable() { public final void run() { C33086b.this.mo84807a(true); } }, VETransitionFilterParam.TransitionDuration_DEFAULT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void g() {\n }", "public void gored() {\n\t\t\n\t}", "public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public void stg() {\n\n\t}", "public xm n()\r\n/* 274: */ {\r\n/* 275:287 */ if ((this.g == null) && (this.h != null) && (this.h.length() > 0)) {\r\n/* 276:288 */ this.g = this.o.a(this.h);\r\n/* 277: */ }\r\n/* 278:290 */ return this.g;\r\n/* 279: */ }", "int getG();", "private final zzgy zzgb() {\n }", "public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }", "private static void g() {\n h h10 = q;\n synchronized (h10) {\n h10.f();\n Object object = h10.e();\n object = object.iterator();\n boolean bl2;\n while (bl2 = object.hasNext()) {\n Object object2 = object.next();\n object2 = (g)object2;\n Object object3 = ((g)object2).getName();\n object3 = i.h.d.j((String)object3);\n ((g)object2).h((i.h.c)object3);\n }\n return;\n }\n }", "public int g()\r\n {\r\n return 1;\r\n }", "void mo28307a(zzgd zzgd);", "void mo21076g();", "void mo56163g();", "void mo98971a(C29296g gVar, int i);", "public int getG();", "void mo98970a(C29296g gVar);", "public abstract long g();", "public com.amap.api.col.n3.al g(java.lang.String r6) {\n /*\n r5 = this;\n r0 = 0\n if (r6 == 0) goto L_0x003a\n int r1 = r6.length()\n if (r1 > 0) goto L_0x000a\n goto L_0x003a\n L_0x000a:\n java.util.List<com.amap.api.col.n3.al> r1 = r5.c\n monitor-enter(r1)\n java.util.List<com.amap.api.col.n3.al> r2 = r5.c // Catch:{ all -> 0x0037 }\n java.util.Iterator r2 = r2.iterator() // Catch:{ all -> 0x0037 }\n L_0x0013:\n boolean r3 = r2.hasNext() // Catch:{ all -> 0x0037 }\n if (r3 == 0) goto L_0x0035\n java.lang.Object r3 = r2.next() // Catch:{ all -> 0x0037 }\n com.amap.api.col.n3.al r3 = (com.amap.api.col.n3.al) r3 // Catch:{ all -> 0x0037 }\n java.lang.String r4 = r3.getCity() // Catch:{ all -> 0x0037 }\n boolean r4 = r6.equals(r4) // Catch:{ all -> 0x0037 }\n if (r4 != 0) goto L_0x0033\n java.lang.String r4 = r3.getPinyin() // Catch:{ all -> 0x0037 }\n boolean r4 = r6.equals(r4) // Catch:{ all -> 0x0037 }\n if (r4 == 0) goto L_0x0013\n L_0x0033:\n monitor-exit(r1) // Catch:{ all -> 0x0037 }\n return r3\n L_0x0035:\n monitor-exit(r1)\n return r0\n L_0x0037:\n r6 = move-exception\n monitor-exit(r1)\n throw r6\n L_0x003a:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.am.g(java.lang.String):com.amap.api.col.n3.al\");\n }", "public int getG() {\r\n\t\treturn g;\r\n\t}", "private Gng() {\n }", "void mo57277b();", "int mo98967b(C29296g gVar);", "public void mo21782G() {\n }", "public final void mo74763d(C29296g gVar) {\n }", "private final java.lang.String m14284g() {\n /*\n r3 = this;\n b.h.b.a.b.b.ah r0 = r3.f8347b\n b.h.b.a.b.b.m r0 = r0.mo7065b()\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5339d\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x0056\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e\n if (r1 == 0) goto L_0x0056\n b.h.b.a.b.j.a.a.e r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e) r0\n b.h.b.a.b.e.a$c r0 = r0.mo9643H()\n b.h.b.a.b.g.i$c r0 = (p073b.p085h.p087b.p088a.p090b.p117g.C2383i.C2387c) r0\n b.h.b.a.b.g.i$f<b.h.b.a.b.e.a$c, java.lang.Integer> r1 = p073b.p085h.p087b.p088a.p090b.p112e.p114b.C2330b.f7137i\n java.lang.String r2 = \"JvmProtoBuf.classModuleName\"\n p073b.p079e.p081b.C1489j.m6969a(r1, r2)\n java.lang.Object r0 = p073b.p085h.p087b.p088a.p090b.p112e.p113a.C2288f.m11197a(r0, r1)\n java.lang.Integer r0 = (java.lang.Integer) r0\n if (r0 == 0) goto L_0x003e\n b.h.b.a.b.e.a.c r1 = r3.f8350e\n java.lang.Number r0 = (java.lang.Number) r0\n int r0 = r0.intValue()\n java.lang.String r0 = r1.mo8811a(r0)\n if (r0 == 0) goto L_0x003e\n goto L_0x0040\n L_0x003e:\n java.lang.String r0 = \"main\"\n L_0x0040:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n java.lang.String r0 = p073b.p085h.p087b.p088a.p090b.p116f.C2361g.m11709a(r0)\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0056:\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5336a\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x00a0\n boolean r0 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p094b.C1680ab\n if (r0 == 0) goto L_0x00a0\n b.h.b.a.b.b.ah r0 = r3.f8347b\n if (r0 == 0) goto L_0x0098\n b.h.b.a.b.j.a.a.j r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2638j) r0\n b.h.b.a.b.j.a.a.f r0 = r0.mo9635N()\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i\n if (r1 == 0) goto L_0x00a0\n b.h.b.a.b.d.b.i r0 = (p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i) r0\n b.h.b.a.b.i.d.b r1 = r0.mo8045e()\n if (r1 == 0) goto L_0x00a0\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n b.h.b.a.b.f.f r0 = r0.mo8042b()\n java.lang.String r0 = r0.mo9039a()\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0098:\n b.u r0 = new b.u\n java.lang.String r1 = \"null cannot be cast to non-null type org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedPropertyDescriptor\"\n r0.<init>(r1)\n throw r0\n L_0x00a0:\n java.lang.String r0 = \"\"\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p073b.p085h.p087b.p088a.C3008g.C3011c.m14284g():java.lang.String\");\n }", "void mo16687a(T t, C4621gg ggVar) throws IOException;", "public final void mo74759a(C29296g gVar) {\n }", "int mo98966a(C29296g gVar);", "void mo57278c();", "public double getG();", "public boolean h()\r\n/* 189: */ {\r\n/* 190:187 */ return this.g;\r\n/* 191: */ }", "private void kk12() {\n\n\t}", "gp(go goVar, String str) {\n super(str);\n this.f82115a = goVar;\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "C2841w mo7234g();", "public abstract long g(int i2);", "public final h.c.b<java.lang.Object> g() {\n /*\n r2 = this;\n h.c.b<java.lang.Object> r0 = r2.f15786a\n if (r0 == 0) goto L_0x0005\n goto L_0x001d\n L_0x0005:\n h.c.e r0 = r2.b()\n h.c.c$b r1 = h.c.c.f14536c\n h.c.e$b r0 = r0.get(r1)\n h.c.c r0 = (h.c.c) r0\n if (r0 == 0) goto L_0x001a\n h.c.b r0 = r0.c(r2)\n if (r0 == 0) goto L_0x001a\n goto L_0x001b\n L_0x001a:\n r0 = r2\n L_0x001b:\n r2.f15786a = r0\n L_0x001d:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.coroutines.jvm.internal.ContinuationImpl.g():h.c.b\");\n }", "void mo41086b();", "public abstract int mo123248g();", "public void getK_Gelisir(){\n K_Gelistir();\r\n }", "int mo54441g(int i);", "private static String m11g() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n stringBuilder.append(\"_ve\");\n stringBuilder.append(\"rs\");\n stringBuilder.append(\"i\");\n stringBuilder.append(\"on\");\n return stringBuilder.toString();\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public String getGg() {\n return gg;\n }", "public void g() {\n this.f25459e.Q();\n }", "void mo1761g(int i);", "public abstract void bepaalGrootte();", "public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public final i g() {\n return new i();\n }", "public abstract void mo42331g();", "@Override\n public void func_104112_b() {\n \n }", "public int g2dsg(int v) { return g2dsg[v]; }", "void NhapGT(int thang, int nam) {\n }", "Gruppo getGruppo();", "public void method_4270() {}", "public abstract String mo41079d();", "public abstract String mo118046b();", "public void setGg(String gg) {\n this.gg = gg;\n }", "public abstract CharSequence mo2161g();", "void mo119582b();", "private void strin() {\n\n\t}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public String BFS(int g) {\n\t\t//TODO\n\t}", "void mo21073d();", "private stendhal() {\n\t}", "public void golpearJugador(Jugador j) {\n\t\t\n\t}", "public void ganar() {\n // TODO implement here\n }", "public static Object gvRender(Object... arg) {\r\nUNSUPPORTED(\"e2g1sf67k7u629a0lf4qtd4w8\"); // int gvRender(GVC_t *gvc, graph_t *g, const char *format, FILE *out)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"1ag9dz4apxn0w3cz8w2bfm6se\"); // GVJ_t *job;\r\nUNSUPPORTED(\"8msotrfl0cngiua3j57ylm26b\"); // g = g->root;\r\nUNSUPPORTED(\"exts51afuertju5ed5v7pdpg7\"); // /* create a job for the required format */\r\nUNSUPPORTED(\"dn6z1r1bbrtmr58m8dnfgfnm0\"); // rc = gvjobs_output_langname(gvc, format);\r\nUNSUPPORTED(\"5apijrijm2r8b1g2l4x7iee7s\"); // job = gvc->job;\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"4lkoedjryn54aff3fyrsewwu5\"); // agerr (AGERR, \"Format: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"2pjgp86rkudo6mihbako5yps2\"); // format, gvplugin_list(gvc, API_device, format));\r\nUNSUPPORTED(\"f3a98gxettwtewduvje9y3524\"); // return -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ect62lxc3zm51lhzifift55m\"); // job->output_lang = gvrender_select(job, job->output_langname);\r\nUNSUPPORTED(\"ewlceg1k4gs2e6syq4ear5kzo\"); // if (!(agbindrec(g, \"Agraphinfo_t\", 0, NOT(0)) && GD_drawing(g)) && !(job->flags & (1<<26))) {\r\nUNSUPPORTED(\"3yo4xyapbp7osp8uyz4kff98s\"); // \tagerrorf( \"Layout was not done\\n\");\r\nUNSUPPORTED(\"8d9xfgejx5vgd6shva5wk5k06\"); // \treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"2ai20uylya195fbdqwjy9bz0n\"); // job->output_file = out;\r\nUNSUPPORTED(\"10kpqi6pvibjsxjyg0g76lix3\"); // if (out == NULL)\r\nUNSUPPORTED(\"d47ukby9krmz2k8ycmzzynnfr\"); // \tjob->flags |= (1<<27);\r\nUNSUPPORTED(\"9szsye4q9jykqvtk0bc1r91d0\"); // rc = gvRenderJobs(gvc, g);\r\nUNSUPPORTED(\"7l8ugws8ptgtlxc1ymmh3cf18\"); // gvrender_end_job(job);\r\nUNSUPPORTED(\"a9p7yonln7g91ge7xab3xf9dr\"); // gvjobs_delete(gvc);\r\nUNSUPPORTED(\"5bc9k4vsl6g7wejc5xefc5964\"); // return rc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "void mo41083a();", "@VisibleForTesting\n public final long g(long j) {\n long j2 = j - this.f10062b;\n this.f10062b = j;\n return j2;\n }", "void mo72113b();", "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "public void b(gy ☃) {}\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ public void a(gy ☃) {}", "Gtr createGtr();", "TGG createTGG();", "public abstract String mo9239aw();", "public void setG(boolean g) {\n\tthis.g = g;\n }", "private static C8504ba m25889b(C2272g gVar) throws Exception {\n return m25888a(gVar);\n }", "void mo21074e();", "private String pcString(String g, String d) {\n return g+\"^part_of(\"+d+\")\";\n }", "public abstract String mo13682d();", "public void mo38117a() {\n }", "public abstract void mo70713b();", "public Gitlet(int a) {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}", "public abstract T zzg(T t, T t2);", "public int mo9232aG() {\n return 0;\n }", "public void mo3286a(C0813g gVar) {\n this.f2574g = gVar;\n }", "public void mo21787L() {\n }", "@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }", "public String DFS(int g) {\n\t\t//TODO\n\t}", "public static Object gvRenderContext(Object... arg) {\r\nUNSUPPORTED(\"6bxfu9f9cshxn0i97berfl9bw\"); // int gvRenderContext(GVC_t *gvc, graph_t *g, const char *format, void *context)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"1ag9dz4apxn0w3cz8w2bfm6se\"); // GVJ_t *job;\r\nUNSUPPORTED(\"8msotrfl0cngiua3j57ylm26b\"); // g = g->root;\r\nUNSUPPORTED(\"exts51afuertju5ed5v7pdpg7\"); // /* create a job for the required format */\r\nUNSUPPORTED(\"dn6z1r1bbrtmr58m8dnfgfnm0\"); // rc = gvjobs_output_langname(gvc, format);\r\nUNSUPPORTED(\"5apijrijm2r8b1g2l4x7iee7s\"); // job = gvc->job;\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"8r1a6szpsnku0jhatqkh0qo75\"); // \t\tagerr(AGERR, \"Format: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"2pj79j8toe6bactkaedt54xcv\"); // \t\t\t format, gvplugin_list(gvc, API_device, format));\r\nUNSUPPORTED(\"b0epxudfxjm8kichhaautm2qi\"); // \t\treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ect62lxc3zm51lhzifift55m\"); // job->output_lang = gvrender_select(job, job->output_langname);\r\nUNSUPPORTED(\"ewlceg1k4gs2e6syq4ear5kzo\"); // if (!(agbindrec(g, \"Agraphinfo_t\", 0, NOT(0)) && GD_drawing(g)) && !(job->flags & (1<<26))) {\r\nUNSUPPORTED(\"3yo4xyapbp7osp8uyz4kff98s\"); // \tagerrorf( \"Layout was not done\\n\");\r\nUNSUPPORTED(\"b0epxudfxjm8kichhaautm2qi\"); // \t\treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ex1rhur9nlj950oe8r621uxxk\"); // job->context = context;\r\nUNSUPPORTED(\"3hvm1mza6yapsb3hi7bkw03cs\"); // job->external_context = NOT(0);\r\nUNSUPPORTED(\"9szsye4q9jykqvtk0bc1r91d0\"); // rc = gvRenderJobs(gvc, g);\r\nUNSUPPORTED(\"7l8ugws8ptgtlxc1ymmh3cf18\"); // gvrender_end_job(job);\r\nUNSUPPORTED(\"dql0bth0nzsrpiu9vnffonrhf\"); // gvdevice_finalize(job);\r\nUNSUPPORTED(\"a9p7yonln7g91ge7xab3xf9dr\"); // gvjobs_delete(gvc);\r\nUNSUPPORTED(\"5bc9k4vsl6g7wejc5xefc5964\"); // return rc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "void mo54435d();" ]
[ "0.678414", "0.67709124", "0.6522526", "0.64709187", "0.6450875", "0.62853396", "0.6246107", "0.6244691", "0.6212993", "0.61974055", "0.61380696", "0.6138033", "0.6105423", "0.6057178", "0.60355175", "0.60195917", "0.59741", "0.596904", "0.59063077", "0.58127505", "0.58101356", "0.57886875", "0.5771653", "0.57483286", "0.57415104", "0.5739937", "0.5737405", "0.5734033", "0.5716611", "0.5702987", "0.5702633", "0.568752", "0.5673585", "0.5656889", "0.5654594", "0.56383264", "0.56383264", "0.5633443", "0.5619376", "0.56107736", "0.55950445", "0.55687404", "0.5560633", "0.5544451", "0.553233", "0.55284953", "0.5526995", "0.5523609", "0.5522537", "0.5520261", "0.5508765", "0.54931", "0.5475987", "0.5471256", "0.5469798", "0.54696023", "0.5466119", "0.5450189", "0.5445573", "0.54424983", "0.54304206", "0.5423924", "0.54234356", "0.5420949", "0.54093313", "0.53971386", "0.53892636", "0.53887594", "0.5388692", "0.53799766", "0.5377014", "0.5375743", "0.53676707", "0.53666615", "0.53654546", "0.536411", "0.536411", "0.5361922", "0.53584075", "0.5357915", "0.53526837", "0.53503513", "0.534265", "0.5342214", "0.53399533", "0.533597", "0.5332819", "0.5331027", "0.5329743", "0.5329616", "0.5325393", "0.53252953", "0.5323291", "0.53207254", "0.5314264", "0.53122807", "0.53109974", "0.5310432", "0.53044266", "0.5304416", "0.5302328" ]
0.0
-1
/ renamed from: a
private static String m106807a(List<Aweme> list, String str) { for (Aweme aweme : list) { if (C23472a.m77066a(aweme.getAuthor().getUid(), str)) { return aweme.getAid(); } } return null; }
{ "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
private static int m106811b(List<Aweme> list, String str) { if (list == null) { return 0; } for (Aweme aweme : list) { if (aweme != null && aweme.getAuthor() != null && C23472a.m77066a(aweme.getAuthor().getUid(), str)) { return aweme.getEnterpriseType(); } } return 0; }
{ "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 }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "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();", "protected abstract void a(bru parambru);", "public an b() {\n return a(this.a);\n }", "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);", "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 }", "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}", "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(String str) {\n ((b.b) this.b).e(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 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 }", "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 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 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 }", "public static Note getB() {return (Note)B.clone();}" ]
[ "0.64569855", "0.6283282", "0.62531567", "0.6252121", "0.6245442", "0.621636", "0.619463", "0.6194139", "0.6165022", "0.6141199", "0.6100174", "0.60973275", "0.607799", "0.6002063", "0.5998536", "0.5973506", "0.5973506", "0.59066874", "0.59057605", "0.5892315", "0.5887388", "0.5883261", "0.58562523", "0.58468115", "0.58427995", "0.58246225", "0.58242327", "0.58104837", "0.58023524", "0.58012456", "0.5795396", "0.5792103", "0.57915795", "0.5785196", "0.5773401", "0.57606757", "0.57359093", "0.57359093", "0.5735576", "0.5728301", "0.57214826", "0.5712414", "0.57070184", "0.56907666", "0.5653404", "0.5651857", "0.56508774", "0.565062", "0.5648304", "0.56411666", "0.5640902", "0.5640459", "0.56316125", "0.5599008", "0.55853003", "0.55838066", "0.5578858", "0.55744463", "0.5573307", "0.55726206", "0.55702573", "0.55641717", "0.555491", "0.5554184", "0.5548789", "0.5543568", "0.55363923", "0.55309266", "0.5519697", "0.5518723", "0.55159104", "0.5512562", "0.55048823", "0.55020446", "0.5492476", "0.5487243", "0.54822576", "0.547706", "0.54730666", "0.5471541", "0.54647017", "0.5460674", "0.5455757", "0.5455379", "0.5451797", "0.5443306", "0.54376775", "0.5434189", "0.54257286", "0.54245406", "0.54208034", "0.5417544", "0.54051054", "0.5401651", "0.53956497", "0.53888947", "0.53884465", "0.5388119", "0.5386286", "0.53853416", "0.5384207" ]
0.0
-1
/ access modifiers changed from: private / renamed from: a
public void mo60641a(C23343a aVar, C42005d dVar) { if (this.f86088h == aVar) { int i = dVar.f109115a; if (i != 1) { if (i != 9999) { switch (i) { case 4: String str = (String) dVar.f109116b; StoryFeedItemViewModel storyFeedItemViewModel = null; if (!C6319n.m19594a(str, C21115b.m71197a().getCurUserId())) { int b = m106810b(str); if (b != -1) { storyFeedItemViewModel = (StoryFeedItemViewModel) this.f86083b.get(b); } } if (storyFeedItemViewModel != null) { storyFeedItemViewModel.mo84777d(); storyFeedItemViewModel.mo60675b(); return; } break; case 5: ((StoryFeedPanel) mo60671a()).setLivePageItemView((C33104d) dVar.f109116b); return; case 6: ((StoryFeedPanel) mo60671a()).setPanelVisibility(((Integer) dVar.f109116b).intValue(), false); break; } } else if (this.f86089i != null) { this.f86089i.mo61169c(); return; } return; } this.f86084c = (C42006a) dVar.f109116b; if (this.f86089i != null) { if (this.f86084c.f109119c) { this.f86089i.mo61171e(); } else { this.f86089i.mo61170d(); } } m106809a(this.f86084c); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public void a() {\r\n }", "public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public void a() {\n ((a) this.a).a();\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void a() {\n }", "public void a() {\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public String i() {\n/* 44 */ return this.a.toString();\n/* */ }", "public static void a() {\n\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "public void b() {\r\n }", "@Override\n public void b() {\n }", "public void mo38117a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public void m23075a() {\n }", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\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 }", "@Override\n\tpublic void anular() {\n\n\t}", "public void b() {\n }", "public void b() {\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public static a c() {\n }", "public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }", "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "void m1864a() {\r\n }", "public static aa a() {\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "@Override\n\tpublic void b() {\n\n\t}", "public interface a {\n void a();\n\n void a(al alVar);\n\n void b(al alVar);\n\n void c(al alVar);\n }", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public void a(MinecraftKey var0) {\n/* 98 */ this.a = var0;\n/* */ }", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "private stendhal() {\n\t}", "public interface a {\n }", "public void mo12930a() {\n }", "public abstract Object mo1771a();", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public boolean a()\r\n/* 598: */ {\r\n/* 599:597 */ return this.k;\r\n/* 600: */ }", "public void mo2740a() {\n }", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public void mo4359a() {\n }", "public void mo9848a() {\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface a {\n void a();\n }", "public interface a {\n void a();\n }", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract void m15813a();", "public abstract String a();", "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 final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public void mo6944a() {\n }", "public interface C0069a {\n void a();\n }", "public void mo21825b() {\n }", "public abstract Object mo26777y();", "public vx i()\r\n/* 185: */ {\r\n/* 186:212 */ return vx.a;\r\n/* 187: */ }", "public void mo1531a() {\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public void mo44053a() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public void mo115188a() {\n }", "@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\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}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\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 static String a(int c) {\n/* 89 */ return b.a(c);\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 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\n\tpublic void b2() {\n\t\t\n\t}", "public abstract void mo70713b();", "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 C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "public abstract void mo53562a(C18796a c18796a);", "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 final /* synthetic */ Object a() {\r\n return c.a(this.a, b.d());\r\n }", "private final void i() {\n }", "public interface a {\n void a(Throwable th);\n\n void a(byte[] bArr, long j);\n\n void d();\n\n void e();\n }", "public void mo23813b() {\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/* */ }" ]
[ "0.74785364", "0.71833557", "0.7064376", "0.6998475", "0.6954053", "0.6850509", "0.6672314", "0.6663406", "0.66521597", "0.66148806", "0.6613876", "0.6557931", "0.65128875", "0.6500369", "0.6500369", "0.6463267", "0.6373497", "0.636334", "0.63582826", "0.6355706", "0.6351771", "0.63160616", "0.6300244", "0.6289648", "0.6265606", "0.6260867", "0.6260867", "0.6246349", "0.6243865", "0.6221014", "0.62091905", "0.6208418", "0.62001216", "0.62001216", "0.6188042", "0.6187359", "0.6173324", "0.6172374", "0.6155542", "0.61487526", "0.6143793", "0.6132754", "0.6111532", "0.6110151", "0.61083174", "0.6108096", "0.60993457", "0.6097328", "0.6095753", "0.6083749", "0.6067369", "0.6063294", "0.6055255", "0.6048731", "0.6039832", "0.6038274", "0.60333204", "0.6028488", "0.6028358", "0.60183626", "0.60178435", "0.60138667", "0.6012516", "0.60095733", "0.60095733", "0.60073906", "0.6001113", "0.59862113", "0.59835875", "0.5980757", "0.59795314", "0.59760165", "0.5975194", "0.59748346", "0.5969269", "0.5965153", "0.5958066", "0.59475195", "0.59374565", "0.5934305", "0.5932158", "0.59211826", "0.59196436", "0.5917862", "0.59051645", "0.58949697", "0.5886582", "0.5881329", "0.5878271", "0.5872109", "0.5868916", "0.58681303", "0.586772", "0.58644307", "0.58625656", "0.5861813", "0.5860939", "0.5860723", "0.5859258", "0.5859189", "0.5856331" ]
0.0
-1
/ renamed from: a
public final void mo84806a(Context context, String str) { try { List b = m106812b(this.f86088h.mo103177a(str).f109095a.isRead()); C25673a c = m106813c(); c.setItems(b); C28503s.m93679a(c); String a = m106807a(b, str); int b2 = m106811b(b, str); C7195s a2 = C7195s.m22438a(); StringBuilder sb = new StringBuilder("aweme://aweme/detail/"); sb.append(a); a2.mo18682a(C7203u.m22460a(sb.toString()).mo18694a("refer", "toplist_friend").mo18694a("video_from", "from_window_following").mo18693a("profile_enterprise_type", b2).mo18695a()); } catch (Exception e) { C6921a.m21554a(e); } }
{ "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
, productDesc, productPrice; public ImageView imageView;
public ViewHolder(View itemView) { super(itemView); this.productName = itemView.findViewById(R.id.productName); // this.productDesc = itemView.findViewById(R.id.productDesc); // this.productPrice = itemView.findViewById(R.id.productPrice); // this.imageView = itemView.findViewById(R.id.productImage); itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { onClickListener.orderType(v, getAdapterPosition()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void bindView(View view, final Context context, Cursor cursor) {\n TextView nameView = (TextView) view.findViewById(R.id.product_name_text_view);\n TextView priceView = (TextView) view.findViewById(R.id.product_price_text_view);\n final TextView quantityView = (TextView) view.findViewById(R.id.product_quantity_text_view);\n ImageView imgView = (ImageView) view.findViewById(R.id.product_imageView);\n\n // Extract properties from cursor\n // Find the columns of inventory attributes that we're interested in\n int nameColumnIndex = cursor.getColumnIndex(StoreEntry.COLUMN_NAME);\n int priceColumnIndex = cursor.getColumnIndex(StoreEntry.COLUMN_PRICE);\n int quantityIndex = cursor.getColumnIndex(StoreEntry.COLUMN_QUANTITY);\n int imgIndex = cursor.getColumnIndex(StoreEntry.COLUMN_IMAGE);\n int rowIndex = cursor.getColumnIndex(StoreEntry._ID);\n\n // Read the product attributes from the Cursor for the current product\n final String productName = cursor.getString(nameColumnIndex);\n final int productPrice = cursor.getInt(priceColumnIndex);\n final int productQuantity = cursor.getInt(quantityIndex);\n //Uri imgUri = parse(cursor.getString(imgIndex));\n final int rowId = cursor.getInt(rowIndex);\n\n // Populate fields with extracted properties\n nameView.setText(productName);\n priceView.setText(Integer.toString(productPrice));\n quantityView.setText(Integer.toString(productQuantity));\n Glide.with(context).load(cursor.getString(imgIndex))\n .placeholder(R.mipmap.ic_launcher)\n .error(R.drawable.ic_add_shopping_cart)\n .crossFade()\n .centerCrop()\n .into(imgView);\n\n Button sellButton = (Button) view.findViewById(R.id.sell_product);\n sellButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n StoreDbHelper dbHelper = new StoreDbHelper(context);\n SQLiteDatabase database = dbHelper.getWritableDatabase();\n\n int items = Integer.parseInt(quantityView.getText().toString());\n if (items > 0) {\n int mQuantitySold = items - 1;\n ContentValues values = new ContentValues();\n values.put(StoreEntry.COLUMN_QUANTITY, mQuantitySold);\n String selection = StoreEntry._ID + \"=?\";\n String[] selectionArgs = new String[]{String.valueOf(rowId)};\n int rowsAffected = database.update(StoreEntry.TABLE_NAME, values, selection, selectionArgs);\n if (rowsAffected != -1) {\n quantityView.setText(Integer.toString(mQuantitySold));\n }\n } else\n Toast.makeText(context, \"No Stock Left \", Toast.LENGTH_SHORT).show();\n }\n });\n }", "private void fetchProducts() {\n Product p1 = new Product(R.drawable.aj1rls, \"Air Jordan 1 Retro Low Slip\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Jordan\", 9);\n Product p2 = new Product(R.drawable.aj1rhp, \"Air Jordan 1 Retro High Premium\", \"Đen/Trắng\", \"Nữ\", 8500000,9.5,\"Jordan\", 8.7);\n Product p3 = new Product(R.drawable.nm2ktse, \"Nike M2k Tenko SE\", \"Đen/Trắng\", \"Nữ\", 8500000,8,\"Nike\", 8.6);\n Product p4 = new Product(R.drawable.nre55, \"Nike React Element 55\", \"Đen/Trắng\", \"Nữ\", 8500000,8.5,\"Nike\", 9);\n Product p5 = new Product(R.drawable.ncracp, \"NikeCourt Royale AC\", \"Đen/Trắng\", \"Nữ\", 8500000,7,\"Nike\", 8);\n Product p6 = new Product(R.drawable.namff720, \"Nike Air Max FF 720\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p7 = new Product(R.drawable.nam90, \"Nike Air Max 90\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p8 = new Product(R.drawable.nbmby, \"Nike Blazer Mid By You\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p9 = new Product(R.drawable.nam270, \"Nike Air Max 270\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p10 = new Product(R.drawable.ncclxf, \"Air Jordan 1 Retro Low Slip\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Jordan\", 9);\n productList = new ArrayList<>(Arrays.asList(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10));\n }", "public ViewHolder(View itemView) {\n super(itemView);\n productDetails = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_product_details);\n price = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_MRP);\n sp = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_SP);\n //qty = (Spinner) itemView.findViewById(R.id.category_item_layout_for_view_product_qty);\n productImage = (ImageView) itemView.findViewById(R.id.category_item_layout_for_view_product_image);\n addToCart = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_addToCart);\n }", "private void displayProductDetails() {\n //loading picture offline\n Picasso.get().load(pImage).networkPolicy(NetworkPolicy.OFFLINE)\n .placeholder(R.drawable.warning).into(productImage, new Callback() {\n @Override\n public void onSuccess() {\n\n }\n\n @Override\n public void onError(Exception e) {\n Picasso.get().load(pImage)\n .placeholder(R.drawable.warning).into(productImage);\n }\n });\n productName.setText(pName);\n productPrize.setText(pPrice);\n\n try{\n if (pCategory.equalsIgnoreCase(\"Bulk Purchase\")){\n quantity.setText(pLimitedQty);\n }\n } catch (Exception ex){\n Log.i(\"error\", ex.getMessage());\n catchErrors.setErrors(ex.getMessage(), dateAndTime.getDate(), dateAndTime.getTime(),\n \"OrderProductActivity\", \"displayProductDetails\");\n }\n }", "private void upview(ProdInfo data) {\n\t\t\n\t\tDecimalFormat df = new DecimalFormat(\"###.00\"); \n\t\tString price = \"\";\n\t\ttry {\n\t\t\tprice = df.format(Double.parseDouble(data.price));\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tprice = \"0.00\";\n\t\t}\n\t\tname.setText(data.name);\n\t\tpic.setText(\"¥\"+price);\n\t\tmodo.setText(data.model);\n\t\tcontent.setText(data.description);\n\t\t\n\t\tlist = new ArrayList<Banner>();\n\t\tif(!TextUtils.isEmpty(data.photo)){\n\t\t\tString[] shop_photos = data.photo.split(\",\");\n\t\t\tfor (int i = 0; i < shop_photos.length; i++) {\n\t\t\t\tBanner b = new Banner();\n\t\t\t\tb.banner_imgurl = shop_photos[i];\n\t\t\t\tlist.add(b);\n\t\t\t}\n\t\t}\n\t\tif(list!=null&&list.size()>0){\n\t\t\trealizeFunc(list);\n\t\t}\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.wordpanel);\n products = (Products1) getIntent().getSerializableExtra(\"Product\");\n product_name = (TextView) findViewById(R.id.text_prodctname);\n text_spec = (TextView) findViewById(R.id.text_spec);\n text_price = (TextView) findViewById(R.id.text_price);\n text_count = (TextView) findViewById(R.id.text_count);\n text_shouyibili = (TextView) findViewById(R.id.text_shouyibili);\n text_daigou_price = (TextView) findViewById(R.id.text_daigou_price);\n text_daigoushouyi = (TextView) findViewById(R.id.text_daigoushouyi);\n\n product_name.setText(products.getName());\n\n text_spec.setText(products.getSpec());\n\n text_shouyibili.setText(products.getScale());\n\n\n text_price.setText(products.getPrice());\n text_count.setText(products.getCount());\n\n text_daigou_price.setText(products.getMoney());\n text_daigoushouyi.setText(products.getLucreMoney());\n }", "@Override\n public View getView(final int position, View convertView1, ViewGroup parent) {\n\n if (convertView1 == null){\n\n LayoutInflater inflater = (LayoutInflater) mContext\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n convertView1 = inflater.inflate(R.layout.custom_cartview, null);\n convertView1.setBackgroundResource(R.drawable.bcklist);\n txt_name = (TextView) convertView1.findViewById(R.id.name);\n txt_qty = (TextView) convertView1.findViewById(R.id.qty);\n txt_qtyvalue = (TextView) convertView1.findViewById(R.id.qty_value);\n txt_price = (TextView) convertView1.findViewById(R.id.price);\n img = (ImageView) convertView1.findViewById(R.id.img);\n dlt_img = (ImageView) convertView1.findViewById(R.id.dlt);\n\n }\n txt_name.setText(Json_ShowCart.model_cart.getAl_cart().get(position).getItem_name());\n txt_price.setText(Json_ShowCart.model_cart.getAl_cart().get(position).getItem_price());\n txt_qtyvalue.setText(String.valueOf(Json_ShowCart.model_cart.getAl_cart().get(position).getItem_qty()));\n\n listItems.add(String.valueOf(txt_price));\n Picasso.with(mContext).load(Json_ShowCart.model_cart.getAl_cart().get(position).getItem_image()).into(img);\n\n\n productamout =new ArrayList<String>();\n productid=new ArrayList<Integer>();\n sellerid=new ArrayList<Integer>();\n proqty=new ArrayList<String>();\n producttype=new ArrayList<String>();\n mrchntid=new ArrayList<String>();\n mrchnt_name=new ArrayList<String>();\n double QuantyInt = 1;\n double PriceInt = 0;\n\n QuantyInt = Double.parseDouble(txt_qtyvalue.getText().toString());\n PriceInt = Double.parseDouble(Json_ShowCart.model_cart.getAl_cart().get(position).getItem_price());\n\n\n subtotal = (QuantyInt * PriceInt);\n\n txt_price.setText(String.valueOf(subtotal));\n\n double total=0;\n\n for (int i = 0; i <m.getAl_cart().size(); i++) {\n\n Double pri= Double.parseDouble(m.getAl_cart().get(i).getItem_price());\n\n Double qty= Double.valueOf(m.getAl_cart().get(i).getItem_qty());\n val_qty= String.valueOf(m.getAl_cart().get(i).getItem_qty());\n total+=(qty*pri);\n\n productamout.add(m.getAl_cart().get(i).getItem_price());\n productid.add(m.getAl_cart().get(i).getItemid());\n sellerid.add(Integer.valueOf(m.getAl_cart().get(i).getSeller_id()));\n proqty.add(m.getAl_cart().get(i).getItem_quantity());\n producttype.add(m.getAl_cart().get(i).getItem_type());\n\n mrchntid.add(m.getAl_cart().get(i).getMrchntid());\n mrchnt_name.add(m.getAl_cart().get(i).getSeller_name());\n\n\n }\n\n mrchntlist= new ArrayList(new LinkedHashSet(mrchntid));\n mrchntname=new ArrayList(new LinkedHashSet(mrchnt_name));\n\n\n Double tx=(total*6/100);\n Log.e(\"tx---\",\"\"+tx);\n Fragment_cart.tv_totalservicetx.setText(String.valueOf(tx));\n total=total+tx;\n\n Fragment_cart.tv_total.setText(String.valueOf(total));\n\n\n\n dlt_img.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n removeItemFromList(position);\n notifyDataSetChanged();\n\n\n\n }\n });\n\n\n return convertView1;\n\n\n }", "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "private void addDataToTable() {\n\n /* Get the main table from the xml */\n TableLayout mainTable = (TableLayout) findViewById(R.id.mainTable);\n\n /* Retrieve which products need to be displayed */\n int product_type = getIntent().getExtras().getInt(\"product_type\");\n String[] product_types_array = getResources().getStringArray(product_type);\n\n /* Retrieve product images for the above list of products */\n int[] product_images = getIntent().getExtras().getIntArray(\"product_images\");\n\n /* Loop through to add each product details in the table */\n for (int i = 0; i < product_types_array.length; i++) {\n\n TableRow tableRow = new TableRow(this);\n TableRow.LayoutParams tableRowParams =\n new TableRow.LayoutParams\n (TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n tableRow.setLayoutParams(tableRowParams);\n tableRow.setPadding(20, 20, 20, 20);\n\n // Initialize Linearlayout to set product name and images\n LinearLayout product_desc = new LinearLayout(this);\n product_desc.setId(R.id.product_linearlayout);\n product_desc.setOrientation(LinearLayout.VERTICAL);\n product_desc.setGravity(Gravity.START);\n product_desc.setPadding(10,0,10,0);\n\n // initialize string to separate product type\n String[] pn_str = product_types_array[i].split(\";\");\n // initialize string to get product name\n String prod_name_str = pn_str[0];\n // initialize string to get product color\n String prod_color = pn_str[1];\n\n /* Product Name Details */\n TextView textView_PN = new TextView(this);\n textView_PN.setText(prod_name_str);\n textView_PN.setWidth(350);\n textView_PN.setHeight(50);\n textView_PN.setId(R.id.product_name);\n textView_PN.setGravity(Gravity.CENTER_HORIZONTAL);\n textView_PN.setTypeface(null, Typeface.BOLD);\n textView_PN.setTextSize(13);\n textView_PN.setPadding(0, 0, 0, 0);\n product_desc.addView(textView_PN);\n\n /* Product Color */\n TextView textView_PC = new TextView(this);\n textView_PC.setText(\"Color : \" + prod_color);\n textView_PC.setId(R.id.product_color);\n textView_PC.setGravity(Gravity.CENTER_HORIZONTAL);\n textView_PC.setTypeface(null, Typeface.BOLD);\n textView_PC.setTextSize(13);\n textView_PC.setPadding(10, 10, 10, 10);\n product_desc.addView(textView_PC);\n\n /* Product Image Details */\n ImageView imageView = new ImageView(this);\n imageView.setImageResource(product_images[i]);\n imageView.setId(R.id.product_image);\n imageView.setPadding(20, 20, 20, 20);\n product_desc.addView(imageView);\n\n // add row in table\n tableRow.addView(product_desc, new TableRow.LayoutParams\n (TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.MATCH_PARENT, 1.0f));\n\n /* LinearLayout for checkboxes */\n LinearLayout product_types = new LinearLayout(this);\n product_types.setOrientation(LinearLayout.VERTICAL);\n product_types.setGravity(Gravity.CENTER_VERTICAL);\n\n int box_type_value = decide_type(prod_name_str);\n\n /* show all products item with checkbox */\n if( box_type_value != -1){\n\n String[] product_modules_array = getResources().getStringArray(box_type_value);\n\n /* Loop for printing multiple checkboxes */\n for (int j = 0; j < product_modules_array.length; j++) {\n\n CheckBox checkBox = new CheckBox(this);\n checkBox.setTextSize(13);\n checkBox.setText(product_modules_array[j]);\n checkBox.setChecked(false);\n checkBox.setId(count);\n\n /* check condition if particular item name belongs to product hashmap */\n if (to_refer_each_item.containsKey(i)) {\n (to_refer_each_item.get(i)).add(count);\n } else {\n ArrayList<Integer> arrayList = new ArrayList<Integer>();\n arrayList.add(count);\n to_refer_each_item.put(i, arrayList);\n }\n count++;\n product_types.addView(checkBox);\n }\n }\n tableRow.addView(product_types, new TableRow.LayoutParams\n (TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.MATCH_PARENT,1.0f));\n mainTable.addView(tableRow);\n }\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView Ename = (TextView) view.findViewById(R.id.Ename);\n TextView Designation = (TextView) view.findViewById(R.id.Designation);\n TextView Salary = (TextView) view.findViewById(R.id.Salary);\n // Extract properties from cursor\n String ename = cursor.getString(cursor.getColumnIndexOrThrow(\"ename\"));\n String designation = cursor.getString(cursor.getColumnIndexOrThrow(\"designation\"));\n int salary = cursor.getInt(cursor.getColumnIndexOrThrow(\"salary\"));\n\n ImageView imgView =(ImageView)view.findViewById(R.id.ImageView01);\n\n\n imgView.setImageResource(R.drawable.ic_launcher);\n\n\n\n\n\n // Populate fields with extracted properties\n Ename.setText(ename);\n Designation.setText(designation);\n Salary.setText(String.valueOf(salary));\n }", "public ShowDataViewHolder(final View itemView) {\n super(itemView);\n // image_url = (ImageView) itemView.findViewById(R.id.fetch_image);\n image_title = (TextView) itemView.findViewById(R.id.fetch_image_title);\n\n\n }", "@Override\n public void bindView(View view, final Context context, final Cursor cursor) {\n TextView nameTextView = (TextView) view.findViewById(R.id.name);\n TextView priceTextView = (TextView) view.findViewById(R.id.price);\n TextView quantTextView = (TextView) view.findViewById(R.id.quantity_edit);\n ImageView orderImageView = (ImageView) view.findViewById(R.id.order);\n ImageView itemImageView = (ImageView) view.findViewById(R.id.itemPic);\n\n itemImageView.setImageURI(Uri.parse(cursor.getString(cursor.getColumnIndex(ItemEntry.COLUMN_IMAGE))));\n\n final int position = cursor.getPosition();\n\n orderImageView.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n\n cursor.moveToPosition(position);\n int itemColumnIndex = cursor.getColumnIndex(ItemEntry._ID);\n final long itemId = cursor.getLong(itemColumnIndex);\n Uri mCurrentItemUri = ContentUris.withAppendedId(ItemEntry.CONTENT_URI, itemId);\n int quantColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_QUANTITY);\n String itemQuant = cursor.getString(quantColumnIndex);\n int currentQuant = Integer.parseInt(itemQuant);\n\n if(currentQuant >0) {\n\n currentQuant--;\n\n ContentValues values = new ContentValues();\n values.put(ItemEntry.COLUMN_ITEM_QUANTITY, currentQuant);\n\n int tabUpdate = context.getContentResolver().update(mCurrentItemUri, values, null, null);\n\n } else {\n Toast.makeText(context, \"Out of stock\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n int nameColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_NAME);\n final int priceColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_PRICE);\n final int quantColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_QUANTITY);\n int imgColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_IMAGE);\n\n String itemName = cursor.getString(nameColumnIndex);\n String itemPrice = \"$\" + cursor.getString(priceColumnIndex);\n String itemQuant = cursor.getString(quantColumnIndex);\n String itemImg = cursor.getString(imgColumnIndex);\n\n if (TextUtils.isEmpty(itemPrice)) {\n itemPrice = context.getString(R.string.unknown_price);\n }\n nameTextView.setText(itemName);\n priceTextView.setText(itemPrice);\n quantTextView.setText(itemQuant);\n itemImageView.setImageURI(Uri.parse(itemImg));\n\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView;\n\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.seller_product_layout, parent, false);\n }\n\n //Find the item at the given position in the list of items\n Item currentItem = (Item) getItem(position);\n\n ImageView image = (ImageView) listItemView.findViewById(R.id.image);\n\n if(image!=null){\n Glide.with(getContext()).load(currentItem.getmImageUrl()).into(image);\n }\n\n TextView type = (TextView) listItemView.findViewById(R.id.type_seller);\n type.setText(currentItem.getType());\n\n TextView pricepd = (TextView) listItemView.findViewById(R.id.ppd);\n pricepd.setText(String.valueOf(currentItem.getPayPerDay()));\n\n TextView deposit = (TextView) listItemView.findViewById(R.id.deposit);\n deposit.setText(String.valueOf(currentItem.getDeposit()));\n\n TextView description = (TextView) listItemView.findViewById(R.id.description);\n description.setText(String.valueOf(currentItem.getProductinfo()));\n\n TextView fromdate = (TextView) listItemView.findViewById(R.id.fromdate);\n fromdate.setText(String.valueOf(currentItem.getFromdate()));\n\n TextView todate = (TextView) listItemView.findViewById(R.id.todate);\n todate.setText(String.valueOf(currentItem.getTodate()));\n\n// TextView rating = (TextView) listItemView.findViewById(R.id.rating);\n// if(rating!=null){\n// rating.setText(currentItem.getType());\n// }\n\n //Return the list item view that is now showing the appropriate data\n return listItemView;\n\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n View viewProduct;\n if (convertView == null) {\n viewProduct = View.inflate(parent.getContext(), R.layout.item_row, null);\n } else viewProduct = convertView;\n\n ItemInfo itemInfo = (ItemInfo) getItem(position);\n ((TextView) viewProduct.findViewById(R.id.txt_title)).setText( itemInfo.title);\n ((TextView) viewProduct.findViewById(R.id.txt_desc)).setText(itemInfo.description);\n Picasso.with(G.context).load(itemInfo.imageUrl).into((ImageView) viewProduct.findViewById(R.id.img_Icon));\n\n\n return viewProduct;\n }", "public MyHolder(View itemView) {\n super(itemView);\n item = itemView.findViewById(R.id.item);\n noofpices = itemView.findViewById(R.id.noofpices);\n cost = itemView.findViewById(R.id.cost);\n amount = itemView.findViewById(R.id.total);\n plus = itemView.findViewById(R.id.plus);\n// minus = (ImageButton)itemView.findViewById(R.id.minus);\n delete = itemView.findViewById(R.id.del);\n\n // id= (TextView)itemView.findViewById(R.id.id);\n }", "public void updateView()\n {\n // Get width and height of display\n DisplayMetrics metrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(metrics);\n int width = metrics.widthPixels;\n int height = metrics.heightPixels;\n \n // Get details widgets from layout \n ImageView productImage = findViewById(R.id.product_image);\n TextView productTitle = findViewById(R.id.product_title);\n TextView productDescription = findViewById(R.id.product_description); \n RatingBar productRating = findViewById(R.id.product_rating);\n TextView productNumReviews = findViewById(R.id.product_num_reviews);\n TextView productPrice = findViewById(R.id.product_price);\n productQuantityTextView = findViewById(R.id.product_quantity);\n\n // Setup quantity\n productQuantity = 1;\n productQuantityTextView.setText(Integer.toString(productQuantity));\n Button incrementQuantityButton = findViewById(R.id.quantity_plus);\n incrementQuantityButton.setOnClickListener(new addButtonOnClickListener());\n Button decrementQuantityButton = findViewById(R.id.quantity_minus);\n decrementQuantityButton.setOnClickListener(new subtractButtonOnClickListener());\n\n // Resize image view\n productImage.setMinimumWidth(width);\n productImage.setMaxHeight(height / 2);\n\n // Display product details\n productTitle.setText(activeProduct.getName());\n productImage.setImageBitmap(activeProduct.getImage());\n productDescription.setText(activeProduct.getDescription());\n productRating.setRating((float) activeProduct.getRating());\n productNumReviews.setText(Integer.toString(activeProduct.getNumReviews()));\n DecimalFormat decimalFormat = new DecimalFormat(\"$#,##0.00\");\n productPrice.setText(String.valueOf(decimalFormat.format(activeProduct.getPrice())));\n\n // Add on click listener for add item to cart push button\n Button addItemButton = findViewById(R.id.add_to_cart);\n addItemButton.setOnClickListener(new ViewButtonHandler());\n }", "String getItemImage();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_product);\n name = (TextView) findViewById(R.id.name);\n description = (TextView) findViewById(R.id.description);\n price = (TextView) findViewById(R.id.price);\n brand = (TextView) findViewById(R.id.brand);\n addToCart = (Button) findViewById(R.id.cartItem);\n viewCart = (Button) findViewById(R.id.ViewCart);\n quantity = (ElegantNumberButton) findViewById(R.id.productDetails_number_btn);\n Intent intentThatStartedThisActivity = getIntent();\n if (intentThatStartedThisActivity != null) {\n if (intentThatStartedThisActivity.hasExtra(Intent.EXTRA_TEXT)) {\n details = intentThatStartedThisActivity.getStringExtra(Intent.EXTRA_TEXT);\n String[] tokens = details.split(\"sravya\");\n System.out.println(tokens);\n// mProdDisplay.setText(details);\n name.setText(\"Name : \" + tokens[0]);\n brand.setText(\"Brand : \" + tokens[1]);\n price.setText(tokens[2]);\n description.setText(\"Description : \" + tokens[6]);\n ProductID = tokens[7];\n\n\n imgurl = tokens[4];\n\n Log.d(\"Imageeeeeeeee\", imgurl);\n// new DownloadImage(iv).execute(imgurl);\n }\n }\n addToCart.setOnClickListener(new View.OnClickListener()\n\n {\n @Override\n public void onClick (View v){\n String Name = name.getText().toString();\n String Price = price.getText().toString();\n String Brand = brand.getText().toString();\n String Quantity = quantity.getNumber().toString();\n addingToCartList(Name, Price, Brand, Quantity);\n }\n });\n\n viewCart.setOnClickListener(new View.OnClickListener()\n\n {\n @Override\n public void onClick (View v){\n Intent intent = new Intent(ProductActivity.this, CartActivity.class);\n startActivity(intent);\n }\n });\n}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_product_detail_layout, container, false);\n\n pro_detail_name= this.getArguments().getString(\"57\");//get your parameters\n\n\n product_detail_name_txtview=v.findViewById(R.id.product_detail_name);\n product_details_txtview=v.findViewById(R.id.product_details);\n product_detail_price_textview=v.findViewById(R.id.product_detail_price);\n mViewPager=v.findViewById(R.id.product_detail_viewPager);\n sliderImg = new ArrayList<>();\n pb=v.findViewById(R.id.product_detail_pb);\n\n sliderDotspanel = (LinearLayout)v.findViewById(R.id.SliderDots);\n\n\n mViewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n }\n\n @Override\n public void onPageSelected(int position) {\n\n for(int i = 0; i< dotscount; i++){\n dots[i].setImageDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.dot_not_selected));\n }\n\n dots[position].setImageDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.dot_blue_over));\n\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n });\n\n\n load_product_details();\n //geturlss();\n\n return v;\n\n }", "java.lang.String getProductImageUrl();", "public void setimageitem(items item){\n ImageView item_icon = (ImageView) mView.findViewById(R.id.imageitem);\n //If the current weight is greater than half of the original weight, full Icon is displayed\n if(item.getCurrent_wieght() > item.getOriginal_weight()/2)\n item_icon.setImageResource(R.drawable.fullicon);\n //If the current weight is greater than quarter of the original weight, the half icon will be displayed\n else if (item.getCurrent_wieght() <= item.getOriginal_weight()/ 2 && item.getCurrent_wieght() > item.getOriginal_weight()/ 4)\n item_icon.setImageResource(R.drawable.halficon);\n //If the current weight is less than a quarter of the original weight\n // to suggest that the item is empty, a quarter icon will be displayed.\n else if(item.getCurrent_wieght() <= item.getOriginal_weight()/ 4 && item.getCurrent_wieght()> (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.quartericon);\n }\n //if the item is empty an alert icon will be displayed.\n else if(item.getCurrent_wieght()<= (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.alerticon);\n }\n }", "public void setImage(){\n\n Bundle extras = getIntent().getExtras();\n String image = extras.getString(\"pic\");\n String imageFlower = extras.getString(\"picflower\");\n\n\n\n if(image != null) {\n int pic = getResources().getIdentifier(image + \".png\",\"drawable\",getPackageName());\n\n achvImage.setImageResource(pic);\n achvImage.setVisibility(View.VISIBLE);\n\n }else {\n int flowerPic = getResources().getIdentifier(imageFlower + \".jpg\", \"drawable\", getPackageName());\n achvImage.setImageResource(flowerPic);\n achvImage.setVisibility(View.VISIBLE);\n }\n\n achvImage.setImageResource(R.drawable.medaldetails);\n\n\n String text = extras.getString(\"text\");\n achvDetails.setText(text);\n\n String title = extras.getString(\"title\");\n achvTitle.setText(title);\n\n int points1 = extras.getInt(\"points\");\n points.setText(\"Points: \" + points1);\n\n\n String desText1 = extras.getString(\"achDesA\");\n des1.setText(desText1);\n\n\n\n\n }", "public ItemViewHolder(View itemView) {\n super(itemView);\n iv_image = (RoundedImageView)itemView.findViewById(R.id.item_photo);\n tv_title = (TextView)itemView.findViewById(R.id.item_title);\n tv_subtitle = (TextView)itemView.findViewById(R.id.item_subtitle);\n iv_image2 = (ImageView)itemView.findViewById(R.id.imageView1);\n }", "public ViewHolder(View itemView) {\n super(itemView);\n /*imgOverFlow = (ImageView) itemView.findViewById(R.id.overflow);*/\n bookThumbnail = (ImageView) itemView.findViewById(R.id.book_thumbnail);\n// bookAuthor= (TextView) itemView.findViewById(R.id.book_author);\n// bookTitle = (TextView) itemView.findViewById(R.id.book_title);\n }", "public ViewProductJPanel(JPanel userProcessContainer,Product product) {\n initComponents();\n this.userProcessContainer=userProcessContainer;\n this.product=product;\n txtname.setText(product.getProductname());\n txtfloor.setText(String.valueOf(product.getFloorprice()));\n txttarget.setText(String.valueOf(product.getTargetprice()));\n txtceiling.setText(String.valueOf(product.getCeilingprice()));\n txtid.setText(String.valueOf(product.getProductid()));\n txtavail.setText(String.valueOf(product.getAvail()));\n \n}", "@Override\n public void onItemClick(View view, int position) {\n Log.d(\"fsdfsdfsdgfsd\", \"dfgdfg\" + position);\n\n\n// Fragment fragment=new CatagoryViewFragment();\n// FragmentManager manager=getFragmentManager();\n// FragmentTransaction ft=manager.beginTransaction();\n// ft.replace(R.id.content_frame,fragment).addToBackStack(null).commit();\n// Bundle bundle=new Bundle();\n// bundle.putString(\"product_id\",products_arrayList.get(position).get(\"id\").toString());\n// //bundle.putString(\"product_image\",DataList.get(position).getDesc().toString());\n// fragment.setArguments(bundle);\n\n }", "public void setProductImageUrl(final String productImageUrl);", "public RecyclerCardViewHolder(View itemView) {\n super(itemView);\n ivLsPicture = (ImageView) itemView.findViewById(R.id.ivLsPicture);\n tvTitle = (TextView) itemView.findViewById(R.id.tvTitle);\n // textView5 = (TextView) itemView.findViewById(R.id.textView5);\n }", "@Override\n public View getView(int position, View view, ViewGroup viewGroup) {\n\n View vi = view;\n final int pos = position;\n if (vi == null) {\n\n viewHolder = new ViewHolder();\n\n vi = layoutInflater.inflate(R.layout.cart_new, null);\n viewHolder.imageview = (ImageView) vi.findViewById(R.id.imageView);\n viewHolder.cropname = (TextView) vi.findViewById(R.id.cropname);\n viewHolder.cropPrice = (TextView) vi.findViewById(R.id.cropPrice);\n viewHolder.cropQuantity = (TextView) vi.findViewById(R.id.cropQuantity);\n\n vi.setTag(viewHolder);\n } else {\n\n viewHolder = (ViewHolder) vi.getTag();\n }\n viewHolder.cropname.setText(cartArrayList.get(pos).getName());\n viewHolder.cropQuantity.setText(\"Quantity : \" + cartArrayList.get(pos).getQuantity());\n viewHolder.cropPrice.setText(\"Price : \" + cartArrayList.get(pos).getPrice());\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"wheat\")==0)\n viewHolder.imageview.setImageResource(R.drawable.wheat);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"dal\")==0)\n viewHolder.imageview.setImageResource(R.drawable.dal);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"sugarcane\")==0)\n viewHolder.imageview.setImageResource(R.drawable.sugarcane);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"rice\")==0)\n viewHolder.imageview.setImageResource(R.drawable.rice);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"corn\")==0)\n viewHolder.imageview.setImageResource(R.drawable.corn);\n\n\n\n\n return vi;\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.show_product_root);\n\n menue();\n\n thumbNail = (NetworkImageView) findViewById(R.id.img_product_show);\n imageSliderDefault = (ImageView) findViewById(R.id.img_default_show);\n imgPlay = (ImageView) findViewById(R.id.img_play);\n mVideoView = (VideoView) findViewById(R.id.buffer);\n layVideo = (CenterLayout) findViewById(R.id.lay_video);\n\n txtView = (TextView) findViewById(R.id.txt_view_details);\n txrName = (TextView) findViewById(R.id.txt_name_details);\n txtPrice = (TextView) findViewById(R.id.txt_price_details);\n txtTeacher = (TextView) findViewById(R.id.txt_teacher_detils);\n txtDescrip = (TextView) findViewById(R.id.txt_description_detils);\n\n btnRezomeh = (Button) findViewById(R.id.btn_rezomeh);\n btnMoreDescrip = (Button) findViewById(R.id.btn_more_descrip_detils);\n\n btnRezomeh.setTypeface(G.font1);\n btnMoreDescrip.setTypeface(G.font1);\n // adapterListDiscount = new AdapterCommodityTiles(G.DataKalaDiscount);\n\n lstTopic = (ListView) findViewById(R.id.lst_topic);\n\n griAnotherProduct = (NestedListView) findViewById(R.id.gri_another_product);\n LayAnother = (LinearLayout) findViewById(R.id.lay_another_product);\n layLoadingAnotherProduct = (LinearLayout) findViewById(R.id.lay_loading_abother_product);\n\n Bundle extras = getIntent().getExtras();\n id = 0;\n if (extras != null) {\n id = extras.getInt(\"id\");\n }\n\n final LinearLayout LayDescripH = (LinearLayout) findViewById(R.id.lay_description_h);\n final LinearLayout LayTopicH = (LinearLayout) findViewById(R.id.lay_topic_h);\n final LinearLayout LayAnotherH = (LinearLayout) findViewById(R.id.lay_another_product_h);\n final LinearLayout LayDescrip = (LinearLayout) findViewById(R.id.lay_description);\n final LinearLayout LayTopic = (LinearLayout) findViewById(R.id.lay_topic);\n\n final RelativeLayout layAddProduct = (RelativeLayout) findViewById(R.id.lay_add_product);\n\n final ImageView ImgDescrip = (ImageView) findViewById(R.id.img_descip);\n final ImageView ImgTopic = (ImageView) findViewById(R.id.img_topic);\n final ImageView ImgAnother = (ImageView) findViewById(R.id.img_another_product);\n\n final ImageView imgShaering = (ImageView) findViewById(R.id.img_shaering);\n\n LinearLayout LayCheck = (LinearLayout) findViewById(R.id.lay_check_internet);\n LinearLayout LayMain = (LinearLayout) findViewById(R.id.lay_main_show_product);\n\n LinearLayout LayRefresh = (LinearLayout) findViewById(R.id.lay_check_refresh);\n LinearLayout LayMobile = (LinearLayout) findViewById(R.id.lay_check_mobile);\n LinearLayout LayWifi = (LinearLayout) findViewById(R.id.lay_check_wifi);\n\n // loading = (TextView) findViewById(R.id.lo);\n layLoading = (LinearLayout) findViewById(R.id.lay_loading);\n\n final Connectivity Check = new Connectivity();\n if (Check.isConnected(G.context)) {\n\n conected();\n layLoading.setVisibility(View.VISIBLE);\n layMain.setVisibility(View.GONE);\n\n reciveNewProduct(id);\n\n LayDescripH.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n if (LayDescrip.getVisibility() == View.GONE) {\n ImgDescrip.setImageResource(R.drawable.up_arrow);\n LayDescrip.setVisibility(View.VISIBLE);\n } else {\n ImgDescrip.setImageResource(R.drawable.down_arrow);\n LayDescrip.setVisibility(View.GONE);\n }\n\n }\n });\n\n LayTopicH.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n if (LayTopic.getVisibility() == View.GONE) {\n ImgTopic.setImageResource(R.drawable.up_arrow);\n LayTopic.setVisibility(View.VISIBLE);\n } else {\n ImgTopic.setImageResource(R.drawable.down_arrow);\n LayTopic.setVisibility(View.GONE);\n }\n\n }\n });\n\n LayAnotherH.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n Log.i(\"DATA\", \"\" + DataAnotherProduct.size());\n //LayAnother.setVisibility(View.VISIBLE);\n layLoadingAnotherProduct.setVisibility(View.VISIBLE);\n if (DataAnotherProduct.size() == 0) {\n\n Log.i(\"DATA\", \"\" + DataProduct.get(0).nameTeacher);\n //DataAnotherProduct.clear();\n reciveAnotherProduct(\"byTeacher\", DataProduct.get(0).nameTeacher);\n } else {\n showAnotherProduct();\n }\n\n if (LayAnother.getVisibility() == View.GONE) {\n\n ImgAnother.setImageResource(R.drawable.up_arrow);\n LayAnother.setVisibility(View.VISIBLE);\n } else {\n\n ImgAnother.setImageResource(R.drawable.down_arrow);\n LayAnother.setVisibility(View.GONE);\n }\n\n }\n });\n\n btnRezomeh.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n final Dialog dialog2 = new Dialog(G.currentActivity);\n dialog2.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog2.setContentView(R.layout.dialog_short_rezomeh);\n ImageLoader imageLoader2 = G.getInstance().getImageLoader();\n NetworkImageView thumbPicPro = (NetworkImageView) dialog2.findViewById(R.id.img_short_rezumeh);\n imageLoader2.get(WebServiceUrl.getPictureTeacher + DataProduct.get(0).picTeache, ImageLoader.getImageListener(thumbPicPro, R.drawable.loading, R.drawable.no_teacher_pic));\n thumbPicPro.setImageUrl(WebServiceUrl.getProductPicture + DataProduct.get(0).picTeache, imageLoader2);\n\n nameTeacherRezumeh = (TextView) dialog2.findViewById(R.id.txt_teacher_name_rezumeh);\n nameHeaderTeacherRezumeh = (TextView) dialog2.findViewById(R.id.txt_header_teacher_name);\n nameRezumeh1 = (TextView) dialog2.findViewById(R.id.txt_rezuneh1);\n nameRezumeh2 = (TextView) dialog2.findViewById(R.id.txt_rezuneh2);\n nameRezumeh3 = (TextView) dialog2.findViewById(R.id.txt_rezuneh3);\n\n reciveShortRezumeh(DataProduct.get(0).nameTeacher);\n\n dialog2.setCancelable(true);\n dialog2.show();\n\n }\n });\n\n btnMoreDescrip.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n final Dialog dialog2 = new Dialog(G.currentActivity);\n dialog2.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog2.setContentView(R.layout.dialog_more_topic);\n\n TextView txtHeader = (TextView) dialog2.findViewById(R.id.txt_dialog_header);\n TextView txtText = (TextView) dialog2.findViewById(R.id.txt_text_dialog);\n TextView txtOk = (TextView) dialog2.findViewById(R.id.txt_ok_dialog);\n\n txtHeader.setText(\" سرفصل \");\n txtText.setText(DataProduct.get(0).descrip);\n\n txtOk.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n dialog2.hide();\n }\n });\n\n dialog2.setCancelable(true);\n dialog2.show();\n\n }\n });\n\n imgShaering.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n String shareBody = \"نام محصول : \" + DataProduct.get(0).name + \"\\n\" + \" مدرس\" + DataProduct.get(0).nameTeacher + \" \\n\" + \"قیمت : \" + DataProduct.get(0).price + \"\\n آدرس فروشگاه : \\n رایکا\" + \"\\n\" + \"http://www.http://rayka-co.ir\";\n sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Subject Here\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n G.currentActivity.startActivity(Intent.createChooser(sharingIntent, \"ارسال برای دیگران\"));\n\n }\n });\n\n layAddProduct.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n BasketProductDB bp = new BasketProductDB();\n bp.setId(DataProduct.get(0).id);\n int count = bp.selectId();\n if (bp.selectId() == 0) {\n\n Toast.makeText(G.context, \"محصول به سبد اضافه شد\", Toast.LENGTH_LONG).show();\n bp.setText(DataProduct.get(0).name);\n bp.setPrice(DataProduct.get(0).price);\n bp.setTeacherName(DataProduct.get(0).nameTeacher);\n bp.setCount((bp.selectId() + 1));\n bp.insertProduct();\n\n addProduct();\n\n } else {\n\n Toast.makeText(G.context, \"این محصول قبلا در سبد شما قرار دارد \", Toast.LENGTH_LONG).show();\n // bp.setCount((bp.selectId() + 1));\n // bp.updateProduct();\n\n // addProduct();\n }\n\n }\n });\n\n imgPlay.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n Intent intentm = new Intent(G.currentActivity, ShowVideo.class);\n // intentm.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | IntentCompat.FLAG_ACTIVITY_CLEAR_TASK);\n intentm.putExtra(\"URL\", UrlFilm);\n G.currentActivity.startActivity(intentm);\n // setVideo();\n\n }\n });\n\n } else {\n disconected();\n\n }\n LayWifi.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n //Toast.makeText(G.context, \"text\", Toast.LENGTH_SHORT).show();\n Check.goToSettingWiFiNet();\n }\n });\n LayMobile.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n Check.goToSettingMobileNet();\n }\n });\n\n }", "@Override public void onItemClick(View view, int position) {\n Details d = productList.get(position);\n Intent intent = new Intent(Dec_Col.this, Col_Description.class);\n intent.putExtra(\"Title\", d.getTitle());\n intent.putExtra(\"Desc\", d.getDesc());\n intent.putExtra(\"Long_desc\", d.getLong_desc());\n intent.putExtra(\"date\",d.getDate());\n intent.putExtra(\"img\", d.getImage());\n startActivity(intent);\n\n }", "public void addProduct(ArticleInq artInq) {\n\t\tif (artInq != null) {\n\t\t\tdt.setVisibility(View.INVISIBLE);\n\t\t\tPriceInquiery priceInquiery = artInq.getPriceInquiery();\n\t\t\ttry {\n\n\t\t\t\tif (ArticleInq.IsProductFound) {\n\n\t\t\t\t\tpt.setText(CommonTask.toCamelCase(priceInquiery.text, \" \"));\n\t\t\t\t\tif (priceInquiery.text2 != null) {\n\t\t\t\t\t\tpt2.setText(priceInquiery.text2);\n\t\t\t\t\t}\n\t\t\t\t\tString[] vals = String.valueOf(priceInquiery.price)\n\t\t\t\t\t\t\t.replace('.', ':').split(\":\");\n\t\t\t\t\ttr.setText(vals[0]);\n\t\t\t\t\ttf.setText(vals[1].length() > 1 ? vals[1] : vals[1] + \"0\");\n\t\t\t\t\tft.setText(String.valueOf(priceInquiery.contents)\n\t\t\t\t\t\t\t+ priceInquiery.contentsdesc + \" (\"\n\t\t\t\t\t\t\t+ priceInquiery.priceperdesc + \"-pris\" + \" \"\n\t\t\t\t\t\t\t+ CommonTask.getString(priceInquiery.priceper)\n\t\t\t\t\t\t\t+ \")\");\n\t\t\t\t\tif (priceInquiery.getDiscount().quantity > 0) {\n\t\t\t\t\t\tDiscount dis = priceInquiery.getDiscount();\n\t\t\t\t\t\tdt.setText(String.valueOf(dis.quantity) + \" \"\n\t\t\t\t\t\t\t\t+ dis.text + \" \" + Math.round(dis.amount));\n\t\t\t\t\t\tdt.setVisibility(View.VISIBLE);\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tpt.setText(getString(R.string.productError));\n\t\t\t\t\tpt2.setText(\"\");\n\t\t\t\t\ttr.setText(\"\");\n\t\t\t\t\ttf.setText(\"\");\n\t\t\t\t\tft.setText(\"\");\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tpt.setText(getString(R.string.productError));\n\t\t\t\tpt2.setText(\"\");\n\t\t\t\ttr.setText(\"\");\n\t\t\t\ttf.setText(\"\");\n\t\t\t\tft.setText(\"\");\n\t\t\t}\n\n\t\t\tproductDetailsLayOut.setVisibility(View.VISIBLE);\n\t\t\tproductDetailsLayOut.startAnimation(animTop);\n\t\t\t\n\t\t\tmHandler.postDelayed(mWaitRunnable, PRODUCT_DETAILS_DELAY_MS);\n\t\t\tai.setBackgroundDrawable(null);\n\t\t\tif (ArticleInq.IsProductFound) {\n\t\t\t\tBitmapDrawable image = getArticleImage(artInq.EAN);\n\t\t\t\tif (image != null) {\n\t\t\t\t\tai.setBackgroundDrawable(image);\n\t\t\t\t} else {\n\t\t\t\t\tCommonTask.setAsyncImageBackground(ai, artInq.EAN);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void bindView(View view,final Context context, Cursor cursor) {\n // Find individual views that we want to modify in the list item layout\n TextView nameTextView = (TextView) view.findViewById(R.id.name);\n TextView textpriceTextView = (TextView) view.findViewById(R.id.text_price);\n TextView quantityTextView = (TextView) view.findViewById(R.id.quantity);\n TextView priceTextView = (TextView) view.findViewById(R.id.price);\n ImageButton buttonSale = (ImageButton) view.findViewById(R.id.buy);\n\n // Find the columns of product attributes that we're interested in\n final int productId = cursor.getInt(cursor.getColumnIndex(ProductContract.ProductEntry._ID));\n int nameColumnIndex = cursor.getColumnIndex(ProductEntry.COLUMN_PRODUCT_NAME);\n int quantityColumnIndex = cursor.getColumnIndex(ProductEntry.COLUMN_PRODUCT_QUANTITY);\n int priceColumnIndex = cursor.getColumnIndex(ProductEntry.COLUMN_PRODUCT_PRICE);\n\n // Read the product attributes from the Cursor for the current product\n String productName = cursor.getString(nameColumnIndex);\n final int productQuantity = cursor.getInt(quantityColumnIndex);\n Double productPrice = cursor.getDouble(priceColumnIndex);\n\n // Update the TextViews with the attributes for the current product\n nameTextView.setText(productName);\n textpriceTextView.setText(R.string.list_price);\n //summaryTextView.setText(productQuantity);\n quantityTextView.setText(Integer.toString(productQuantity));\n priceTextView.setText(Double.toString(productPrice));\n\n // Bind buy event to list item button so quantity is reduced with each sale\n buttonSale.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Uri productUri = ContentUris.withAppendedId(ProductContract.ProductEntry.CONTENT_URI, productId);\n reduceQuantity(context, productUri, productQuantity);\n }\n });\n }", "@Override\n public void bindView(View view, final Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView nameTextView = (TextView) view.findViewById(R.id.name);\n ImageView imageView = (ImageView) view.findViewById(R.id.product_image);\n TextView priceTextView = (TextView) view.findViewById(R.id.price);\n final TextView quantityTextView = (TextView) view.findViewById(R.id.quantity);\n final Button saleButton = (Button) view.findViewById(R.id.sale_button);\n\n // Find the columns of product attributes that we're interested in\n int nameColumnIndex = cursor.getColumnIndex(InventoryEntry.COLUMN_PRODUCT_NAME);\n int imageColumnIndex = cursor.getColumnIndex(InventoryEntry.COLUMN_IMAGE);\n int priceColumnIndex = cursor.getColumnIndex(InventoryEntry.COLUMN_PRICE);\n int quantityColumnIndex = cursor.getColumnIndex(InventoryEntry.COLUMN_QUANTITY);\n\n // Extract properties from cursor\n String productName = cursor.getString(cursor.getColumnIndex(InventoryEntry.COLUMN_PRODUCT_NAME));\n byte[] byteImage = cursor.getBlob(cursor.getColumnIndex(InventoryEntry.COLUMN_IMAGE));\n int price = cursor.getInt(cursor.getColumnIndex(InventoryEntry.COLUMN_PRICE));\n String dollarPrice = \"$\" + price;\n final int quantity = cursor.getInt(cursor.getColumnIndex(InventoryEntry.COLUMN_QUANTITY));\n String sQuantity = \"Quantity: \" + quantity;\n\n // Populate fields with extracted properties\n nameTextView.setText(productName);\n\n Bitmap image = getImage(byteImage);\n imageView.setImageBitmap(image);\n\n priceTextView.setText(dollarPrice);\n quantityTextView.setText(sQuantity);\n saleButton.setText(R.string.button_text);\n saleButton.setTag(cursor.getPosition());\n\n saleButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n int qty = quantity;\n int position = (int) saleButton.getTag();\n Log.v(\"InventoryCursorAdapter\",\"I clicked on sale button at position = \" + position);\n\n if (qty > 0) {\n qty = qty - 1;\n Uri currentProductUri = ContentUris.withAppendedId (InventoryEntry.CONTENT_URI,position + 1);\n ContentValues values = new ContentValues();\n values.put(InventoryEntry.COLUMN_QUANTITY, qty);\n\n int rowsAffected = context.getContentResolver().update(currentProductUri, values, null, null);\n if (rowsAffected == 0) {\n // If the new content URI is null, then there was an error with insertion.\n Log.v(\"InventoryCursorAdapter\",\"failed \" + currentProductUri);\n }\n else {\n // Otherwise, the insertion was successful.\n Log.v(\"InventoryCursorAdapter\",\"successful \" + currentProductUri);\n }\n }\n else\n {\n Toast.makeText(context,\"No more items to sell\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_product, container, false);\n\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(subcatname);\n\n\n Constants.pref = getActivity().getSharedPreferences(\"GRS\",Context.MODE_PRIVATE);\n Constants.editor = Constants.pref.edit();\n\n productList.clear();\n\n /*totalrate = getArguments().getString(\"rate\");*/\n\n String cusid = Constants.pref.getString(\"mobileno\", \"\");\n new fetchCartCount(getActivity(), cusid).execute();\n numItemCount = Constants.pref.getInt(\"count\", 0);\n setBadge();\n\n String catid = Constants.categoryid;\n String subcatid = Constants.subcategoryid;\n\n imageView = view.findViewById(R.id.no_product);\n imageView.setVisibility(View.GONE);\n\n new fetchProduct(getActivity(), catid, subcatid).execute();\n\n recyclerView = view.findViewById(R.id.rv_product);\n mLayoutManager = new LinearLayoutManager(getActivity());\n recyclerView.setLayoutManager(mLayoutManager);\n\n return view;\n }", "@Override\n public void imageLoad(ImageView imageView, Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n //item.picture = bitmap;\n }", "public void bindItem(ItemList1_Structure item) {\n\n /*Bitmap icon = BitmapFactory.decodeResource(Resources.getSystem(), item.getImage());\n\n iv_image.setImageBitmap(icon);*/\n\n iv_image.setImageResource(item.getImage());\n\n tv_title.setText(item.getTitle());\n tv_subtitle.setText(item.getSubtitle());\n\n\n //LIBRERIA PICASSO\n //CON IMAGENES DEMASIADO GRANDES LANZA UN ERROR EN LA CLASE ROUNDEDIMAGEVIEW...algun conflicto al convertir a bitmap\n Picasso.with(context)\n .load(\"http://whosbehindmask.weebly.com/uploads/2/8/3/6/28365549/5831103_orig.jpg\") //http://viralandscdn.net/posts/13668/image-sg3SqUON.jpg\n .into(iv_image2);\n\n //MUESTRA UN INDICADOR EN LA ESQUINA SUPERIOR IZQUIERDA CON COLOR INDICANDO DE DONDE PROVIENE LA IMAGEN:\n // ROJO = NETWORK, AZUL = DISK, VERDE = MEMORY\n Picasso.with(context).setIndicatorsEnabled(true);\n\n /*** //EJEMPLO LIBRERIA PICASSO, LEER IMAGEN DE INTERNET, LEER DEL HOLDER, ASIGNAR IMAGEN DE ERROR, REDIMENSIONAR IMAGEN Y ROTAR IMAGEN\n Picasso.with(this)\n .load(\"YOUR IMAGE URL HERE\")\n .placeholder(R.drawable.ic_placeholder) // optional\n .error(R.drawable.ic_error_fallback) // optional\n .resize(250, 200) // optional\n .rotate(90) // optional\n .into(imageView);\n *///\n }", "public void tredningProductData()\n {\n trendingProductsArrayList.add ( new TrendingProducts ( R.drawable.imgb,\"Sofa Boleria\\n₹ 850/Month\"));\n trendingProductsArrayList.add ( new TrendingProducts ( R.drawable.imgc,\"Dining Table\\n₹ 850/Month\"));\n trendingProductsArrayList.add ( new TrendingProducts ( R.drawable.imga,\"Faberic sofa\\n₹ 850/Month\"));\n trendingrecyclerView.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, true));\n trendingProductsAdapter = new TrendingProductsAdapter( trendingProductsArrayList,getActivity ());\n trendingrecyclerView.setAdapter(trendingProductsAdapter);\n trendingrecyclerView.scrollToPosition(0);\n trendingrecyclerView.scrollTo(0, 0);\n\n categoryData();\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString typeString2;// 物品类别\n\t\t\t\tString typenameString2;\n\t\t\t\tif (type1.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"请选择物品类别!\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (type3.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"请选择物品品牌!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (type2.equals(\"\")) {// 物品品牌\n\t\t\t\t\ttypeString2 = type1;\n\t\t\t\t\ttypenameString2 = type_name1;\n\t\t\t\t} else {\n\t\t\t\t\ttypeString2 = type2;\n\t\t\t\t\ttypenameString2 = type_name2;\n\t\t\t\t}\n\t\t\t\tString modelmString = \"\";// 物品型号\n\t\t\t\tString model = article_model.getText().toString();\n\t\t\t\tif(null==models||null==model){\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t.showToastcenter(\"数据出现异常,请重新选择物品名称\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (models.equals(\"\") && model.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"请填写物品型号!\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (!models.equals(\"\")) {\n\t\t\t\t\tmodelmString = models;\n\t\t\t\t} else if (!model.equals(\"\")) {\n\t\t\t\t\tmodelmString = model;\n\t\t\t\t}\n\t\t\t\tString need_num = article_need_num.getText().toString();\n\t\t\t\tString prod_unit = article_prod_unit.getText().toString();\n\t\t\t\tString unit_price = article_unit_price.getText().toString();\n\t\t\t\tif (need_num.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"物品数量不能为空!\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (prod_unit.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"物品单位不能为空!\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (unit_price.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"物品单价不能为空!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tString url = article_url.getText().toString();\n\t\t\t\tString remark = article_remark.getText().toString();\n\n\t\t\t\tRequisition_Swipe_Entity mlist = new Requisition_Swipe_Entity(\n\t\t\t\t\t\ttype0, type_name, typeString2, typenameString2, type3,\n\t\t\t\t\t\ttype_name3, modelmString, need_num, prod_unit,\n\t\t\t\t\t\tunit_price, url, remark, index1, index2, index22, index3, index4);\n\t\t\t\t\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tBundle bl = new Bundle();\n\t\t\t\tbl.putSerializable(\"mlist\", (Serializable) mlist);\n\t\t\t\tintent.putExtras(bl);\n\t\t\t\tif(tag){\n\t\t\t\t\tintent.putExtra(\"position\",getIntent().getExtras().getInt(\"position\"));\n\t\t\t\t}\n\t\t\t\tAddNewArticleActivity.this.setResult(1, intent);\n\t\t\t\tAddNewArticleActivity.this.finish();\n\t\t\t}", "private void showImageDetail() {\n }", "@Override\n public void onBindViewHolder(CategoryBookRecyclerAdapter.ViewHolder holder, final int arg1) {\n\n holder.productDetails.setText(dataSet.get(arg1).getName());\n final String prodDe = dataSet.get(arg1).getId();\n String rsPriceSymbol = context.getResources().getString(R.string.price);\n holder.price.setText( rsPriceSymbol + \" \" +String.valueOf(dataSet.get(arg1).getPrice()) );\n holder.price.setPaintFlags( holder.price.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);\n String rsSPSymbol = context.getResources().getString(R.string.sp);\n holder.sp.setText(rsSPSymbol + \" \" +String.valueOf(dataSet.get(arg1).getSp()) );\n holder.productImage.setImageBitmap(dataSet.get(arg1).getImage());\n\n //holder.productImage.setOnClickListener(new ProductImageListener(prodDe));\n //Bitmap bmp = BitmapFactory.decodeResource(context.getResources(), R.drawable.ibpsfour);\n //holder.customImage.setImageBitmap(bmp);\n //holder.customImage.setOnClickListener(new View.OnClickListener() {\n\n /* @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n Toast.makeText(context, \"Book details to be opened in new intent...\", Toast.LENGTH_SHORT).show();\n }\n });*/\n\n /*holder.addToCart.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n MainApplication mainApplication = MainApplication.getInstance();\n mainApplication.addToCart(new Product(prodDe));\n if (getActivity() instanceof MainActivity){\n ((MainActivity)getActivity()).updateCartCounter(1);\n }\n //Toast.makeText(context, \"Total Number of Products in Cart is \" + mainApplication.getCart().getProductCount(), Toast.LENGTH_SHORT).show();\n }\n });*/\n\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n OrderDataModel dataModel = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n ViewHolder viewHolder; // view lookup cache stored in tag\n Integer totalCost = 0;\n final View result;\n\n if (convertView == null) {\n\n viewHolder = new ViewHolder();\n LayoutInflater inflater = LayoutInflater.from(getContext());\n convertView = inflater.inflate(R.layout.order_list_item, parent, false);\n viewHolder.itemName = (TextView) convertView.findViewById(R.id.itemNameTv);\n viewHolder.itemPrice = (TextView) convertView.findViewById(R.id.itemPriceTv);\n viewHolder.totalPrice = (TextView) convertView.findViewById(R.id.totalPriceTv);\n viewHolder.totalItems = (EditText) convertView.findViewById(R.id.itemTotalEt);\n\n\n viewHolder.itemImage = (ImageView) convertView.findViewById(R.id.itemImageIv);\n\n\n\n\n viewHolder.addBtn = (Button) convertView.findViewById(R.id.addOneBtn) ;\n viewHolder.subBtn = (Button) convertView.findViewById(R.id.subOneBtn) ;\n result=convertView;\n convertView.setTag(viewHolder);\n } else {\n viewHolder = (ViewHolder) convertView.getTag();\n result=convertView;\n }\n\n Animation animation = AnimationUtils.loadAnimation(mContext, (position > lastPosition) ? R.anim.fragment_fade_enter : R.anim.fragment_open_enter);\n result.startAnimation(animation);\n\n lastPosition = position;\n\n viewHolder.itemName.setText(dataModel.getItemName());\n viewHolder.totalItems.setText(dataModel.getTotalItem().toString());\n viewHolder.itemPrice.setText(dataModel.getItemPrice().toString());\n viewHolder.totalPrice.setText(dataModel.getTotalPrice().toString());\n // download images\n Log.d(\"itemname\",dataModel.getItemName());\n StorageReference refImg = REF_ITEM_IMAGES_SMALL.child(dataModel.getItemName()+\".png\");\n try {\n File localFile = File.createTempFile(dataModel.getItemName(),\"png\");\n refImg.getFile(localFile).addOnSuccessListener(new OnSuccessListener<FileDownloadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n //pd.dismiss();\n //Toast.makeText(newOrder.this, \"Image download success\", Toast.LENGTH_LONG).show();\n String filePath = localFile.getPath();\n Bitmap bitmap = BitmapFactory.decodeFile(filePath);\n viewHolder.itemImage.setImageBitmap(bitmap);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n // pd.dismiss();\n //Toast.makeText(Storing.this, \"Image download failed\", Toast.LENGTH_LONG).show();\n }\n });\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n viewHolder.itemName.setOnClickListener(this);\n viewHolder.addBtn.setOnClickListener(this);\n viewHolder.addBtn.setTag(position);\n viewHolder.subBtn.setOnClickListener(this);\n viewHolder.subBtn.setTag(position);\n viewHolder.itemName.setTag(position);\n // Return the completed view to render on screen\n return convertView;\n }", "@Override\r\n\tint setLayout() {\n\t\treturn R.layout.product_bigimg;\r\n\t}", "public void onItemImageClick(View view) {\r\n RecommendListAdapter listAdapter = new RecommendListAdapter(this,\r\n R.layout.search_row, itemList);\r\n \tString mediumURL = this.itemInfo.getMediumImageUrl();\r\n final String largeURL = mediumURL.replace(\"ex=128x128\", \"ex=300x300\");\r\n listAdapter.wrapZoomimage(view, largeURL);\r\n // sub_item_info = item_info;\r\n // getItemDetail(item_info.getItemCode(),item_info.getShopId(),item_info.getShopName());\r\n }", "protected ImageView getImageView(){\n\t\treturn iv1;\n\t}", "public ViewHolder(View view) {\r\n super(view);\r\n img = (ImageView) view.findViewById(R.id.recycleimg);\r\n// picture_text = (TextView) view.findViewById(R.id.picture_text);\r\n// picture_img = (TextView) view.findViewById(R.id.picture_img);\r\n// picture_heart = (TextView) view.findViewById(R.id.picture_heart);\r\n// picture_date = (TextView) view.findViewById(R.id.picture_date);\r\n// picture_num = (TextView) view.findViewById(R.id.picture_num);\r\n }", "@Override\n protected void populateViewHolder(CartListHolder viewHolder, CartListGetData model, final int position) {\n itemid.add(model.getItemid());\n itemname.add(model.getItemname());\n itemprice.add(model.getItemprice());\n itmeimage.add(model.getImageid());\n viewHolder.setTitleName(model.getItemname());\n viewHolder.setPrice(model.getItemprice());\n //viewHolder.setPrice(model.getPrice());\n viewHolder.setImage(getApplicationContext(), model.getImageid());\n total = total + Float.parseFloat(model.getItemprice());\n tax = (total/100)*10;\n taxtext.setText(tax+\"\");\n pricetext.setText(total+\"\");\n totalcarttext.setText(String.valueOf(tax+total));\n System.out.println(\"count : \"+count++);\n }", "private void getProductDetails() {\n\n category.child(catId).child(\"Product\").orderByChild(\"productId\").equalTo(id).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()){\n for (DataSnapshot data: dataSnapshot.getChildren()){\n String image = data.child(\"productImage\").getValue().toString();\n String name = data.child(\"productName\").getValue().toString();\n String currentPrice = data.child(\"productDiscountPrice\").getValue().toString();\n String regularPrice = data.child(\"productRegularPrice\").getValue().toString();\n String discount = data.child(\"productDiscount\").getValue().toString();\n binding.discount.setText(discount+\"%\");\n binding.regularPrice.setText(regularPrice +\" Tk\");\n\n binding.currentPrice.setText(currentPrice +\" Tk\");\n\n\n binding.productName.setText(name);\n\n if(image!=null && !image.isEmpty()){\n Picasso.get()\n .load(image)\n .placeholder(R.drawable.jewellery)\n .fit()\n .centerCrop()\n .into(binding.productImageDetails);\n\n\n }else {\n binding.productImageDetails.setImageDrawable(ContextCompat.getDrawable(DetailsActivity.this,R.drawable.jewellery));\n }\n if(image!=null && !image.isEmpty()){\n Picasso.get()\n .load(image)\n .placeholder(R.drawable.jewellery)\n .fit()\n .centerCrop()\n .into(binding.productPicture);\n\n\n }else {\n binding.productImageDetails.setImageDrawable(ContextCompat.getDrawable(DetailsActivity.this,R.drawable.jewellery));\n }\n\n\n }\n\n\n\n }\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n }", "public void a() {\n this.f25458d.a(this.f25457c);\n this.f25457c.a(this);\n Context context = getContext();\n LinearLayout linearLayout = new LinearLayout(context);\n linearLayout.setOrientation(1);\n addView(linearLayout, new ViewGroup.LayoutParams(-1, -2));\n d a2 = ShopAssistantItemView_.a(context);\n a2.a(R.drawable.ic_myproducts, R.string.sp_my_products, 0);\n a2.setTag(\"PRODUCT\");\n a2.setMinimumHeight(this.f25455a);\n linearLayout.addView(a2, new FrameLayout.LayoutParams(-1, -2));\n d a3 = ShopAssistantItemView_.a(context);\n a3.a(R.drawable.ic_mycustomers, R.string.sp_my_customers, 2);\n linearLayout.addView(a3, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a4 = ShopAssistantItemView_.a(context);\n a4.a(R.drawable.ic_shopprofile, R.string.sp_label_shop_profile, 6);\n linearLayout.addView(a4, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a5 = ShopAssistantItemView_.a(context);\n a5.a(R.drawable.img_shopsettings, R.string.sp_shop_settings, 4);\n linearLayout.addView(a5, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a6 = ShopAssistantItemView_.a(context);\n a6.a(R.drawable.ic_categories, R.string.sp_my_shop_categories, 8);\n a6.setSubtitle(this.f25461g.getCategoriesPath());\n linearLayout.addView(a6, new FrameLayout.LayoutParams(-1, this.f25455a));\n View view = new View(context);\n view.setBackgroundColor(b.a(R.color.background));\n linearLayout.addView(view, new FrameLayout.LayoutParams(-1, b.a.k));\n View view2 = new View(context);\n view2.setBackgroundColor(com.garena.android.appkit.tools.b.a(R.color.black06));\n linearLayout.addView(view2, new FrameLayout.LayoutParams(-1, b.a.f7690a));\n View inflate = ((LayoutInflater) context.getSystemService(\"layout_inflater\")).inflate(R.layout.seller_center, (ViewGroup) null);\n ((TextView) inflate.findViewById(R.id.url)).setText(\"http://seller\" + i.f7042e);\n int b2 = com.garena.android.appkit.tools.b.b() - b.a.m;\n w.a(getContext()).a((int) R.drawable.sellercentre_banner).b(b2, (int) (((float) b2) / 1.886f)).e().f().a((ImageView) inflate.findViewById(R.id.banner));\n FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);\n inflate.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.this.f25459e.V();\n }\n });\n linearLayout.addView(inflate, layoutParams);\n this.f25457c.e();\n this.f25457c.f();\n }", "@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)\n @Override\n public void onBindViewHolder(final RecycleAdapter_AddProduct.MyViewHolder holder, final int position) {\n\n holder.title.setText(categories.getProductsArrayList().get(position).getNama_barang());\n holder.price.setText(categories.getProductsArrayList().get(position).getHarga());\n //holder.quantityTxt.setText(categories.getProductsArrayList().get(position).getQuantity() + \"\");\n holder.textViewtoko.setText(categories.getProductsArrayList().get(position).getNama());\n Glide.with(getContext()).load(\"http://192.168.43.153/e_comm_covid/assets/img/\"+categories.getProductsArrayList().get(position).getGambar()).into(holder.image);\n\n /*holder.title.setText(categories.getProductsArrayList().get(position).getName());\n holder.price.setText(categories.getProductsArrayList().get(position).getPrice());\n holder.quantityTxt.setText(categories.getProductsArrayList().get(position).getQuantity() + \"\");\n Glide.with(getContext()).load(\"http://192.168.43.153/e_comm_covid/assets/img/\"+categories.getProductsArrayList().get(position).getImage()).into(holder.image);\n\n //holder.image.setImageDrawable(getResources().getDrawable(categories.getProductsArrayList().get(position).getImage()));\n\n holder.quantity = categories.getProductsArrayList().get(position).getQuantity();\n int totalPrice = holder.quantity * Integer.parseInt(categories.getProductsArrayList().get(position).getPrice());\n\n\n if (position == recentPos) {\n Log.e(\"pos\", \"\" + recentPos);\n // start animation\n holder.quantityTxt.startAnimation(startAnimation);\n } else {\n holder.quantityTxt.clearAnimation();\n\n }\n\n if (categories.getProductsArrayList().get(position).getQuantity() > 0) {\n holder.quantityTxt.setVisibility(View.VISIBLE);\n holder.llMinus.setVisibility(View.VISIBLE);\n } else {\n holder.quantityTxt.setVisibility(View.GONE);\n holder.llMinus.setVisibility(View.GONE);\n }\n\n\n categories.getProductsArrayList().get(position).setPriceAsPerQuantity(\"\" + totalPrice);\n\n\n holder.llPlus.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n if (holder.quantity < 10) {\n\n recentPos = position;\n holder.quantity = holder.quantity + 1;\n categories.getProductsArrayList().get(position).setQuantity(holder.quantity);\n categories.getProductsArrayList().get(position).setPriceAsPerQuantity(\"\" + holder.quantity * Integer.parseInt(categories.getProductsArrayList().get(position).getPrice()));\n\n holder.quantityTxt.setText(\"\" + holder.quantity);\n }\n notifyDataSetChanged();\n\n }\n });\n\n\n holder.llMinus.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n if (holder.quantity > 0 && holder.quantity <= 10) {\n\n recentPos = position;\n\n holder.quantity = holder.quantity - 1;\n categories.getProductsArrayList().get(position).setQuantity(holder.quantity);\n categories.getProductsArrayList().get(position).setPriceAsPerQuantity(\"\" + holder.quantity * Integer.parseInt(categories.getProductsArrayList().get(position).getPrice()));\n\n holder.quantityTxt.setText(\"\" + holder.quantity);\n\n\n }\n\n notifyDataSetChanged();\n\n }\n });*/\n holder.clik_add.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getContext(), Detail_product.class);\n intent.putExtra(\"id_barang\",categories.getProductsArrayList().get(position).getId_barang());\n intent.putExtra(\"nama_barang\",categories.getProductsArrayList().get(position).getNama_barang());\n intent.putExtra(\"gambar\",categories.getProductsArrayList().get(position).getGambar());\n intent.putExtra(\"harga\",categories.getProductsArrayList().get(position).getHarga());\n intent.putExtra(\"stok\",categories.getProductsArrayList().get(position).getStok());\n intent.putExtra(\"toko\",categories.getProductsArrayList().get(position).getNama());\n startActivity(intent);\n }\n });\n holder.btn_beli.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getContext(), Proses_checout.class);\n intent.putExtra(\"id_barang\",categories.getProductsArrayList().get(position).getId_barang());\n intent.putExtra(\"nama_barang\",categories.getProductsArrayList().get(position).getNama_barang());\n intent.putExtra(\"gambar\",categories.getProductsArrayList().get(position).getGambar());\n intent.putExtra(\"harga\",categories.getProductsArrayList().get(position).getHarga());\n intent.putExtra(\"stok\",categories.getProductsArrayList().get(position).getStok());\n intent.putExtra(\"toko\",categories.getProductsArrayList().get(position).getNama());\n startActivity(intent);\n\n }\n });\n\n }", "public View getView(int position, View convertView, ViewGroup parent) {\n\n Orderss data = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n\n Holder viewHolder; // view lookup cache stored in tag\n\n if (convertView == null) {\n\n\n viewHolder = new Holder();\n LayoutInflater layoutInflater = LayoutInflater.from(getContext());\n\n convertView = layoutInflater.inflate(R.layout.layoutorderss, parent, false);\n\n viewHolder.nameFV = (TextView) convertView.findViewById(R.id.txtnameorederss);\n viewHolder.priceFV = (TextView) convertView.findViewById(R.id.txtpriceorderss);\n viewHolder.qtyFV = (TextView) convertView.findViewById(R.id.txtqtyorderss);\n viewHolder.totalFV = (TextView) convertView.findViewById(R.id.txttotalorderss);\n\n viewHolder.pic = (ImageView) convertView.findViewById(R.id.imgorderss);\n\n\n convertView.setTag(viewHolder);\n\n } else {\n viewHolder = (Holder) convertView.getTag();\n }\n\n\n\n PicassoClient.downloadImage(context,mcontact.get(position).getoLogo(),viewHolder.pic);\n\n viewHolder.nameFV.setText(data.getoI_Name());\n viewHolder.priceFV.setText(\"Price : \"+data.getoPrice()+\" L.E \");\n viewHolder.qtyFV.setText(\"Quantity : \"+data.getoQuantity());\n viewHolder.totalFV.setText(\"Total : \"+data.getoTotal()+\" L.E \");\n\n\n // Return the completed view to render on screen\n return convertView;\n }", "@BindingAdapter({ \"productimageurl\" })\n public static void loadImage(ImageView imageView, String imageURL) {\n Glide.with(imageView.getContext())\n .load(imageURL)\n .placeholder(R.drawable.bisleri_bottle_img)\n .into(imageView);\n }", "@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n if (holder instanceof OriginalViewHolder) {\n OriginalViewHolder view = (OriginalViewHolder) holder;\n\n Product p = items.get(position);\n view.name.setText(p.getName());\n view.description.setText(Tools.currency(\"Rp\",p.getPrice()));\n view.stock.setText(\"Stock :\"+p.getStock());\n view.delete.setOnClickListener(del->{\n if (onItemRemove != null) {\n onItemRemove.onItemRemove(del, items.get(position), position);\n }\n });\n view.edit.setOnClickListener(edit->{\n Intent i = new Intent(ctx,EditProduct.class);\n i.putExtra(\"product_id\",p.getId());\n i.putExtra(\"name\",p.getName());\n i.putExtra(\"stock\",p.getStock());\n i.putExtra(\"price\",p.getPrice());\n ctx.startActivity(i);\n });\n Tools.displayImageOriginal(ctx, view.image, p.getImage());\n view.lyt_parent.setOnClickListener(view1 -> {\n if (mOnItemClickListener != null) {\n mOnItemClickListener.onItemClick(view1, items.get(position), position);\n }\n });\n }\n }", "@Override\n public void onBindViewHolder(ProductViewHolder holder, int position) {\n zikar product = zikarList.get(position);\n\n //binding the data with the viewholder views\n holder.textViewID1.setText((String.valueOf(product.getId())));\n holder.textViewTitle.setText(product.getZikarName());\n holder.textViewPrice.setText(String.valueOf(product.getCounter()));\n holder.textViewRemainingCount.setText(String.valueOf(product.getRemainingCounter()));\n\n\n\n }", "private void loadDetails() {\n TextView tvName = (TextView) findViewById(R.id.tvPropertyName);\n TextView tvAddress = (TextView) findViewById(R.id.tvFullAddress);\n TextView tvCategory = (TextView) findViewById(R.id.tvPropCategory);\n TextView tvSize = (TextView) findViewById(R.id.tvRoomSize);\n TextView tvPrice = (TextView) findViewById(R.id.tvPropPrice);\n\n tvName.setText(name);\n tvAddress.setText(address);\n tvCategory.setText(category);\n tvSize.setText(size + \"m2\");\n tvPrice.setText(\"R\" + price + \".00 pm\");\n getImage();\n }", "public CharSequence getItemImageUrl() {\n return item_image_url;\n }", "public void Car(String ownerName, Image itemImg, float itemPrice) \n\t{\n name = ownerName;\n img = itemImg;\n price = itemPrice;\n\t}", "void mo36480a(int i, int i2, ImageView imageView, Uri uri);", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.detailacheivements);\n\n achvImage = findViewById(R.id.detailimage1);\n achvDetails = findViewById(R.id.detailtextview1);\n achvTitle = findViewById(R.id.detailtitle);\n points = findViewById(R.id.pointtextview);\n des1 = findViewById(R.id.des1);\n\n setImage();\n }", "public taskimage(ImageView t134){\n t34=t134;\n\n\n }", "public String getImg(){\n return img;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n\n productModels = new ArrayList<>();\n //Electro\n ProductModel productModel1 = new ProductModel(\"LED 4K Ultra HD Smart TV\",\"https://home.ripley.cl/store/Attachment/WOP/D171/2000371667503/2000371667503_2.jpg\",279990,209990,\"electro\",\"2000371667503P\",\"11223950\");\n productModels.add(productModel1);\n ProductModel productModel2 = new ProductModel(\"Lavadora carga superior 15 kilos\",\"https://home.ripley.cl/store/Attachment/WOP/D136/2000351773811/2000351773811_2.jpg\",339990,229990,\"electro\",\"2000351773811P\",\"1190613\");\n productModels.add(productModel2);\n ProductModel productModel3 = new ProductModel(\"Robot aspirador\",\"https://home.ripley.cl/store/Attachment/WOP/D122/2000369109855/2000369109855_2.jpg\",399990,194990,\"electro\",\"2000369109855P\",\"9334029\");\n productModels.add(productModel3);\n ProductModel productModel4 = new ProductModel(\"Extractor de jugo\",\"https://home.ripley.cl/store/Attachment/WOP/D122/2000366737198/2000366737198_2.jpg\",199990,59990,\"electro\",\"2000366737198P\",\"5538059\");\n productModels.add(productModel4);\n ProductModel productModel5 = new ProductModel(\"Máquina de Coser\",\"https://home.ripley.cl/store/Attachment/WOP/D122/2000372411631/2000372411631_2.jpg\",249990,169990,\"electro\",\"2000372411631P\",\"11780619\");\n productModels.add(productModel5);\n\n //tecno\n ProductModel productModel6 = new ProductModel(\"Cámara réflex 18-55mm 18MP\",\"https://home.ripley.cl/store/Attachment/WOP/D126/2000359329935/2000359329935_2.jpg\",399990,379990,\"tecno\",\"2000359329935P\",\"2077501\");\n productModels.add(productModel6);\n ProductModel productModel7 = new ProductModel(\"Consola PS4 Bundle\",\"https://home.ripley.cl/store/Attachment/WOP/D172/2000375421729/2000375421729_2.jpg\",279990,229990,\"tecno\",\"2000375421729P\",\"13486166\");\n productModels.add(productModel7);\n ProductModel productModel8 = new ProductModel(\"ACER NITRO 5 AN515-42-R4KY\",\"https://home.ripley.cl/store/Attachment/WOP/D113/2000372107077/2000372107077_2.jpg\",599990,549990,\"tecno\",\"2000375421729P\",\"13486166\");\n productModels.add(productModel8);\n ProductModel productModel9 = new ProductModel(\"CAMARA GOPRO HERO7 BLACK\",\"https://home.ripley.cl/store/Attachment/WOP/D126/2000371958953/2000371958953_2.jpg\",349990,249990,\"tecno\",\"2000371958953P\",\"11446224\");\n productModels.add(productModel9);\n ProductModel productModel10 = new ProductModel(\"HUAWEI MATE 20\",\"https://home.ripley.cl/store/Attachment/WOP/D191/2000373857964/2000373857964_2.jpg\",169990,149990,\"tecno\",\"2000373857964P\",\"12264501\");\n productModels.add(productModel10);\n\n //decohogar\n ProductModel productModel11 = new ProductModel(\"JUEGO DE COMEDOR RIPLEY\",\"https://home.ripley.cl/store/Attachment/WOP/D359/2000371827983/2000371827983_2.jpg\",349990,249990,\"decohogar\",\"2000371827983P\",\"12431080\");\n productModels.add(productModel11);\n ProductModel productModel12 = new ProductModel(\"JUEGO DE CUBIERTOS\",\"https://home.ripley.cl/store/Attachment/WOP/D361/2000374299572/2000374299572_2.jpg\",16990,9990,\"decohogar\",\"2000374299572P\",\"12773851\");\n productModels.add(productModel12);\n ProductModel productModel13 = new ProductModel(\"ALFOMBRA DIB\",\"https://home.ripley.cl/store/Attachment/WOP/D102/2000374310932/2000374310932_2.jpg\",231990,79990,\"decohogar\",\"2000374310932P\",\"12734724\");\n productModels.add(productModel13);\n ProductModel productModel14 = new ProductModel(\"SET 2 MALETAS CAMBRIDGE\",\"https://home.ripley.cl/store/Attachment/WOP/D369/2000368425048/2000368425048_2.jpg\",129990,129990,\"decohogar\",\"2000368425048P\",\"9322533\");\n productModels.add(productModel14);\n ProductModel productModel15 = new ProductModel(\"CUADROS DECORATIVOS RIPLEY\",\"https://home.ripley.cl/store/Attachment/WOP/D367/2000371915604/2000371915604_2.jpg\",26990,21990,\"decohogar\",\"2000371915604P\",\"12409117\");\n productModels.add(productModel15);\n\n //deporte\n ProductModel productModel16 = new ProductModel(\"BICICLETA TREK MARLIN 5\",\"https://home.ripley.cl/store/Attachment/WOP/D192/2000369989594/2000369989594_2.jpg\",379990,289990,\"deporte\",\"2000369989594P\",\"10128017\");\n productModels.add(productModel16);\n ProductModel productModel17 = new ProductModel(\"SCOOTER ELECTRICO\",\"http://ripleycl.imgix.net/https%3A%2F%2Fripley-prod.mirakl.net%2Fmmp%2Fmedia%2Fproduct-media%2F58911%2FFalabella%25201.jpg?w=750&h=555&ch=Width&auto=format&cs=strip&bg=FFFFFF&q=60&trimcolor=FFFFFF&trim=color&fit=fillmax&ixlib=js-1.1.0&s=fb80d9cbd5408cf0615a71e550fdbcdd\",329990,309990,\"deporte\",\"MPM00002006512\",\"11768504\");\n productModels.add(productModel17);\n ProductModel productModel18 = new ProductModel(\"BICICLETA ESTÁTICA\",\"https://home.ripley.cl/store/Attachment/WOP/D192/2000335659285/2000335659285_2.jpg\",99990,89990,\"deporte\",\"2000335659285P\",\"320034\");\n productModels.add(productModel18);\n ProductModel productModel19 = new ProductModel(\"CARPA NATIONAL GEOGRAPHIC\",\"https://home.ripley.cl/store/Attachment/WOP/D170/2000327637482/2000327637482_2.jpg\",89990,54990,\"deporte\",\"2000327637482P\",\"493501\");\n productModels.add(productModel19);\n ProductModel productModel20 = new ProductModel(\"TROTADORA ELECTRICA\",\"http://ripleycl.imgix.net/http%3A%2F%2Fs3.amazonaws.com%2Fimagenes-sellers-mercado-ripley%2F2019%2F07%2F22094411%2FARC-3421A.jpg?w=750&h=555&ch=Width&auto=format&cs=strip&bg=FFFFFF&q=60&trimcolor=FFFFFF&trim=color&fit=fillmax&ixlib=js-1.1.0&s=2a5ae55b9f8903faa978d95d2a3aecfe\",329990,179990,\"deporte\",\"MPM00001075806\",\"10144001\");\n productModels.add(productModel20);\n\n //moda\n ProductModel productModel21 = new ProductModel(\"PARKA TATIENNE\",\"https://home.ripley.cl/store/Attachment/WOP/D321/2000370840310/2000370840310_2.jpg\",39990,16990,\"moda\",\"2000370840266\",\"11755568\");\n productModels.add(productModel21);\n ProductModel productModel22 = new ProductModel(\"PARKA\",\"https://home.ripley.cl/store/Attachment/WOP/D129/2000371979576/2000371979576_2.jpg\",34990,12990,\"moda\",\"2000371979422\",\"11986727\");\n productModels.add(productModel22);\n ProductModel productModel23 = new ProductModel(\"SWEATER SFERA\",\"https://home.ripley.cl/store/Attachment/WOP/D388/2000373199514/2000373199514_2.jpg\",14990,5990,\"moda\",\"2000373199514\",\"13111833\");\n productModels.add(productModel23);\n ProductModel productModel24 = new ProductModel(\"SWEATER CACHAREL\",\"https://home.ripley.cl/store/Attachment/WOP/D320/2000373423961/2000373423961_2.jpg\",21990,16990,\"moda\",\"2000373423879\",\"13165378\");\n productModels.add(productModel24);\n ProductModel productModel25 = new ProductModel(\"PIJAMA INDEX\",\"https://home.ripley.cl/store/Attachment/WOP/D134/2000372471772/2000372471772_2.jpg\",19990,4990,\"moda\",\"2000372471789\",\"12647300\");\n productModels.add(productModel25);\n\n //TODO Delete\n ArrayList<ProductModel> resultArrayList = new ArrayList<>();\n for(ProductModel searchItemMasterObj : productModels) {\n if(searchItemMasterObj.getCategory().contains(\"electro\") || searchItemMasterObj.getCategory().contains(\"moda\") ) {\n resultArrayList.add(searchItemMasterObj);\n }\n }\n\n Log.i(TAG,\"resultArrayList cantidad: \" + resultArrayList.size() );\n\n recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view1);\n RecyclerView.LayoutManager recyclerViewLayoutManager = new GridLayoutManager(getContext(),2);\n recyclerView.setLayoutManager(recyclerViewLayoutManager);\n recyclerProductViewAdapter= new RecyclerProductViewAdapter(productModels,getContext());\n recyclerView.setAdapter(recyclerProductViewAdapter);\n\n return view;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n // TODO\n\n\n GridPane grid = new GridPane();\n\n grid.setPadding(new javafx.geometry.Insets(10,10,10,10));\n \n \n \nProduitService sb=new ProduitService();\nList<Produit>lst=sb.FindAll();\nint elements=sb.counte();\n\n\n grid.setHgap(10);\n grid.setVgap(10);\n int cols=4, colCnt = 0, rowCnt = 0;\n\n for (int i=0; i<elements; i++) {\nFileInputStream input = null;\n try {\n input = new FileInputStream(\"C:\\\\images\\\\\"+lst.get(i).getPhoto());\n \n Image image = new Image(input);\n ImageView imageView = new ImageView(image);\n imageView.setFitHeight(100);\n imageView.setFitWidth(100);\n Label label1 = new Label(lst.get(i).getModel());\n Label label2 = new Label(lst.get(i).getType());\n Label label3 = new Label(lst.get(i).getQuantity());\n Label label4 = new Label(lst.get(i).getPrice()+\" $\");\n int x=lst.get(i).getId();\n \n VBox root = new VBox(label1,imageView,label2,label3,label4);\n grid.add(root,colCnt,rowCnt);\n colCnt+=1;\n if (colCnt>cols) {\n rowCnt++;\n colCnt=0;\n } } catch (FileNotFoundException ex) {\n Logger.getLogger(FXML_ProductController.class.getName()).log(Level.SEVERE, null, ex);\n } \n }\n panell.getChildren().add(grid);\n \n \n\n \n\n \n \n \n \n \n \n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.full_image);\n\n dbHandler_card = new DBHandler_Card(this,null,null,1);\n\n // hashMap = new LinkedHashMap<>();\n\n Intent i = getIntent();\n\n position = i.getExtras().getInt(\"id\");\n final String[] name = i.getStringArrayExtra(\"name\");\n rup = i.getIntArrayExtra(\"rupee\");\n count = i.getExtras().getInt(\"count\");\n\n add_to_cart_button = (Button) findViewById(R.id.cart_button);\n\n\n //textView = (TextView) findViewById(R.id.text);\n // textView.setText(name[position]);\n\n ImageAdapter imageAdapter = new ImageAdapter(this);\n\n ImageView imageView = (ImageView) findViewById(R.id.full_image_view);\n\n imageView.setImageResource(imageAdapter.mThumbIds[position]);\n\n textView = (TextView) findViewById(R.id.amount_text);\n textView.setText(\"Rs. \"+ rup[position]);\n\n final Spinner spinner = (Spinner) findViewById(R.id.spinner);\n final ArrayAdapter<CharSequence> arrayAdapter = ArrayAdapter.createFromResource(this,R.array.number,android.R.layout.simple_spinner_item);\n\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(arrayAdapter);\n spinner.setOnItemSelectedListener(this);\n\n add_to_cart_button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // hashMap.put(name[position],textView.getText().toString());\n food=name[position];\n amount=textView.getText().toString();\n quan= Integer.parseInt(spinner.getSelectedItem().toString());\n Card_Data card_data = new Card_Data(food,amount,quan);\n dbHandler_card.add_data(card_data);\n Intent i =new Intent(getBaseContext(),Main_frame.class);\n i.putExtra(\"count\",count);\n startActivity(i);\n }\n });\n\n }", "protected String doInBackground(String... args) {\r\n\t\t\t// Building Parameters\r\n\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\r\n\t\t\t// getting JSON string from URL\r\n\t\t\tjson = jParser.makeHttpRequest(jsonProductURL, \"GET\", params);\r\n\r\n\t\t\t// Check your log cat for JSON response\r\n\t\t\tLog.d(\"Response: \", json.toString());\r\n\r\n\t\t\t// Checking for SUCCESS TAG\r\n\t\t\tString success;\r\n\t\t\ttry {\r\n\t\t\t\tsuccess = json.getString(TAG_SUCCESS);\r\n\t\t\t\tLog.d(\"success: \", success);\r\n\t\t\t\tif (success == \"true\") {\r\n\t\t\t\t\tJSONObject metaDataJsonObjec = json\r\n\t\t\t\t\t\t\t.getJSONObject(\"metadata\");\r\n\t\t\t\t\tif (metaDataJsonObjec != null) {\r\n\t\t\t\t\t\tJSONArray resultJsonArray = metaDataJsonObjec\r\n\t\t\t\t\t\t\t\t.getJSONArray(\"results\");\r\n\t\t\t\t\t\tif (resultJsonArray != null) {\r\n\t\t\t\t\t\t\tfor (int resultIndex = 0; resultIndex < resultJsonArray\r\n\t\t\t\t\t\t\t\t\t.length(); resultIndex++) {\r\n\t\t\t\t\t\t\t\tJSONObject resultJsonObjec = resultJsonArray\r\n\t\t\t\t\t\t\t\t\t\t.getJSONObject(resultIndex);\r\n\t\t\t\t\t\t\t\tif (resultJsonObjec != null) {\r\n\t\t\t\t\t\t\t\t\tJSONObject dataJsonObject = resultJsonObjec\r\n\t\t\t\t\t\t\t\t\t\t\t.getJSONObject(\"data\");\r\n\t\t\t\t\t\t\t\t\tString productName = dataJsonObject\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"name\");\r\n\t\t\t\t\t\t\t\t\tString productPrice = dataJsonObject\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"price\");\r\n\t\t\t\t\t\t\t\t\tString productBrand = dataJsonObject\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"brand\");\r\n\r\n\t\t\t\t\t\t\t\t\tJSONArray imageJsonArray = resultJsonObjec\r\n\t\t\t\t\t\t\t\t\t\t\t.getJSONArray(\"images\");\r\n\t\t\t\t\t\t\t\t\tJSONObject productImageIndexZeroObject = imageJsonArray\r\n\t\t\t\t\t\t\t\t\t\t\t.getJSONObject(0);\r\n\t\t\t\t\t\t\t\t\tString productImageUrl = productImageIndexZeroObject\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"path\");\r\n\t\t\t\t\t\t\t\t\tBitmap productIamgeBitmap = urlToBitmapConversion(productImageUrl);\r\n\r\n\t\t\t\t\t\t\t\t\t// Image pager view\r\n\t\t\t\t\t\t\t\t\tArrayList<String> pagerImagesList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tfor (int imageIndex = 0; imageIndex < imageJsonArray\r\n\t\t\t\t\t\t\t\t\t\t\t.length(); imageIndex++) {\r\n\t\t\t\t\t\t\t\t\t\tJSONObject productImageIndexObject = imageJsonArray\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getJSONObject(imageIndex);\r\n\t\t\t\t\t\t\t\t\t\tString indexProductImageUrl = productImageIndexObject\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getString(\"path\");\r\n\r\n\t\t\t\t\t\t\t\t\t\tpagerImagesList\r\n\t\t\t\t\t\t\t\t\t\t\t\t.add(indexProductImageUrl);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tpagerImageMap.put(resultIndex,\r\n\t\t\t\t\t\t\t\t\t\t\tpagerImagesList);\r\n\r\n\t\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t\t * Product product = new Product(\r\n\t\t\t\t\t\t\t\t\t * productIamgeBitmap, productName,\r\n\t\t\t\t\t\t\t\t\t * Double.parseDouble(productPrice),\r\n\t\t\t\t\t\t\t\t\t * productBrand);\r\n\t\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\t\tProduct product = new Product(\r\n\t\t\t\t\t\t\t\t\t\t\tproductImageUrl, productName,\r\n\t\t\t\t\t\t\t\t\t\t\tDouble.parseDouble(productPrice),\r\n\t\t\t\t\t\t\t\t\t\t\tproductBrand);\r\n\t\t\t\t\t\t\t\t\tproductList.add(product);\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\r\n\t\t\t\t}\r\n\t\t\t} catch (JSONException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\treturn null;\r\n\t\t}", "public interface ItemView {\n\n void setFocus(boolean isFocused);\n\n void setImage(String url);\n}", "public CartHolder(View itemView) {\n super(itemView);\n productname= (TextView) itemView.findViewById(R.id.productname);\n description= (TextView) itemView.findViewById(R.id.description);\n price= (TextView) itemView.findViewById(R.id.price);\n mrp= (TextView) itemView.findViewById(R.id.mrp);\n cquantity= (TextView) itemView.findViewById(R.id.cartqty);\n removefromcart= (CheckBox) itemView.findViewById(R.id.removefromcart);\n buynow= (Button) itemView.findViewById(R.id.buynow);\n proimg = (ImageView) itemView.findViewById(R.id.proimg);\n /*test=itemView.findViewById(R.id.testtext);\n checkBox=itemView.findViewById(R.id.test);*/\n //fitemView.setOnClickListener(this);\n\n }", "public ViewHolder(View itemView) {\n super(itemView);\n hospname= itemView.findViewById(R.id.hospname);\n address= itemView.findViewById(R.id.hospaddress);\n rrr= itemView.findViewById(R.id.rrrtext);\n hospimage= itemView.findViewById(R.id.hospital_image);\n callambulance= itemView.findViewById(R.id.bookambulancebutton);\n getroom= itemView.findViewById(R.id.bookroombutton);\n /*price= itemView.findViewById(R.id.bedprice);\n cat= itemView.findViewById(R.id.bedcat);\n bedimage= itemView.findViewById(R.id.bedimage);*/\n\n\n }", "private void setupView() {\n\t\timg=(ImageView) findViewById(R.id.imageView1);\n\t}", "@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n if (holder instanceof ViewHolder) {\n final SubHomeModerImage model = getItem(position);\n final ViewHolder genericViewHolder = (ViewHolder) holder;\n\n //genericViewHolder.txt_quatity.setText(model.getQuantity());\n genericViewHolder.moreitem_check_name.setText(model.getIngredientsName());\n genericViewHolder.txt_price.setText(\"$ \"+model.getIngredientsPrice());\n\n }\n }", "private void setDishInfo(final HashMap<String, ArrayList<String>> dishNames,\n final HashMap<String, ArrayList<Integer>> dishPrices,\n final HashMap<String, ArrayList<String>> dishImgs,\n final String type) {\n ArrayList<Integer> dishPrice = dishPrices.get(type);\n ArrayList<String> dishName = dishNames.get(type);\n final ArrayList<String> dishImg = dishImgs.get(type);\n for (int i = 0; i < dishName.size() && i < 15; i++) {\n final int finalI = i;\n final Bitmap[] bm = {null};\n final int m = i / DISH_WIDTH, n = i % DISH_WIDTH;\n final int dsPrice = dishPrice.get(i);\n final String dsName = dishName.get(i);\n final SubsamplingScaleImageView iv = imgs[m][n];\n TextView tv = names[m][n];\n tv.setTextColor(Color.DKGRAY);\n tv.setTextSize(12f);\n tv.setText(dsName + RMB + dsPrice);\n new Thread() {\n @Override\n public void run() {\n bm[0] = StormImg.getBm(a, dishImg.get(finalI));\n Handler handler = new Handler(a.getMainLooper()) {\n @Override\n public void handleMessage(android.os.Message msg) {\n super.handleMessage(msg);\n if (bm[0] != null)\n iv.setImage(ImageSource.bitmap(bm[0]));\n }\n };\n handler.sendMessage(handler.obtainMessage());\n }\n }.start();\n\n View.OnClickListener listener = new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addDishToList(dsName, 1, dsPrice, type);\n }\n };\n View.OnLongClickListener ll = new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n String title = \"Input the amount of \" + dsName + \" you want: \";\n final EditText et = new EditText(v.getContext());\n et.setInputType(InputType.TYPE_CLASS_NUMBER);\n et.setKeyListener(DigitsKeyListener.getInstance(\"0123456789\"));\n et.setFilters(new InputFilter[]{new InputFilter.LengthFilter(2)});\n new AlertDialog.Builder(v.getContext()).setTitle(title).setView(et).setPositiveButton(\"okay\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (et.getText().length() > 0) {\n int amt = Integer.valueOf(et.getText().toString());\n if (amt > 0)\n addDishToList(dsName, amt, dsPrice, type);\n dialog.dismiss();\n }\n }\n }).setNegativeButton(\"cancel\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n return true;\n }\n };\n // click to add dishes to the dish list\n tv.setOnClickListener(listener);\n iv.setOnClickListener(listener);\n tv.setOnLongClickListener(ll);\n iv.setOnLongClickListener(ll);\n }\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n //Find the fields to populate in inflated template\n TextView tvProductName = (TextView) view.findViewById(R.id.item_shopping_productname);\n TextView tvProductPrice = (TextView) view.findViewById(R.id.item_shopping_price);\n TextView tvProductStock = (TextView) view.findViewById(R.id.item_shopping_stock);\n TextView tvProductDescription = (TextView) view.findViewById(R.id.item_shopping_description);\n\n //Extract properties from Cursor\n String productName = cursor.getString(cursor.getColumnIndexOrThrow(ShoppingContract.ShoppingEntry.COLUMN_NAME));\n int productPrice = cursor.getInt(cursor.getColumnIndexOrThrow(ShoppingContract.ShoppingEntry.COLUMN_PRICE));\n int productStock = cursor.getInt(cursor.getColumnIndexOrThrow(ShoppingContract.ShoppingEntry.COLUMN_IN_STOCK));\n String productDescription = cursor.getString(cursor.getColumnIndexOrThrow(ShoppingContract.ShoppingEntry.COLUMN_DESCRIPTION));\n\n //Adding not written description in UI\n if(TextUtils.isEmpty(productDescription)){\n productDescription=context.getString(R.string.no_description_provided);\n }\n //Populated field with extracted properties\n tvProductName.setText(productName);\n tvProductPrice.setText(String.valueOf(productPrice));\n tvProductStock.setText(String.valueOf(productStock));\n tvProductDescription.setText(productDescription);\n\n }", "public View getGraphic(T anItem)\n{\n Image img = getImage(anItem);\n return img!=null? new ImageView(img) : null;\n}", "public ViewHolder(View itemView) {\n super(itemView);\n tvNature = (TextView)itemView.findViewById(R.id.item_name);\n tvAmountNature = (TextView)itemView.findViewById(R.id.item_amount);\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n //getting the layoutinflater\n ViewHolder viewHolder = new ViewHolder();\n if(convertView==null) {\n LayoutInflater inflater = LayoutInflater.from(mCtx);\n\n //creating a view with our xml layout\n convertView = inflater.inflate(R.layout.list_item, null, true);\n\n //getting text views\n viewHolder.productcat = convertView.findViewById(R.id.text_pro_cat);\n viewHolder.productname = convertView.findViewById(R.id.pro_name11);\n viewHolder.productQ = convertView.findViewById(R.id.pro_price);\n viewHolder.productbidP = convertView.findViewById(R.id.text_b_price);\n convertView.setTag(viewHolder);\n\n }else{\n viewHolder = (ViewHolder)convertView.getTag();\n }\n Product pro = ProductList.get(position);\n viewHolder.productcat.setText(pro.getPcategory());\n viewHolder.productname.setText(pro.getPname());\n viewHolder.productQ.setText(pro.getPquntity());\n viewHolder.productbidP.setText(pro.getPbidprice());\n\n //returning the listitem\n return convertView;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_item_details);\n SetActionBarTitle(actionBarTitle);\n\n// if(savedInstanceState != null){\n// savedInstanceState.getBundle(bundle);\n// }\n\n imageDetail = findViewById(R.id.image_detail);\n titleDetail = findViewById(R.id.title_detail);\n descriptionDetail = findViewById(R.id.description_detail);\n priceDetail = findViewById(R.id.price_detail);\n\n imageUrl = getIntent().getStringExtra(imageUrl);\n Glide.with(this).load(imageUrl).into(imageDetail);\n titleDetail.setText(getIntent().getStringExtra(title));\n descriptionDetail.setText(getIntent().getStringExtra(description));\n priceDetail.setText(getIntent().getStringExtra(price));\n\n }", "private void dg_ui_detail_photoview_banner(RecyclerView.ViewHolder viewHolder, ArticleBean bean) {\n DG_DetailPhotoViewHolder db_photo_banner_holder = (DG_DetailPhotoViewHolder) viewHolder;\n boolean isAppExclusive = bean.getSid() != null && bean.getSid().equals(\"\" + THPConstants.APP_EXCLUSIVE_SECTION_ID);\n if (isAppExclusive) {\n db_photo_banner_holder.mTitleTextView.setText(Html.fromHtml(\"<i>\" + \"\\\"\" + bean.getTi() + \"\\\"\" + \"</i>\"));\n db_photo_banner_holder.mTitleTextView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 25);\n db_photo_banner_holder.mAuthorTextView.setVisibility(View.GONE);\n db_photo_banner_holder.mUpdatedTextView.setVisibility(View.GONE);\n db_photo_banner_holder.mCreatedDateTextView.setVisibility(View.GONE);\n db_photo_banner_holder.mHeaderImageView.setVisibility(View.GONE);\n db_photo_banner_holder.mMultiMediaButton.setVisibility(View.GONE);\n db_photo_banner_holder.mCaptionTextView.setVisibility(View.GONE);\n db_photo_banner_holder.mCaptionDevider.setVisibility(View.GONE);\n } else {\n db_photo_banner_holder.mTitleTextView.setText(bean.getTi());\n db_photo_banner_holder.mArticleLocationView.setText(bean.getLocation());\n String author = bean.getAu();\n if (author != null && !TextUtils.isEmpty(author)) {\n db_photo_banner_holder.mAuthorTextView.setVisibility(View.VISIBLE);\n db_photo_banner_holder.mAuthorTextView.setText(author.replace(\",\\n\", \" | \").replace(\",\", \" | \"));\n } else {\n db_photo_banner_holder.mAuthorTextView.setVisibility(View.GONE);\n }\n\n db_photo_banner_holder.mUpdatedTextView.setText(AppDateUtil.getTopNewsFormattedDate(AppDateUtil.changeStringToMillisGMT(bean.getPd())));\n db_photo_banner_holder.mCreatedDateTextView.setText(AppDateUtil.getPlaneTopNewsFormattedDate(AppDateUtil.changeStringToMillis(bean.getOd())));\n\n final ArrayList<MeBean> mImageList = bean.getMe();\n if (mImageList != null && mImageList.size() > 0) {\n String imageUrl = mImageList.get(0).getIm_v2();\n if (!ResUtil.isEmpty(imageUrl)) {\n PicassoUtil.loadImageWithFilePH(db_photo_banner_holder.itemView.getContext(), db_photo_banner_holder.mHeaderImageView, imageUrl);\n }\n String caption = mImageList.get(0).getCa();\n if (caption != null && !TextUtils.isEmpty(caption)) {\n db_photo_banner_holder.mCaptionTextView.setText(Html.fromHtml(caption));\n } else {\n db_photo_banner_holder.mCaptionTextView.setVisibility(View.GONE);\n }\n }\n db_photo_banner_holder.mHeaderImageView.setOnClickListener(v -> {\n IntentUtil.openVerticleGalleryActivity(v.getContext(), mImageList, mFrom);\n });\n // To shows Article Type Image\n articleTypeImage(bean.getArticleType(), bean, db_photo_banner_holder.mMultiMediaButton);\n db_photo_banner_holder.mMultiMediaButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n IntentUtil.openVerticleGalleryActivity(v.getContext(), mImageList, mFrom);\n }\n });\n }\n }", "@Override\n public void onClick(View v)\n {\n StringBuilder sb = new StringBuilder();\n\n // BEGIN QUERY\n Cursor resultSet = db.select(searchEditText.getText().toString());\n\n\n int maxSize = resultSet.getCount();\n Log.e(\"MAX-SIZE\", String.valueOf(maxSize));\n\n int counter = 0; // NEW\n // used for the images displayed in the ResultSetActivity\n String[] imageNames = new String[maxSize]; // NEW\n\n // if user enters nothing return and display a toast about entering something\n // (Note: added .trim() to treat multiple spaces as an empty string as well)\n if (searchEditText.getText().toString().trim().equals(\"\"))\n {\n Toast.makeText(getApplicationContext(), \"Please search for a specific item\", Toast.LENGTH_SHORT).show();\n return;\n }\n // if query returns 0 results\n if (maxSize == 0)\n {\n // if max size is 0 and you try to store an element program crashes so make max size 1\n imageNames = new String[1]; // TEMPORARY UNTIL BETTER LOGIC OCCURS\n imageNames[counter] = \"x\";\n // PERHAPS use a reference to the productImageView from the products.xml in order to\n // make the size of the x image smaller because it looks too big\n sb.append(\"Query Returned 0 results\");\n }\n else\n {\n while (resultSet.moveToNext())\n {\n\n // the last %n gives it a bit of extra space in the bottom of each item\n sb.append(String.format(\"%s%n%s%n%s%n\",\n resultSet.getString(0), resultSet.getString(1), resultSet.getString(2)));\n\n // Assign the current imageNames element the value of the product number\n imageNames[counter] = resultSet.getString(0).toLowerCase(); // NEW\n\n if (resultSet.getCount() != counter)\n sb.append(\"!\");\n\n counter++;\n\n }\n }\n\n // END QUERY\n\n // split into an array based on commas\n String[] results = sb.toString().split(\"!\");\n\n\n // create intent to switch activities\n Intent intent = new Intent(getApplicationContext(), ResultSetActivity.class);\n // send the result object to the ResultSetActivity\n intent.putExtra(\"Query\", results);\n\n // PUT THE imageNames array as an extra to send to next activity // NEW\n intent.putExtra(\"Images\", imageNames);\n\n // go to the ResultSetActivity\n startActivity(intent);\n }", "ViewHolder(View itemView) {\n super(itemView);\n myImageView = itemView.findViewById(R.id.info_image); // myTextView = itemView.findViewById(R.id.info_text)\n itemView.setOnClickListener(this);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) \n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.highprice);\n\t\t\n\t\tlistView=(ListView) findViewById(R.id.listview_highprice);\n\t\t\n\t\t//定义发送请求的URL\n\t\tString url=HttpUtil.BASE_URL+\"highprice\";\n\t\ttry {\n\t\t\t\tJSONArray jsonArray=new JSONArray(HttpUtil.getRequest(url));\n\t\t\t\tSystem.out.println(jsonArray);\n\t\t\t\tString[] no=new String[jsonArray.length()];\n\t\t\t\tString[] name=new String[jsonArray.length()];\n\t\t\t\tString[] desc=new String[jsonArray.length()];\n\t\t\t\tString[] highprice=new String[jsonArray.length()];\n\t\t\t\tfor(int i=0;i<jsonArray.length();i++)\n\t\t\t\t{\n\t\t\t\t\tJSONObject obj = jsonArray.getJSONObject(i);\n\t\t\t\t\tNo=obj.getString(\"商品编号\");\n\t\t\t\t\tno[i]=No;\n\t\t\t\t\tName=obj.getString(\"商品名称\");\n\t\t\t\t\tname[i]=Name;\n\t\t\t\t\tDesc=obj.getString(\"商品描述\");\n\t\t\t\t\tdesc[i]=Desc;\n\t\t\t\t\tHighprice=obj.getString(\"商品当前最高出价\");\n\t\t\t\t\thighprice[i]=Highprice;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(name.length);\n\t\t\t\tfor (int i = 0; i < name.length; i++) \n\t\t\t\t{\n\t\t\t\t\tMap<String, Object> listItem = new HashMap<String, Object>();\n\t\t\t\t\tlistItem.put(\"img\", imageIds[i]);\n\t\t\t\t\tlistItem.put(\"name\", \"商品名称:\"+name[i]);\n\t\t\t\t\tlistItem.put(\"info\", \"商品描述:\"+desc[i]);\n\t\t\t\t\tlistItem.put(\"highprice\",\"商品当前最高出价¥:\"+highprice[i]);\n\t\t\t\t\tlistItems.add(listItem);\n\t\t\t\t}\n\t\n\t\t\t\t// 创建一个SimpleAdapter\n\t\t\t\tSimpleAdapter simpleAdapter = new SimpleAdapter(this, listItems,\n\t\t\t\t\t\tR.layout.showhighprice, new String[] { \"no\",\"name\", \"info\",\"highprice\",\"img\"},\n\t\t\t\t\t\tnew int[] {R.id.highpriceno, R.id.highpricename, R.id.highpriceinfo,R.id.highprice,\n\t\t\t\t\t\tR.id.highpriceimg});\n\t\t\t\t\n\t\t\t\t// 为ListView设置Adapter\n\t\t\t\tlistView.setAdapter(simpleAdapter);\n\t\t} \n\t\tcatch (JSONException e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n final Holder holder=new Holder();\n\n\n\n AuctionBean users = list.get(position);\n convertView = inflater.inflate(R.layout.customelayout, null);\n\n holder.imgThumbnail = (ImageView) convertView.findViewById(R.id.imageview);\n holder.top_sr_no = (TextView) convertView.findViewById(R.id.textsrno);\n holder.bottom_sr_no = (TextView) convertView.findViewById(R.id.textbottom_srno);\n\n return convertView;\n }", "@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n Holder holder=new Holder();\n View rowView;\n\n rowView = inflater.inflate(R.layout.sample_gridlayout, null);\n holder.os_text =(TextView) rowView.findViewById(R.id.os_texts);\n holder.os_img =(ImageView) rowView.findViewById(R.id.os_images);\n\n holder.os_text.setText(result[position]);\n holder.os_img.setImageResource(imageId[position]);\n\n rowView.setOnClickListener(new OnClickListener() {\n double years;\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n switch (result[position]){\n case \"Java\": years = 8;\n break;\n case \"Python\": years = 6;\n break;\n case \"C\": years = 6;\n break;\n case \"Embedded\": years = 6;\n break;\n case \"C++\": years = 6;\n break;\n case \"XML\": years = 0.25;\n break;\n case \"JavaScript\": years = 1;\n break;\n case \"IAM\": years = 1;\n break;\n case \"SQL\": years = 7;\n break;\n case \"Automation\": years = 3;\n break;\n }\n Toast.makeText(context, result[position]+\" Experience: \"+years+ \" years\", Toast.LENGTH_SHORT).show();\n }\n });\n\n return rowView;\n }", "@Override\n\tpublic View getView(final int position, View convertView, ViewGroup parent) {\n\t\tView grid;\n\n\t\tnew ICallBackUI() {\n\n\t\t\t@Override\n\t\t\tpublic void processRaw(String key, int status, String json) {\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 process(String key, int status, List<JSONObject> lst) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t};\n\n\t\tfinal JSONObject lineSource = dataSource.get(position);\n\t\tfinal LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tString lstPriceInfo;\n\t\ttry {\n\t\t\tlstPriceInfo = lineSource.getString(\"PriceInfo\");\n\t\t\tlstJsonPriceInfo = TransformDataManager.convertArrayToListJSON(new JSONArray(lstPriceInfo));\n\t\t} catch (JSONException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\tif (convertView == null) {\n\n\t\t\tgrid = new View(mContext);\n\n\t\t\t//\n\t\t\tif (layoutRow == -1)\n\t\t\t\tgrid = inflater.inflate(R.layout.item_grv_product_ecomerce, null);\n\t\t\telse\n\t\t\t\tgrid = inflater.inflate(layoutRow, null);\n\n\t\t\t// setup for holder\n\t\t\tfinal ViewHolder1 viewHolder = new ViewHolder1();\n\t\t\tviewHolder.txtNameProductEcom = (TextView) grid.findViewById(R.id.txtNameProductEcom);\n\t\t\tviewHolder.txtPriceSaleEcom = (TextView) grid.findViewById(R.id.txtPriceSaleEcom);\n\t\t\tviewHolder.txtSaleEcom = (TextView) grid.findViewById(R.id.txtSaleEcom);\n\t\t\tviewHolder.txtPriceEcom = (TextView) grid.findViewById(R.id.txtPriceEcom);\n\t\t\tviewHolder.imvGrvProduct = (ImageView) grid.findViewById(R.id.imv_grv_product);\n\t\t\tviewHolder.viewBorderRight = (View) grid.findViewById(R.id.viewBorderRight);\n\t\t\tviewHolder.btnOrderProdcutEcom = (Button) grid.findViewById(R.id.btnOrderProdcutEcom);\n\n\t\t\tgrid.setTag(viewHolder);\n\t\t\tgrid.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFragmentTransaction fmdetail1 = ((FragmentActivity) mContext).getSupportFragmentManager()\n\t\t\t\t\t\t\t\t.beginTransaction();\n\t\t\t\t\t\tfmdetail1.replace(R.id.container,\n\t\t\t\t\t\t\t\tnew Bee_Fragment_Product_List_Detail().newInstance(lineSource.getString(\"Id\"), \"\"));\n\t\t\t\t\t\tfmdetail1.addToBackStack(\"tag\");\n\t\t\t\t\t\tfmdetail1.commit();\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t} else {\n\t\t\tgrid = (View) convertView;\n\t\t}\n\n\t\t// bind data\n\t\tfinal ViewHolder1 holder = (ViewHolder1) grid.getTag();\n\n\t\ttry {\n\n\t\t\tt = lstJsonPriceInfo.get(0).getInt(\"Price\");\n\n\t\t\tholder.btnOrderProdcutEcom.setTag(position);\n\t\t\tholder.btnOrderProdcutEcom.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tString s = ShareMemManager.getInstance().readFromDB(mContext, \"productOrder\");\n\t\t\t\t\tString lstPriceInfo2;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlstPriceInfo2 = lineSource.getString(\"PriceInfo\");\n\t\t\t\t\t\tList<JSONObject> lstJsonPriceInfo2 = TransformDataManager\n\t\t\t\t\t\t\t\t.convertArrayToListJSON(new JSONArray(lstPriceInfo2));\n\n\t\t\t\t\t\tuName = lstJsonPriceInfo2.get(0).getString(\"UnitName\");\n\t\t\t\t\t\tuId = lstJsonPriceInfo2.get(0).getInt(\"UnitID\");\n\t\t\t\t\t\tt2 = lstJsonPriceInfo2.get(0).getInt(\"Price\");\n\n\t\t\t\t\t} catch (JSONException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tif (s.equals(\"\") || s.equals(\"[]\")) {\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\tlineSource.put(\"SL\", 1);\n\t\t\t\t\t\t\tint tt = (int) (1 * t2);\n\t\t\t\t\t\t\tlineSource.put(\"TT\", tt);\n\t\t\t\t\t\t\tlineSource.put(\"UNAME\", uName);\n\t\t\t\t\t\t\tlineSource.put(\"UID\", uId);\n\t\t\t\t\t\t\tlineSource.put(\"PRICE\", t2);\n\t\t\t\t\t\t\tUtil.saveOrderProduct(mContext, lineSource);\n\t\t\t\t\t\t\tToast.makeText(mContext, \"Sản phẩm đã được thêm vào giỏ hàng\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tList<JSONObject> lstJsonObjects = new ArrayList<JSONObject>();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlstJsonObjects = TransformDataManager.convertArrayToListJSON(new JSONArray(s));\n\t\t\t\t\t\t\tfor (int i = 0; i < lstJsonObjects.size(); i++) {\n\t\t\t\t\t\t\t\tif (lstJsonObjects.get(i).getInt(\"Id\") == lineSource.getInt(\"Id\")) {\n\t\t\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\t\t\tif (lstJsonObjects.get(i).getInt(\"UID\") == uId) {\n\t\t\t\t\t\t\t\t\t\t\tint sl = lstJsonObjects.get(i).getInt(\"SL\") + 1;\n\t\t\t\t\t\t\t\t\t\t\tlineSource.put(\"SL\", sl);\n\t\t\t\t\t\t\t\t\t\t\tint tt = (int) (sl * t2);\n\t\t\t\t\t\t\t\t\t\t\tlineSource.put(\"TT\", tt);\n\t\t\t\t\t\t\t\t\t\t\tlineSource.put(\"UNAME\", uName);\n\t\t\t\t\t\t\t\t\t\t\tlineSource.put(\"UID\", uId);\n\t\t\t\t\t\t\t\t\t\t\tlineSource.put(\"PRICE\", t2);\n\t\t\t\t\t\t\t\t\t\t\tUtil.saveOrderProduct(mContext, lineSource);\n\t\t\t\t\t\t\t\t\t\t\tToast.makeText(mContext, \"Sản phẩm đã được thêm vào giỏ hàng\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tlineSource.put(\"SL\", 1);\n\t\t\t\t\t\t\t\t\t\t\tint tt = (int) (1 * t2);\n\t\t\t\t\t\t\t\t\t\t\tlineSource.put(\"TT\", tt);\n\t\t\t\t\t\t\t\t\t\t\tlineSource.put(\"UNAME\", uName);\n\t\t\t\t\t\t\t\t\t\t\tlineSource.put(\"UID\", uId);\n\t\t\t\t\t\t\t\t\t\t\tlineSource.put(\"PRICE\", t2);\n\t\t\t\t\t\t\t\t\t\t\tUtil.saveOrderProduct(mContext, lineSource);\n\t\t\t\t\t\t\t\t\t\t\tToast.makeText(mContext, \"Sản phẩm đã được thêm vào giỏ hàng\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch\n\t\t\t\t\t\t\t\t\t\t// block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tlineSource.put(\"SL\", 1);\n\t\t\t\t\t\t\t\t\tint tt = (int) (1 * t2);\n\t\t\t\t\t\t\t\t\tlineSource.put(\"TT\", tt);\n\t\t\t\t\t\t\t\t\tlineSource.put(\"UNAME\", uName);\n\t\t\t\t\t\t\t\t\tlineSource.put(\"UID\", uId);\n\t\t\t\t\t\t\t\t\tlineSource.put(\"PRICE\", t2);\n\t\t\t\t\t\t\t\t\tUtil.saveOrderProduct(mContext, lineSource);\n\t\t\t\t\t\t\t\t\tToast.makeText(mContext, \"Sản phẩm đã được thêm vào giỏ hàng\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tholder.viewBorderRight.setTag(position);\n\t\t\tholder.viewBorderRight.setBackgroundColor(Color.RED);\n\t\t\tholder.txtNameProductEcom.setTag(position);\n\t\t\tholder.txtNameProductEcom.setText(lineSource.getString(\"Name\"));\n\t\t\tholder.txtPriceEcom.setTag(position);\n\t\t\tholder.txtPriceEcom.setText(FormatUtil.formatCurrency(t) + \" đ\");\n\t\t\tholder.txtPriceEcom.setPaintFlags(Paint.STRIKE_THRU_TEXT_FLAG);\n\t\t\tholder.txtPriceSaleEcom.setTag(position);\n\t\t\tholder.txtPriceSaleEcom.setText(FormatUtil.formatCurrency(t) + \" đ\");\n\t\t\tholder.txtSaleEcom.setTag(position);\n\t\t\tholder.txtSaleEcom.setText(\"-40%\");\n\n\t\t\tholder.imvGrvProduct.setTag(position);\n\t\t\tPicasso.with(mContext).load(Util.IMAGE_URL).placeholder(R.drawable.backimvproduct)\n\t\t\t\t\t.into(holder.imvGrvProduct);\n\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn grid;\n\t}", "public CharSequence getItemImageUrl() {\n return item_image_url;\n }", "@NonNull\r\n @Override\r\n public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n\r\n ImageView view = new ImageView(getApplicationContext());\r\n\r\n\r\n return new RecyclerView.ViewHolder(view) {\r\n\r\n };\r\n }", "public Product(String name, int price, int photoId) {\n this.name = name;\n this.price = price;\n this.profileID = photoId;\n }", "public interface IDetailView {\n public void setImage(String url);\n\n // mètodes per assignar el nom i cognom\n public void setNom(String text);\n public void setDivisio(String text);\n public void setNivell(String text);\n public void setObjPref(String text);\n public void setTipusAtac(String text);\n /*public void setUrlImatge(String text) ;*/\n}", "@Override\r\n public View getView(int position, View convertView, ViewGroup parent) {\n String name = getItem(position).getName();\r\n String price = getItem(position).getPrice();\r\n\r\n\r\n //Create the person object with the information\r\n Product person = new Product(name,price);\r\n\r\n //create the view result for showing the animation\r\n final View result;\r\n\r\n //ViewHolder object\r\n ViewHolder holder;\r\n\r\n\r\n if(convertView == null){\r\n LayoutInflater inflater = LayoutInflater.from(mContext);\r\n convertView = inflater.inflate(mResource, parent, false);\r\n holder= new ViewHolder();\r\n holder.name = (TextView) convertView.findViewById(R.id.textView1);\r\n holder.price = (TextView) convertView.findViewById(R.id.textView2);\r\n\r\n\r\n result = convertView;\r\n\r\n convertView.setTag(holder);\r\n }\r\n else{\r\n holder = (ViewHolder) convertView.getTag();\r\n result = convertView;\r\n }\r\n\r\n\r\n\r\n holder.name.setText(person.getName());\r\n holder.price.setText(person.getPrice());\r\n\r\n\r\n\r\n return convertView;\r\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ImageView imageView = (ImageView) findViewById(R.id.bisonImage);\n// String imgRef = imgRefArrayList.get(position);\n //Log.d(\"IMGREF\", imgRef);\n// Glide.with(MyOffers.this)\n// .load(\"http://bisonswap.com/uploads/\" + imgRef)\n// .into(imageView);\n String itemKey = itemKeys.get(position);\n String stuff = String.valueOf(parent.getItemAtPosition(position));\n Intent o_Menu = new Intent(MyOffers.this, OfferMenu_manageOffers.class);\n o_Menu.putExtra(\"ownsItem\", \"1\");\n o_Menu.putExtra(\"offerItemKey\", offerBaseKeys.get(position));\n o_Menu.putExtra(\"itemKey\", itemKey);\n startActivity(o_Menu);\n// startActivity((new Intent(MyOffers.this, ItemActivity.class)).putExtra(\"itemKey\", itemKey));\n }", "@Override\n\tpublic void viewPrice() {\n\t\t\n\t}", "@Override\r\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tViewHolder holder = new ViewHolder();\r\n\t\tif(convertView!=null){\r\n\t\t\tholder=(ViewHolder) convertView.getTag();\r\n\t\t}else{\r\n\t\t\tconvertView =LayoutInflater.from(context).inflate(R.layout.item_business_list,null);\r\n\t\t\tholder.ratingBar=(RatingBar) convertView.findViewById(R.id.ratingBar1);\r\n\t\t\tholder.img=(ImageView) convertView.findViewById(R.id.iv_image);\r\n\t\t\tholder.tvShopName=(TextView) convertView.findViewById(R.id.tv_shopname);\r\n\t\t\tholder.tvBagWash=(TextView) convertView.findViewById(R.id.tv_bagwash_text);\r\n\t\t\tholder.tvUrgent =(TextView) convertView.findViewById(R.id.tv_urgent_text);\r\n\t\t\tholder.tvMoney=(TextView) convertView.findViewById(R.id.tv_money);\r\n\t\t\tconvertView.setTag(holder); \r\n\t\t}\r\n\t\tholder.tvShopName.setText(bs.get(position).getShopName());\r\n\t\tString url =\"http://\"+Content.getIp()+\":8080/\"+bs.get(position).getImgesUrl();\r\n\t\timageUtil.getImage(url,holder.img);\t\r\n\t\treturn convertView;\r\n\t}", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n holder.iView.setImageResource(Integer.parseInt(aList.get(position).get(from[0])));\n holder.nameView.setText(aList.get(position).get(from[1]));\n holder.descView.setText(aList.get(position).get(from[2]));\n holder.boostView.setText(aList.get(position).get(from[3]));\n }", "private void loadProductImage(String imagePath, ImageView imageView) {\n Bitmap bitmap = BitmapUtil.fromFileScaled(imagePath, imageView.getWidth(), imageView.getHeight(),\n true);\n if (bitmap == null) {\n Log.d(getClass().getSimpleName(), \"Failed to load product image: image view dimensions not yet \" +\n \"\" + \"determined\");\n } else {\n Activity activity = getActivity();\n if (activity != null) {\n imageView.setImageDrawable(BitmapUtil.getRoundedBitmapDrawable(activity, bitmap));\n }\n }\n }", "public void setUI(Order order){\n //Load image from the server (internet) using Ion\n Ion.with(this).load(order.getImage()).withBitmap()\n .error(R.drawable.placeholder).placeholder(R.drawable.placeholder).intoImageView(imageView);\n titleView.setText(order.getTitle());\n amountView.setText(order.getAmount()+\"\");\n priceView.setText(order.getPrice()+\"\");\n totalPriceView.setText(order.getTotalPrice()+\"\");\n addressView.setText(order.getAddress());\n nameView.setText(order.getName());\n\n }", "private void init_star() {\n\t\tstar_11 = (ImageView) findViewById(R.life.service_star1);\r\n\t\tstar_12 = (ImageView) findViewById(R.life.service_star2);\r\n\t\tstar_13 = (ImageView) findViewById(R.life.service_star3);\r\n\t\tstar_14 = (ImageView) findViewById(R.life.service_star4);\r\n\t\tstar_15 = (ImageView) findViewById(R.life.service_star5);\r\n\t\tstar_21 = (ImageView) findViewById(R.life.environment_star1);\r\n\t\tstar_22 = (ImageView) findViewById(R.life.environment_star2);\r\n\t\tstar_23 = (ImageView) findViewById(R.life.environment_star3);\r\n\t\tstar_24 = (ImageView) findViewById(R.life.environment_star4);\r\n\t\tstar_25 = (ImageView) findViewById(R.life.environment_star5);\r\n\t\tstar_31 = (ImageView) findViewById(R.life.pricecost_star1);\r\n\t\tstar_32 = (ImageView) findViewById(R.life.pricecost_star2);\r\n\t\tstar_33 = (ImageView) findViewById(R.life.pricecost_star3);\r\n\t\tstar_34 = (ImageView) findViewById(R.life.pricecost_star4);\r\n\t\tstar_35 = (ImageView) findViewById(R.life.pricecost_star5);\r\n\t}", "public void add_item_button(View v){\n if(expiry_date==0){ //if no expiry date was chosen,\n if(product_name.equals(\"Milk\")){//and if the product is milk, \n expiry_date=7; //set it to the default of 7 days until expiry\n }else{//If the product is bread,\n expiry_date=3;//set it to the default of 7 days until expiry\n }\n }\n Product added_p=new Product(product_name,expiry_date); //added_p : product chosen by the user that they currently own\n added_list.add(added_p); //this product is added to the list \n text=(TextView) findViewById(R.id.added_list);\n String content=\"\";\n for(Product p:added_list){\n content=content+(p.getProduct_name()+\" \"+p.getProduct_exp()+\" days \\n\"); //then displayed to show the user \n }\n text.setText(content);\n }", "@Override\n\tpublic View getView(int position, View itemView, ViewGroup parent) {\n\t\tViewHolder holder = null;\n\n\t\tif (itemView == null)\n\t\t{\n\t\t\titemView = layoutInflater.inflate(R.layout.homeblock_item, parent, false);\n\n\t\t\tholder = new ViewHolder();\n\t\t\t//\tholder.imgProductImage = (ImageView) itemView.findViewById(R.id.imgProductImage);\n\n\t\t\tholder.imgProductImage = (NetworkImageView) itemView.findViewById(R.id.imgProductImage);\n\t\t\tholder.txtProductName=(TextView)itemView.findViewById(R.id.txtProductTitle);\n\t\t\tholder.txtDescreption=(TextView)itemView.findViewById(R.id.txtProductdescrebption);\n\t\t\tholder.txtShopNow=(TextView)itemView.findViewById(R.id.txtshopnow);\n\n\t\t\tint\tindividualItemHeight=(IOUtils.getHieghtOfScreen(mContext)/2)+(80*(int)mContext.getResources().getDisplayMetrics().density);\n\t\t\tAbsListView.LayoutParams param = new AbsListView.LayoutParams(\n\t\t\t\t\tandroid.view.ViewGroup.LayoutParams.MATCH_PARENT, individualItemHeight);\n\t\t\titemView.setLayoutParams(param);\n\n\t\t\titemView.setTag(holder);\n\t\t}\n\n\t\tholder = (ViewHolder) itemView.getTag();\n\t\tIOUtils.setImageToNetworkImageView(holder.imgProductImage, modelWishlist.get(position).getImageUrl());\n\n\t\tholder.txtProductName.setText(\"\"+modelWishlist.get(position).getTitle());\n\t\tholder.txtDescreption.setText(\"\"+modelWishlist.get(position).getType());\n\n\t\treturn itemView;\n\t}", "@NonNull\n @SuppressLint({\"SetTextI18n\", \"DefaultLocale\"})\n public View getView(int position, View convertView, @NonNull ViewGroup parent) {\n View row = convertView != null ? convertView\n : LayoutInflater.from(parent.getContext())\n .inflate(R.layout.simple_list_product, parent, false);\n Product product = productList.get(position);\n ImageView icon = row.findViewById(R.id.imageView2);\n if (product.getURL().contains(\"amazon\")) {\n icon.setImageResource(R.drawable.amazon256);\n }\n if (product.getURL().contains(\"ebay\")) {\n icon.setImageResource(R.drawable.ebay256);\n }\n if (product.getURL().contains(\"walmart\")) {\n icon.setImageResource(R.drawable.walmart256);\n }\n if (product.getURL().contains(\"homedepot\")) {\n icon.setImageResource(R.drawable.homedepot256);\n }\n ConstraintLayout layout = row.findViewById(R.id.frameLayout);\n layout.setOnLongClickListener((view1) -> createPopup(view1, position));\n layout.setOnClickListener(v -> detailedClicked(position));\n TextView view = row.findViewById(R.id.productNameString);\n view.setText(Html.fromHtml(String.format(\"<b>%s</b>\",\n product.getName())));\n TextView view2 = row.findViewById(R.id.description);\n String color = \"\";\n if (product.getChange() < 0) {\n color = \"#008000\";\n } else if (product.getChange() > 0) {\n color = \"#FF0000\";\n }\n view2.setText(Html.fromHtml(String.format(\"<b>Current Price:</b> $%.2f<br>\" +\n \"<b>Change:</b> <font color='%s'>%.2f%%<br></font> \" +\n \"<b>Date Added:</b> %s\",\n product.getCurrentPrice(), color, product.getChange(), product.getDate())));\n return row;\n }", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "public void buttonAction(MouseEvent event) {\n\t\tObservableList<String> names;\n\t\tnames = listView.getSelectionModel().getSelectedItems();\n\t\tint num = listView.getSelectionModel().getSelectedIndex();\n\t\tsetFocusedItemID(Integer.parseInt(list.get(num).getProductID()));\n\t\tsetSelectedItem(num);\n\t\tdouble sale = list.get(num).getSale();\n\t\t// get image from database!!\n\t\t// for(String elem :names) {\n\t\timage.setImage(list.get(num).getImg());\n\t\tif(image==null){\n\t\t\timage.setImage(new Image(\"/images/84-512.png\"));\n\t\t}\n\t\tdetails.setText(\"Beautifull \" + list.get(num).getColor() + \" \" + list.get(num).getType()\n\t\t\t\t+ \" .this product had sale of :\" + sale + \"% .\");\n\t\ttextField.setText(list.get(num).getProductName());\n\t\ttextField.setEditable(false);\n\t\tdetails.setEditable(false);\n\t\tObservableList<ProductTable> tableList = FXCollections\n\t\t\t\t.observableArrayList(new ProductTable(list.get(num).getType(),\n\t\t\t\t\t\tlist.get(num).getColor() + \" \" + list.get(num).getType(), list.get(num).getPrice() + \" $\"));\n\t\ttableView.setItems(tableList);\n\t\t// }\n\t}" ]
[ "0.67497575", "0.6521468", "0.65079665", "0.64635444", "0.64494306", "0.6343974", "0.629421", "0.6207193", "0.61736053", "0.6171802", "0.6130451", "0.61231196", "0.6097414", "0.60869473", "0.6086221", "0.60840315", "0.6078502", "0.6068944", "0.6050746", "0.6039688", "0.60337806", "0.6001806", "0.59870094", "0.5973158", "0.59678626", "0.5963953", "0.59575045", "0.5944271", "0.5914102", "0.5911598", "0.58516455", "0.584382", "0.58344394", "0.58320886", "0.58311003", "0.5830952", "0.5829686", "0.5819736", "0.58190316", "0.58164966", "0.5812482", "0.57978255", "0.57777506", "0.5765823", "0.5755795", "0.57496", "0.5746484", "0.57335705", "0.5713641", "0.57091916", "0.56925017", "0.56762594", "0.5665574", "0.5663587", "0.5660107", "0.56455046", "0.5645233", "0.5639339", "0.56282294", "0.5623599", "0.5621575", "0.5608076", "0.5603977", "0.56027997", "0.5602285", "0.5591465", "0.5588833", "0.55603194", "0.5547039", "0.55466545", "0.55399966", "0.5538866", "0.55369985", "0.5530803", "0.5529611", "0.55291665", "0.55178267", "0.5512871", "0.5507162", "0.55019605", "0.5500676", "0.54849464", "0.54785424", "0.54737186", "0.54736924", "0.5472633", "0.5470524", "0.54610234", "0.54607207", "0.54597986", "0.54537565", "0.54536486", "0.54473066", "0.544649", "0.5445682", "0.54456276", "0.5445418", "0.54393196", "0.543292", "0.5429172" ]
0.6036332
20
method makeMap() helps in creating a Map object referencing to the HashingMap class
@Override public Map makeMap() { Map<Integer,String> testMap = new HashingMap<>(); return testMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }", "MAP createMAP();", "public abstract void createMap();", "public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}", "protected Map<E, ListenerEntry<? extends E>> createMap() {\n\t\treturn new WeakHashMap<>();\n\t}", "public MyHashMap() {\n map = new HashMap();\n }", "public static <K, V> MapBuilder<HashMap<K, V>, K, V> hashMap()\n {\n return new MapBuilder<HashMap<K, V>, K, V>(new HashMap<K, V>());\n }", "protected Map createPropertiesMap() {\n return new HashMap();\n }", "public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}", "public static <K, V> HashMap<K, V> initHashMap() {\n\t\treturn new HashMap<K, V>();\n\t}", "public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}", "void setHashMap();", "@Test\n public void hashMapInitialised()\n {\n Map<Integer, String> strings = MapUtil.<Integer, String>hashMap().keyValue(1, \"Me\").keyValue(2, \"You\");\n // Is this really better than calling strings.put(..)?\n\n assertEquals(\"You\", strings.get(2));\n }", "public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }", "public Map instantiateBackingMap(String sName);", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "public MyHashMap() {\n\n }", "public MyHashMap() {\n\n }", "public static void createHashMap() {\n\t\t// create hash map\n\t\tHashMap<Integer, String> students = new HashMap<Integer, String>();\n\t\tstudents.put(1, \"John\");\n\t\tstudents.put(2, \"Ben\");\n\t\tstudents.put(3, \"Eileen\");\n\t\tstudents.put(4, \"Kelvin\");\n\t\tstudents.put(5, \"Addie\");\n\t\t// print the hash map\n\t\tfor (Map.Entry<Integer, String> e : students.entrySet()) {\n\t\t\tSystem.out.println(e.getKey() + \" \" + e.getValue());\n\t\t}\n\t}", "private static void createTypeMap() {\n\n }", "public GameMapHashMap() {\n HashMap<String, HashMap<String, String>> temporaryMap = new HashMap<>();\n instantiateIndividualRooms();\n\n temporaryMap.put(\"Atrium\", atrium);\n temporaryMap.put(\"Breakfast Nook\", breakfastNook);\n temporaryMap.put(\"Menagerie\", menagerie);\n temporaryMap.put(\"Conservatory\", conservatory);\n temporaryMap.put(\"Panic Room\", panicRoom);\n\n temporaryMap.put(\"Fire Swamps\", fireSwamps);\n temporaryMap.put(\"Hall\", hall);\n temporaryMap.put(\"Dining Room\", diningRoom);\n temporaryMap.put(\"Arcade\", arcade);\n temporaryMap.put(\"Observatory\", observatory);\n\n temporaryMap.put(\"Courtyard\", courtyard);\n temporaryMap.put(\"Library\", library);\n temporaryMap.put(\"Garden\", garden);\n temporaryMap.put(\"Laboratory\", laboratory);\n temporaryMap.put(\"Kitchen\", kitchen);\n\n rooms = Collections.unmodifiableMap(temporaryMap);\n }", "public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "public Map() {\n\n\t\t}", "public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}", "public Dictionary createDictionary(){\n Dictionary dict = new Dictionary(9973);\n return dict;\n }", "private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}", "public OwnMap() {\n super();\n keySet = new OwnSet();\n }", "@Contract(value = \" -> new\", pure = true)\n @Nonnull\n public static <K, V> Map<K, V> createSoftMap() {\n return Maps.newSoftHashMap();\n }", "public FactoryMapImpl()\n {\n super();\n }", "protected WumpusMap() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n public <K, V> Map<K, V> createMap(String name, Class<K> keyClass, Class<V> valueClass) {\n\n if (Globals.threadTxMap.get(Thread.currentThread()) == null ||\n Globals.threadTxMap.get(Thread.currentThread()).status != TxStatus.ACTIVE) {\n throw new ClientNotInTxException(\"Cannot create map: not in an active transaction\");\n }\n //ensure name is not blank/whitespace:\n if(name.trim().isEmpty()){\n throw new IllegalArgumentException(\"Invalid map name\");\n }\n //ensure keyClass/valueClass is not null:\n if(keyClass == null || valueClass == null){\n throw new IllegalArgumentException(\"Key/value class cannot be null\");\n }\n //ensure serializable\n if(!Serializable.class.isAssignableFrom(keyClass))\n throw new IllegalArgumentException(\"Key class is not serializable\");\n\n if(!Serializable.class.isAssignableFrom(valueClass))\n throw new IllegalArgumentException(\"Value class is not serializable\");\n\n //ensure that the name is not in use:\n if(Globals.alreadyExists(name)){\n throw new IllegalArgumentException(\"This name is already in use\");\n }\n\n //let's start by creating the object:\n DBTable<K, V> table = new DBTable<>(name, keyClass, valueClass);\n //set the object's types:\n Globals.addNameTable(name, table);\n Globals.addTableToThread(name);\n //send it to TxMgrImpl:\n //writeToDisk(table, name);\n return (Map<K, V>) Globals.getTable(name);\n }", "private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }", "public abstract mapnik.Map createMap(Object recycleTag);", "@Contract(value = \" -> new\", pure = true)\n @Nonnull\n @Deprecated\n public static <K, V> Map<K, V> createWeakMap() {\n return Maps.newWeakHashMap(4);\n }", "protected Map createMapMatchingType(MappingContext mappingContext) {\n Class<?> mapType = mappingContext.getTypeInformation().getSafeToWriteClass();\n if (mapType.isAssignableFrom(LinkedHashMap.class)) {\n return new LinkedHashMap();\n } else if (mapType.isAssignableFrom(TreeMap.class)) {\n return new TreeMap();\n } else {\n throw new ConfigMeMapperException(mappingContext, \"Unsupported map type '\" + mapType + \"'\");\n }\n }", "public MyHashMap() {\n hashMap = new ArrayList<>();\n }", "protected ApplicationMap createAppMapInstance (String mapname){\n\t\treturn new ApplicationMap(mapname);\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap()\r\n\t{\r\n\t\ttable = new MapEntry[7];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\tDUMMY = new MapEntry<>(null, null);\r\n\t}", "public MagicDictionary() {\n this.map = new HashMap<>();\n }", "private static <N extends Node> SortedMap<ImmutableContextSet, SortedSet<N>> createMap() {\n return new ConcurrentSkipListMap<>(ContextSetComparator.reverse());\n }", "@Nonnull\n private static MultimapBuilder.SetMultimapBuilder<Comparable, Object> newMapBuilder()\n {\n return MultimapBuilder.SetMultimapBuilder\n .treeKeys()\n .hashSetValues();\n }", "public static Map createMap(int xDim, int yDim){\n\t\treturn new Map(xDim,yDim);\n\t}", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "static Map instanceOfMap(int typeMap)\n {\n if(instanceOfMap==null)\n instanceOfMap = new Map(typeMap);\n return instanceOfMap;\n }", "private void createHashtable()\n {\n int numLanguages = languages.length;\n mapping = new Hashtable(numLanguages, 1.0f);\n for (int i = 0; i < numLanguages; i++)\n mapping.put(languages[i], values[i]);\n }", "public MyHashMap() {\r\n\t\tloadFactor = DEFAULT_LOAD_FACTOR;\r\n\t\tcapacity = DEFAULT_CAPACITY;\r\n\t\thashMapArray = new LinkedList[capacity];\r\n\t}", "Graph<Integer, DefaultEdge> buildMap();", "public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }", "public MyHashMap() {\n this.key_space = 2069;\n this.hash_table = new ArrayList<Bucket>();\n for (int i = 0; i < this.key_space; ++i) {\n this.hash_table.add(new Bucket());\n }\n }", "public MyHashMap() {\n map = new ArrayList<>();\n for (int i = 0;i<255;i++)\n map.add(new Entry());\n }", "public Map() {\n\t\t//intially empty\n\t}", "private BuildsMapping(long hash) {\n\t\tthis.hash = hash;\n\t\tthis.attribute = AttributeMapping.properify(name());\n\t}", "public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }", "@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }", "protected void createMaps() {\n\t\tBlueSchellingCell bCell = new BlueSchellingCell();\n\t\tOrangeSchellingCell oCell = new OrangeSchellingCell();\n\t\tEmptyCell eCell = new EmptyCell();\n\t\tTreeCell tCell = new TreeCell();\n\t\tBurningTreeCell bTCell = new BurningTreeCell();\n\t\tEmptyLandCell eLCell = new EmptyLandCell();\n\n\t\tLiveCell lCell = new LiveCell();\n\t\tDeadCell dCell = new DeadCell();\n\t\tGreenRPSCell gcell = new GreenRPSCell();\n\t\tRedRPSCell rcell = new RedRPSCell();\n\t\tBlueRPSCell blcell = new BlueRPSCell();\n\t\tWhiteRPSCell wcell = new WhiteRPSCell();\n\n\t\tFishCell fCell = new FishCell();\n\t\tSharkCell sCell = new SharkCell();\n\n\t\tAntGroupCell aCell = new AntGroupCell();\n\n\t\tsegregation.put('b', bCell);\n\t\tsegregation.put('o', oCell);\n\t\tsegregation.put('e', eCell);\n\n\t\tgameOfLife.put('l', lCell);\n\t\tgameOfLife.put('d', dCell);\n\n\t\trps.put('g', gcell);\n\t\trps.put('r', rcell);\n\t\trps.put('b', blcell);\n\t\trps.put('w', wcell);\n\n\t\tspreadingWildfire.put('t', tCell);\n\t\tspreadingWildfire.put('b', bTCell);\n\t\tspreadingWildfire.put('e', eLCell);\n\n\t\twaTor.put('f', fCell);\n\t\twaTor.put('s', sCell);\n\t\twaTor.put('e', eCell);\n\n\t\tforagingAnts.put('a', aCell);\n\t\tforagingAnts.put('e', eCell);\n\t\tinitExportMap();\n\n\t\tinitCountMap();\n\t}", "public CountingMap() {\n this( new HashMap<K, Integer>() );\n }", "public static void createMap()\n\t\t\t{\n\t\t\tmap = new Vector<Location>(4);\n\t\n\t\t\tLocation location1 = new Location(\"the southwest room.\",\"You see doors to the north and east.\");\n\t\t\tLocation location2 = new Location(\"the southeast room.\",\"You see doors to the north and west.\");\n\t\t\tLocation location3 = new Location(\"the northwest room.\",\"You see doors to the south and east.\");\n\t\t\tLocation location4 = new Location(\"the northeast room.\",\"You see doors to the south and west.\");\n\n\t\t\tmap.addElement(location1);\n\t\t\tmap.addElement(location2);\n\t\t\tmap.addElement(location3);\n\t\t\tmap.addElement(location4);\n\t\t\t\n\t\t\t// This section defines the exits found in each location and the \n\t\t\t// locations to which they lead.\n\t\t\tlocation1.addExit(new Exit(Exit.north, location3));\n\t\t\tlocation1.addExit(new Exit(Exit.east, location2));\n\t\t\tlocation2.addExit(new Exit(Exit.north, location4));\n\t\t\tlocation2.addExit(new Exit(Exit.west, location1));\n\t\t\tlocation3.addExit(new Exit(Exit.south, location1));\n\t\t\tlocation3.addExit(new Exit(Exit.east, location4));\n\t\t\tlocation4.addExit(new Exit(Exit.west, location3));\n\t\t\tlocation4.addExit(new Exit(Exit.south, location2));\n\t\t\t\n\t\t\tcurrentLocation = location1;\t\t\t\t\n\t\t\t}", "protected MapImpl() {\n }", "Map<String, String> mo14888a();", "public MyHashMap() {\n keys = new MapNode[n];\n vals = new MapNode[n];\n for (int i=0; i < n ; ++i) {\n keys[i] = new MapNode();\n vals[i] = new MapNode();\n }\n }", "private static <T> Map<Character,Node<T>> newNodeMap()\n\t\t{\n\t\t\treturn new HashMap<Character,Node<T>>();\n\t\t}", "public HashMap() {\n this.capacity = 100;\n this.hashMap = new LinkedList[capacity];\n }", "public void makeMap(){\r\n\t\tint m =1;\r\n\t\t//EnvironObj temp = new EnvironObj(null, 0, 0);\r\n\t\tfor(int i=0; i<map.size(); i++){\r\n\t\t\tfor(int j =0; j<map.get(i).size(); j++){\r\n\t\t\t\tString o = map.get(i).get(j);\r\n\t\t\t\t//System.out.println(\"grabbing o from map, o = \" + o);\r\n\t\t\t\tif(o.equals(\"t\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"treee.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\t//System.out.println(\"objectList: \" + objectList);\r\n\t\t\t\t}else if(o.equals(\"p\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"path.png\", j+m, i*20, true);\r\n\t\t\t\t\t//dont need to add to obj list bc its always in back\r\n\t\t\t\t\twalkables.add(temp);\r\n\r\n\t\t\t\t}else if(o.equals(\"h\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"house.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t}else if(o.equals(\"g\")){\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t}\r\n\t\t\t\telse if(!o.equals(\"g\")){\r\n\t\t\t\t\tString fn = o +\".txt\";\r\n\t\t\t\t\tSystem.out.println(\"filename for NPC: \" + fn);\r\n\t\t\t\t\tnp = new NPC(o, fn, j+m, i*20);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\tcharacters.add(np);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tm=0;\r\n\t\t}\r\n\t}", "private static <T> Map<T, String> createSimpleMap(T key, String value) {\n\t\tMap<T, String> map = new HashMap<>();\n\t\tmap.put(key, value);\n\t\treturn map;\n\t}", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "public MyHashMap() {\n\t\tthis(INIT_CAPACITY);\n\t}", "public IntObjectHashMap() {\n resetToDefault();\n }", "private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}", "public TimeMap2() {\n map = new HashMap<>();\n }", "public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}", "private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap() {\r\n\t\tdata = (Node<MapEntry<K, V>>[])new Node[INITIAL_SIZE];\r\n\t\tfor(int i = 0; i < data.length; i++)\t\t\t\t\t\t\t//For every element in data...\r\n\t\t\tdata[i] = new Node<MapEntry<K,V>>(new MapEntry<K,V>(null));\t//Add a head node to it.\r\n\t\t\r\n\t\t//TODO: May have to just default as null and in the put method, if the slot is null, then put a head node in it. The post-ceding code after that is logically correct!\r\n\t\r\n\t\tsize = 0;\t//Redundant but helpful to see that the size is 0\r\n\t}", "InfiniteMap<K,V> build(MapTypes type);", "public MyHashMap() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n }", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "@Override\n\tpublic HashMap<Position, Node> generate(){\n\t\tNode tempNode;\n\t\tPosition tempPosition;\n\t\tif(map != null && map.isEmpty()){\n\t\t\tfor(int y=0; y<numNodesY; y++){\n\t\t\t\tfor(int x=0; x<numNodesX; x++){\n\t\t\t\t\ttempPosition = new Position(x*nodeDistance, \n\t\t\t\t\t\t\ty*nodeDistance);\n\t\t\t\t\ttempNode = new Node(field, tempPosition,\n\t\t\t\t\t\t\tnodeSignalStrength,\n\t\t\t\t\t\t\tagentLife,\n\t\t\t\t\t\t\trequestLife);\n\t\t\t\t\tmap.put(tempPosition, tempNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new HashMap<Position, Node>(map);\n\t}", "public static void main(String[] args) {\n\t\tHashMap<String, Integer> map1 = new HashMap<String, Integer> ();\n\t\t\n //2. Creating HashMap with some initial capacity\n\t\tHashMap<String,Integer> map2 = new HashMap<String,Integer> (30);\n\t\t\n\t\t//3. Creating HashMap with some initial capacity and some load factor\n\t\tHashMap<String, Integer> map3 = new HashMap<String, Integer> (30, .60f);\n\t\t\n\t\t//4. Creating HashMap by copying another HashMap\n\t\tHashMap<String, Integer> map4= new HashMap<String, Integer> (map1);\n\t\t\n\t}", "private Map(int id) {\n\t\tthis.id = Integer.valueOf(id);\n\t\tSystem.out.println(\"Initializing map: \" + this.toString() + \" (\" + this.id + \")\");\n\t}", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "public DesignHashmap() {\n\t\ttable = new boolean[buckets][];\n\t}", "public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }", "public MapGraph()\n {\n this.nodes = new HashMap<Integer, MapNode>();\n this.edges = new HashMap<Integer, Set<MapEdge>>();\n this.nodesByName = new HashMap<String, Set<Integer>>();\n }", "private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }", "public TimeMap() {\n timeMap = new HashMap<>();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashTableMap() {\r\n\t\tK = new LinkedList[10];\r\n\t\tV = new LinkedList[10];\r\n\t}", "private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "public static <K, V> MapBuilder<LinkedHashMap<K, V>, K, V> linkedHashMap()\n {\n return new MapBuilder<LinkedHashMap<K, V>, K, V>(new LinkedHashMap<K, V>());\n }", "void setMap(Map aMap);", "public ObservableHashMap()\n {\n super();\n }", "protected SafeHashMap.Entry instantiateEntry()\n {\n return new Entry();\n }", "private static <K, V> Map<K, V> newConcurrentHashMap() {\n return new ConcurrentHashMap<K, V>();\n }", "public void method_9396() {\r\n super();\r\n this.field_8914 = Maps.newConcurrentMap();\r\n }", "private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}", "protected SafeHashMap.Entry<K, V> instantiateEntry()\n {\n return new Entry<>();\n }", "Hashtable createTypeMapping()\n {\n Hashtable mapping = new Hashtable();\n \n mapping.put(TypeFactory.getType(\"Double\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n StratmasDecimal sObj = (StratmasDecimal) o;\n if (isBadDecimal(sObj)) {\n return null;\n } else {\n return new StratmasDecimalParameter((StratmasDecimal) o);\n }\n }\n });\n mapping.put(TypeFactory.getType(\"double\", \"http://www.w3.org/2001/XMLSchema\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n StratmasDecimal sObj = (StratmasDecimal) o;\n if (isBadDecimal(sObj)) {\n return null;\n } else {\n return new StratmasDecimalParameter((StratmasDecimal) o);\n }\n }\n });\n mapping.put(TypeFactory.getType(\"NonNegativeInteger\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n return new StratmasIntegerParameter((StratmasInteger) o);\n }\n });\n // Ground type type hiearchy.\n mapping.put(TypeFactory.getType(\"anyType\", \"http://www.w3.org/2001/XMLSchema\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n return null;\n }\n });\n\n return mapping;\n }", "@Test\n public void testCreateHazardousMap2() {\n Map safeMap = safeCreator.createMap('s',mapSize);\n int size = safeMap.getSize();\n String type = safeMap.getType();\n assertEquals(10,size);\n assertEquals(\"Safe\",type);\n }", "private TreeMap<Character, Character> generateMap() {\r\n this.charMap = new TreeMap<Character, Character>();\r\n // generates an array of characters representing the alphabet\r\n char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\r\n\r\n for (int i=0; i<26; i++) {\r\n this.charMap.put(alphabet[i], alphabet[(i+key) % 26]);\r\n }\r\n\r\n return this.charMap;\r\n }" ]
[ "0.74760264", "0.7475621", "0.7327848", "0.72901577", "0.722688", "0.6970792", "0.6911501", "0.68672895", "0.6756639", "0.67290026", "0.6722571", "0.66683626", "0.66190875", "0.6618947", "0.6553283", "0.65307057", "0.651832", "0.6449706", "0.6425415", "0.64208484", "0.6419693", "0.6419204", "0.6379342", "0.6343872", "0.6341543", "0.6332602", "0.6294769", "0.6258927", "0.62501067", "0.6248502", "0.6223647", "0.62201446", "0.62028396", "0.6181405", "0.6178257", "0.6175328", "0.6170555", "0.6170472", "0.6148783", "0.6139498", "0.6137694", "0.61299294", "0.6128672", "0.61286217", "0.6123434", "0.61105645", "0.6109286", "0.6107982", "0.610121", "0.6097805", "0.6096873", "0.60948837", "0.6085656", "0.6082458", "0.60762125", "0.60742", "0.60606074", "0.60533696", "0.6052299", "0.6034832", "0.60329163", "0.60284126", "0.60126287", "0.59944475", "0.597932", "0.5977435", "0.597268", "0.59578615", "0.5955918", "0.5950171", "0.5941198", "0.59402287", "0.59395313", "0.5936365", "0.5933477", "0.5931834", "0.5916552", "0.5914876", "0.5908453", "0.58612496", "0.58588046", "0.58558255", "0.5855428", "0.58447504", "0.5841953", "0.58332574", "0.5832831", "0.5828318", "0.5826308", "0.58262783", "0.58229685", "0.5814189", "0.58094776", "0.58078474", "0.5805781", "0.5802437", "0.5801301", "0.57886034", "0.57862765", "0.5775095" ]
0.8474504
0
Genera l'eccezione con un messagio di errore associato
public ConnectionException(String pMessage) { super(pMessage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getErrmsg();", "public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn \"ATTENZIONE: nel progetto Eccezioni Java si è verificato un errore!\";\n\t}", "java.lang.String getErr();", "@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}", "protected String doErrorMessage(Exception e){\n\t\treturn \"{ \\\"ERROR\\\": \\\"\"+ e.getMessage() + \"\\\"}\" ;\n\t}", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "private String errorMessage() {\n\n StringBuilder strBuilder = new StringBuilder();\n strBuilder.append(eventBasedXorGatewayNode + \" => eventBasedXorGatewayNode \\n\");\n strBuilder.append(intermediateEvent1Node + \" => intermediateEvent1Node \\n\");\n strBuilder.append(intermediateEvent2Node + \" => intermediateEvent2Node \\n\");\n strBuilder.append(endNode1 + \" => endNode1 \\n\");\n strBuilder.append(endNode2 + \" => endNode2 \\n\");\n\n return strBuilder.toString();\n }", "protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "public String createErrorMessage(CommandSender sender, MCommand command);", "private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}", "public String toString() {\n return \"Error on line \" + lineNum + \": \" + errorMessage;\n }", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}", "String errorMessage();", "public String error();", "private String formatError(String message) {\n return \"error : \" + message;\n }", "String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }", "private String errors() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(impossibleLapTime());\n\t\tsb.append(multipleStartTimes());\n\t\treturn sb.toString();\n\t}", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "void showResultMoError(String e);", "String getErrorMessage();", "String getErrorMessage();", "public String getError() {\n\treturn mistake;\n }", "public void addError(String message);", "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "String getErrorsString();", "void errorBox(String title, String message);", "void showError(String message);", "void showError(String message);", "private void obtieneError(int error) throws Excepciones{\n String[] err = {\n \"ERROR DE SYNTAXIS\",\n \"PARENTESIS NO BALANCEADOS\",\n \"NO EXISTE EXPRESION\",\n \"DIVISION POR CERO\"\n };\n throw new Excepciones(err[error]);\n}", "private void showErrors() {\n \t\tfor (Iterator it = this.errors.iterator(); it.hasNext();) {\n \t\t\ttry {\n \t\t\t\tObject err = it.next();\n \t\t\t\t\n \t\t\t\t/* errors can be represented by PositionedError, UnpositionedError or String */\n \t\t\t\tif (err instanceof PositionedError) {\n \t\t\t\t\tPositionedError error = (PositionedError)err;\n \t\t\t\t\tTokenReference token = error.getTokenReference();\n \t\n \t\t\t\t log.debug(\"file: \" + token.getFile() + \", \" + \"line: \" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t\t\t\t\t\t+ token.getLine() + \", \" + \"path: \" //$NON-NLS-1$//$NON-NLS-2$\n \t\t\t\t\t\t\t+ token.getPath());\n \n \t\t\t\t\tIResource resource = ProjectProperties.findResource(token\n \t\t\t\t\t\t\t.getPath().getAbsolutePath(), currentProject);\n \t\t\t\t\t\n \t\t\t\t\tIMarker marker = null;\n \t\t\t\t\tif (resource != null) {\n \t\t\t\t\t\tmarker = resource.createMarker(IMarker.PROBLEM);\n \t\t\t\t\t\tif (token.getLine() > 0) {\n \t\t\t\t\t\t\tmarker.setAttribute(IMarker.LINE_NUMBER, token.getLine());\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// for the cases, when error refers to a generated piece of code\n \t\t\t\t\t\tmarker = currentProject.createMarker(IMarker.PROBLEM);\n \t\t\t\t\t}\n \t\t\t\t\tmarker.setAttribute(IMarker.MESSAGE, error\n \t\t\t\t\t\t\t.getFormattedMessage().getMessage());\n \t\t\t\t\tmarker.setAttribute(IMarker.SEVERITY, new Integer(\n \t\t\t\t\t\t\tIMarker.SEVERITY_ERROR));\n \t\t\t\t}\n \t\t\t\telse { /* create unpositioned error at the scope of the project */\t\t\t\t\t\n \t\t\t\t\tString msg;\n \t\t\t\t\tif (err instanceof UnpositionedError) {\n \t\t\t\t\t\tmsg = ((UnpositionedError)err).getFormattedMessage().getMessage();\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tmsg = (String)err; // for internal errors\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tIMarker marker = currentProject.createMarker(IMarker.PROBLEM);\n \t\t\t\t\tmarker.setAttribute(IMarker.MESSAGE, msg);\n \t\t\t\t\tmarker.setAttribute(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));\n \t\t\t\t}\n \t\t\t} \n \t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}", "void drawError(String message);", "void showErrorMsg(String string);", "public static String getErrorDescription(int errCode) {\n switch (errCode) {\n case ERROR_PACKET_HEADER:\n return \"Invalid packet header\";\n case ERROR_PACKET_TYPE:\n return \"Invalid packet type\";\n case ERROR_PACKET_LENGTH:\n return \"Invalid packet length\";\n case ERROR_PACKET_ENCODING:\n return \"Unsupported packet encoding\";\n case ERROR_PACKET_PAYLOAD:\n return \"Invalid packet payload\";\n case ERROR_PACKET_CHECKSUM:\n return \"Invalid checksum\";\n case ERROR_PACKET_ACK:\n return \"Invalid ACL sequence\";\n case ERROR_PROTOCOL_ERROR:\n return \"Protocol error\";\n case ERROR_PROPERTY_READ_ONLY:\n return \"Property is read-only\";\n case ERROR_PROPERTY_WRITE_ONLY:\n return \"Property is write-only\";\n case ERROR_PROPERTY_INVALID_ID:\n return \"Invalid/Unrecognized property key\";\n case ERROR_PROPERTY_INVALID_VALUE:\n return \"Invalid propery value\";\n case ERROR_PROPERTY_UNKNOWN_ERROR:\n return \"Unknown property error\";\n case ERROR_COMMAND_INVALID:\n return \"Invalid/Unsupported command\";\n case ERROR_COMMAND_ERROR:\n return \"Command error\";\n case ERROR_UPLOAD_TYPE:\n return \"Invalid upload type\";\n case ERROR_UPLOAD_LENGTH:\n return \"Invalid upload length\";\n case ERROR_UPLOAD_OFFSET_OVERLAP:\n return \"Upload offset overlap\";\n case ERROR_UPLOAD_OFFSET_GAP:\n return \"Upload offset gap\";\n case ERROR_UPLOAD_OFFSET_OVERFLOW:\n return \"Upload offset overflow\";\n case ERROR_UPLOAD_FILE_NAME:\n return \"Invalid uploaded filename\";\n case ERROR_UPLOAD_CHECKSUM:\n return \"Invalid uploaded checksum\";\n case ERROR_UPLOAD_SAVE:\n return \"Unable to save uploaded file\";\n case ERROR_GPS_EXPIRED:\n return \"GPS fix expired\";\n case ERROR_GPS_FAILURE:\n return \"GPS failure\";\n }\n if ((errCode >= ERROR_INTERNAL_ERROR_00) && (errCode <= ERROR_INTERNAL_ERROR_0F)) {\n return \"Internal error\";\n }\n return \"Unknown [\" + StringTools.toHexString(errCode, 16) + \"]\";\n }", "private static void generateError(int i, int j, int k) {\n\t\t\n\t\tswitch(i) {\n\t\t\n\t\t\tcase 0: // CHEP\n\t\t\t\tswitch(k) {\n\t\t\t\t\tcase 1: // date\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid invoice number. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;;\n\t\t\t\t\tcase 2: // date\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid region. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\terr_msg = \"Error: The percentages of total invoices are invalid. The sum of all percentages should be 100%\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid net total. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;;\n\t\t\t\t}\n\t\t\t\t\n\t\t\tcase 1: // Delivery\n\t\t\t\tswitch(k) {\n\t\t\t\tcase 2: \n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tcase 4:\n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid amount. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tcase 5: \n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid reference number. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tcase 6:\n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid delivery date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tswitch(k) {\n\t\t\t\t\tcase 2: \n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid amount. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 5: \n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid reference number. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void erroMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_ERRO, msg));\n }", "public void showError(String error);", "private void mostraErrore(SQLException e) {\n String msg;\n \n msg = \"Codice Errore: \" + e.getErrorCode() + \"\\n\";\n msg += \"Messaggio: \" + e.getMessage() + \"\\n\";\n msg += \"SQLState: \" + e.getSQLState() + \"\\n\";\n\n JOptionPane.showMessageDialog(this, msg, \"Errore\", JOptionPane.ERROR_MESSAGE);\n }", "public String getErrorText()\n {\n if ( null == m_errorMsg )\n {\n StringBuilder buf = new StringBuilder( 400 );\n\n // Error checking should never happen if the collection of existing\n // names is null or empty, but take care anyway.\n if (!(null == m_existingElems || m_existingElems.size() < 1))\n {\n Iterator iter = m_existingElems.iterator();\n boolean first = true;\n while ( iter.hasNext())\n {\n if ( !first )\n buf.append( \", \" );\n buf.append( iter.next().toString());\n first = false;\n }\n }\n\n String [] args = new String[]\n {\n buf.toString()\n };\n String pattern = ms_res.getString( \"uniqueListConstraintError\" );\n m_errorMsg = MessageFormat.format( pattern, args );\n }\n return m_errorMsg;\n }", "public String getMessage()\n {\n return super.getMessage()+promo_error.getCode()+\"already exists\";\n }", "static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }", "String getInvalidMessage();", "@Override\r\n\tpublic String getMessage() {\n\t\treturn \"Failed\";\r\n\t}", "public String muestraListaErrores(){\r\n \tString salida;\r\n \tsalida= \"\\n\";\r\n \tif (errors.size()==0){\r\n\t \tsalida=salida+\"No hubo errores\\n\";\r\n\t \treturn salida;\r\n \t}\r\n \telse {\r\n \t\tfor(TError error: errors) {\r\n \t\t\tsalida += error + \"\\n\";\r\n \t\t}\r\n \t\treturn salida;\r\n \t}\r\n }", "public static void mensagemErroCadastrar() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro ao cadastrar. Revise os dados inseridos.\", \"Erro\", JOptionPane.ERROR_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Erro32.png\"))));\n\t}", "public void error(String message);", "public String errorDescription()\n {\n return edma_errorDesc;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:14:32.469 -0400\", hash_original_method = \"D1B8F575AC734282ABB979C20EC6B537\", hash_generated_method = \"BFEE1A7165C05BCE7710145BAB73FE2E\")\n \n public static String getErrorString(int errorCode){\n \tdouble taintDouble = 0;\n \ttaintDouble += errorCode;\n \n \tString retObj = new String(); \n \tretObj.addTaint(taintDouble);\n \treturn retObj;\n }", "void showError(String errorMessage);", "default String error(String... args) {\n String message = create(args);\n Reporter.log(message);\n getLogger().error(message);\n return message;\n }", "public void error();", "@Override\r\n\tprotected void processError() {\n\t\tsuper.processError();\r\n\t\tshowToast(error_generico_process);\r\n\t}", "public void showError(String errorMessage);", "void outputError(String message) {\n\n fatalCount++;\n/*\n if (fatalCount == 1) {\n //fatalErrorsTable.addRow(ec.cr1ColRow(\n // \"Fatal errors\", true, \"red\", IHAlign.CENTER));\n TableRow row = new TableRow();\n row.addCell(new TableDataCell(\n \"<font color=red><b>Fatal errors</b></font>\").setHAlign(IHAlign.CENTER));\n fatalErrorsTable.addRow(row);\n } // if (fatalCount == 1)\n //fatalErrorsTable.addRow(ec.cr1ColRow(message));\n TableRow row = new TableRow();\n row.addCell(new TableDataCell(message));\n fatalErrorsTable.addRow(row);\n*/\n ec.writeFileLine(reportFile, message);\n if (dbg) System.out.println(\"<br>outputError: message = \" + message);\n }", "private String buildErrorMsg(int charPositionInLine, String line, String msg) {\n StringBuilder sb = new StringBuilder();\n sb.append(line);\n sb.append(\"\\n\");\n for (int i = 0; i < charPositionInLine; i++) {\n sb.append(\" \");\n }\n sb.append(\"^\\n\");\n sb.append(msg);\n\n return sb.toString();\n }", "private <RT> String CompileErrorsFromResult(PlayFabErrors.PlayFabResult<RT> result)\n {\n if (result == null || result.Error == null)\n {\n return null;\n }\n\n String errorMessage = \"\";\n if (result.Error.errorMessage != null)\n {\n errorMessage += result.Error.errorMessage;\n }\n if (result.Error.errorDetails != null)\n {\n for (Map.Entry<String, List<String>> pair : result.Error.errorDetails.entrySet())\n {\n for (String msg : pair.getValue())\n {\n errorMessage += \"\\n\" + pair.getKey() + \": \" + msg;\n }\n }\n }\n return errorMessage;\n }", "private void error(String message) {\n errors++;\n System.err.println(\"Line \" + token.line + \",\"\n + \" Col \" + token.col + \": \"\n + message);\n }", "java.util.List<WorldUps.UErr> \n getErrorList();", "public final String getMessageErreur() {\n\t\tString messageErreur = null;\n\n\t\t// il faut que toutes les taches obligatoires soient accomplies\n\t\tNSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = getTachesObligatoiresAbsentes();\n\t\tif (tachesObligatoiresAbsentes.count() > 0) {\n\t\t\tmessageErreur = \"Tâches non effectuées : \";\n\t\t\tmessageErreur += \"<ul>\";\n\t\t\tfor (int i = 0; i < tachesObligatoiresAbsentes.count(); i++) {\n\t\t\t\tI_WorkFlowItem tache = tachesObligatoiresAbsentes.objectAtIndex(i);\n\t\t\t\tmessageErreur += \"<li>\";\n\t\t\t\tmessageErreur += tache.libelle();\n\t\t\t\tmessageErreur += \"</li>\";\n\t\t\t}\n\t\t\tmessageErreur += \"</ul>\";\n\t\t}\n\n\t\treturn messageErreur;\n\t}", "private String renderErrorMessageBox(String errorMsg) {\n \t\tStringBuilder builder = new StringBuilder(\n \t\t\t\t\"<br/><br/><div align=center>\");\n \t\tbuilder.append(errorMsg);\n \t\tbuilder.append(\"</div>\");\n\n \t\treturn builder.toString();\n \t}", "@Override\n\tprotected String generateMessage() {\n\t\treturn \"Script evaluation exception \" + generateSimpleMessage();\n\t}", "public String getErrorMsg() {\n return this.emsg;\n }", "@Override\n public String getAddionalInformationMessage()\n {\n StringBuilder b = new StringBuilder();\n for(String c : failedFilepaths.toArray(new String[]{}))\n {\n b.append(c).append(\"\\n\");\n }\n return b.toString();\n }", "public void report_error(String message, Object info) {\n StringBuilder m = new StringBuilder(\"ERROR\");\n if (info instanceof java_cup.runtime.Symbol) {\n java_cup.runtime.Symbol s = ((java_cup.runtime.Symbol) info);\n if (s.left >= 0) { \n m.append(\" in line \"+(s.left+1));\n if (s.right >= 0)\n m.append(\", column \"+(s.right+1));\n }\n }\n m.append(\" : \"+message);\n System.out.println(m.toString());\n errores.add(m.toString());\n }", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "public String toString()\n {\n return \"<ERROR>\";\n }", "private void wrapError(String code, String message) {\r\n recentErrorCode = code;\r\n\r\n\t\t/* \r\n\t\t *\t<error>\r\n\t\t *\t\t<code>TEAL_8453</code>\r\n\t\t *\t\t<message>[request_id=201203082] Failed to create a process module by wrong value of a parameter(=topic_id)</message>\r\n\t\t *\t</error>\r\n\t\t *\r\n\t\t *\t<error>\r\n\t\t *\t\t<code>TEAL_4410</code>\r\n\t\t *\t\t<message>Topic ID <1000> does not exist.</message>\r\n\t\t *\t</error> \r\n\t\t*/\r\n if (\"TEAL_8453\".equals(recentServerErrorCode)) {\r\n recentErrorCode = \"APIL_0155\";\r\n recentErrorMessage = message + \": argument's not valid (server-side): \" + recentServerErrorMessage;\r\n } else if (\"TEAL_4410\".equals(recentServerErrorCode)) {\r\n recentErrorCode = \"APIL_0161\";\r\n recentErrorMessage = message + \": topic ID's not exist\";\r\n } else {\r\n recentErrorMessage = message + \" DUE TO [\" + recentServerErrorCode + \": \" + recentServerErrorMessage + \"]\";\r\n }\r\n\r\n recentServerErrorMessage = \"\";\r\n\r\n if (consoleLog) {\r\n System.out.println(\"[E!:\" + recentErrorCode + \"] \" + recentErrorMessage);\r\n }\r\n }", "public WorldUps.UErr getError(int index) {\n if (errorBuilder_ == null) {\n return error_.get(index);\n } else {\n return errorBuilder_.getMessage(index);\n }\n }", "public static String displayError(Exception e) {\r\n\t\t\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\te.printStackTrace(new PrintWriter(sw));\r\n\t\tString ret_str = sw.toString();\r\n\t\t\r\n\t\treturn ret_str;\r\n\t}", "private static void displayError(Shell shell, String msg) {\n MessageBox mbox = new MessageBox(shell, SWT.ICON_ERROR|SWT.OK);\n mbox.setMessage(msg);\n mbox.setText(\"USBDM - Can't create launch configuration\");\n mbox.open();\n }", "@Override\n\tpublic void error(Marker marker, CharSequence message) {\n\n\t}", "public String getError() {\n return error != null ? error : \"An unknown error occurred.\";\n }", "private static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can only handle arguments passed in a format like the following: 1/2 * 3/4\\n\");\n }", "public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}", "public void errorOccured(String errorMessage, Exception e);", "public String getErrorMsg() {\r\n\t\treturn errorMsg;\r\n\t}", "@Override\r\n public String getMessage() {\r\n return ErrorMessage.STATUS_FORMATTING_IN_FILE_ERROR;\r\n }", "public static String operationFailed() {\n return holder.format(\"operationFailed\");\n }", "public String getError(String code) {\r\n\t\tswitch (code) {\r\n\t\tcase \"01\":\r\n\t\t\treturn Const.MSG_LOGIN;\r\n\t\tcase \"02\":\r\n\t\t\treturn Const.MSG_NO_FREE_DEVICES;\r\n\t\tcase \"03\":\r\n\t\t\treturn Const.MSG_SEND_EMAIL_TO;\r\n\t\tcase \"11\":\r\n\t\t\treturn \"Не указаны адрес электронной почты или тело сообщения.\";\r\n\t\t\t// case \"14\":\r\n\t\t\t// return \"Проверьте адрес электронной почты.\\n\"\r\n\t\t\t// + \"На него не удалось отправить подтверждающее письмо.\";\r\n\t\tdefault:\r\n\t\t\treturn activationRequest ? Const.MSG_SEND_EMAIL_TO\r\n\t\t\t\t\t: Const.MSG_SEND_EMAIL_TO_MSG;\r\n\t\t}\r\n\t}", "public String GetErro()\r\n { \r\n for (Object erro : erros) {\r\n this.strErro += erro.toString() + \"\\n\";\r\n }//for (Object erro : erros) {\r\n \r\n return this.strErro;\r\n }", "public void makeErrors() {\n Random rnd = new Random();\n String charset = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz\";\n for (int i = 0; i < message.length(); i += 3) {\n message.setCharAt(i + rnd.nextInt(3),\n charset.charAt(rnd.nextInt(charset.length())));\n }\n }", "public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }" ]
[ "0.7212283", "0.71063703", "0.7053021", "0.7006146", "0.7005888", "0.69925964", "0.69464", "0.6941984", "0.6941984", "0.6941984", "0.69229066", "0.68837434", "0.6873936", "0.6873936", "0.6873936", "0.6873936", "0.6841662", "0.68409806", "0.67917925", "0.6734105", "0.6734105", "0.6734105", "0.6734105", "0.6734105", "0.6734105", "0.6734105", "0.6734105", "0.6734105", "0.6734105", "0.6734105", "0.6734105", "0.67176294", "0.66851145", "0.6670014", "0.66549677", "0.6600883", "0.6578924", "0.65469825", "0.6538234", "0.65205854", "0.65205854", "0.6517802", "0.6507394", "0.64979", "0.64891976", "0.6479775", "0.6473859", "0.6473859", "0.6459207", "0.6455215", "0.64341414", "0.6431262", "0.64133334", "0.6405971", "0.63922536", "0.6385966", "0.6380003", "0.6356313", "0.63526404", "0.63445705", "0.63323396", "0.6329427", "0.63033277", "0.62851626", "0.628293", "0.6269083", "0.62666607", "0.6265604", "0.6255218", "0.6253382", "0.6251139", "0.62460345", "0.6231971", "0.6230631", "0.6227828", "0.62276596", "0.6224508", "0.62190676", "0.62050104", "0.6202542", "0.6198504", "0.6197569", "0.6191766", "0.61837596", "0.6170198", "0.6156605", "0.6156288", "0.61538386", "0.6137641", "0.6135725", "0.6133226", "0.61330193", "0.6128973", "0.6126691", "0.61254555", "0.61253643", "0.61169744", "0.61166996", "0.6113742", "0.6113248", "0.61132264" ]
0.0
-1
Constructor It calls two methods initComponent() createEvent()
public Bebawy_Hotels() { initComponent(); createEvent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ICEvent() {}", "public Event() {\r\n\r\n\t}", "public Event() {\n }", "public Event() {\n }", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "public Event() {\n\t}", "@Override\r\n\tpublic void initEvent() {\n\r\n\t}", "public AddEvent() {\n initComponents();\n }", "public ProductMain() {\n initComponents();\n init();\n addEvent();\n \n }", "private void initcomponent() {\n\r\n\t}", "@Override\r\n public void initComponent() {\n }", "public void initEventsAndProperties() {\r\n }", "public Event() {\n\n }", "public Event(){\n\n }", "@Override\n public void initComponent() {\n }", "@Override\n public void initComponent() {\n }", "public Component() {\n }", "public M_Hompeage1_evt() {\n initComponents();\n }", "public Event() {}", "public Eventd() {\n }", "public EventDetails() {\n initComponents();\n }", "public\n CreateEvent()\n {}", "public Event(){\n \n }", "private void initializeEvents() {\r\n\t}", "@Override\n protected void initEventAndData() {\n }", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "public abstract void init() throws ComponentInitializationException;", "public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }", "public ComponentsFactory() {\n\t\tsuper();\n\t}", "public CreateNewEventJPanel() {\n }", "private void createEvents() {\n\t}", "public ScheduleEvent()\n\t{\n\n\t}", "private void init() {\n initView();\n setListener();\n }", "private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}", "EventManager()\n {\n }", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public CEventProgram()\r\n {\r\n }", "@Override public void init()\n\t\t{\n\t\t}", "public EventDispatcher() {\n }", "public void init() {\r\n setEventType(4);\r\n }", "public MyCalender() {\n initComponents();\n }", "private void createdComponent() {\r\n\r\n\t\tloadImage();\r\n\t\tresizeImage();\r\n\t\ttry {\r\n\t\t\tif (customFont == null) {\r\n\t\t\t\tcustomFont = FontLoader.getInstance().getXenipa();\r\n\t\t\t\tif (customFont == null) {\r\n\t\t\t\t\tcustomFont = new FontLoader().importFont();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FontFormatException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t\tthis.createpanel1();\r\n\t\tthis.createpanel2();\r\n\t\tthis.createpanel3();\r\n\t\tthis.createpanel4();\r\n\t\tthis.revalidate();\r\n\t}", "public SoundEvent() \n\t{\n\tsuper(GAME_SOUND_EVENT);\n\t}", "public ComponentMover() {\n\t}", "public ADateDemo() {\n\n\n initComponents();\n\n\n }", "Constructor() {\r\n\t\t \r\n\t }", "private EventController()\n {\n events = new ArrayList<>();\n currentCalendar = Calendar.getInstance();\n }", "@Override\n\tpublic void init() {\n\t\tSystem.out.println(\"Initializing Tetris...\");\n\t //Execute a job on the event-dispatching thread\n\t try {\n\t SwingUtilities.invokeAndWait(new Runnable() {\n\t public void run() {\n\t createUI();\n\t }\n\t });\n\t } catch (Exception e) {\n\t System.err.println(\"Error creating UI\");\n\t \te.printStackTrace();\n\t }\n\t}", "public EventDispatcher(){\r\n\t\tlisteners = new ArrayList<IEventListener>();\r\n\t\tisBlocked=false;\r\n\t}", "public MyFrame() {\n\t\tinitializeGui();\n\t\taddMouseListener(this);\n\t\taddComponentListener(this);\n\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\n protected void initializeEventList()\n {\n }", "public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "protected void init(){\n ac = new ButtonEventManager(this);\n \n nameField = new JTextField();\n \n done = new JButton(\"DONE\");\n back = new JButton(\"MAIN MENU\");\n quit = new JButton(\"QUIT\");\n \n done.setActionCommand(\"go to game menu after saving\");\n back.setActionCommand(\"go to the main menu\");\n quit.setActionCommand(\"quit the game\");\n \n Font font = new Font(\"Arial\", Font.PLAIN, 10);\n \n nameField.setFont(font);\n \n nameField.setBounds(2 * this.getWidth() / 3 - buttonWidth / 2, (int)(0.4 * this.getHeight() - textFieldHeight / 2), buttonWidth, textFieldHeight);\n \n done.setBounds((this.getWidth() / 2 - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n back.setBounds((this.getWidth() - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n quit.setBounds(3 * (this.getWidth() - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n \n done.addActionListener(ac);\n back.addActionListener(ac);\n quit.addActionListener(ac);\n \n add(nameField);\n \n add(done);\n add(back);\n add(quit);\n }", "public void initComponents();", "private void init()\n {\n // Add listeners to the view\n addEventListeners();\n addSelectionChangeListeners();\n\n // Add listeners to the model\n addBackgroundImageHandler();\n addFrameWidgetHandler();\n addWidgetShapeChangeHandler();\n\n project.addHandler(this,\n Project.DesignChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Project.DesignChange chg =\n (Project.DesignChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == design))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.FrameChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Design.FrameChange chg =\n (Design.FrameChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == frame))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.DeviceTypeChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Set<DeviceType> dts =\n design.getDeviceTypes();\n int deviceTypes =\n DeviceType.buildDeviceSet(dts);\n\n view.resetDeviceTypes(deviceTypes);\n }\n });\n\n // Add listeners to rename events on project and design\n frame.addHandler(this, NameChangeAlert.class, renameHandler);\n design.addHandler(this,\n NameChangeAlert.class,\n renameHandler);\n\n // Some items should always be enabled.\n // Should be the last call in the constructor\n setInitiallyEnabled(true);\n }", "Component createComponent();", "Component createComponent();", "public VComponente() {\n initComponents();\n }", "public void init(){}", "protected void init() {\r\n\t\tsetBackground(Color.black);\r\n\t\tsetForeground(Color.white);\r\n\t\taddMouseListener(this);\r\n\t\taddMouseMotionListener(this);\r\n\t\tcreateSelection();\r\n\t\tsel.addListener(this);\r\n\t\tcreateSection();\r\n\t\tsection.addListener(this);\r\n\t\tsetOpaque(true);\r\n\t\tremoveAll();\r\n\t}", "@PostConstruct\n public void init() {\n eventBus.register(this);\n }", "public ConfEGTaskPanel() {\n initComponents();\n initListenerButton(); \n initState();\n initApplyCellCheckBox();\n }", "private LogEvent()\n\t{\n\t\tsuper();\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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}", "protected void init() {\n /* 66 */\n super.init();\n /* */\n /* 68 */\n this.mChartTouchListener = new PieRadarChartTouchListener(this);\n /* */\n }", "public Component() {\n\t\tlocation = new Point(0, 0);\n\t\tsize = new Dimension(100, 80);\n\t\tproperties = new LinkedHashMap<>();\n\t\tsubJobContainer= new LinkedHashMap<>();\n\t\tleftPortCount = 0;\n\t\trightPortCount = 0;\n\t\tbottomPortCount = 0;\n\t\tinputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\n\t\tinputLinks = new ArrayList<Link>();\n\t\toutputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\t\toutputLinks = new ArrayList<Link>();\n\t\tinputportTerminals = new ArrayList<String>();\n\t\toutputPortTerminals = new ArrayList<String>();\n\t\twatcherTerminals = new HashMap();\n\t\tnewInstance = true;\n\t\tvalidityStatus = ValidityStatus.WARN.name();\n\t\tcomponentName = DynamicClassProcessor.INSTANCE.getClazzName(this\n\t\t\t\t.getClass());\n\n\t\tcomponentLabel = new ComponentLabel(componentName);\n\t\tcomponentLabelMargin = 16;\n\n\t\tprefix = XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\t\n\t\tdefaultPrefix=XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\tinitPortSettings();\n\t\ttoolTipErrorMessages = new LinkedHashMap<>();\n\t\tstatus = ComponentExecutionStatus.BLANK;\n\t}", "public static void init() {\r\n load();\r\n registerEventListener();\r\n }", "public void init() {\n initComponents();\n initData();\n }", "@Override\n public void init() {\n f = new SampleFrame2(\"Handle Mouse events.\");\n f.setSize(300, 200);\n f.setVisible(true);\n\n // register this object to receive its own mouse events\n addMouseListener(this);\n addMouseMotionListener(this);\n }", "@Override\n public void init() {\n }", "public Library() {\r\n initComponents();\r\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "public Tool() {\n initComponents();\n }", "public xo() {\n initComponents();\n }", "public MCalendarEventView()\r\n {\r\n }", "public MEventHandler() {\r\n this(false);\r\n }", "private void initEvent() {\n\t\tmBtnPower.setOnClickListener(this);\n\t\tmBtnProfile.setOnClickListener(this);\n\t\tmBtnArea.setOnClickListener(this);\n\t\tmBtnSkipTime.setOnClickListener(this);\n\t\tmBtnFrequencyPoint.setOnClickListener(this);\n\t\tmBtnAlgorithm.setOnClickListener(this);\n\t}", "public void init() {\n \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public MainEvent() {\n super.register(new HelloWorld());\n }", "public Punto_venta() {\n initComponents();\n }", "public GUI() {\n\t\tinitComponents();\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private void init() {\n listeners = new PropertyChangeSupport(this);\n }", "public RetroStick() {\n eventBus = new EventBus();\n initComponents();\n }", "protected WrapperTickEvent()\n {\n }", "@Override\n public void init() {}", "public BaseLogic()\n {\n this(new EventBus());\n }", "public ConverterComponent() {\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "public void init(){\n \n }", "BasicEvents createBasicEvents();" ]
[ "0.7302567", "0.7270382", "0.7241496", "0.7241496", "0.718616", "0.7150446", "0.7103924", "0.7013016", "0.6988138", "0.697761", "0.6939472", "0.6926153", "0.69238585", "0.6917816", "0.6917765", "0.6917765", "0.68971545", "0.6888452", "0.68675965", "0.68149894", "0.68078697", "0.68070406", "0.6746874", "0.6745322", "0.6671594", "0.66706395", "0.66706395", "0.6655303", "0.6593023", "0.658034", "0.6574621", "0.65272987", "0.65201795", "0.6502833", "0.6478357", "0.6474721", "0.6453286", "0.64248866", "0.6370521", "0.6364492", "0.63521624", "0.63330406", "0.63274413", "0.63237906", "0.629938", "0.62880856", "0.6284604", "0.6274826", "0.6273523", "0.62725586", "0.62680244", "0.6266067", "0.6249686", "0.6234818", "0.6228721", "0.6221913", "0.622154", "0.6220752", "0.62124306", "0.62124306", "0.62113357", "0.61987686", "0.61943126", "0.61889946", "0.6188701", "0.61856806", "0.61806715", "0.61775386", "0.61723536", "0.61723536", "0.61723536", "0.6171921", "0.6162027", "0.6160913", "0.6160373", "0.6159451", "0.61580414", "0.6157233", "0.6154212", "0.61530775", "0.6152525", "0.61477804", "0.614702", "0.61448056", "0.6144596", "0.6141788", "0.6133791", "0.61300373", "0.61234874", "0.6119184", "0.6109049", "0.6108161", "0.61065453", "0.61046994", "0.61024463", "0.6101991", "0.61001194", "0.61001194", "0.6098347", "0.60974187" ]
0.6174186
68
initComponent method in this method all the code of defining variables is coded all the layouts, and all the components are in the initComponent
private void initComponent() { // Setting the frame bounds setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, 579, 366); // adding the content pane // and setting the empty border contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(contentPane); //Label Hotels Options lblHotelsOptions = new JLabel("Hotels Options"); // JComboBox Hotels Options displays the 5 different options cbHotelsOptions = new JComboBox(hotelsModel); // Setting new panel for the reservation's list panel = new JPanel(); panel.setBorder(new TitledBorder(null, "Reservations:", TitledBorder.LEADING, TitledBorder.TOP, null, null)); // Declaring labels for certification lblCheckIn = new JLabel("Check-In Info"); lblCheckIn.setVisible(false); lblInMonth = new JLabel("Month:"); lblInMonth.setVisible(false); lblInDay = new JLabel("Day:"); lblInDay.setVisible(false); lblCheckout = new JLabel("Check-Out Info"); lblCheckout.setVisible(false); lblOutMonth = new JLabel("Month:"); lblOutMonth.setVisible(false); lblOutDay = new JLabel("Day:"); lblOutDay.setVisible(false); // Declaring text fields to allow the user to write in them txtInMonth = new JTextField(); txtInMonth.setVisible(false); txtInMonth.setColumns(10); txtInDay = new JTextField(); txtInDay.setVisible(false); txtInDay.setColumns(10); txtOutMonth = new JTextField(); txtOutMonth.setVisible(false); txtOutMonth.setColumns(10); txtOutDay = new JTextField(); txtOutDay.setVisible(false); txtOutDay.setColumns(10); // Declaring the add button btnAdd = new JButton(">>"); btnAdd.setVisible(false); // UGLY CODE GroupLayout gl_contentPane = new GroupLayout(contentPane); gl_contentPane.setHorizontalGroup( gl_contentPane.createParallelGroup(Alignment.LEADING) .addGroup(gl_contentPane.createSequentialGroup() .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING, false) .addGroup(gl_contentPane.createSequentialGroup() .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING) .addGroup(gl_contentPane.createSequentialGroup() .addContainerGap() .addComponent(lblHotelsOptions) .addPreferredGap(ComponentPlacement.RELATED) .addComponent(cbHotelsOptions, GroupLayout.PREFERRED_SIZE, 141, GroupLayout.PREFERRED_SIZE)) .addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING, false) .addGroup(Alignment.LEADING, gl_contentPane.createSequentialGroup() .addComponent(lblOutMonth) .addPreferredGap(ComponentPlacement.RELATED) .addComponent(txtOutMonth, GroupLayout.PREFERRED_SIZE, 61, GroupLayout.PREFERRED_SIZE) .addPreferredGap(ComponentPlacement.RELATED) .addComponent(lblOutDay) .addPreferredGap(ComponentPlacement.RELATED) .addComponent(txtOutDay, 0, 0, Short.MAX_VALUE)) .addGroup(Alignment.LEADING, gl_contentPane.createSequentialGroup() .addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING, false) .addGroup(Alignment.LEADING, gl_contentPane.createSequentialGroup() .addComponent(lblInMonth) .addPreferredGap(ComponentPlacement.RELATED) .addComponent(txtInMonth, 0, 0, Short.MAX_VALUE)) .addComponent(lblCheckIn, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 115, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(ComponentPlacement.RELATED) .addComponent(lblInDay) .addPreferredGap(ComponentPlacement.RELATED) .addComponent(txtInDay, GroupLayout.PREFERRED_SIZE, 67, GroupLayout.PREFERRED_SIZE)))) .addGap(55)) .addGroup(gl_contentPane.createSequentialGroup() .addComponent(lblCheckout, GroupLayout.PREFERRED_SIZE, 124, GroupLayout.PREFERRED_SIZE) .addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnAdd, GroupLayout.PREFERRED_SIZE, 54, GroupLayout.PREFERRED_SIZE))) .addGap(18) .addComponent(panel, GroupLayout.PREFERRED_SIZE, 242, GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); gl_contentPane.setVerticalGroup( gl_contentPane.createParallelGroup(Alignment.TRAILING) .addGroup(Alignment.LEADING, gl_contentPane.createSequentialGroup() .addContainerGap() .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING) .addComponent(panel, GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE) .addGroup(gl_contentPane.createSequentialGroup() .addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE) .addComponent(lblHotelsOptions) .addComponent(cbHotelsOptions, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addGap(84) .addComponent(lblCheckIn) .addPreferredGap(ComponentPlacement.RELATED) .addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE) .addComponent(lblInMonth) .addComponent(txtInMonth, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(lblInDay) .addComponent(txtInDay, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(ComponentPlacement.UNRELATED) .addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE) .addComponent(lblCheckout) .addComponent(btnAdd)) .addPreferredGap(ComponentPlacement.UNRELATED) .addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE) .addComponent(lblOutMonth) .addComponent(txtOutMonth, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(lblOutDay) .addComponent(txtOutDay, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))) .addContainerGap()) ); // Declaring the scroll Pane scrollPane = new JScrollPane(); GroupLayout gl_panel = new GroupLayout(panel); gl_panel.setHorizontalGroup( gl_panel.createParallelGroup(Alignment.LEADING) .addGroup(gl_panel.createSequentialGroup() .addContainerGap() .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE) .addGap(1)) ); gl_panel.setVerticalGroup( gl_panel.createParallelGroup(Alignment.LEADING) .addGroup(gl_panel.createSequentialGroup() .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 329, Short.MAX_VALUE) .addGap(1)) ); // Declaring the reservation's list in the scroll pane scrollPane.setViewportView(lstReservation); // Declaring the reservation's list lstReservation = new JList(reservationsModel); scrollPane.setViewportView(lstReservation); panel.setLayout(gl_panel); contentPane.setLayout(gl_contentPane); // Calling the initHotelsAndReservations method initHotelsAndReservations(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initcomponent() {\n\r\n\t}", "private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n \n //SEARCH PANE COMPONENTS\n initSearchComponents();\n \n //RESULTS PANE COMPONENTS\n initResultComponents();\n \n // CRAWLER CONTROLS\n initCrawlerControlsComponents();\n \n // KEYWORD BAR\n initKeywordBarComponents();\n \n //WORKER CONTROLS\n initWorkerComponents();\n \n //URL COMPONENTS\n initURLMenuComponents();\n\n //BASE LAYOUT COMPONENTS\n initBaseLayout();\n }", "private void initComponents() {\n rootLayout = new Grid();\n rootLayout.setWidth(new Extent(100, Extent.PERCENT));\n rootLayout.setSize(2);\n add(rootLayout);\n Empsn_Label= new nextapp.echo2.app.Label();\n Empsn_Label.setText(\"N_TIME_BEAR.EMPSN\");\n rootLayout.add(Empsn_Label);\n \n Empsn_DscField = new dsc.echo2app.component.DscField();\n Empsn_DscField.setId(\"Empsn_DscField\");\n Empsn_DscField.setWidth(new Extent(4, Extent.CM));\n rootLayout.add(Empsn_DscField);\n \n\t}", "private void initComponents() {\n LOOGER.info(\"Get init components\");\n this.loadButton = new JButton(\"Load\");\n this.fillButton = new JButton(\"Fill\");\n this.deleteButton = new JButton(\"Delete\");\n this.setLayout(new FlowLayout());\n LOOGER.info(\"components exit\");\n }", "private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }", "private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "private void initComponent() {\n\t\tmlistview=(ClickLoadListview) findViewById(R.id.ListView_hidden_check);\n\t\tChemicals_directory_search=(CustomFAB) findViewById(R.id.company_hidden_search);\n\t\tChemicals_directory_search.setVisibility(View.GONE);\n\t\ttopbar_com_name=(TopBarView) findViewById(R.id.topbar_com_name);\n\t\tsearch_chemical_name=(SearchInfoView) findViewById(R.id.search_chemical_name);\n\t}", "public void initComponent(){\n\t\t\n\t\tpanelMiddle.setCaption(\"PROSES:\");\n\t\t\n\t\t//INIT COMPONENT BAWAH\t\n\t\tlabelNotes.setContentMode(ContentMode.HTML);\n\t\tlabelNotes.setValue(\"Notes: <br> Perubahan pada Calender Kerja akan mempengaruhi seluruh sistem <br>.\" );\n\t}", "@Override\r\n\tprotected void initComponent() {\n\t\tint width = 800;\r\n\t\tint height = 600;\r\n\t\tresetSize(width, height);\r\n\t\tcontainer = new JPanel();\r\n\t\tcontainer.setSize(width, height);\r\n\t\tthis.add(container);\r\n\t\tcontainer.setLayout(null);\r\n\r\n\t\tlblCountDown = new JLabel();\r\n\t\tlblCountDown.setBounds(600, 20, 600, 50);\r\n\t\tlblCountDown.setText(\"提示\");\r\n\t\tcontainer.add(lblCountDown);\r\n\r\n\t\tlblMsg = new JLabel();\r\n\t\ttxtQuestion = new JTextArea();\r\n\t\trdoItemA = new JRadioButton();\r\n\t\trdoItemB = new JRadioButton();\r\n\t\tbtnChoise = new ButtonGroup();\r\n\t\trdoItemC = new JRadioButton();\r\n\t\trdoItemD = new JRadioButton();\r\n\t\tbtnLast = new JButton();\r\n\t\tbtnNext = new JButton();\r\n\t\tbtnSubmit = new JButton();\r\n\t}", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "public void initComponents();", "private void initMyComponents() {\n this.jPanel1.setLayout(new BoxLayout(this.jPanel1, BoxLayout.Y_AXIS));\n this.jPanel1.add(controller.getPressureController().getEMeasureBasicView());\n this.jPanel1.add(controller.getTemperatureController().getEMeasureBasicView());\n this.controller.getPressureController().getListeners().add(this);\n this.controller.getTemperatureController().getListeners().add(this);\n this.jComboBox1.setModel(new DefaultComboBoxModel(FluidKind.values()));\n this.changeResponce();\n }", "@Override\n public void initComponent() {\n }", "@Override\n public void initComponent() {\n }", "@Override\r\n public void initComponent() {\n }", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "private void initialize() {\r\n\r\n\t\ttitleFont = new Font(\"宋体\", Font.BOLD + Font.PLAIN, 16);\r\n\t\tfont = new Font(\"宋体\", Font.PLAIN, 12);\r\n\t\ttry {\r\n\t\t\tcolor = new Color(Integer.parseInt(\"D3D3D3\", 16));\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// codes to deal with this exception\r\n\t\t}\r\n\t\tdaojLabel = new JLabel();\r\n\t\tdaojLabel.setBounds(new Rectangle(255, 33, 15, 18));\r\n\t\tdaojLabel.setText(\"到\");\r\n\t\tdaojLabel.setFont(font);\r\n\t\tdaojLabel.setForeground(color);\r\n\t\tcxsjjLabel = new JLabel();\r\n\t\tcxsjjLabel.setBounds(new Rectangle(92, 33, 59, 18));\r\n\t\tcxsjjLabel.setText(\"查询时间:\");\r\n\t\tcxsjjLabel.setFont(font);\r\n\t\tcxsjjLabel.setForeground(color);\r\n\t\t// 设置导航panel\r\n\t\tnavigatePanel = new JPanel();\r\n\t\tnavigatePanel.setLayout(null);\r\n\t\tnavigatePanel.add(this.getProjButton());\r\n\t\tnavigatePanel.add(this.getNextjButton());\r\n\t\tnavigatePanel.setBounds(new Rectangle(95, 510, 788, 20));\r\n\t\tColor color = new Color(35, 35, 35);\r\n\t\t// navigatePanel.setBackground(Color.GRAY);\r\n\t\tnavigatePanel.setBackground(color);\r\n\t\tthis.add(navigatePanel);\r\n\r\n\t\tthis.setSize(976, 601);\r\n\t\tthis.setLayout(null);\r\n\t\tthis.add(cxsjjLabel, null);\r\n\t\tthis.add(getBegjTextField(), null);\r\n\t\tthis.add(daojLabel, null);\r\n\t\tthis.add(getEndjTextField(), null);\r\n\t\tthis.add(getCxjButton(), null);\r\n\r\n\t\tgetylcs = new GetYlcs();\r\n\t\tthis.add(getMainjPanel(), null);\r\n\r\n\t}", "private void initComponents() {\n\t\tSplitPane mainSplitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n\t\tmainSplitPane.setSeparatorPosition(new Extent(34));\n\t\tnavigator = new AnyRowNavigator();\n\t\tmainSplitPane.add(navigator);\n\t\tSplitPane splitPane = new SplitPane();\n\t\tsplitPane.setOrientation(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n\t\tsplitPane.setSeparatorPosition(new Extent(200));\n\t\tsplitPane.setResizable(true);\n\t\tmainSplitPane.add(splitPane);\n\t\tadd(mainSplitPane);\t\t\n rootLayout = new Grid();\n rootLayout.setWidth(new Extent(100, Extent.PERCENT));\n rootLayout.setSize(8);\n splitPane.add(rootLayout);\n EMPSN_CaptionLabel = new nextapp.echo2.app.Label();\n EMPSN_CaptionLabel.setText(\"N_GET_DATA.EMPSN\");\n rootLayout.add(EMPSN_CaptionLabel);\n GridLayoutData infoLayout = new GridLayoutData();\n infoLayout.setColumnSpan(7);\n Row row = new Row();\n row.setLayoutData(infoLayout);\n EMPSN_DscField1 = new dsc.echo2app.component.DscField();\n EMPSN_DscField1.setWidth(new Extent(60));\n EMPSN_DscField1.setId(\"EMPSN_DscField1\");\n row.add(EMPSN_DscField1);\n lblInfo = new DirectHtml();\n row.add(lblInfo);\n rootLayout.add(row);\n// DEPSN_CaptionLabel = new nextapp.echo2.app.Label();\n// rootLayout.add(DEPSN_CaptionLabel);\n// DEPSN_DscField1 = new dsc.echo2app.component.DscField();\n// DEPSN_DscField1.setWidth(new Extent(60));\n// DEPSN_DscField1.setId(\"DEPSN_DscField1\");\n// rootLayout.add(DEPSN_DscField1);\n MONTHS_CaptionLabel = new nextapp.echo2.app.Label();\n MONTHS_CaptionLabel.setText(\"N_GET_DATA.MONTHS\");\n rootLayout.add(MONTHS_CaptionLabel);\n MONTHS_DscField2 = new dsc.echo2app.component.DscField();\n MONTHS_DscField2.setWidth(new Extent(60));\n MONTHS_DscField2.setId(\"MONTHS_DscField2\");\n rootLayout.add(MONTHS_DscField2);\n YEARS_CaptionLabel = new nextapp.echo2.app.Label();\n YEARS_CaptionLabel.setText(\"N_GET_DATA.YEARS\");\n rootLayout.add(YEARS_CaptionLabel);\n YEARS_DscField3 = new dsc.echo2app.component.DscField();\n YEARS_DscField3.setWidth(new Extent(60));\n YEARS_DscField3.setId(\"YEARS_DscField3\");\n rootLayout.add(YEARS_DscField3);\n DUCLS_CaptionLabel = new nextapp.echo2.app.Label();\n DUCLS_CaptionLabel.setText(\"N_GET_DATA.DUCLS\");\n rootLayout.add(DUCLS_CaptionLabel);\n DUCLS_DscField4 = new dsc.echo2app.component.DscField();\n DUCLS_DscField4.setWidth(new Extent(60));\n DUCLS_DscField4.setDisabledBackground(new Color(0xFBF4D4));\n DUCLS_DscField4.setDisabledForeground(new Color(0x2A7FFF));\n DUCLS_DscField4.setId(\"DUCLS_DscField4\");\n rootLayout.add(DUCLS_DscField4);\n NDUCLS_CaptionLabel = new nextapp.echo2.app.Label();\n NDUCLS_CaptionLabel.setText(\"N_GET_DATA.NDUCLS\");\n rootLayout.add(NDUCLS_CaptionLabel);\n NDUCLS_DscField5 = new dsc.echo2app.component.DscField();\n NDUCLS_DscField5.setWidth(new Extent(60));\n NDUCLS_DscField5.setId(\"NDUCLS_DscField5\");\n rootLayout.add(NDUCLS_DscField5);\n ADDHOL_CaptionLabel = new nextapp.echo2.app.Label();\n ADDHOL_CaptionLabel.setText(\"N_GET_DATA.ADDHOL\");\n rootLayout.add(ADDHOL_CaptionLabel);\n ADDHOL_DscField6 = new dsc.echo2app.component.DscField();\n ADDHOL_DscField6.setWidth(new Extent(60));\n ADDHOL_DscField6.setId(\"ADDHOL_DscField6\");\n rootLayout.add(ADDHOL_DscField6);\n ADDCLS1_CaptionLabel = new nextapp.echo2.app.Label();\n ADDCLS1_CaptionLabel.setText(\"N_GET_DATA.ADDCLS1\");\n rootLayout.add(ADDCLS1_CaptionLabel);\n ADDCLS1_DscField7 = new dsc.echo2app.component.DscField();\n ADDCLS1_DscField7.setWidth(new Extent(60));\n ADDCLS1_DscField7.setId(\"ADDCLS1_DscField7\");\n rootLayout.add(ADDCLS1_DscField7);\n NADDCLS_CaptionLabel = new nextapp.echo2.app.Label();\n NADDCLS_CaptionLabel.setText(\"N_GET_DATA.NADDCLS\");\n rootLayout.add(NADDCLS_CaptionLabel);\n NADDCLS_DscField8 = new dsc.echo2app.component.DscField();\n NADDCLS_DscField8.setWidth(new Extent(60));\n NADDCLS_DscField8.setId(\"NADDCLS_DscField8\");\n rootLayout.add(NADDCLS_DscField8);\n LATE_CaptionLabel = new nextapp.echo2.app.Label();\n LATE_CaptionLabel.setText(\"N_GET_DATA.LATE\");\n rootLayout.add(LATE_CaptionLabel);\n LATE_DscField9 = new dsc.echo2app.component.DscField();\n LATE_DscField9.setWidth(new Extent(60));\n LATE_DscField9.setId(\"LATE_DscField9\");\n rootLayout.add(LATE_DscField9);\n SIGN_CaptionLabel = new nextapp.echo2.app.Label();\n SIGN_CaptionLabel.setText(\"N_GET_DATA.SIGN\");\n rootLayout.add(SIGN_CaptionLabel);\n SIGN_DscField10 = new dsc.echo2app.component.DscField();\n SIGN_DscField10.setWidth(new Extent(60));\n SIGN_DscField10.setId(\"SIGN_DscField10\");\n rootLayout.add(SIGN_DscField10);\n ACN_CaptionLabel = new nextapp.echo2.app.Label();\n ACN_CaptionLabel.setText(\"N_GET_DATA.ACN\");\n rootLayout.add(ACN_CaptionLabel);\n ACN_DscField11 = new dsc.echo2app.component.DscField();\n ACN_DscField11.setWidth(new Extent(60));\n ACN_DscField11.setId(\"ACN_DscField11\");\n rootLayout.add(ACN_DscField11);\n ACNM_CaptionLabel = new nextapp.echo2.app.Label();\n ACNM_CaptionLabel.setText(\"N_GET_DATA.ACNM\");\n rootLayout.add(ACNM_CaptionLabel);\n ACNM_DscField12 = new dsc.echo2app.component.DscField();\n ACNM_DscField12.setWidth(new Extent(60));\n ACNM_DscField12.setId(\"ACNM_DscField12\");\n rootLayout.add(ACNM_DscField12);\n REST_CaptionLabel = new nextapp.echo2.app.Label();\n REST_CaptionLabel.setText(\"N_GET_DATA.REST\");\n rootLayout.add(REST_CaptionLabel);\n REST_DscField13 = new dsc.echo2app.component.DscField();\n REST_DscField13.setWidth(new Extent(60));\n REST_DscField13.setId(\"REST_DscField13\");\n rootLayout.add(REST_DscField13);\n REST_PAY_CaptionLabel = new nextapp.echo2.app.Label();\n REST_PAY_CaptionLabel.setText(\"N_GET_DATA.REST_PAY\");\n rootLayout.add(REST_PAY_CaptionLabel);\n REST_PAY_DscField14 = new dsc.echo2app.component.DscField();\n REST_PAY_DscField14.setWidth(new Extent(60));\n REST_PAY_DscField14.setId(\"REST_PAY_DscField14\");\n rootLayout.add(REST_PAY_DscField14);\n REST_SICK_CaptionLabel = new nextapp.echo2.app.Label();\n REST_SICK_CaptionLabel.setText(\"N_GET_DATA.REST_SICK\");\n rootLayout.add(REST_SICK_CaptionLabel);\n REST_SICK_DscField15 = new dsc.echo2app.component.DscField();\n REST_SICK_DscField15.setWidth(new Extent(60));\n REST_SICK_DscField15.setId(\"REST_SICK_DscField15\");\n rootLayout.add(REST_SICK_DscField15);\n OTHER_CaptionLabel = new nextapp.echo2.app.Label();\n OTHER_CaptionLabel.setText(\"N_GET_DATA.OTHER\");\n rootLayout.add(OTHER_CaptionLabel);\n OTHER_DscField16 = new dsc.echo2app.component.DscField();\n OTHER_DscField16.setWidth(new Extent(60));\n OTHER_DscField16.setId(\"OTHER_DscField16\");\n rootLayout.add(OTHER_DscField16);\n NWHOUR_CaptionLabel = new nextapp.echo2.app.Label();\n NWHOUR_CaptionLabel.setText(\"N_GET_DATA.NWHOUR\");\n rootLayout.add(NWHOUR_CaptionLabel);\n NWHOUR_DscField17 = new dsc.echo2app.component.DscField();\n NWHOUR_DscField17.setWidth(new Extent(60));\n NWHOUR_DscField17.setId(\"NWHOUR_DscField17\");\n rootLayout.add(NWHOUR_DscField17);\n ADDHOLN_CaptionLabel = new nextapp.echo2.app.Label();\n ADDHOLN_CaptionLabel.setText(\"N_GET_DATA.ADDHOLN\");\n rootLayout.add(ADDHOLN_CaptionLabel);\n ADDHOLN_DscField18 = new dsc.echo2app.component.DscField();\n ADDHOLN_DscField18.setWidth(new Extent(60));\n ADDHOLN_DscField18.setId(\"ADDHOLN_DscField18\");\n rootLayout.add(ADDHOLN_DscField18);\n LMATER_CaptionLabel = new nextapp.echo2.app.Label();\n LMATER_CaptionLabel.setText(\"N_GET_DATA.LMATER\");\n rootLayout.add(LMATER_CaptionLabel);\n LMATER_DscField19 = new dsc.echo2app.component.DscField();\n LMATER_DscField19.setWidth(new Extent(60));\n LMATER_DscField19.setId(\"LMATER_DscField19\");\n rootLayout.add(LMATER_DscField19);\n LOCKED_CaptionLabel = new nextapp.echo2.app.Label();\n LOCKED_CaptionLabel.setText(\"N_GET_DATA.LOCKED\");\n rootLayout.add(LOCKED_CaptionLabel);\n LOCKED_DscField20 = new dsc.echo2app.component.DscField();\n LOCKED_DscField20.setWidth(new Extent(60));\n LOCKED_DscField20.setId(\"LOCKED_DscField20\");\n rootLayout.add(LOCKED_DscField20);\n// UP_DATE_CaptionLabel = new nextapp.echo2.app.Label();\n// UP_DATE_CaptionLabel.setText(\"N_GET_DATA.UP_DATE\");\n// rootLayout.add(UP_DATE_CaptionLabel);\n// UP_DATE_DscDateField1 = new dsc.echo2app.component.DscDateField();\n// UP_DATE_DscDateField1.setId(\"UP_DATE_DscDateField1\");\n// rootLayout.add(UP_DATE_DscDateField1);\n// UP_USER_CaptionLabel = new nextapp.echo2.app.Label();\n// UP_USER_CaptionLabel.setText(\"N_GET_DATA.UP_USER\");\n// rootLayout.add(UP_USER_CaptionLabel);\n// UP_USER_DscField22 = new dsc.echo2app.component.DscField();\n// UP_USER_DscField22.setId(\"UP_USER_DscField22\");\n// rootLayout.add(UP_USER_DscField22);\n dailyContent = new DataDailyBrowserContent();\n splitPane.add(dailyContent);\n\t}", "public void init() {\n initComponents();\n initData();\n }", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initComponent()\n {\n groupName = findViewById(R.id.groupName);\n groupId = findViewById(R.id.gId);\n groupAddress = findViewById(R.id.gAddress);\n groupDescription = findViewById(R.id.gDescription);\n bCreate = findViewById(R.id.bCreate);\n rPublic = findViewById(R.id.rSecret);\n fTime = findViewById(R.id.fTime);\n toolbar = findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n calendar = Calendar.getInstance();\n progressBar = findViewById(R.id.progress);\n\n //set scrollview in description editText\n groupDescription.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n if(v.getId() == R.id.txtNotice){\n v.getParent().requestDisallowInterceptTouchEvent(true);\n switch (event.getAction() & MotionEvent.ACTION_MASK){\n case MotionEvent.ACTION_UP:\n v.getParent().requestDisallowInterceptTouchEvent(false);\n break;\n }\n }\n return false;\n }\n });\n\n\n sharedPreferenceData = new SharedPreferenceData(this);\n currentUserName = sharedPreferenceData.getCurrentUserName();\n someMethod = new NeedSomeMethod(this);\n internetIsOn = new CheckInternetIsOn(this);\n dialogClass = new AlertDialogClass(this);\n }", "public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\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\tAlignment.LEADING)\n\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\tgroupLayout\n\t\t\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\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\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\t225,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\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\tgroupLayout\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.LEADING)\n\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\tp_execute,\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\t957,\n\t\t\t\t\t\t\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\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\tp_container,\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\t957,\n\t\t\t\t\t\t\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\n\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\t1188,\n\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.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\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\tAlignment.LEADING)\n\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\tp_commands,\n\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\t603,\n\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\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\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\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\t549,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\tp_execute,\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\t48,\n\t\t\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.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\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\tAlignment.LEADING)\n\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\tp_view,\n\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\t955,\n\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.addGroup(\n\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\tgl_p_container\n\t\t\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\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\tbt_revert))\n\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\tgl_p_container\n\t\t\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\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\ttf_name,\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\t893,\n\t\t\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.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\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\tAlignment.BASELINE)\n\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\ttf_name,\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\t\tGroupLayout.DEFAULT_SIZE,\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.addComponent(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\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\t\t466, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\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\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\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\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\n\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\tAlignment.BASELINE)\n\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\tta_header,\n\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\t44,\n\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.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\n\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\tAlignment.LEADING)\n\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\tp_tree,\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\t\t211,\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\n\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\tGroupLayout.DEFAULT_SIZE,\n\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.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.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(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "public void init()\n\t\t{\n\t\t\t//Makes Lists\n\t\t\tmakeLists();\n\n\t\t\t//layout for GUI\n\t\t\tGridLayout layout = new GridLayout(2,4, 5 ,5);\n\t\t\tsetLayout(layout);\n\n\t\t\t//add panels to window\n\t\t\tadd(Panel_1);\n\t\t\tadd(Panel_2);\n\t\t\tadd(Panel_3);\n\t\t\tadd(Panel_4);\n\n\t\t\t//create buttons\n\t\t\tCalculateButton = new JButton(\"Calculate\");\n\t\t ExitButton = new JButton(\"Exit\");\n\n\t\t\t//connect event handlers to buttons\n\t\t CalculateButton.addActionListener(new ButtonListener());\n\t\t ExitButton.addActionListener(new ButtonListener());\n\n\t\t\t//add buttons to window\n\t\t add(CalculateButton);\n\t\t add(ExitButton);\n\n\t\t //make window visible\n\t\t\tsetVisible(true);\n\t\t}", "private void initComponents() {\n\t\tfiltersPanel = new FiltersPanel(mainView);\n\t\tdetailsPanel = new DetailsPanel();\n\t\t\n\t\tthis.setStylePrimaryName(\"variantdisplay\");\n\t\tthis.addWest(filtersPanel, 240);\n\n\t\tvarTable = new VarTable(this, colModel);\n\n\t\t\n\t\t//details panel listens to variant selection events generated by the varTable\n\t\tvarTable.addVariantSelectionListener(detailsPanel); \n\t\tvarManager.addListener(this);\n\t\tcolModel.addListener(this);\n\t\tfiltersPanel.addListener(this);\n\t\t\n\t\tthis.addSouth(detailsPanel, 300.0);\n\t\tthis.add(varTable);\n\t}", "private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setSize(300,200);\n\t\tthis.add(getJPanel(), java.awt.BorderLayout.CENTER);\n\t\tthis.add(getJPanel1(), java.awt.BorderLayout.SOUTH);\n\t}", "public void InitLayout() {\n SetBackground(R.drawable.can_dfqc_ac_bg);\n this.mTvA = AddText(121, 173, 203, 25);\n this.mTvP = AddText(121, 212, KeyDef.RKEY_RADIO_6S, 25);\n this.mTvMode = AddText(121, Can.CAN_FLAT_RZC, 203, 25);\n this.mTvC = AddText(121, 295, 139, 25);\n this.mTvWind = AddText(121, KeyDef.RKEY_AVIN, 53, 25);\n initValue();\n }", "protected void initializeComponents() {\n\t\t/* Create fonts for information nodes */\n\t\tFont titleFont = Font.font(\"Arial\", FontWeight.BOLD, 18);\n\t\tFont descriptionFont = Font.font(\"Arial\", 14);\n\t\t/* Configure information nodes */\n\t\tconfigureTitle(titleFont);\n\t\tconfigureDescription(descriptionFont);\n\t\tconfigureIconContainer();\n\t\tconfigureWindow();\n\t\t/* set scene */\n\n\t\tgetContent().add(notificationContainer);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(800,600));\r\n this.setContentPane(getJPanel());\r\n\r\n List<String> title = new ArrayList<String>();\r\n title.add(\"Select\");\r\n title.add(\"Field Id\");\r\n title.add(\"Field Name\");\r\n title.add(\"Field Type\");\r\n title.add(\"Image\");\r\n\r\n List<JComponent> componentList = new ArrayList<JComponent>();\r\n componentList.add(checkInit);\r\n componentList.add(fieldIdInit);\r\n componentList.add(filedNameInit);\r\n componentList.add(fieldTypeInit);\r\n componentList.add(imageButton);\r\n\r\n String []arrColumn = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n String []arrTitle = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n // init grid\r\n grid = new GridUtils(pageSheet, title, componentList, arrColumn, preButton, afterButton, 5, arrTitle);\r\n // set title\r\n grid.setPageInfo(pageInfoLbl);\r\n \r\n searchDetailList();\r\n \r\n initComboBox();\r\n \r\n setTitle(\"Page Select page\");\r\n\t}", "private void initiateInternal() {\n\n //define adaptation listener\n this.addComponentListener(new ComponentAdapter() {\n @Override\n public void componentResized(ComponentEvent e) {\n adapt(e);\n }\n });\n\n //solve problem with unloading of internal components\n setExtendedState(ICONIFIED | MAXIMIZED_BOTH);\n //the set visible must be the last thing called \n pack();\n setExtendedState(MAXIMIZED_BOTH);\n setVisible(true);\n }", "private void initComposants() {\r\n\t\tselectionMatierePanel = new SelectionMatierePanel(1);\r\n\t\ttableauPanel = new TableauPanel(1);\r\n\t\tadd(selectionMatierePanel, BorderLayout.NORTH);\r\n\t\tadd(tableauPanel, BorderLayout.SOUTH);\r\n\t\t\r\n\t}", "private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "private void init() {\n setBackground(LIGHT_GRAY);\n Box layout = new Box(BoxLayout.Y_AXIS);\n\n jump = createButton(\"Jump\", null);\n exit = createButton(\"Exit!\", null);\n fly = createButton(\"Fly\", null);\n Jfloat = createButton(\"Float\", null);\n layout.add(Box.createRigidArea(new Dimension(0, 150)));\n layout.add(jump);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(Jfloat);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(fly);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(exit);\n add(layout);\n }", "protected void initialize()\n {\n uiFactory.configureUIComponent(this, UI_PREFIX);\n\n initializeFields();\n initializeLabels();\n initLayout();\n }", "public void initComponents(String alternateLayout)\n {\n // Add the menus\n m_FileMenu = FileMenu.createMenu(this, getDocument(), \"&File\");\n /* m_EditMenu = */edu.umich.soar.debugger.menu.EditMenu.createMenu(\n this, getDocument(), \"&Edit\");\n /* m_PrintMenu = */PrintMenu.createMenu(this, getDocument(), \"&Print\");\n /* m_CommandsMenu = */CommandsMenu.createMenu(this, getDocument(),\n \"&Commands\");\n /* m_DebugLevelMenu = */DebugLevelMenu.createMenu(this, getDocument(),\n \"&Debug Level\");\n /* m_LayoutMenu = */LayoutMenu.createMenu(this, getDocument(),\n \"&Layout\");\n m_AgentMenu = AgentMenu.createMenu(this, getDocument(), \"&Agents\");\n m_KernelMenu = KernelMenu.createMenu(this, getDocument(), \"&Kernel\");\n /* m_HelpMenu = */HelpMenu.createMenu(this, getDocument(), \"&Help\");\n\n getShell().setMenuBar(m_MenuBar);\n\n // Load the alternate layout file first,.\n boolean loaded = alternateLayout != null && loadLayoutFileSpecial(alternateLayout);\n\n // If that failed, load the last known layout\n loaded = loaded || loadUserLayoutFile();\n\n // Install default layout files\n install(new String[] { \"default-layout.dlf\", \"default-text.dlf\" });\n\n // If that failed, load the default layout\n if (!loaded)\n {\n System.out\n .println(\"Failed to load the stored layout, so using default instead\");\n useDefaultLayout();\n }\n\n getShell().addShellListener(new ShellAdapter()\n {\n\n public void shellClosed(ShellEvent e)\n {\n thisWindowClosing();\n }\n });\n\n // Set the initial window size\n boolean max = this.getAppBooleanProperty(\"Window.Max\", true);\n\n if (max)\n {\n // Maximize the window\n getShell().setMaximized(true);\n }\n else\n {\n int width = this.getAppIntegerProperty(\"Window.width\");\n int height = this.getAppIntegerProperty(\"Window.height\");\n int xPos = this.getAppIntegerProperty(\"Window.x\");\n int yPos = this.getAppIntegerProperty(\"Window.y\");\n\n // \"cascade\" effect for multiple windows\n int offset = (m_Document.getNumberFrames() - 1) * 20;\n xPos += offset;\n yPos += offset;\n\n if (width > 0 && width < Integer.MAX_VALUE && height > 0\n && height < Integer.MAX_VALUE)\n getShell().setSize(width, height);\n\n if (xPos >= 0 && xPos < Integer.MAX_VALUE && yPos > 0\n && yPos != Integer.MAX_VALUE)\n getShell().setLocation(xPos, yPos);\n }\n\n // Try to load the user's font preference\n String fontName = this.getAppStringProperty(\"TextFont.Name\");\n int fontSize = this.getAppIntegerProperty(\"TextFont.Size\");\n int fontStyle = this.getAppIntegerProperty(\"TextFont.Style\");\n\n if (fontName != null && fontName.length() > 0\n && fontSize != Integer.MAX_VALUE && fontSize > 0\n && fontStyle != Integer.MAX_VALUE && fontStyle >= 0)\n {\n setTextFont(new FontData(fontName, fontSize, fontStyle));\n }\n else\n {\n setTextFont(kDefaultFontData);\n }\n\n // Make sure our menus are enabled correctly\n updateMenus();\n updateTitle();\n }", "public void initComponents() {\n\t\taddButton = new JButton(addFlightText);\n\t\tdelayButton = new JButton(delayFlightText);\n\t\tquitButton = new JButton(quitText);\n\t\t// TODO: Add button instanciations for other operations\n\n\t\t// Initialize display area\n\t\tdisplayArea = new JTextArea(LINE_COUNT, LINE_SIZE);\n\t\tdisplayArea.setEditable(false);\n\t\tscrollPane = new JScrollPane(displayArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t}", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n scroolPane1 = new pkl49.component.ScroolPane();\n panelScroll = new pkl49.component.PanelTransparan();\n panelTabel = new pkl49.component.PanelTransparan();\n panelTransparan2 = new pkl49.component.PanelTransparan();\n label1 = new pkl49.component.Label();\n panelTransparan3 = new pkl49.component.PanelTransparan();\n label2 = new pkl49.component.Label();\n panelTransparan4 = new pkl49.component.PanelTransparan();\n label3 = new pkl49.component.Label();\n label4 = new pkl49.component.Label();\n label5 = new pkl49.component.Label();\n panelTransparan5 = new pkl49.component.PanelTransparan();\n label6 = new pkl49.component.Label();\n label8 = new pkl49.component.Label();\n label10 = new pkl49.component.Label();\n label11 = new pkl49.component.Label();\n label12 = new pkl49.component.Label();\n label39 = new pkl49.component.Label();\n panelTransparan7 = new pkl49.component.PanelTransparan();\n label9 = new pkl49.component.Label();\n label13 = new pkl49.component.Label();\n label14 = new pkl49.component.Label();\n label15 = new pkl49.component.Label();\n label16 = new pkl49.component.Label();\n label17 = new pkl49.component.Label();\n label18 = new pkl49.component.Label();\n panelTransparan13 = new pkl49.component.PanelTransparan();\n label19 = new pkl49.component.Label();\n label21 = new pkl49.component.Label();\n label22 = new pkl49.component.Label();\n label24 = new pkl49.component.Label();\n panelTransparan14 = new pkl49.component.PanelTransparan();\n label26 = new pkl49.component.Label();\n label27 = new pkl49.component.Label();\n label89 = new pkl49.component.Label();\n label90 = new pkl49.component.Label();\n panelTransparan15 = new pkl49.component.PanelTransparan();\n label28 = new pkl49.component.Label();\n label29 = new pkl49.component.Label();\n label30 = new pkl49.component.Label();\n label31 = new pkl49.component.Label();\n label32 = new pkl49.component.Label();\n label33 = new pkl49.component.Label();\n label34 = new pkl49.component.Label();\n label37 = new pkl49.component.Label();\n panelTransparan16 = new pkl49.component.PanelTransparan();\n label35 = new pkl49.component.Label();\n label36 = new pkl49.component.Label();\n label38 = new pkl49.component.Label();\n label40 = new pkl49.component.Label();\n panelTransparan17 = new pkl49.component.PanelTransparan();\n label41 = new pkl49.component.Label();\n label42 = new pkl49.component.Label();\n label43 = new pkl49.component.Label();\n label44 = new pkl49.component.Label();\n label91 = new pkl49.component.Label();\n panelTransparan18 = new pkl49.component.PanelTransparan();\n label49 = new pkl49.component.Label();\n label50 = new pkl49.component.Label();\n label51 = new pkl49.component.Label();\n label52 = new pkl49.component.Label();\n panelTransparan19 = new pkl49.component.PanelTransparan();\n label45 = new pkl49.component.Label();\n label46 = new pkl49.component.Label();\n panelTransparan20 = new pkl49.component.PanelTransparan();\n label47 = new pkl49.component.Label();\n panelTransparan27 = new pkl49.component.PanelTransparan();\n label63 = new pkl49.component.Label();\n panelTransparan23 = new pkl49.component.PanelTransparan();\n label55 = new pkl49.component.Label();\n panelTransparan24 = new pkl49.component.PanelTransparan();\n label56 = new pkl49.component.Label();\n panelTransparan21 = new pkl49.component.PanelTransparan();\n label48 = new pkl49.component.Label();\n panelTransparan22 = new pkl49.component.PanelTransparan();\n label54 = new pkl49.component.Label();\n panelTransparan25 = new pkl49.component.PanelTransparan();\n label57 = new pkl49.component.Label();\n panelTransparan26 = new pkl49.component.PanelTransparan();\n label58 = new pkl49.component.Label();\n panelTransparan28 = new pkl49.component.PanelTransparan();\n label59 = new pkl49.component.Label();\n panelTransparan29 = new pkl49.component.PanelTransparan();\n label60 = new pkl49.component.Label();\n label61 = new pkl49.component.Label();\n panelTransparan30 = new pkl49.component.PanelTransparan();\n label62 = new pkl49.component.Label();\n label64 = new pkl49.component.Label();\n label65 = new pkl49.component.Label();\n label66 = new pkl49.component.Label();\n label67 = new pkl49.component.Label();\n label70 = new pkl49.component.Label();\n panelTransparan31 = new pkl49.component.PanelTransparan();\n label68 = new pkl49.component.Label();\n label69 = new pkl49.component.Label();\n label92 = new pkl49.component.Label();\n label93 = new pkl49.component.Label();\n label104 = new pkl49.component.Label();\n panelTransparan32 = new pkl49.component.PanelTransparan();\n label71 = new pkl49.component.Label();\n label76 = new pkl49.component.Label();\n label105 = new pkl49.component.Label();\n label106 = new pkl49.component.Label();\n label107 = new pkl49.component.Label();\n panelTransparan33 = new pkl49.component.PanelTransparan();\n label77 = new pkl49.component.Label();\n label78 = new pkl49.component.Label();\n label79 = new pkl49.component.Label();\n panelTransparan34 = new pkl49.component.PanelTransparan();\n label72 = new pkl49.component.Label();\n panelTransparan35 = new pkl49.component.PanelTransparan();\n label73 = new pkl49.component.Label();\n panelTransparan36 = new pkl49.component.PanelTransparan();\n label74 = new pkl49.component.Label();\n panelTransparan37 = new pkl49.component.PanelTransparan();\n label75 = new pkl49.component.Label();\n panelTransparan38 = new pkl49.component.PanelTransparan();\n label80 = new pkl49.component.Label();\n panelTransparan39 = new pkl49.component.PanelTransparan();\n label81 = new pkl49.component.Label();\n panelTransparan40 = new pkl49.component.PanelTransparan();\n label82 = new pkl49.component.Label();\n panelTransparan41 = new pkl49.component.PanelTransparan();\n label83 = new pkl49.component.Label();\n panelTransparan42 = new pkl49.component.PanelTransparan();\n label84 = new pkl49.component.Label();\n panelTransparan43 = new pkl49.component.PanelTransparan();\n label85 = new pkl49.component.Label();\n panelTransparan44 = new pkl49.component.PanelTransparan();\n label86 = new pkl49.component.Label();\n panelTransparan45 = new pkl49.component.PanelTransparan();\n label87 = new pkl49.component.Label();\n panelTransparan46 = new pkl49.component.PanelTransparan();\n label88 = new pkl49.component.Label();\n panelTransparan52 = new pkl49.component.PanelTransparan();\n label94 = new pkl49.component.Label();\n panelTransparan53 = new pkl49.component.PanelTransparan();\n txtB9AK2_1 = new pkl49.component.TextField();\n panelTransparan54 = new pkl49.component.PanelTransparan();\n txtB9AK4_26 = new pkl49.component.TextField();\n panelTransparan55 = new pkl49.component.PanelTransparan();\n txtB9AK3_26 = new pkl49.component.TextField();\n txtB9AK3_26Als = new pkl49.component.TextField();\n panelTransparan56 = new pkl49.component.PanelTransparan();\n txtB9AK5_1 = new pkl49.component.TextField();\n txtB9AK5_1Als = new pkl49.component.TextField();\n panelTransparan57 = new pkl49.component.PanelTransparan();\n txtB9AK6_1 = new pkl49.component.TextField();\n panelTransparan58 = new pkl49.component.PanelTransparan();\n txtB9AK7_1 = new pkl49.component.TextField();\n panelTransparan59 = new pkl49.component.PanelTransparan();\n txtB9AK8_1 = new pkl49.component.TextField();\n panelTransparan60 = new pkl49.component.PanelTransparan();\n txtB9AK9_1 = new pkl49.component.TextField();\n panelTransparan61 = new pkl49.component.PanelTransparan();\n txtB9AK10_1 = new pkl49.component.TextField();\n panelTransparan62 = new pkl49.component.PanelTransparan();\n txtB9AK11_1 = new pkl49.component.TextField();\n panelTransparan63 = new pkl49.component.PanelTransparan();\n txtB9AK12_26 = new pkl49.component.TextField();\n panelTransparan64 = new pkl49.component.PanelTransparan();\n txtB9AK13_1 = new pkl49.component.TextField();\n txtB9AK13_1Als = new pkl49.component.TextField();\n panelTransparan70 = new pkl49.component.PanelTransparan();\n label95 = new pkl49.component.Label();\n panelTransparan71 = new pkl49.component.PanelTransparan();\n txtB9AK2_2 = new pkl49.component.TextField();\n panelTransparan72 = new pkl49.component.PanelTransparan();\n panelTransparan73 = new pkl49.component.PanelTransparan();\n panelTransparan74 = new pkl49.component.PanelTransparan();\n txtB9AK5_2 = new pkl49.component.TextField();\n txtB9AK5_2Als = new pkl49.component.TextField();\n panelTransparan75 = new pkl49.component.PanelTransparan();\n txtB9AK6_2 = new pkl49.component.TextField();\n panelTransparan76 = new pkl49.component.PanelTransparan();\n txtB9AK7_2 = new pkl49.component.TextField();\n panelTransparan77 = new pkl49.component.PanelTransparan();\n txtB9AK8_2 = new pkl49.component.TextField();\n panelTransparan78 = new pkl49.component.PanelTransparan();\n txtB9AK9_2 = new pkl49.component.TextField();\n panelTransparan79 = new pkl49.component.PanelTransparan();\n txtB9AK10_2 = new pkl49.component.TextField();\n panelTransparan80 = new pkl49.component.PanelTransparan();\n txtB9AK11_2 = new pkl49.component.TextField();\n panelTransparan81 = new pkl49.component.PanelTransparan();\n panelTransparan82 = new pkl49.component.PanelTransparan();\n txtB9AK13_2 = new pkl49.component.TextField();\n txtB9AK13_2Als = new pkl49.component.TextField();\n panelTransparan88 = new pkl49.component.PanelTransparan();\n label96 = new pkl49.component.Label();\n panelTransparan89 = new pkl49.component.PanelTransparan();\n txtB9AK2_3 = new pkl49.component.TextField();\n panelTransparan90 = new pkl49.component.PanelTransparan();\n panelTransparan91 = new pkl49.component.PanelTransparan();\n panelTransparan92 = new pkl49.component.PanelTransparan();\n txtB9AK5_3 = new pkl49.component.TextField();\n txtB9AK5_3Als = new pkl49.component.TextField();\n panelTransparan93 = new pkl49.component.PanelTransparan();\n txtB9AK6_3 = new pkl49.component.TextField();\n panelTransparan94 = new pkl49.component.PanelTransparan();\n txtB9AK7_3 = new pkl49.component.TextField();\n panelTransparan95 = new pkl49.component.PanelTransparan();\n txtB9AK9_3 = new pkl49.component.TextField();\n panelTransparan96 = new pkl49.component.PanelTransparan();\n txtB9AK8_3 = new pkl49.component.TextField();\n panelTransparan97 = new pkl49.component.PanelTransparan();\n txtB9AK10_3 = new pkl49.component.TextField();\n panelTransparan98 = new pkl49.component.PanelTransparan();\n txtB9AK11_3 = new pkl49.component.TextField();\n panelTransparan99 = new pkl49.component.PanelTransparan();\n panelTransparan100 = new pkl49.component.PanelTransparan();\n txtB9AK13_3 = new pkl49.component.TextField();\n txtB9AK13_3Als = new pkl49.component.TextField();\n panelTransparan106 = new pkl49.component.PanelTransparan();\n label97 = new pkl49.component.Label();\n panelTransparan107 = new pkl49.component.PanelTransparan();\n txtB9AK2_4 = new pkl49.component.TextField();\n panelTransparan108 = new pkl49.component.PanelTransparan();\n panelTransparan109 = new pkl49.component.PanelTransparan();\n panelTransparan110 = new pkl49.component.PanelTransparan();\n txtB9AK5_4 = new pkl49.component.TextField();\n txtB9AK5_4Als = new pkl49.component.TextField();\n panelTransparan111 = new pkl49.component.PanelTransparan();\n txtB9AK6_4 = new pkl49.component.TextField();\n panelTransparan112 = new pkl49.component.PanelTransparan();\n txtB9AK7_4 = new pkl49.component.TextField();\n panelTransparan113 = new pkl49.component.PanelTransparan();\n txtB9AK8_4 = new pkl49.component.TextField();\n panelTransparan114 = new pkl49.component.PanelTransparan();\n txtB9AK9_4 = new pkl49.component.TextField();\n panelTransparan115 = new pkl49.component.PanelTransparan();\n txtB9AK10_4 = new pkl49.component.TextField();\n panelTransparan116 = new pkl49.component.PanelTransparan();\n txtB9AK11_4 = new pkl49.component.TextField();\n panelTransparan117 = new pkl49.component.PanelTransparan();\n panelTransparan118 = new pkl49.component.PanelTransparan();\n txtB9AK13_4 = new pkl49.component.TextField();\n txtB9AK13_4Als = new pkl49.component.TextField();\n panelTransparan124 = new pkl49.component.PanelTransparan();\n label98 = new pkl49.component.Label();\n panelTransparan125 = new pkl49.component.PanelTransparan();\n txtB9AK2_5 = new pkl49.component.TextField();\n panelTransparan126 = new pkl49.component.PanelTransparan();\n panelTransparan127 = new pkl49.component.PanelTransparan();\n panelTransparan128 = new pkl49.component.PanelTransparan();\n txtB9AK5_5 = new pkl49.component.TextField();\n txtB9AK5_5Als = new pkl49.component.TextField();\n panelTransparan129 = new pkl49.component.PanelTransparan();\n txtB9AK6_5 = new pkl49.component.TextField();\n panelTransparan130 = new pkl49.component.PanelTransparan();\n txtB9AK7_5 = new pkl49.component.TextField();\n panelTransparan131 = new pkl49.component.PanelTransparan();\n txtB9AK8_5 = new pkl49.component.TextField();\n panelTransparan132 = new pkl49.component.PanelTransparan();\n txtB9AK9_5 = new pkl49.component.TextField();\n panelTransparan133 = new pkl49.component.PanelTransparan();\n txtB9AK10_5 = new pkl49.component.TextField();\n panelTransparan134 = new pkl49.component.PanelTransparan();\n txtB9AK11_5 = new pkl49.component.TextField();\n panelTransparan135 = new pkl49.component.PanelTransparan();\n panelTransparan136 = new pkl49.component.PanelTransparan();\n txtB9AK13_5 = new pkl49.component.TextField();\n txtB9AK13_5Als = new pkl49.component.TextField();\n panelTransparan142 = new pkl49.component.PanelTransparan();\n label99 = new pkl49.component.Label();\n panelTransparan143 = new pkl49.component.PanelTransparan();\n txtB9AK2_6 = new pkl49.component.TextField();\n panelTransparan144 = new pkl49.component.PanelTransparan();\n panelTransparan145 = new pkl49.component.PanelTransparan();\n panelTransparan146 = new pkl49.component.PanelTransparan();\n txtB9AK5_6 = new pkl49.component.TextField();\n txtB9AK5_6Als = new pkl49.component.TextField();\n panelTransparan147 = new pkl49.component.PanelTransparan();\n txtB9AK6_6 = new pkl49.component.TextField();\n panelTransparan148 = new pkl49.component.PanelTransparan();\n txtB9AK7_6 = new pkl49.component.TextField();\n panelTransparan149 = new pkl49.component.PanelTransparan();\n txtB9AK8_6 = new pkl49.component.TextField();\n panelTransparan150 = new pkl49.component.PanelTransparan();\n txtB9AK9_6 = new pkl49.component.TextField();\n panelTransparan151 = new pkl49.component.PanelTransparan();\n txtB9AK10_6 = new pkl49.component.TextField();\n panelTransparan152 = new pkl49.component.PanelTransparan();\n txtB9AK11_6 = new pkl49.component.TextField();\n panelTransparan153 = new pkl49.component.PanelTransparan();\n panelTransparan154 = new pkl49.component.PanelTransparan();\n txtB9AK13_6 = new pkl49.component.TextField();\n txtB9AK13_6Als = new pkl49.component.TextField();\n panelTransparan160 = new pkl49.component.PanelTransparan();\n label100 = new pkl49.component.Label();\n panelTransparan161 = new pkl49.component.PanelTransparan();\n txtB9AK2_7 = new pkl49.component.TextField();\n panelTransparan162 = new pkl49.component.PanelTransparan();\n panelTransparan163 = new pkl49.component.PanelTransparan();\n panelTransparan164 = new pkl49.component.PanelTransparan();\n txtB9AK5_7 = new pkl49.component.TextField();\n txtB9AK5_7Als = new pkl49.component.TextField();\n panelTransparan165 = new pkl49.component.PanelTransparan();\n txtB9AK6_7 = new pkl49.component.TextField();\n panelTransparan166 = new pkl49.component.PanelTransparan();\n txtB9AK7_7 = new pkl49.component.TextField();\n panelTransparan167 = new pkl49.component.PanelTransparan();\n txtB9AK8_7 = new pkl49.component.TextField();\n panelTransparan168 = new pkl49.component.PanelTransparan();\n txtB9AK9_7 = new pkl49.component.TextField();\n panelTransparan169 = new pkl49.component.PanelTransparan();\n txtB9AK10_7 = new pkl49.component.TextField();\n panelTransparan170 = new pkl49.component.PanelTransparan();\n txtB9AK11_7 = new pkl49.component.TextField();\n panelTransparan171 = new pkl49.component.PanelTransparan();\n panelTransparan172 = new pkl49.component.PanelTransparan();\n txtB9AK13_7 = new pkl49.component.TextField();\n txtB9AK13_7Als = new pkl49.component.TextField();\n panelTransparan178 = new pkl49.component.PanelTransparan();\n label101 = new pkl49.component.Label();\n panelTransparan179 = new pkl49.component.PanelTransparan();\n txtB9AK2_8 = new pkl49.component.TextField();\n panelTransparan180 = new pkl49.component.PanelTransparan();\n panelTransparan181 = new pkl49.component.PanelTransparan();\n panelTransparan182 = new pkl49.component.PanelTransparan();\n txtB9AK5_8 = new pkl49.component.TextField();\n txtB9AK5_8Als = new pkl49.component.TextField();\n panelTransparan183 = new pkl49.component.PanelTransparan();\n txtB9AK6_8 = new pkl49.component.TextField();\n panelTransparan184 = new pkl49.component.PanelTransparan();\n txtB9AK7_8 = new pkl49.component.TextField();\n panelTransparan185 = new pkl49.component.PanelTransparan();\n txtB9AK8_8 = new pkl49.component.TextField();\n panelTransparan186 = new pkl49.component.PanelTransparan();\n txtB9AK9_8 = new pkl49.component.TextField();\n panelTransparan187 = new pkl49.component.PanelTransparan();\n txtB9AK10_8 = new pkl49.component.TextField();\n panelTransparan188 = new pkl49.component.PanelTransparan();\n txtB9AK11_8 = new pkl49.component.TextField();\n panelTransparan189 = new pkl49.component.PanelTransparan();\n panelTransparan190 = new pkl49.component.PanelTransparan();\n txtB9AK13_8 = new pkl49.component.TextField();\n txtB9AK13_8Als = new pkl49.component.TextField();\n panelTransparan196 = new pkl49.component.PanelTransparan();\n label102 = new pkl49.component.Label();\n panelTransparan197 = new pkl49.component.PanelTransparan();\n txtB9AK2_9 = new pkl49.component.TextField();\n panelTransparan198 = new pkl49.component.PanelTransparan();\n panelTransparan199 = new pkl49.component.PanelTransparan();\n panelTransparan200 = new pkl49.component.PanelTransparan();\n txtB9AK5_9 = new pkl49.component.TextField();\n txtB9AK5_9Als = new pkl49.component.TextField();\n panelTransparan201 = new pkl49.component.PanelTransparan();\n txtB9AK6_9 = new pkl49.component.TextField();\n panelTransparan202 = new pkl49.component.PanelTransparan();\n txtB9AK7_9 = new pkl49.component.TextField();\n panelTransparan203 = new pkl49.component.PanelTransparan();\n txtB9AK8_9 = new pkl49.component.TextField();\n panelTransparan204 = new pkl49.component.PanelTransparan();\n txtB9AK9_9 = new pkl49.component.TextField();\n panelTransparan205 = new pkl49.component.PanelTransparan();\n txtB9AK10_9 = new pkl49.component.TextField();\n panelTransparan206 = new pkl49.component.PanelTransparan();\n txtB9AK11_9 = new pkl49.component.TextField();\n panelTransparan207 = new pkl49.component.PanelTransparan();\n panelTransparan208 = new pkl49.component.PanelTransparan();\n txtB9AK13_9 = new pkl49.component.TextField();\n txtB9AK13_9Als = new pkl49.component.TextField();\n panelTransparan214 = new pkl49.component.PanelTransparan();\n label103 = new pkl49.component.Label();\n panelTransparan215 = new pkl49.component.PanelTransparan();\n txtB9AK2_10 = new pkl49.component.TextField();\n panelTransparan216 = new pkl49.component.PanelTransparan();\n panelTransparan217 = new pkl49.component.PanelTransparan();\n panelTransparan218 = new pkl49.component.PanelTransparan();\n txtB9AK5_10 = new pkl49.component.TextField();\n txtB9AK5_10Als = new pkl49.component.TextField();\n panelTransparan219 = new pkl49.component.PanelTransparan();\n txtB9AK6_10 = new pkl49.component.TextField();\n panelTransparan220 = new pkl49.component.PanelTransparan();\n txtB9AK7_10 = new pkl49.component.TextField();\n panelTransparan221 = new pkl49.component.PanelTransparan();\n txtB9AK8_10 = new pkl49.component.TextField();\n panelTransparan222 = new pkl49.component.PanelTransparan();\n txtB9AK9_10 = new pkl49.component.TextField();\n panelTransparan223 = new pkl49.component.PanelTransparan();\n txtB9AK10_10 = new pkl49.component.TextField();\n panelTransparan224 = new pkl49.component.PanelTransparan();\n txtB9AK11_10 = new pkl49.component.TextField();\n panelTransparan225 = new pkl49.component.PanelTransparan();\n panelTransparan226 = new pkl49.component.PanelTransparan();\n txtB9AK13_10 = new pkl49.component.TextField();\n txtB9AK13_10Als = new pkl49.component.TextField();\n panelTransparan227 = new pkl49.component.PanelTransparan();\n label108 = new pkl49.component.Label();\n panelTransparan228 = new pkl49.component.PanelTransparan();\n txtB9AK2_11 = new pkl49.component.TextField();\n panelTransparan229 = new pkl49.component.PanelTransparan();\n panelTransparan230 = new pkl49.component.PanelTransparan();\n panelTransparan231 = new pkl49.component.PanelTransparan();\n txtB9AK5_11 = new pkl49.component.TextField();\n txtB9AK5_11Als = new pkl49.component.TextField();\n panelTransparan232 = new pkl49.component.PanelTransparan();\n txtB9AK6_11 = new pkl49.component.TextField();\n panelTransparan233 = new pkl49.component.PanelTransparan();\n txtB9AK7_11 = new pkl49.component.TextField();\n panelTransparan234 = new pkl49.component.PanelTransparan();\n txtB9AK8_11 = new pkl49.component.TextField();\n panelTransparan235 = new pkl49.component.PanelTransparan();\n txtB9AK9_11 = new pkl49.component.TextField();\n panelTransparan236 = new pkl49.component.PanelTransparan();\n txtB9AK10_11 = new pkl49.component.TextField();\n panelTransparan237 = new pkl49.component.PanelTransparan();\n txtB9AK11_11 = new pkl49.component.TextField();\n panelTransparan238 = new pkl49.component.PanelTransparan();\n panelTransparan239 = new pkl49.component.PanelTransparan();\n txtB9AK13_11 = new pkl49.component.TextField();\n txtB9AK13_11Als = new pkl49.component.TextField();\n panelTransparan240 = new pkl49.component.PanelTransparan();\n label109 = new pkl49.component.Label();\n panelTransparan241 = new pkl49.component.PanelTransparan();\n txtB9AK2_12 = new pkl49.component.TextField();\n panelTransparan242 = new pkl49.component.PanelTransparan();\n panelTransparan243 = new pkl49.component.PanelTransparan();\n txtB9AK5_12 = new pkl49.component.TextField();\n txtB9AK5_12Als = new pkl49.component.TextField();\n panelTransparan244 = new pkl49.component.PanelTransparan();\n txtB9AK6_12 = new pkl49.component.TextField();\n panelTransparan245 = new pkl49.component.PanelTransparan();\n txtB9AK7_12 = new pkl49.component.TextField();\n panelTransparan246 = new pkl49.component.PanelTransparan();\n panelTransparan247 = new pkl49.component.PanelTransparan();\n txtB9AK8_12 = new pkl49.component.TextField();\n panelTransparan248 = new pkl49.component.PanelTransparan();\n txtB9AK9_12 = new pkl49.component.TextField();\n panelTransparan249 = new pkl49.component.PanelTransparan();\n txtB9AK10_12 = new pkl49.component.TextField();\n panelTransparan250 = new pkl49.component.PanelTransparan();\n txtB9AK11_12 = new pkl49.component.TextField();\n panelTransparan251 = new pkl49.component.PanelTransparan();\n panelTransparan252 = new pkl49.component.PanelTransparan();\n txtB9AK13_12 = new pkl49.component.TextField();\n txtB9AK13_12Als = new pkl49.component.TextField();\n panelTransparan253 = new pkl49.component.PanelTransparan();\n label110 = new pkl49.component.Label();\n panelTransparan254 = new pkl49.component.PanelTransparan();\n txtB9AK2_13 = new pkl49.component.TextField();\n panelTransparan255 = new pkl49.component.PanelTransparan();\n panelTransparan256 = new pkl49.component.PanelTransparan();\n txtB9AK5_13 = new pkl49.component.TextField();\n txtB9AK5_13Als = new pkl49.component.TextField();\n panelTransparan257 = new pkl49.component.PanelTransparan();\n txtB9AK6_13 = new pkl49.component.TextField();\n panelTransparan258 = new pkl49.component.PanelTransparan();\n txtB9AK7_13 = new pkl49.component.TextField();\n panelTransparan259 = new pkl49.component.PanelTransparan();\n panelTransparan260 = new pkl49.component.PanelTransparan();\n txtB9AK8_13 = new pkl49.component.TextField();\n panelTransparan261 = new pkl49.component.PanelTransparan();\n txtB9AK9_13 = new pkl49.component.TextField();\n panelTransparan262 = new pkl49.component.PanelTransparan();\n txtB9AK10_13 = new pkl49.component.TextField();\n panelTransparan263 = new pkl49.component.PanelTransparan();\n txtB9AK11_13 = new pkl49.component.TextField();\n panelTransparan264 = new pkl49.component.PanelTransparan();\n panelTransparan265 = new pkl49.component.PanelTransparan();\n txtB9AK13_13 = new pkl49.component.TextField();\n txtB9AK13_13Als = new pkl49.component.TextField();\n panelTransparan266 = new pkl49.component.PanelTransparan();\n label111 = new pkl49.component.Label();\n panelTransparan267 = new pkl49.component.PanelTransparan();\n txtB9AK2_14 = new pkl49.component.TextField();\n panelTransparan268 = new pkl49.component.PanelTransparan();\n panelTransparan269 = new pkl49.component.PanelTransparan();\n txtB9AK5_14 = new pkl49.component.TextField();\n txtB9AK5_14Als = new pkl49.component.TextField();\n panelTransparan270 = new pkl49.component.PanelTransparan();\n txtB9AK6_14 = new pkl49.component.TextField();\n panelTransparan271 = new pkl49.component.PanelTransparan();\n txtB9AK7_14 = new pkl49.component.TextField();\n panelTransparan272 = new pkl49.component.PanelTransparan();\n panelTransparan273 = new pkl49.component.PanelTransparan();\n txtB9AK8_14 = new pkl49.component.TextField();\n panelTransparan274 = new pkl49.component.PanelTransparan();\n txtB9AK9_14 = new pkl49.component.TextField();\n panelTransparan275 = new pkl49.component.PanelTransparan();\n txtB9AK10_14 = new pkl49.component.TextField();\n panelTransparan276 = new pkl49.component.PanelTransparan();\n txtB9AK11_14 = new pkl49.component.TextField();\n panelTransparan277 = new pkl49.component.PanelTransparan();\n panelTransparan278 = new pkl49.component.PanelTransparan();\n txtB9AK13_14 = new pkl49.component.TextField();\n txtB9AK13_14Als = new pkl49.component.TextField();\n panelTransparan279 = new pkl49.component.PanelTransparan();\n label112 = new pkl49.component.Label();\n panelTransparan280 = new pkl49.component.PanelTransparan();\n txtB9AK2_15 = new pkl49.component.TextField();\n panelTransparan281 = new pkl49.component.PanelTransparan();\n panelTransparan282 = new pkl49.component.PanelTransparan();\n panelTransparan283 = new pkl49.component.PanelTransparan();\n txtB9AK5_15 = new pkl49.component.TextField();\n txtB9AK5_15Als = new pkl49.component.TextField();\n panelTransparan284 = new pkl49.component.PanelTransparan();\n txtB9AK6_15 = new pkl49.component.TextField();\n panelTransparan285 = new pkl49.component.PanelTransparan();\n txtB9AK7_15 = new pkl49.component.TextField();\n panelTransparan286 = new pkl49.component.PanelTransparan();\n txtB9AK8_15 = new pkl49.component.TextField();\n panelTransparan287 = new pkl49.component.PanelTransparan();\n txtB9AK9_15 = new pkl49.component.TextField();\n panelTransparan288 = new pkl49.component.PanelTransparan();\n txtB9AK10_15 = new pkl49.component.TextField();\n panelTransparan289 = new pkl49.component.PanelTransparan();\n txtB9AK11_15 = new pkl49.component.TextField();\n panelTransparan290 = new pkl49.component.PanelTransparan();\n panelTransparan291 = new pkl49.component.PanelTransparan();\n txtB9AK13_15 = new pkl49.component.TextField();\n txtB9AK13_15Als = new pkl49.component.TextField();\n panelTransparan292 = new pkl49.component.PanelTransparan();\n label113 = new pkl49.component.Label();\n panelTransparan293 = new pkl49.component.PanelTransparan();\n txtB9AK2_16 = new pkl49.component.TextField();\n panelTransparan294 = new pkl49.component.PanelTransparan();\n panelTransparan295 = new pkl49.component.PanelTransparan();\n panelTransparan296 = new pkl49.component.PanelTransparan();\n txtB9AK5_16 = new pkl49.component.TextField();\n txtB9AK5_16Als = new pkl49.component.TextField();\n panelTransparan297 = new pkl49.component.PanelTransparan();\n txtB9AK6_16 = new pkl49.component.TextField();\n panelTransparan298 = new pkl49.component.PanelTransparan();\n txtB9AK7_16 = new pkl49.component.TextField();\n panelTransparan299 = new pkl49.component.PanelTransparan();\n txtB9AK8_16 = new pkl49.component.TextField();\n panelTransparan300 = new pkl49.component.PanelTransparan();\n txtB9AK9_16 = new pkl49.component.TextField();\n panelTransparan301 = new pkl49.component.PanelTransparan();\n txtB9AK10_16 = new pkl49.component.TextField();\n panelTransparan302 = new pkl49.component.PanelTransparan();\n txtB9AK11_16 = new pkl49.component.TextField();\n panelTransparan303 = new pkl49.component.PanelTransparan();\n panelTransparan304 = new pkl49.component.PanelTransparan();\n txtB9AK13_16 = new pkl49.component.TextField();\n txtB9AK13_16Als = new pkl49.component.TextField();\n panelTransparan305 = new pkl49.component.PanelTransparan();\n label114 = new pkl49.component.Label();\n panelTransparan306 = new pkl49.component.PanelTransparan();\n txtB9AK2_17 = new pkl49.component.TextField();\n panelTransparan307 = new pkl49.component.PanelTransparan();\n panelTransparan308 = new pkl49.component.PanelTransparan();\n panelTransparan309 = new pkl49.component.PanelTransparan();\n txtB9AK5_17 = new pkl49.component.TextField();\n txtB9AK5_17Als = new pkl49.component.TextField();\n panelTransparan310 = new pkl49.component.PanelTransparan();\n txtB9AK6_17 = new pkl49.component.TextField();\n panelTransparan311 = new pkl49.component.PanelTransparan();\n txtB9AK7_17 = new pkl49.component.TextField();\n panelTransparan312 = new pkl49.component.PanelTransparan();\n txtB9AK8_17 = new pkl49.component.TextField();\n panelTransparan313 = new pkl49.component.PanelTransparan();\n txtB9AK9_17 = new pkl49.component.TextField();\n panelTransparan314 = new pkl49.component.PanelTransparan();\n txtB9AK10_17 = new pkl49.component.TextField();\n panelTransparan315 = new pkl49.component.PanelTransparan();\n txtB9AK11_17 = new pkl49.component.TextField();\n panelTransparan316 = new pkl49.component.PanelTransparan();\n panelTransparan317 = new pkl49.component.PanelTransparan();\n txtB9AK13_17 = new pkl49.component.TextField();\n txtB9AK13_17Als = new pkl49.component.TextField();\n panelTransparan318 = new pkl49.component.PanelTransparan();\n label115 = new pkl49.component.Label();\n panelTransparan319 = new pkl49.component.PanelTransparan();\n txtB9AK2_18 = new pkl49.component.TextField();\n panelTransparan320 = new pkl49.component.PanelTransparan();\n panelTransparan321 = new pkl49.component.PanelTransparan();\n panelTransparan322 = new pkl49.component.PanelTransparan();\n txtB9AK5_18 = new pkl49.component.TextField();\n txtB9AK5_18Als = new pkl49.component.TextField();\n panelTransparan323 = new pkl49.component.PanelTransparan();\n txtB9AK6_18 = new pkl49.component.TextField();\n panelTransparan324 = new pkl49.component.PanelTransparan();\n txtB9AK7_18 = new pkl49.component.TextField();\n panelTransparan325 = new pkl49.component.PanelTransparan();\n txtB9AK8_18 = new pkl49.component.TextField();\n panelTransparan326 = new pkl49.component.PanelTransparan();\n txtB9AK9_18 = new pkl49.component.TextField();\n panelTransparan327 = new pkl49.component.PanelTransparan();\n txtB9AK10_18 = new pkl49.component.TextField();\n panelTransparan328 = new pkl49.component.PanelTransparan();\n txtB9AK11_18 = new pkl49.component.TextField();\n panelTransparan329 = new pkl49.component.PanelTransparan();\n panelTransparan330 = new pkl49.component.PanelTransparan();\n txtB9AK13_18 = new pkl49.component.TextField();\n txtB9AK13_18Als = new pkl49.component.TextField();\n panelTransparan331 = new pkl49.component.PanelTransparan();\n label116 = new pkl49.component.Label();\n panelTransparan332 = new pkl49.component.PanelTransparan();\n txtB9AK2_19 = new pkl49.component.TextField();\n panelTransparan333 = new pkl49.component.PanelTransparan();\n panelTransparan334 = new pkl49.component.PanelTransparan();\n panelTransparan335 = new pkl49.component.PanelTransparan();\n txtB9AK5_19 = new pkl49.component.TextField();\n txtB9AK5_19Als = new pkl49.component.TextField();\n panelTransparan336 = new pkl49.component.PanelTransparan();\n txtB9AK6_19 = new pkl49.component.TextField();\n panelTransparan337 = new pkl49.component.PanelTransparan();\n txtB9AK7_19 = new pkl49.component.TextField();\n panelTransparan338 = new pkl49.component.PanelTransparan();\n txtB9AK8_19 = new pkl49.component.TextField();\n panelTransparan339 = new pkl49.component.PanelTransparan();\n txtB9AK9_19 = new pkl49.component.TextField();\n panelTransparan340 = new pkl49.component.PanelTransparan();\n txtB9AK10_19 = new pkl49.component.TextField();\n panelTransparan341 = new pkl49.component.PanelTransparan();\n txtB9AK11_19 = new pkl49.component.TextField();\n panelTransparan342 = new pkl49.component.PanelTransparan();\n panelTransparan343 = new pkl49.component.PanelTransparan();\n txtB9AK13_19 = new pkl49.component.TextField();\n txtB9AK13_19Als = new pkl49.component.TextField();\n panelTransparan344 = new pkl49.component.PanelTransparan();\n label117 = new pkl49.component.Label();\n panelTransparan345 = new pkl49.component.PanelTransparan();\n txtB9AK2_20 = new pkl49.component.TextField();\n panelTransparan346 = new pkl49.component.PanelTransparan();\n panelTransparan347 = new pkl49.component.PanelTransparan();\n panelTransparan348 = new pkl49.component.PanelTransparan();\n txtB9AK5_20 = new pkl49.component.TextField();\n txtB9AK5_20Als = new pkl49.component.TextField();\n panelTransparan349 = new pkl49.component.PanelTransparan();\n txtB9AK6_20 = new pkl49.component.TextField();\n panelTransparan350 = new pkl49.component.PanelTransparan();\n txtB9AK7_20 = new pkl49.component.TextField();\n panelTransparan351 = new pkl49.component.PanelTransparan();\n txtB9AK8_20 = new pkl49.component.TextField();\n panelTransparan352 = new pkl49.component.PanelTransparan();\n txtB9AK9_20 = new pkl49.component.TextField();\n panelTransparan353 = new pkl49.component.PanelTransparan();\n txtB9AK10_20 = new pkl49.component.TextField();\n panelTransparan354 = new pkl49.component.PanelTransparan();\n txtB9AK11_20 = new pkl49.component.TextField();\n panelTransparan355 = new pkl49.component.PanelTransparan();\n panelTransparan356 = new pkl49.component.PanelTransparan();\n txtB9AK13_20 = new pkl49.component.TextField();\n txtB9AK13_20Als = new pkl49.component.TextField();\n panelTransparan357 = new pkl49.component.PanelTransparan();\n label118 = new pkl49.component.Label();\n panelTransparan358 = new pkl49.component.PanelTransparan();\n txtB9AK2_21 = new pkl49.component.TextField();\n panelTransparan359 = new pkl49.component.PanelTransparan();\n panelTransparan360 = new pkl49.component.PanelTransparan();\n panelTransparan361 = new pkl49.component.PanelTransparan();\n txtB9AK5_21 = new pkl49.component.TextField();\n txtB9AK5_21Als = new pkl49.component.TextField();\n panelTransparan362 = new pkl49.component.PanelTransparan();\n txtB9AK6_21 = new pkl49.component.TextField();\n panelTransparan363 = new pkl49.component.PanelTransparan();\n txtB9AK7_21 = new pkl49.component.TextField();\n panelTransparan364 = new pkl49.component.PanelTransparan();\n txtB9AK8_21 = new pkl49.component.TextField();\n panelTransparan365 = new pkl49.component.PanelTransparan();\n txtB9AK9_21 = new pkl49.component.TextField();\n panelTransparan366 = new pkl49.component.PanelTransparan();\n txtB9AK10_21 = new pkl49.component.TextField();\n panelTransparan367 = new pkl49.component.PanelTransparan();\n txtB9AK11_21 = new pkl49.component.TextField();\n panelTransparan368 = new pkl49.component.PanelTransparan();\n panelTransparan369 = new pkl49.component.PanelTransparan();\n txtB9AK13_21 = new pkl49.component.TextField();\n txtB9AK13_21Als = new pkl49.component.TextField();\n panelTransparan370 = new pkl49.component.PanelTransparan();\n label119 = new pkl49.component.Label();\n panelTransparan371 = new pkl49.component.PanelTransparan();\n txtB9AK2_22 = new pkl49.component.TextField();\n panelTransparan372 = new pkl49.component.PanelTransparan();\n panelTransparan373 = new pkl49.component.PanelTransparan();\n panelTransparan374 = new pkl49.component.PanelTransparan();\n txtB9AK5_22 = new pkl49.component.TextField();\n txtB9AK5_22Als = new pkl49.component.TextField();\n panelTransparan375 = new pkl49.component.PanelTransparan();\n txtB9AK6_22 = new pkl49.component.TextField();\n panelTransparan376 = new pkl49.component.PanelTransparan();\n txtB9AK7_22 = new pkl49.component.TextField();\n panelTransparan377 = new pkl49.component.PanelTransparan();\n txtB9AK8_22 = new pkl49.component.TextField();\n panelTransparan378 = new pkl49.component.PanelTransparan();\n txtB9AK9_22 = new pkl49.component.TextField();\n panelTransparan379 = new pkl49.component.PanelTransparan();\n txtB9AK10_22 = new pkl49.component.TextField();\n panelTransparan380 = new pkl49.component.PanelTransparan();\n txtB9AK11_22 = new pkl49.component.TextField();\n panelTransparan381 = new pkl49.component.PanelTransparan();\n panelTransparan382 = new pkl49.component.PanelTransparan();\n txtB9AK13_22 = new pkl49.component.TextField();\n txtB9AK13_22Als = new pkl49.component.TextField();\n panelTransparan383 = new pkl49.component.PanelTransparan();\n label120 = new pkl49.component.Label();\n panelTransparan384 = new pkl49.component.PanelTransparan();\n txtB9AK2_23 = new pkl49.component.TextField();\n panelTransparan385 = new pkl49.component.PanelTransparan();\n panelTransparan386 = new pkl49.component.PanelTransparan();\n panelTransparan387 = new pkl49.component.PanelTransparan();\n txtB9AK5_23 = new pkl49.component.TextField();\n txtB9AK5_23Als = new pkl49.component.TextField();\n panelTransparan388 = new pkl49.component.PanelTransparan();\n txtB9AK6_23 = new pkl49.component.TextField();\n panelTransparan389 = new pkl49.component.PanelTransparan();\n txtB9AK7_23 = new pkl49.component.TextField();\n panelTransparan390 = new pkl49.component.PanelTransparan();\n txtB9AK8_23 = new pkl49.component.TextField();\n panelTransparan391 = new pkl49.component.PanelTransparan();\n txtB9AK9_23 = new pkl49.component.TextField();\n panelTransparan392 = new pkl49.component.PanelTransparan();\n txtB9AK10_23 = new pkl49.component.TextField();\n panelTransparan393 = new pkl49.component.PanelTransparan();\n txtB9AK11_23 = new pkl49.component.TextField();\n panelTransparan394 = new pkl49.component.PanelTransparan();\n panelTransparan395 = new pkl49.component.PanelTransparan();\n txtB9AK13_23 = new pkl49.component.TextField();\n txtB9AK13_23Als = new pkl49.component.TextField();\n panelTransparan396 = new pkl49.component.PanelTransparan();\n label121 = new pkl49.component.Label();\n panelTransparan397 = new pkl49.component.PanelTransparan();\n txtB9AK2_24 = new pkl49.component.TextField();\n panelTransparan398 = new pkl49.component.PanelTransparan();\n panelTransparan399 = new pkl49.component.PanelTransparan();\n panelTransparan400 = new pkl49.component.PanelTransparan();\n txtB9AK5_24 = new pkl49.component.TextField();\n txtB9AK5_24Als = new pkl49.component.TextField();\n panelTransparan401 = new pkl49.component.PanelTransparan();\n txtB9AK6_24 = new pkl49.component.TextField();\n panelTransparan402 = new pkl49.component.PanelTransparan();\n txtB9AK7_24 = new pkl49.component.TextField();\n panelTransparan403 = new pkl49.component.PanelTransparan();\n txtB9AK8_24 = new pkl49.component.TextField();\n panelTransparan404 = new pkl49.component.PanelTransparan();\n txtB9AK9_24 = new pkl49.component.TextField();\n panelTransparan405 = new pkl49.component.PanelTransparan();\n txtB9AK10_24 = new pkl49.component.TextField();\n panelTransparan406 = new pkl49.component.PanelTransparan();\n txtB9AK11_24 = new pkl49.component.TextField();\n panelTransparan407 = new pkl49.component.PanelTransparan();\n panelTransparan408 = new pkl49.component.PanelTransparan();\n txtB9AK13_24 = new pkl49.component.TextField();\n txtB9AK13_24Als = new pkl49.component.TextField();\n panelTransparan409 = new pkl49.component.PanelTransparan();\n label122 = new pkl49.component.Label();\n panelTransparan410 = new pkl49.component.PanelTransparan();\n txtB9AK2_25 = new pkl49.component.TextField();\n panelTransparan411 = new pkl49.component.PanelTransparan();\n panelTransparan412 = new pkl49.component.PanelTransparan();\n panelTransparan413 = new pkl49.component.PanelTransparan();\n txtB9AK5_25 = new pkl49.component.TextField();\n txtB9AK5_25Als = new pkl49.component.TextField();\n panelTransparan414 = new pkl49.component.PanelTransparan();\n txtB9AK6_25 = new pkl49.component.TextField();\n panelTransparan415 = new pkl49.component.PanelTransparan();\n txtB9AK7_25 = new pkl49.component.TextField();\n panelTransparan416 = new pkl49.component.PanelTransparan();\n txtB9AK8_25 = new pkl49.component.TextField();\n panelTransparan417 = new pkl49.component.PanelTransparan();\n txtB9AK9_25 = new pkl49.component.TextField();\n panelTransparan418 = new pkl49.component.PanelTransparan();\n txtB9AK10_25 = new pkl49.component.TextField();\n panelTransparan419 = new pkl49.component.PanelTransparan();\n txtB9AK11_25 = new pkl49.component.TextField();\n panelTransparan420 = new pkl49.component.PanelTransparan();\n panelTransparan421 = new pkl49.component.PanelTransparan();\n txtB9AK13_25 = new pkl49.component.TextField();\n txtB9AK13_25Als = new pkl49.component.TextField();\n panelTransparan422 = new pkl49.component.PanelTransparan();\n panelTransparan423 = new pkl49.component.PanelTransparan();\n panelTransparan424 = new pkl49.component.PanelTransparan();\n panelTransparan425 = new pkl49.component.PanelTransparan();\n panelTransparan426 = new pkl49.component.PanelTransparan();\n panelTransparan427 = new pkl49.component.PanelTransparan();\n panelTransparan428 = new pkl49.component.PanelTransparan();\n panelTransparan429 = new pkl49.component.PanelTransparan();\n panelTransparan430 = new pkl49.component.PanelTransparan();\n panelTransparan431 = new pkl49.component.PanelTransparan();\n panelTransparan432 = new pkl49.component.PanelTransparan();\n panelTransparan433 = new pkl49.component.PanelTransparan();\n panelTransparan434 = new pkl49.component.PanelTransparan();\n\n setOpaque(false);\n setLayout(new java.awt.BorderLayout());\n\n panelTabel.setLayout(new java.awt.GridBagLayout());\n\n panelTransparan2.setAlpha(70);\n panelTransparan2.setLayout(new java.awt.GridBagLayout());\n\n label1.setText(\"VIII. PENGETAHUAN TENTANG PROGRAM KESEHATAN GRATIS, PROGRAM PENDIDIKAN GRATIS, DAN PENGETAHUAN TENTANG KESEHATAN\"); // NOI18N\n label1.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan2.add(label1, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridwidth = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan2, gridBagConstraints);\n\n panelTransparan3.setAlpha(70);\n panelTransparan3.setLayout(new java.awt.GridBagLayout());\n\n label2.setText(\"VIII.A KESEHATAN DAN PENDIDIKAN GRATIS DALAM SATU TAHUN TERAKHIR\"); // NOI18N\n label2.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan3.add(label2, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.gridwidth = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan3, gridBagConstraints);\n\n panelTransparan4.setAlpha(50);\n panelTransparan4.setLayout(new java.awt.GridBagLayout());\n\n label3.setText(\"No.\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label3, gridBagConstraints);\n\n label4.setText(\"ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label4, gridBagConstraints);\n\n label5.setText(\"Urut\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label5, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridheight = 4;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan4, gridBagConstraints);\n\n panelTransparan5.setAlpha(50);\n panelTransparan5.setLayout(new java.awt.GridBagLayout());\n\n label6.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label6, gridBagConstraints);\n\n label8.setText(\"mempunyai jaminan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label8, gridBagConstraints);\n\n label10.setText(\"pembiayaan/asuransi\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label10, gridBagConstraints);\n\n label11.setText(\"kesehatan untuk di\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label11, gridBagConstraints);\n\n label12.setText(\"[Isikan kode]\"); // NOI18N\n label12.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label12, gridBagConstraints);\n\n label39.setText(\"bawah ini?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label39, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan5, gridBagConstraints);\n\n panelTransparan7.setAlpha(50);\n panelTransparan7.setLayout(new java.awt.GridBagLayout());\n\n label9.setText(\"0. Tidak punya\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label9, gridBagConstraints);\n\n label13.setText(\"1. Askes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label13, gridBagConstraints);\n\n label14.setText(\"2. Asabri\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label14, gridBagConstraints);\n\n label15.setText(\"4. Jamsostek\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label15, gridBagConstraints);\n\n label16.setText(\"8. Jamkes Swasta\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label16, gridBagConstraints);\n\n label17.setText(\"16. Jamkesmas\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label17, gridBagConstraints);\n\n label18.setText(\"32. Jamkes Mandiri\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label18, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan7, gridBagConstraints);\n\n panelTransparan13.setAlpha(50);\n panelTransparan13.setLayout(new java.awt.GridBagLayout());\n\n label19.setText(\"Apakah ada ART yang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label19, gridBagConstraints);\n\n label21.setText(\"mengetahui tentang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label21, gridBagConstraints);\n\n label22.setText(\"program pemerintah\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label22, gridBagConstraints);\n\n label24.setText(\"Jamsoskes semesta?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label24, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan13, gridBagConstraints);\n\n panelTransparan14.setAlpha(50);\n panelTransparan14.setLayout(new java.awt.GridBagLayout());\n\n label26.setText(\"1=ya [Sumber informasi]\"); // NOI18N\n label26.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label26, gridBagConstraints);\n\n label27.setText(\"2=tidak\"); // NOI18N\n label27.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label27, gridBagConstraints);\n\n label89.setText(\"[Jika kode=2,\"); // NOI18N\n label89.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label89, gridBagConstraints);\n\n label90.setText(\"lanjut ke K.12]\"); // NOI18N\n label90.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label90, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan14, gridBagConstraints);\n\n panelTransparan15.setAlpha(50);\n panelTransparan15.setLayout(new java.awt.GridBagLayout());\n\n label28.setText(\"Apakah ada ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label28, gridBagConstraints);\n\n label29.setText(\"tentang siapa\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label29, gridBagConstraints);\n\n label30.setText(\"yang mengetahui\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label30, gridBagConstraints);\n\n label31.setText(\"yang berhak\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label31, gridBagConstraints);\n\n label32.setText(\"pelayanan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label32, gridBagConstraints);\n\n label33.setText(\"Jamsoskes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label33, gridBagConstraints);\n\n label34.setText(\"semesta?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 7;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label34, gridBagConstraints);\n\n label37.setText(\"mendapatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label37, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan15, gridBagConstraints);\n\n panelTransparan16.setAlpha(50);\n panelTransparan16.setLayout(new java.awt.GridBagLayout());\n\n label35.setText(\"1=ya\"); // NOI18N\n label35.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label35, gridBagConstraints);\n\n label36.setText(\"2=tidak\"); // NOI18N\n label36.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label36, gridBagConstraints);\n\n label38.setText(\"[Isikan jika\"); // NOI18N\n label38.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label38, gridBagConstraints);\n\n label40.setText(\"K.3=1]\"); // NOI18N\n label40.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label40, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan16, gridBagConstraints);\n\n panelTransparan17.setAlpha(50);\n panelTransparan17.setLayout(new java.awt.GridBagLayout());\n\n label41.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label41, gridBagConstraints);\n\n label42.setText(\"[Isikan jika K.2=0 dan\"); // NOI18N\n label42.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label42, gridBagConstraints);\n\n label43.setText(\"jamsoskes?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label43, gridBagConstraints);\n\n label44.setText(\"K.3=1]\"); // NOI18N\n label44.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label44, gridBagConstraints);\n\n label91.setText(\"memanfaatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label91, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan17, gridBagConstraints);\n\n panelTransparan18.setAlpha(50);\n panelTransparan18.setLayout(new java.awt.GridBagLayout());\n\n label49.setText(\"1=ya\"); // NOI18N\n label49.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label49, gridBagConstraints);\n\n label50.setText(\"2=tidak [alasan]\"); // NOI18N\n label50.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label50, gridBagConstraints);\n\n label51.setText(\"[jika kode=2 Lanjut\"); // NOI18N\n label51.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label51, gridBagConstraints);\n\n label52.setText(\"ke K12]\"); // NOI18N\n label52.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label52, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan18, gridBagConstraints);\n\n panelTransparan19.setAlpha(50);\n panelTransparan19.setLayout(new java.awt.GridBagLayout());\n\n label45.setText(\"Jenis pelayanan yang pernah didapatkan dengan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan19.add(label45, gridBagConstraints);\n\n label46.setText(\"memanfaatkan jamsoskes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan19.add(label46, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridwidth = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan19, gridBagConstraints);\n\n panelTransparan20.setAlpha(50);\n panelTransparan20.setLayout(new java.awt.GridBagLayout());\n\n label47.setText(\"1=ya 2=tidak\"); // NOI18N\n label47.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan20.add(label47, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridwidth = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan20, gridBagConstraints);\n\n panelTransparan27.setAlpha(50);\n panelTransparan27.setLayout(new java.awt.GridBagLayout());\n\n label63.setText(\"Rawat Jalan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan27.add(label63, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan27, gridBagConstraints);\n\n panelTransparan23.setAlpha(50);\n panelTransparan23.setLayout(new java.awt.GridBagLayout());\n\n label55.setText(\"Rawat Inap\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan23.add(label55, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan23, gridBagConstraints);\n\n panelTransparan24.setAlpha(50);\n panelTransparan24.setLayout(new java.awt.GridBagLayout());\n\n label56.setText(\"Gawat Darurat\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan24.add(label56, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan24, gridBagConstraints);\n\n panelTransparan21.setAlpha(50);\n panelTransparan21.setLayout(new java.awt.GridBagLayout());\n\n label48.setText(\"Tahap 1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan21.add(label48, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan21, gridBagConstraints);\n\n panelTransparan22.setAlpha(50);\n panelTransparan22.setLayout(new java.awt.GridBagLayout());\n\n label54.setText(\"Lanjutan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan22.add(label54, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan22, gridBagConstraints);\n\n panelTransparan25.setAlpha(50);\n panelTransparan25.setLayout(new java.awt.GridBagLayout());\n\n label57.setText(\"Tahap 1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan25.add(label57, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan25, gridBagConstraints);\n\n panelTransparan26.setAlpha(50);\n panelTransparan26.setLayout(new java.awt.GridBagLayout());\n\n label58.setText(\"Lanjutan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan26.add(label58, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan26, gridBagConstraints);\n\n panelTransparan28.setAlpha(50);\n panelTransparan28.setLayout(new java.awt.GridBagLayout());\n\n label59.setText(\"Puskesmas\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan28.add(label59, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan28, gridBagConstraints);\n\n panelTransparan29.setAlpha(50);\n panelTransparan29.setLayout(new java.awt.GridBagLayout());\n\n label60.setText(\"Rumah\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan29.add(label60, gridBagConstraints);\n\n label61.setText(\"Sakit\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan29.add(label61, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan29, gridBagConstraints);\n\n panelTransparan30.setAlpha(50);\n panelTransparan30.setLayout(new java.awt.GridBagLayout());\n\n label62.setText(\"Apakah ada ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label62, gridBagConstraints);\n\n label64.setText(\"tentang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label64, gridBagConstraints);\n\n label65.setText(\"yang mengetahui\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label65, gridBagConstraints);\n\n label66.setText(\"program\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label66, gridBagConstraints);\n\n label67.setText(\"gratis?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label67, gridBagConstraints);\n\n label70.setText(\"pendidikan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label70, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan30, gridBagConstraints);\n\n panelTransparan31.setAlpha(50);\n panelTransparan31.setLayout(new java.awt.GridBagLayout());\n\n label68.setText(\"1=ya\"); // NOI18N\n label68.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label68, gridBagConstraints);\n\n label69.setText(\"[Jika kode=2\"); // NOI18N\n label69.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label69, gridBagConstraints);\n\n label92.setText(\"Blok IX.B]\"); // NOI18N\n label92.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label92, gridBagConstraints);\n\n label93.setText(\"2=tidak\"); // NOI18N\n label93.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label93, gridBagConstraints);\n\n label104.setText(\"lanjut ke\"); // NOI18N\n label104.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label104, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan31, gridBagConstraints);\n\n panelTransparan32.setAlpha(50);\n panelTransparan32.setLayout(new java.awt.GridBagLayout());\n\n label71.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label71, gridBagConstraints);\n\n label76.setText(\"pendidikan gratis?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label76, gridBagConstraints);\n\n label105.setText(\"memanfaatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label105, gridBagConstraints);\n\n label106.setText(\"7-18 tahun]\"); // NOI18N\n label106.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label106, gridBagConstraints);\n\n label107.setText(\"[Ditanyakan untuk ART\"); // NOI18N\n label107.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label107, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan32, gridBagConstraints);\n\n panelTransparan33.setAlpha(50);\n panelTransparan33.setLayout(new java.awt.GridBagLayout());\n\n label77.setText(\"1=ya\"); // NOI18N\n label77.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label77, gridBagConstraints);\n\n label78.setText(\"alasan jika K.12=1]\"); // NOI18N\n label78.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label78, gridBagConstraints);\n\n label79.setText(\"2=tidak [tanyakan\"); // NOI18N\n label79.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label79, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan33, gridBagConstraints);\n\n panelTransparan34.setAlpha(30);\n panelTransparan34.setLayout(new java.awt.GridBagLayout());\n\n label72.setText(\"(1)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan34.add(label72, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan34, gridBagConstraints);\n\n panelTransparan35.setAlpha(30);\n panelTransparan35.setLayout(new java.awt.GridBagLayout());\n\n label73.setText(\"(2)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan35.add(label73, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan35, gridBagConstraints);\n\n panelTransparan36.setAlpha(30);\n panelTransparan36.setLayout(new java.awt.GridBagLayout());\n\n label74.setText(\"(3)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan36.add(label74, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan36, gridBagConstraints);\n\n panelTransparan37.setAlpha(30);\n panelTransparan37.setLayout(new java.awt.GridBagLayout());\n\n label75.setText(\"(4)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan37.add(label75, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan37, gridBagConstraints);\n\n panelTransparan38.setAlpha(30);\n panelTransparan38.setLayout(new java.awt.GridBagLayout());\n\n label80.setText(\"(5)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan38.add(label80, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan38, gridBagConstraints);\n\n panelTransparan39.setAlpha(30);\n panelTransparan39.setLayout(new java.awt.GridBagLayout());\n\n label81.setText(\"(6)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan39.add(label81, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan39, gridBagConstraints);\n\n panelTransparan40.setAlpha(30);\n panelTransparan40.setLayout(new java.awt.GridBagLayout());\n\n label82.setText(\"(7)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan40.add(label82, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan40, gridBagConstraints);\n\n panelTransparan41.setAlpha(30);\n panelTransparan41.setLayout(new java.awt.GridBagLayout());\n\n label83.setText(\"(8)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan41.add(label83, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan41, gridBagConstraints);\n\n panelTransparan42.setAlpha(30);\n panelTransparan42.setLayout(new java.awt.GridBagLayout());\n\n label84.setText(\"(9)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan42.add(label84, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan42, gridBagConstraints);\n\n panelTransparan43.setAlpha(30);\n panelTransparan43.setLayout(new java.awt.GridBagLayout());\n\n label85.setText(\"(10)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan43.add(label85, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan43, gridBagConstraints);\n\n panelTransparan44.setAlpha(30);\n panelTransparan44.setLayout(new java.awt.GridBagLayout());\n\n label86.setText(\"(11)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan44.add(label86, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan44, gridBagConstraints);\n\n panelTransparan45.setAlpha(30);\n panelTransparan45.setLayout(new java.awt.GridBagLayout());\n\n label87.setText(\"(12)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan45.add(label87, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan45, gridBagConstraints);\n\n panelTransparan46.setAlpha(30);\n panelTransparan46.setLayout(new java.awt.GridBagLayout());\n\n label88.setText(\"(13)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan46.add(label88, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan46, gridBagConstraints);\n\n panelTransparan52.setLayout(new java.awt.GridBagLayout());\n\n label94.setText(\"1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan52.add(label94, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan52, gridBagConstraints);\n\n txtB9AK2_1.setColumns(3);\n txtB9AK2_1.setLength(2);\n txtB9AK2_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan53.add(txtB9AK2_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan53, gridBagConstraints);\n\n panelTransparan54.setAlpha(70);\n panelTransparan54.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK4_26.setColumns(2);\n txtB9AK4_26.setMaxDigit('2');\n txtB9AK4_26.setMinDigit('1');\n txtB9AK4_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan54.add(txtB9AK4_26, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan54, gridBagConstraints);\n\n panelTransparan55.setAlpha(70);\n panelTransparan55.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK3_26.setColumns(2);\n txtB9AK3_26.setMaxDigit('2');\n txtB9AK3_26.setMinDigit('1');\n txtB9AK3_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 2);\n panelTransparan55.add(txtB9AK3_26, gridBagConstraints);\n\n txtB9AK3_26Als.setColumns(3);\n txtB9AK3_26Als.setCharType(1);\n txtB9AK3_26Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txtB9AK3_26AlsfocusTxt(evt);\n }\n });\n panelTransparan55.add(txtB9AK3_26Als, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan55, gridBagConstraints);\n\n txtB9AK5_1.setColumns(2);\n txtB9AK5_1.setMaxDigit('2');\n txtB9AK5_1.setMinDigit('1');\n txtB9AK5_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan56.add(txtB9AK5_1);\n\n txtB9AK5_1Als.setColumns(3);\n txtB9AK5_1Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan56.add(txtB9AK5_1Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan56, gridBagConstraints);\n\n txtB9AK6_1.setColumns(2);\n txtB9AK6_1.setMaxDigit('2');\n txtB9AK6_1.setMinDigit('1');\n txtB9AK6_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan57.add(txtB9AK6_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan57, gridBagConstraints);\n\n txtB9AK7_1.setColumns(2);\n txtB9AK7_1.setMaxDigit('2');\n txtB9AK7_1.setMinDigit('1');\n txtB9AK7_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan58.add(txtB9AK7_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan58, gridBagConstraints);\n\n txtB9AK8_1.setColumns(2);\n txtB9AK8_1.setMaxDigit('2');\n txtB9AK8_1.setMinDigit('1');\n txtB9AK8_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan59.add(txtB9AK8_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan59, gridBagConstraints);\n\n txtB9AK9_1.setColumns(2);\n txtB9AK9_1.setMaxDigit('2');\n txtB9AK9_1.setMinDigit('1');\n txtB9AK9_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan60.add(txtB9AK9_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan60, gridBagConstraints);\n\n txtB9AK10_1.setColumns(2);\n txtB9AK10_1.setMaxDigit('2');\n txtB9AK10_1.setMinDigit('1');\n txtB9AK10_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan61.add(txtB9AK10_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan61, gridBagConstraints);\n\n txtB9AK11_1.setColumns(2);\n txtB9AK11_1.setMaxDigit('2');\n txtB9AK11_1.setMinDigit('1');\n txtB9AK11_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan62.add(txtB9AK11_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan62, gridBagConstraints);\n\n panelTransparan63.setAlpha(70);\n panelTransparan63.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK12_26.setColumns(2);\n txtB9AK12_26.setMaxDigit('2');\n txtB9AK12_26.setMinDigit('1');\n txtB9AK12_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan63.add(txtB9AK12_26, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan63, gridBagConstraints);\n\n txtB9AK13_1.setColumns(2);\n txtB9AK13_1.setMaxDigit('2');\n txtB9AK13_1.setMinDigit('1');\n txtB9AK13_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan64.add(txtB9AK13_1);\n\n txtB9AK13_1Als.setColumns(3);\n txtB9AK13_1Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan64.add(txtB9AK13_1Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan64, gridBagConstraints);\n\n panelTransparan70.setLayout(new java.awt.GridBagLayout());\n\n label95.setText(\"4\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan70.add(label95, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan70, gridBagConstraints);\n\n txtB9AK2_2.setColumns(3);\n txtB9AK2_2.setLength(2);\n txtB9AK2_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan71.add(txtB9AK2_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan71, gridBagConstraints);\n\n panelTransparan72.setAlpha(70);\n panelTransparan72.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan72, gridBagConstraints);\n\n panelTransparan73.setAlpha(70);\n panelTransparan73.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan73, gridBagConstraints);\n\n txtB9AK5_2.setColumns(2);\n txtB9AK5_2.setMaxDigit('2');\n txtB9AK5_2.setMinDigit('1');\n txtB9AK5_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan74.add(txtB9AK5_2);\n\n txtB9AK5_2Als.setColumns(3);\n txtB9AK5_2Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan74.add(txtB9AK5_2Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan74, gridBagConstraints);\n\n txtB9AK6_2.setColumns(2);\n txtB9AK6_2.setMaxDigit('2');\n txtB9AK6_2.setMinDigit('1');\n txtB9AK6_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan75.add(txtB9AK6_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan75, gridBagConstraints);\n\n txtB9AK7_2.setColumns(2);\n txtB9AK7_2.setMaxDigit('2');\n txtB9AK7_2.setMinDigit('1');\n txtB9AK7_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan76.add(txtB9AK7_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan76, gridBagConstraints);\n\n txtB9AK8_2.setColumns(2);\n txtB9AK8_2.setMaxDigit('2');\n txtB9AK8_2.setMinDigit('1');\n txtB9AK8_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan77.add(txtB9AK8_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan77, gridBagConstraints);\n\n txtB9AK9_2.setColumns(2);\n txtB9AK9_2.setMaxDigit('2');\n txtB9AK9_2.setMinDigit('1');\n txtB9AK9_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan78.add(txtB9AK9_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan78, gridBagConstraints);\n\n txtB9AK10_2.setColumns(2);\n txtB9AK10_2.setMaxDigit('2');\n txtB9AK10_2.setMinDigit('1');\n txtB9AK10_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan79.add(txtB9AK10_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan79, gridBagConstraints);\n\n txtB9AK11_2.setColumns(2);\n txtB9AK11_2.setMaxDigit('2');\n txtB9AK11_2.setMinDigit('1');\n txtB9AK11_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan80.add(txtB9AK11_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan80, gridBagConstraints);\n\n panelTransparan81.setAlpha(70);\n panelTransparan81.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan81, gridBagConstraints);\n\n txtB9AK13_2.setColumns(2);\n txtB9AK13_2.setMaxDigit('2');\n txtB9AK13_2.setMinDigit('1');\n txtB9AK13_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan82.add(txtB9AK13_2);\n\n txtB9AK13_2Als.setColumns(3);\n txtB9AK13_2Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan82.add(txtB9AK13_2Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan82, gridBagConstraints);\n\n panelTransparan88.setLayout(new java.awt.GridBagLayout());\n\n label96.setText(\"5\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan88.add(label96, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan88, gridBagConstraints);\n\n txtB9AK2_3.setColumns(3);\n txtB9AK2_3.setLength(2);\n txtB9AK2_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan89.add(txtB9AK2_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan89, gridBagConstraints);\n\n panelTransparan90.setAlpha(70);\n panelTransparan90.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan90, gridBagConstraints);\n\n panelTransparan91.setAlpha(70);\n panelTransparan91.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan91, gridBagConstraints);\n\n txtB9AK5_3.setColumns(2);\n txtB9AK5_3.setMaxDigit('2');\n txtB9AK5_3.setMinDigit('1');\n txtB9AK5_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan92.add(txtB9AK5_3);\n\n txtB9AK5_3Als.setColumns(3);\n txtB9AK5_3Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan92.add(txtB9AK5_3Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan92, gridBagConstraints);\n\n txtB9AK6_3.setColumns(2);\n txtB9AK6_3.setMaxDigit('2');\n txtB9AK6_3.setMinDigit('1');\n txtB9AK6_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan93.add(txtB9AK6_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan93, gridBagConstraints);\n\n txtB9AK7_3.setColumns(2);\n txtB9AK7_3.setMaxDigit('2');\n txtB9AK7_3.setMinDigit('1');\n txtB9AK7_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan94.add(txtB9AK7_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan94, gridBagConstraints);\n\n txtB9AK9_3.setColumns(2);\n txtB9AK9_3.setMaxDigit('2');\n txtB9AK9_3.setMinDigit('1');\n txtB9AK9_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan95.add(txtB9AK9_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan95, gridBagConstraints);\n\n txtB9AK8_3.setColumns(2);\n txtB9AK8_3.setMaxDigit('2');\n txtB9AK8_3.setMinDigit('1');\n txtB9AK8_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan96.add(txtB9AK8_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan96, gridBagConstraints);\n\n txtB9AK10_3.setColumns(2);\n txtB9AK10_3.setMaxDigit('2');\n txtB9AK10_3.setMinDigit('1');\n txtB9AK10_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan97.add(txtB9AK10_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan97, gridBagConstraints);\n\n txtB9AK11_3.setColumns(2);\n txtB9AK11_3.setMaxDigit('2');\n txtB9AK11_3.setMinDigit('1');\n txtB9AK11_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan98.add(txtB9AK11_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan98, gridBagConstraints);\n\n panelTransparan99.setAlpha(70);\n panelTransparan99.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan99, gridBagConstraints);\n\n txtB9AK13_3.setColumns(2);\n txtB9AK13_3.setMaxDigit('2');\n txtB9AK13_3.setMinDigit('1');\n txtB9AK13_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan100.add(txtB9AK13_3);\n\n txtB9AK13_3Als.setColumns(3);\n txtB9AK13_3Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan100.add(txtB9AK13_3Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan100, gridBagConstraints);\n\n panelTransparan106.setLayout(new java.awt.GridBagLayout());\n\n label97.setText(\"3\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan106.add(label97, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan106, gridBagConstraints);\n\n txtB9AK2_4.setColumns(3);\n txtB9AK2_4.setLength(2);\n txtB9AK2_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan107.add(txtB9AK2_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan107, gridBagConstraints);\n\n panelTransparan108.setAlpha(70);\n panelTransparan108.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan108, gridBagConstraints);\n\n panelTransparan109.setAlpha(70);\n panelTransparan109.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan109, gridBagConstraints);\n\n txtB9AK5_4.setColumns(2);\n txtB9AK5_4.setMaxDigit('2');\n txtB9AK5_4.setMinDigit('1');\n txtB9AK5_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan110.add(txtB9AK5_4);\n\n txtB9AK5_4Als.setColumns(3);\n txtB9AK5_4Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan110.add(txtB9AK5_4Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan110, gridBagConstraints);\n\n txtB9AK6_4.setColumns(2);\n txtB9AK6_4.setMaxDigit('2');\n txtB9AK6_4.setMinDigit('1');\n txtB9AK6_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan111.add(txtB9AK6_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan111, gridBagConstraints);\n\n txtB9AK7_4.setColumns(2);\n txtB9AK7_4.setMaxDigit('2');\n txtB9AK7_4.setMinDigit('1');\n txtB9AK7_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan112.add(txtB9AK7_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan112, gridBagConstraints);\n\n txtB9AK8_4.setColumns(2);\n txtB9AK8_4.setMaxDigit('2');\n txtB9AK8_4.setMinDigit('1');\n txtB9AK8_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan113.add(txtB9AK8_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan113, gridBagConstraints);\n\n txtB9AK9_4.setColumns(2);\n txtB9AK9_4.setMaxDigit('2');\n txtB9AK9_4.setMinDigit('1');\n txtB9AK9_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan114.add(txtB9AK9_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan114, gridBagConstraints);\n\n txtB9AK10_4.setColumns(2);\n txtB9AK10_4.setMaxDigit('2');\n txtB9AK10_4.setMinDigit('1');\n txtB9AK10_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan115.add(txtB9AK10_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan115, gridBagConstraints);\n\n txtB9AK11_4.setColumns(2);\n txtB9AK11_4.setMaxDigit('2');\n txtB9AK11_4.setMinDigit('1');\n txtB9AK11_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan116.add(txtB9AK11_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan116, gridBagConstraints);\n\n panelTransparan117.setAlpha(70);\n panelTransparan117.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan117, gridBagConstraints);\n\n txtB9AK13_4.setColumns(2);\n txtB9AK13_4.setMaxDigit('2');\n txtB9AK13_4.setMinDigit('1');\n txtB9AK13_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan118.add(txtB9AK13_4);\n\n txtB9AK13_4Als.setColumns(3);\n txtB9AK13_4Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan118.add(txtB9AK13_4Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan118, gridBagConstraints);\n\n panelTransparan124.setLayout(new java.awt.GridBagLayout());\n\n label98.setText(\"6\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan124.add(label98, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan124, gridBagConstraints);\n\n txtB9AK2_5.setColumns(3);\n txtB9AK2_5.setLength(2);\n txtB9AK2_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan125.add(txtB9AK2_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan125, gridBagConstraints);\n\n panelTransparan126.setAlpha(70);\n panelTransparan126.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan126, gridBagConstraints);\n\n panelTransparan127.setAlpha(70);\n panelTransparan127.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan127, gridBagConstraints);\n\n txtB9AK5_5.setColumns(2);\n txtB9AK5_5.setMaxDigit('2');\n txtB9AK5_5.setMinDigit('1');\n txtB9AK5_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan128.add(txtB9AK5_5);\n\n txtB9AK5_5Als.setColumns(3);\n txtB9AK5_5Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan128.add(txtB9AK5_5Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan128, gridBagConstraints);\n\n txtB9AK6_5.setColumns(2);\n txtB9AK6_5.setMaxDigit('2');\n txtB9AK6_5.setMinDigit('1');\n txtB9AK6_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan129.add(txtB9AK6_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan129, gridBagConstraints);\n\n txtB9AK7_5.setColumns(2);\n txtB9AK7_5.setMaxDigit('2');\n txtB9AK7_5.setMinDigit('1');\n txtB9AK7_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan130.add(txtB9AK7_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan130, gridBagConstraints);\n\n txtB9AK8_5.setColumns(2);\n txtB9AK8_5.setMaxDigit('2');\n txtB9AK8_5.setMinDigit('1');\n txtB9AK8_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan131.add(txtB9AK8_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan131, gridBagConstraints);\n\n txtB9AK9_5.setColumns(2);\n txtB9AK9_5.setMaxDigit('2');\n txtB9AK9_5.setMinDigit('1');\n txtB9AK9_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan132.add(txtB9AK9_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan132, gridBagConstraints);\n\n txtB9AK10_5.setColumns(2);\n txtB9AK10_5.setMaxDigit('2');\n txtB9AK10_5.setMinDigit('1');\n txtB9AK10_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan133.add(txtB9AK10_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan133, gridBagConstraints);\n\n txtB9AK11_5.setColumns(2);\n txtB9AK11_5.setMaxDigit('2');\n txtB9AK11_5.setMinDigit('1');\n txtB9AK11_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan134.add(txtB9AK11_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan134, gridBagConstraints);\n\n panelTransparan135.setAlpha(70);\n panelTransparan135.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan135, gridBagConstraints);\n\n txtB9AK13_5.setColumns(2);\n txtB9AK13_5.setMaxDigit('2');\n txtB9AK13_5.setMinDigit('1');\n txtB9AK13_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan136.add(txtB9AK13_5);\n\n txtB9AK13_5Als.setColumns(3);\n txtB9AK13_5Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan136.add(txtB9AK13_5Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan136, gridBagConstraints);\n\n panelTransparan142.setLayout(new java.awt.GridBagLayout());\n\n label99.setText(\"2\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan142.add(label99, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan142, gridBagConstraints);\n\n txtB9AK2_6.setColumns(3);\n txtB9AK2_6.setLength(2);\n txtB9AK2_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan143.add(txtB9AK2_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan143, gridBagConstraints);\n\n panelTransparan144.setAlpha(70);\n panelTransparan144.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan144, gridBagConstraints);\n\n panelTransparan145.setAlpha(70);\n panelTransparan145.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan145, gridBagConstraints);\n\n txtB9AK5_6.setColumns(2);\n txtB9AK5_6.setMaxDigit('2');\n txtB9AK5_6.setMinDigit('1');\n txtB9AK5_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan146.add(txtB9AK5_6);\n\n txtB9AK5_6Als.setColumns(3);\n txtB9AK5_6Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan146.add(txtB9AK5_6Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan146, gridBagConstraints);\n\n txtB9AK6_6.setColumns(2);\n txtB9AK6_6.setMaxDigit('2');\n txtB9AK6_6.setMinDigit('1');\n txtB9AK6_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan147.add(txtB9AK6_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan147, gridBagConstraints);\n\n txtB9AK7_6.setColumns(2);\n txtB9AK7_6.setMaxDigit('2');\n txtB9AK7_6.setMinDigit('1');\n txtB9AK7_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan148.add(txtB9AK7_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan148, gridBagConstraints);\n\n txtB9AK8_6.setColumns(2);\n txtB9AK8_6.setMaxDigit('2');\n txtB9AK8_6.setMinDigit('1');\n txtB9AK8_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan149.add(txtB9AK8_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan149, gridBagConstraints);\n\n txtB9AK9_6.setColumns(2);\n txtB9AK9_6.setMaxDigit('2');\n txtB9AK9_6.setMinDigit('1');\n txtB9AK9_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan150.add(txtB9AK9_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan150, gridBagConstraints);\n\n txtB9AK10_6.setColumns(2);\n txtB9AK10_6.setMaxDigit('2');\n txtB9AK10_6.setMinDigit('1');\n txtB9AK10_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan151.add(txtB9AK10_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan151, gridBagConstraints);\n\n txtB9AK11_6.setColumns(2);\n txtB9AK11_6.setMaxDigit('2');\n txtB9AK11_6.setMinDigit('1');\n txtB9AK11_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan152.add(txtB9AK11_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan152, gridBagConstraints);\n\n panelTransparan153.setAlpha(70);\n panelTransparan153.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan153, gridBagConstraints);\n\n txtB9AK13_6.setColumns(2);\n txtB9AK13_6.setMaxDigit('2');\n txtB9AK13_6.setMinDigit('1');\n txtB9AK13_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan154.add(txtB9AK13_6);\n\n txtB9AK13_6Als.setColumns(3);\n txtB9AK13_6Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan154.add(txtB9AK13_6Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan154, gridBagConstraints);\n\n panelTransparan160.setLayout(new java.awt.GridBagLayout());\n\n label100.setText(\"7\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan160.add(label100, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan160, gridBagConstraints);\n\n txtB9AK2_7.setColumns(3);\n txtB9AK2_7.setLength(2);\n txtB9AK2_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan161.add(txtB9AK2_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan161, gridBagConstraints);\n\n panelTransparan162.setAlpha(70);\n panelTransparan162.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan162, gridBagConstraints);\n\n panelTransparan163.setAlpha(70);\n panelTransparan163.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan163, gridBagConstraints);\n\n txtB9AK5_7.setColumns(2);\n txtB9AK5_7.setMaxDigit('2');\n txtB9AK5_7.setMinDigit('1');\n txtB9AK5_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan164.add(txtB9AK5_7);\n\n txtB9AK5_7Als.setColumns(3);\n txtB9AK5_7Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan164.add(txtB9AK5_7Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan164, gridBagConstraints);\n\n txtB9AK6_7.setColumns(2);\n txtB9AK6_7.setMaxDigit('2');\n txtB9AK6_7.setMinDigit('1');\n txtB9AK6_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan165.add(txtB9AK6_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan165, gridBagConstraints);\n\n txtB9AK7_7.setColumns(2);\n txtB9AK7_7.setMaxDigit('2');\n txtB9AK7_7.setMinDigit('1');\n txtB9AK7_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan166.add(txtB9AK7_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan166, gridBagConstraints);\n\n txtB9AK8_7.setColumns(2);\n txtB9AK8_7.setMaxDigit('2');\n txtB9AK8_7.setMinDigit('1');\n txtB9AK8_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan167.add(txtB9AK8_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan167, gridBagConstraints);\n\n txtB9AK9_7.setColumns(2);\n txtB9AK9_7.setMaxDigit('2');\n txtB9AK9_7.setMinDigit('1');\n txtB9AK9_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan168.add(txtB9AK9_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan168, gridBagConstraints);\n\n txtB9AK10_7.setColumns(2);\n txtB9AK10_7.setMaxDigit('2');\n txtB9AK10_7.setMinDigit('1');\n txtB9AK10_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan169.add(txtB9AK10_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan169, gridBagConstraints);\n\n txtB9AK11_7.setColumns(2);\n txtB9AK11_7.setMaxDigit('2');\n txtB9AK11_7.setMinDigit('1');\n txtB9AK11_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan170.add(txtB9AK11_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan170, gridBagConstraints);\n\n panelTransparan171.setAlpha(70);\n panelTransparan171.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan171, gridBagConstraints);\n\n txtB9AK13_7.setColumns(2);\n txtB9AK13_7.setMaxDigit('2');\n txtB9AK13_7.setMinDigit('1');\n txtB9AK13_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan172.add(txtB9AK13_7);\n\n txtB9AK13_7Als.setColumns(3);\n txtB9AK13_7Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan172.add(txtB9AK13_7Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan172, gridBagConstraints);\n\n panelTransparan178.setLayout(new java.awt.GridBagLayout());\n\n label101.setText(\"8\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan178.add(label101, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan178, gridBagConstraints);\n\n txtB9AK2_8.setColumns(3);\n txtB9AK2_8.setLength(2);\n txtB9AK2_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan179.add(txtB9AK2_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan179, gridBagConstraints);\n\n panelTransparan180.setAlpha(70);\n panelTransparan180.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan180, gridBagConstraints);\n\n panelTransparan181.setAlpha(70);\n panelTransparan181.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan181, gridBagConstraints);\n\n txtB9AK5_8.setColumns(2);\n txtB9AK5_8.setMaxDigit('2');\n txtB9AK5_8.setMinDigit('1');\n txtB9AK5_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan182.add(txtB9AK5_8);\n\n txtB9AK5_8Als.setColumns(3);\n txtB9AK5_8Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan182.add(txtB9AK5_8Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan182, gridBagConstraints);\n\n txtB9AK6_8.setColumns(2);\n txtB9AK6_8.setMaxDigit('2');\n txtB9AK6_8.setMinDigit('1');\n txtB9AK6_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan183.add(txtB9AK6_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan183, gridBagConstraints);\n\n txtB9AK7_8.setColumns(2);\n txtB9AK7_8.setMaxDigit('2');\n txtB9AK7_8.setMinDigit('1');\n txtB9AK7_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan184.add(txtB9AK7_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan184, gridBagConstraints);\n\n txtB9AK8_8.setColumns(2);\n txtB9AK8_8.setMaxDigit('2');\n txtB9AK8_8.setMinDigit('1');\n txtB9AK8_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan185.add(txtB9AK8_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan185, gridBagConstraints);\n\n txtB9AK9_8.setColumns(2);\n txtB9AK9_8.setMaxDigit('2');\n txtB9AK9_8.setMinDigit('1');\n txtB9AK9_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan186.add(txtB9AK9_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan186, gridBagConstraints);\n\n txtB9AK10_8.setColumns(2);\n txtB9AK10_8.setMaxDigit('2');\n txtB9AK10_8.setMinDigit('1');\n txtB9AK10_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan187.add(txtB9AK10_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan187, gridBagConstraints);\n\n txtB9AK11_8.setColumns(2);\n txtB9AK11_8.setMaxDigit('2');\n txtB9AK11_8.setMinDigit('1');\n txtB9AK11_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan188.add(txtB9AK11_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan188, gridBagConstraints);\n\n panelTransparan189.setAlpha(70);\n panelTransparan189.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan189, gridBagConstraints);\n\n txtB9AK13_8.setColumns(2);\n txtB9AK13_8.setMaxDigit('2');\n txtB9AK13_8.setMinDigit('1');\n txtB9AK13_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan190.add(txtB9AK13_8);\n\n txtB9AK13_8Als.setColumns(3);\n txtB9AK13_8Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan190.add(txtB9AK13_8Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan190, gridBagConstraints);\n\n panelTransparan196.setLayout(new java.awt.GridBagLayout());\n\n label102.setText(\"9\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan196.add(label102, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan196, gridBagConstraints);\n\n txtB9AK2_9.setColumns(3);\n txtB9AK2_9.setLength(2);\n txtB9AK2_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan197.add(txtB9AK2_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan197, gridBagConstraints);\n\n panelTransparan198.setAlpha(70);\n panelTransparan198.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan198, gridBagConstraints);\n\n panelTransparan199.setAlpha(70);\n panelTransparan199.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan199, gridBagConstraints);\n\n txtB9AK5_9.setColumns(2);\n txtB9AK5_9.setMaxDigit('2');\n txtB9AK5_9.setMinDigit('1');\n txtB9AK5_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan200.add(txtB9AK5_9);\n\n txtB9AK5_9Als.setColumns(3);\n txtB9AK5_9Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan200.add(txtB9AK5_9Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan200, gridBagConstraints);\n\n txtB9AK6_9.setColumns(2);\n txtB9AK6_9.setMaxDigit('2');\n txtB9AK6_9.setMinDigit('1');\n txtB9AK6_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan201.add(txtB9AK6_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan201, gridBagConstraints);\n\n txtB9AK7_9.setColumns(2);\n txtB9AK7_9.setMaxDigit('2');\n txtB9AK7_9.setMinDigit('1');\n txtB9AK7_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan202.add(txtB9AK7_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan202, gridBagConstraints);\n\n txtB9AK8_9.setColumns(2);\n txtB9AK8_9.setMaxDigit('2');\n txtB9AK8_9.setMinDigit('1');\n txtB9AK8_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan203.add(txtB9AK8_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan203, gridBagConstraints);\n\n txtB9AK9_9.setColumns(2);\n txtB9AK9_9.setMaxDigit('2');\n txtB9AK9_9.setMinDigit('1');\n txtB9AK9_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan204.add(txtB9AK9_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan204, gridBagConstraints);\n\n txtB9AK10_9.setColumns(2);\n txtB9AK10_9.setMaxDigit('2');\n txtB9AK10_9.setMinDigit('1');\n txtB9AK10_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan205.add(txtB9AK10_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan205, gridBagConstraints);\n\n txtB9AK11_9.setColumns(2);\n txtB9AK11_9.setMaxDigit('2');\n txtB9AK11_9.setMinDigit('1');\n txtB9AK11_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan206.add(txtB9AK11_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan206, gridBagConstraints);\n\n panelTransparan207.setAlpha(70);\n panelTransparan207.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan207, gridBagConstraints);\n\n txtB9AK13_9.setColumns(2);\n txtB9AK13_9.setMaxDigit('2');\n txtB9AK13_9.setMinDigit('1');\n txtB9AK13_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan208.add(txtB9AK13_9);\n\n txtB9AK13_9Als.setColumns(3);\n txtB9AK13_9Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan208.add(txtB9AK13_9Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan208, gridBagConstraints);\n\n panelTransparan214.setLayout(new java.awt.GridBagLayout());\n\n label103.setText(\"10\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan214.add(label103, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan214, gridBagConstraints);\n\n txtB9AK2_10.setColumns(3);\n txtB9AK2_10.setLength(2);\n txtB9AK2_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan215.add(txtB9AK2_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan215, gridBagConstraints);\n\n panelTransparan216.setAlpha(70);\n panelTransparan216.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan216, gridBagConstraints);\n\n panelTransparan217.setAlpha(70);\n panelTransparan217.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan217, gridBagConstraints);\n\n txtB9AK5_10.setColumns(2);\n txtB9AK5_10.setMaxDigit('2');\n txtB9AK5_10.setMinDigit('1');\n txtB9AK5_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan218.add(txtB9AK5_10);\n\n txtB9AK5_10Als.setColumns(3);\n txtB9AK5_10Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan218.add(txtB9AK5_10Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan218, gridBagConstraints);\n\n txtB9AK6_10.setColumns(2);\n txtB9AK6_10.setMaxDigit('2');\n txtB9AK6_10.setMinDigit('1');\n txtB9AK6_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan219.add(txtB9AK6_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan219, gridBagConstraints);\n\n txtB9AK7_10.setColumns(2);\n txtB9AK7_10.setMaxDigit('2');\n txtB9AK7_10.setMinDigit('1');\n txtB9AK7_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan220.add(txtB9AK7_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan220, gridBagConstraints);\n\n txtB9AK8_10.setColumns(2);\n txtB9AK8_10.setMaxDigit('2');\n txtB9AK8_10.setMinDigit('1');\n txtB9AK8_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan221.add(txtB9AK8_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan221, gridBagConstraints);\n\n txtB9AK9_10.setColumns(2);\n txtB9AK9_10.setMaxDigit('2');\n txtB9AK9_10.setMinDigit('1');\n txtB9AK9_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan222.add(txtB9AK9_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan222, gridBagConstraints);\n\n txtB9AK10_10.setColumns(2);\n txtB9AK10_10.setMaxDigit('2');\n txtB9AK10_10.setMinDigit('1');\n txtB9AK10_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan223.add(txtB9AK10_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan223, gridBagConstraints);\n\n txtB9AK11_10.setColumns(2);\n txtB9AK11_10.setMaxDigit('2');\n txtB9AK11_10.setMinDigit('1');\n txtB9AK11_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan224.add(txtB9AK11_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan224, gridBagConstraints);\n\n panelTransparan225.setAlpha(70);\n panelTransparan225.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan225, gridBagConstraints);\n\n txtB9AK13_10.setColumns(2);\n txtB9AK13_10.setMaxDigit('2');\n txtB9AK13_10.setMinDigit('1');\n txtB9AK13_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan226.add(txtB9AK13_10);\n\n txtB9AK13_10Als.setColumns(3);\n txtB9AK13_10Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan226.add(txtB9AK13_10Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan226, gridBagConstraints);\n\n panelTransparan227.setLayout(new java.awt.GridBagLayout());\n\n label108.setText(\"11\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan227.add(label108, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan227, gridBagConstraints);\n\n txtB9AK2_11.setColumns(3);\n txtB9AK2_11.setLength(2);\n txtB9AK2_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan228.add(txtB9AK2_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan228, gridBagConstraints);\n\n panelTransparan229.setAlpha(70);\n panelTransparan229.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan229, gridBagConstraints);\n\n panelTransparan230.setAlpha(70);\n panelTransparan230.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan230, gridBagConstraints);\n\n txtB9AK5_11.setColumns(2);\n txtB9AK5_11.setMaxDigit('2');\n txtB9AK5_11.setMinDigit('1');\n txtB9AK5_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan231.add(txtB9AK5_11);\n\n txtB9AK5_11Als.setColumns(3);\n txtB9AK5_11Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan231.add(txtB9AK5_11Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan231, gridBagConstraints);\n\n txtB9AK6_11.setColumns(2);\n txtB9AK6_11.setMaxDigit('2');\n txtB9AK6_11.setMinDigit('1');\n txtB9AK6_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan232.add(txtB9AK6_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan232, gridBagConstraints);\n\n txtB9AK7_11.setColumns(2);\n txtB9AK7_11.setMaxDigit('2');\n txtB9AK7_11.setMinDigit('1');\n txtB9AK7_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan233.add(txtB9AK7_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan233, gridBagConstraints);\n\n txtB9AK8_11.setColumns(2);\n txtB9AK8_11.setMaxDigit('2');\n txtB9AK8_11.setMinDigit('1');\n txtB9AK8_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan234.add(txtB9AK8_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan234, gridBagConstraints);\n\n txtB9AK9_11.setColumns(2);\n txtB9AK9_11.setMaxDigit('2');\n txtB9AK9_11.setMinDigit('1');\n txtB9AK9_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan235.add(txtB9AK9_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan235, gridBagConstraints);\n\n txtB9AK10_11.setColumns(2);\n txtB9AK10_11.setMaxDigit('2');\n txtB9AK10_11.setMinDigit('1');\n txtB9AK10_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan236.add(txtB9AK10_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan236, gridBagConstraints);\n\n txtB9AK11_11.setColumns(2);\n txtB9AK11_11.setMaxDigit('2');\n txtB9AK11_11.setMinDigit('1');\n txtB9AK11_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan237.add(txtB9AK11_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan237, gridBagConstraints);\n\n panelTransparan238.setAlpha(70);\n panelTransparan238.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan238, gridBagConstraints);\n\n txtB9AK13_11.setColumns(2);\n txtB9AK13_11.setMaxDigit('2');\n txtB9AK13_11.setMinDigit('1');\n txtB9AK13_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan239.add(txtB9AK13_11);\n\n txtB9AK13_11Als.setColumns(3);\n txtB9AK13_11Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan239.add(txtB9AK13_11Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan239, gridBagConstraints);\n\n panelTransparan240.setLayout(new java.awt.GridBagLayout());\n\n label109.setText(\"12\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan240.add(label109, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan240, gridBagConstraints);\n\n txtB9AK2_12.setColumns(3);\n txtB9AK2_12.setLength(2);\n txtB9AK2_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan241.add(txtB9AK2_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan241, gridBagConstraints);\n\n panelTransparan242.setAlpha(70);\n panelTransparan242.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan242, gridBagConstraints);\n\n txtB9AK5_12.setColumns(2);\n txtB9AK5_12.setMaxDigit('2');\n txtB9AK5_12.setMinDigit('1');\n txtB9AK5_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan243.add(txtB9AK5_12);\n\n txtB9AK5_12Als.setColumns(3);\n txtB9AK5_12Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan243.add(txtB9AK5_12Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan243, gridBagConstraints);\n\n txtB9AK6_12.setColumns(2);\n txtB9AK6_12.setMaxDigit('2');\n txtB9AK6_12.setMinDigit('1');\n txtB9AK6_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan244.add(txtB9AK6_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan244, gridBagConstraints);\n\n txtB9AK7_12.setColumns(2);\n txtB9AK7_12.setMaxDigit('2');\n txtB9AK7_12.setMinDigit('1');\n txtB9AK7_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan245.add(txtB9AK7_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan245, gridBagConstraints);\n\n panelTransparan246.setAlpha(70);\n panelTransparan246.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan246, gridBagConstraints);\n\n txtB9AK8_12.setColumns(2);\n txtB9AK8_12.setMaxDigit('2');\n txtB9AK8_12.setMinDigit('1');\n txtB9AK8_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan247.add(txtB9AK8_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan247, gridBagConstraints);\n\n txtB9AK9_12.setColumns(2);\n txtB9AK9_12.setMaxDigit('2');\n txtB9AK9_12.setMinDigit('1');\n txtB9AK9_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan248.add(txtB9AK9_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan248, gridBagConstraints);\n\n txtB9AK10_12.setColumns(2);\n txtB9AK10_12.setMaxDigit('2');\n txtB9AK10_12.setMinDigit('1');\n txtB9AK10_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan249.add(txtB9AK10_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan249, gridBagConstraints);\n\n txtB9AK11_12.setColumns(2);\n txtB9AK11_12.setMaxDigit('2');\n txtB9AK11_12.setMinDigit('1');\n txtB9AK11_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan250.add(txtB9AK11_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan250, gridBagConstraints);\n\n panelTransparan251.setAlpha(70);\n panelTransparan251.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan251, gridBagConstraints);\n\n txtB9AK13_12.setColumns(2);\n txtB9AK13_12.setMaxDigit('2');\n txtB9AK13_12.setMinDigit('1');\n txtB9AK13_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan252.add(txtB9AK13_12);\n\n txtB9AK13_12Als.setColumns(3);\n txtB9AK13_12Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan252.add(txtB9AK13_12Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan252, gridBagConstraints);\n\n panelTransparan253.setLayout(new java.awt.GridBagLayout());\n\n label110.setText(\"13\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan253.add(label110, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan253, gridBagConstraints);\n\n txtB9AK2_13.setColumns(3);\n txtB9AK2_13.setLength(2);\n txtB9AK2_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan254.add(txtB9AK2_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan254, gridBagConstraints);\n\n panelTransparan255.setAlpha(70);\n panelTransparan255.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan255, gridBagConstraints);\n\n txtB9AK5_13.setColumns(2);\n txtB9AK5_13.setMaxDigit('2');\n txtB9AK5_13.setMinDigit('1');\n txtB9AK5_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan256.add(txtB9AK5_13);\n\n txtB9AK5_13Als.setColumns(3);\n txtB9AK5_13Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan256.add(txtB9AK5_13Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan256, gridBagConstraints);\n\n txtB9AK6_13.setColumns(2);\n txtB9AK6_13.setMaxDigit('2');\n txtB9AK6_13.setMinDigit('1');\n txtB9AK6_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan257.add(txtB9AK6_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan257, gridBagConstraints);\n\n txtB9AK7_13.setColumns(2);\n txtB9AK7_13.setMaxDigit('2');\n txtB9AK7_13.setMinDigit('1');\n txtB9AK7_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan258.add(txtB9AK7_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan258, gridBagConstraints);\n\n panelTransparan259.setAlpha(70);\n panelTransparan259.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan259, gridBagConstraints);\n\n txtB9AK8_13.setColumns(2);\n txtB9AK8_13.setMaxDigit('2');\n txtB9AK8_13.setMinDigit('1');\n txtB9AK8_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan260.add(txtB9AK8_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan260, gridBagConstraints);\n\n txtB9AK9_13.setColumns(2);\n txtB9AK9_13.setMaxDigit('2');\n txtB9AK9_13.setMinDigit('1');\n txtB9AK9_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan261.add(txtB9AK9_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan261, gridBagConstraints);\n\n txtB9AK10_13.setColumns(2);\n txtB9AK10_13.setMaxDigit('2');\n txtB9AK10_13.setMinDigit('1');\n txtB9AK10_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan262.add(txtB9AK10_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan262, gridBagConstraints);\n\n txtB9AK11_13.setColumns(2);\n txtB9AK11_13.setMaxDigit('2');\n txtB9AK11_13.setMinDigit('1');\n txtB9AK11_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan263.add(txtB9AK11_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan263, gridBagConstraints);\n\n panelTransparan264.setAlpha(70);\n panelTransparan264.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan264, gridBagConstraints);\n\n txtB9AK13_13.setColumns(2);\n txtB9AK13_13.setMaxDigit('2');\n txtB9AK13_13.setMinDigit('1');\n txtB9AK13_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan265.add(txtB9AK13_13);\n\n txtB9AK13_13Als.setColumns(3);\n txtB9AK13_13Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan265.add(txtB9AK13_13Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan265, gridBagConstraints);\n\n panelTransparan266.setLayout(new java.awt.GridBagLayout());\n\n label111.setText(\"14\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan266.add(label111, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan266, gridBagConstraints);\n\n txtB9AK2_14.setColumns(3);\n txtB9AK2_14.setLength(2);\n txtB9AK2_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan267.add(txtB9AK2_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan267, gridBagConstraints);\n\n panelTransparan268.setAlpha(70);\n panelTransparan268.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan268, gridBagConstraints);\n\n txtB9AK5_14.setColumns(2);\n txtB9AK5_14.setMaxDigit('2');\n txtB9AK5_14.setMinDigit('1');\n txtB9AK5_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan269.add(txtB9AK5_14);\n\n txtB9AK5_14Als.setColumns(3);\n txtB9AK5_14Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan269.add(txtB9AK5_14Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan269, gridBagConstraints);\n\n txtB9AK6_14.setColumns(2);\n txtB9AK6_14.setMaxDigit('2');\n txtB9AK6_14.setMinDigit('1');\n txtB9AK6_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan270.add(txtB9AK6_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan270, gridBagConstraints);\n\n txtB9AK7_14.setColumns(2);\n txtB9AK7_14.setMaxDigit('2');\n txtB9AK7_14.setMinDigit('1');\n txtB9AK7_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan271.add(txtB9AK7_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan271, gridBagConstraints);\n\n panelTransparan272.setAlpha(70);\n panelTransparan272.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan272, gridBagConstraints);\n\n txtB9AK8_14.setColumns(2);\n txtB9AK8_14.setMaxDigit('2');\n txtB9AK8_14.setMinDigit('1');\n txtB9AK8_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan273.add(txtB9AK8_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan273, gridBagConstraints);\n\n txtB9AK9_14.setColumns(2);\n txtB9AK9_14.setMaxDigit('2');\n txtB9AK9_14.setMinDigit('1');\n txtB9AK9_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan274.add(txtB9AK9_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan274, gridBagConstraints);\n\n txtB9AK10_14.setColumns(2);\n txtB9AK10_14.setMaxDigit('2');\n txtB9AK10_14.setMinDigit('1');\n txtB9AK10_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan275.add(txtB9AK10_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan275, gridBagConstraints);\n\n txtB9AK11_14.setColumns(2);\n txtB9AK11_14.setMaxDigit('2');\n txtB9AK11_14.setMinDigit('1');\n txtB9AK11_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan276.add(txtB9AK11_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan276, gridBagConstraints);\n\n panelTransparan277.setAlpha(70);\n panelTransparan277.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan277, gridBagConstraints);\n\n txtB9AK13_14.setColumns(2);\n txtB9AK13_14.setMaxDigit('2');\n txtB9AK13_14.setMinDigit('1');\n txtB9AK13_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan278.add(txtB9AK13_14);\n\n txtB9AK13_14Als.setColumns(3);\n txtB9AK13_14Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan278.add(txtB9AK13_14Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan278, gridBagConstraints);\n\n panelTransparan279.setLayout(new java.awt.GridBagLayout());\n\n label112.setText(\"15\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan279.add(label112, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan279, gridBagConstraints);\n\n txtB9AK2_15.setColumns(3);\n txtB9AK2_15.setLength(2);\n txtB9AK2_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan280.add(txtB9AK2_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan280, gridBagConstraints);\n\n panelTransparan281.setAlpha(70);\n panelTransparan281.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan281, gridBagConstraints);\n\n panelTransparan282.setAlpha(70);\n panelTransparan282.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan282, gridBagConstraints);\n\n txtB9AK5_15.setColumns(2);\n txtB9AK5_15.setMaxDigit('2');\n txtB9AK5_15.setMinDigit('1');\n txtB9AK5_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan283.add(txtB9AK5_15);\n\n txtB9AK5_15Als.setColumns(3);\n txtB9AK5_15Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan283.add(txtB9AK5_15Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan283, gridBagConstraints);\n\n txtB9AK6_15.setColumns(2);\n txtB9AK6_15.setMaxDigit('2');\n txtB9AK6_15.setMinDigit('1');\n txtB9AK6_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan284.add(txtB9AK6_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan284, gridBagConstraints);\n\n txtB9AK7_15.setColumns(2);\n txtB9AK7_15.setMaxDigit('2');\n txtB9AK7_15.setMinDigit('1');\n txtB9AK7_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan285.add(txtB9AK7_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan285, gridBagConstraints);\n\n txtB9AK8_15.setColumns(2);\n txtB9AK8_15.setMaxDigit('2');\n txtB9AK8_15.setMinDigit('1');\n txtB9AK8_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan286.add(txtB9AK8_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan286, gridBagConstraints);\n\n txtB9AK9_15.setColumns(2);\n txtB9AK9_15.setMaxDigit('2');\n txtB9AK9_15.setMinDigit('1');\n txtB9AK9_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan287.add(txtB9AK9_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan287, gridBagConstraints);\n\n txtB9AK10_15.setColumns(2);\n txtB9AK10_15.setMaxDigit('2');\n txtB9AK10_15.setMinDigit('1');\n txtB9AK10_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan288.add(txtB9AK10_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan288, gridBagConstraints);\n\n txtB9AK11_15.setColumns(2);\n txtB9AK11_15.setMaxDigit('2');\n txtB9AK11_15.setMinDigit('1');\n txtB9AK11_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan289.add(txtB9AK11_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan289, gridBagConstraints);\n\n panelTransparan290.setAlpha(70);\n panelTransparan290.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan290, gridBagConstraints);\n\n txtB9AK13_15.setColumns(2);\n txtB9AK13_15.setMaxDigit('2');\n txtB9AK13_15.setMinDigit('1');\n txtB9AK13_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan291.add(txtB9AK13_15);\n\n txtB9AK13_15Als.setColumns(3);\n txtB9AK13_15Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan291.add(txtB9AK13_15Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan291, gridBagConstraints);\n\n panelTransparan292.setLayout(new java.awt.GridBagLayout());\n\n label113.setText(\"16\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan292.add(label113, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan292, gridBagConstraints);\n\n txtB9AK2_16.setColumns(3);\n txtB9AK2_16.setLength(2);\n txtB9AK2_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan293.add(txtB9AK2_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan293, gridBagConstraints);\n\n panelTransparan294.setAlpha(70);\n panelTransparan294.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan294, gridBagConstraints);\n\n panelTransparan295.setAlpha(70);\n panelTransparan295.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan295, gridBagConstraints);\n\n txtB9AK5_16.setColumns(2);\n txtB9AK5_16.setMaxDigit('2');\n txtB9AK5_16.setMinDigit('1');\n txtB9AK5_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan296.add(txtB9AK5_16);\n\n txtB9AK5_16Als.setColumns(3);\n txtB9AK5_16Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan296.add(txtB9AK5_16Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan296, gridBagConstraints);\n\n txtB9AK6_16.setColumns(2);\n txtB9AK6_16.setMaxDigit('2');\n txtB9AK6_16.setMinDigit('1');\n txtB9AK6_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan297.add(txtB9AK6_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan297, gridBagConstraints);\n\n txtB9AK7_16.setColumns(2);\n txtB9AK7_16.setMaxDigit('2');\n txtB9AK7_16.setMinDigit('1');\n txtB9AK7_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan298.add(txtB9AK7_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan298, gridBagConstraints);\n\n txtB9AK8_16.setColumns(2);\n txtB9AK8_16.setMaxDigit('2');\n txtB9AK8_16.setMinDigit('1');\n txtB9AK8_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan299.add(txtB9AK8_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan299, gridBagConstraints);\n\n txtB9AK9_16.setColumns(2);\n txtB9AK9_16.setMaxDigit('2');\n txtB9AK9_16.setMinDigit('1');\n txtB9AK9_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan300.add(txtB9AK9_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan300, gridBagConstraints);\n\n txtB9AK10_16.setColumns(2);\n txtB9AK10_16.setMaxDigit('2');\n txtB9AK10_16.setMinDigit('1');\n txtB9AK10_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan301.add(txtB9AK10_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan301, gridBagConstraints);\n\n txtB9AK11_16.setColumns(2);\n txtB9AK11_16.setMaxDigit('2');\n txtB9AK11_16.setMinDigit('1');\n txtB9AK11_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan302.add(txtB9AK11_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan302, gridBagConstraints);\n\n panelTransparan303.setAlpha(70);\n panelTransparan303.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan303, gridBagConstraints);\n\n txtB9AK13_16.setColumns(2);\n txtB9AK13_16.setMaxDigit('2');\n txtB9AK13_16.setMinDigit('1');\n txtB9AK13_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan304.add(txtB9AK13_16);\n\n txtB9AK13_16Als.setColumns(3);\n txtB9AK13_16Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan304.add(txtB9AK13_16Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan304, gridBagConstraints);\n\n panelTransparan305.setLayout(new java.awt.GridBagLayout());\n\n label114.setText(\"17\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan305.add(label114, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan305, gridBagConstraints);\n\n txtB9AK2_17.setColumns(3);\n txtB9AK2_17.setLength(2);\n txtB9AK2_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan306.add(txtB9AK2_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan306, gridBagConstraints);\n\n panelTransparan307.setAlpha(70);\n panelTransparan307.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan307, gridBagConstraints);\n\n panelTransparan308.setAlpha(70);\n panelTransparan308.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan308, gridBagConstraints);\n\n txtB9AK5_17.setColumns(2);\n txtB9AK5_17.setMaxDigit('2');\n txtB9AK5_17.setMinDigit('1');\n txtB9AK5_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan309.add(txtB9AK5_17);\n\n txtB9AK5_17Als.setColumns(3);\n txtB9AK5_17Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan309.add(txtB9AK5_17Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan309, gridBagConstraints);\n\n txtB9AK6_17.setColumns(2);\n txtB9AK6_17.setMaxDigit('2');\n txtB9AK6_17.setMinDigit('1');\n txtB9AK6_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan310.add(txtB9AK6_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan310, gridBagConstraints);\n\n txtB9AK7_17.setColumns(2);\n txtB9AK7_17.setMaxDigit('2');\n txtB9AK7_17.setMinDigit('1');\n txtB9AK7_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan311.add(txtB9AK7_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan311, gridBagConstraints);\n\n txtB9AK8_17.setColumns(2);\n txtB9AK8_17.setMaxDigit('2');\n txtB9AK8_17.setMinDigit('1');\n txtB9AK8_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan312.add(txtB9AK8_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan312, gridBagConstraints);\n\n txtB9AK9_17.setColumns(2);\n txtB9AK9_17.setMaxDigit('2');\n txtB9AK9_17.setMinDigit('1');\n txtB9AK9_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan313.add(txtB9AK9_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan313, gridBagConstraints);\n\n txtB9AK10_17.setColumns(2);\n txtB9AK10_17.setMaxDigit('2');\n txtB9AK10_17.setMinDigit('1');\n txtB9AK10_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan314.add(txtB9AK10_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan314, gridBagConstraints);\n\n txtB9AK11_17.setColumns(2);\n txtB9AK11_17.setMaxDigit('2');\n txtB9AK11_17.setMinDigit('1');\n txtB9AK11_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan315.add(txtB9AK11_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan315, gridBagConstraints);\n\n panelTransparan316.setAlpha(70);\n panelTransparan316.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan316, gridBagConstraints);\n\n txtB9AK13_17.setColumns(2);\n txtB9AK13_17.setMaxDigit('2');\n txtB9AK13_17.setMinDigit('1');\n txtB9AK13_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan317.add(txtB9AK13_17);\n\n txtB9AK13_17Als.setColumns(3);\n txtB9AK13_17Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan317.add(txtB9AK13_17Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan317, gridBagConstraints);\n\n panelTransparan318.setLayout(new java.awt.GridBagLayout());\n\n label115.setText(\"18\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan318.add(label115, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan318, gridBagConstraints);\n\n txtB9AK2_18.setColumns(3);\n txtB9AK2_18.setLength(2);\n txtB9AK2_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan319.add(txtB9AK2_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan319, gridBagConstraints);\n\n panelTransparan320.setAlpha(70);\n panelTransparan320.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan320, gridBagConstraints);\n\n panelTransparan321.setAlpha(70);\n panelTransparan321.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan321, gridBagConstraints);\n\n txtB9AK5_18.setColumns(2);\n txtB9AK5_18.setMaxDigit('2');\n txtB9AK5_18.setMinDigit('1');\n txtB9AK5_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan322.add(txtB9AK5_18);\n\n txtB9AK5_18Als.setColumns(3);\n txtB9AK5_18Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan322.add(txtB9AK5_18Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan322, gridBagConstraints);\n\n txtB9AK6_18.setColumns(2);\n txtB9AK6_18.setMaxDigit('2');\n txtB9AK6_18.setMinDigit('1');\n txtB9AK6_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan323.add(txtB9AK6_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan323, gridBagConstraints);\n\n txtB9AK7_18.setColumns(2);\n txtB9AK7_18.setMaxDigit('2');\n txtB9AK7_18.setMinDigit('1');\n txtB9AK7_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan324.add(txtB9AK7_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan324, gridBagConstraints);\n\n txtB9AK8_18.setColumns(2);\n txtB9AK8_18.setMaxDigit('2');\n txtB9AK8_18.setMinDigit('1');\n txtB9AK8_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan325.add(txtB9AK8_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan325, gridBagConstraints);\n\n txtB9AK9_18.setColumns(2);\n txtB9AK9_18.setMaxDigit('2');\n txtB9AK9_18.setMinDigit('1');\n txtB9AK9_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan326.add(txtB9AK9_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan326, gridBagConstraints);\n\n txtB9AK10_18.setColumns(2);\n txtB9AK10_18.setMaxDigit('2');\n txtB9AK10_18.setMinDigit('1');\n txtB9AK10_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan327.add(txtB9AK10_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan327, gridBagConstraints);\n\n txtB9AK11_18.setColumns(2);\n txtB9AK11_18.setMaxDigit('2');\n txtB9AK11_18.setMinDigit('1');\n txtB9AK11_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan328.add(txtB9AK11_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan328, gridBagConstraints);\n\n panelTransparan329.setAlpha(70);\n panelTransparan329.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan329, gridBagConstraints);\n\n txtB9AK13_18.setColumns(2);\n txtB9AK13_18.setMaxDigit('2');\n txtB9AK13_18.setMinDigit('1');\n txtB9AK13_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan330.add(txtB9AK13_18);\n\n txtB9AK13_18Als.setColumns(3);\n txtB9AK13_18Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan330.add(txtB9AK13_18Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan330, gridBagConstraints);\n\n panelTransparan331.setLayout(new java.awt.GridBagLayout());\n\n label116.setText(\"19\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan331.add(label116, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan331, gridBagConstraints);\n\n txtB9AK2_19.setColumns(3);\n txtB9AK2_19.setLength(2);\n txtB9AK2_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan332.add(txtB9AK2_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan332, gridBagConstraints);\n\n panelTransparan333.setAlpha(70);\n panelTransparan333.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan333, gridBagConstraints);\n\n panelTransparan334.setAlpha(70);\n panelTransparan334.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan334, gridBagConstraints);\n\n txtB9AK5_19.setColumns(2);\n txtB9AK5_19.setMaxDigit('2');\n txtB9AK5_19.setMinDigit('1');\n txtB9AK5_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan335.add(txtB9AK5_19);\n\n txtB9AK5_19Als.setColumns(3);\n txtB9AK5_19Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan335.add(txtB9AK5_19Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan335, gridBagConstraints);\n\n txtB9AK6_19.setColumns(2);\n txtB9AK6_19.setMaxDigit('2');\n txtB9AK6_19.setMinDigit('1');\n txtB9AK6_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan336.add(txtB9AK6_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan336, gridBagConstraints);\n\n txtB9AK7_19.setColumns(2);\n txtB9AK7_19.setMaxDigit('2');\n txtB9AK7_19.setMinDigit('1');\n txtB9AK7_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan337.add(txtB9AK7_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan337, gridBagConstraints);\n\n txtB9AK8_19.setColumns(2);\n txtB9AK8_19.setMaxDigit('2');\n txtB9AK8_19.setMinDigit('1');\n txtB9AK8_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan338.add(txtB9AK8_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan338, gridBagConstraints);\n\n txtB9AK9_19.setColumns(2);\n txtB9AK9_19.setMaxDigit('2');\n txtB9AK9_19.setMinDigit('1');\n txtB9AK9_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan339.add(txtB9AK9_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan339, gridBagConstraints);\n\n txtB9AK10_19.setColumns(2);\n txtB9AK10_19.setMaxDigit('2');\n txtB9AK10_19.setMinDigit('1');\n txtB9AK10_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan340.add(txtB9AK10_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan340, gridBagConstraints);\n\n txtB9AK11_19.setColumns(2);\n txtB9AK11_19.setMaxDigit('2');\n txtB9AK11_19.setMinDigit('1');\n txtB9AK11_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan341.add(txtB9AK11_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan341, gridBagConstraints);\n\n panelTransparan342.setAlpha(70);\n panelTransparan342.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan342, gridBagConstraints);\n\n txtB9AK13_19.setColumns(2);\n txtB9AK13_19.setMaxDigit('2');\n txtB9AK13_19.setMinDigit('1');\n txtB9AK13_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan343.add(txtB9AK13_19);\n\n txtB9AK13_19Als.setColumns(3);\n txtB9AK13_19Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan343.add(txtB9AK13_19Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan343, gridBagConstraints);\n\n panelTransparan344.setLayout(new java.awt.GridBagLayout());\n\n label117.setText(\"20\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan344.add(label117, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan344, gridBagConstraints);\n\n txtB9AK2_20.setColumns(3);\n txtB9AK2_20.setLength(2);\n txtB9AK2_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan345.add(txtB9AK2_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan345, gridBagConstraints);\n\n panelTransparan346.setAlpha(70);\n panelTransparan346.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan346, gridBagConstraints);\n\n panelTransparan347.setAlpha(70);\n panelTransparan347.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan347, gridBagConstraints);\n\n txtB9AK5_20.setColumns(2);\n txtB9AK5_20.setMaxDigit('2');\n txtB9AK5_20.setMinDigit('1');\n txtB9AK5_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan348.add(txtB9AK5_20);\n\n txtB9AK5_20Als.setColumns(3);\n txtB9AK5_20Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan348.add(txtB9AK5_20Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan348, gridBagConstraints);\n\n txtB9AK6_20.setColumns(2);\n txtB9AK6_20.setMaxDigit('2');\n txtB9AK6_20.setMinDigit('1');\n txtB9AK6_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan349.add(txtB9AK6_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan349, gridBagConstraints);\n\n txtB9AK7_20.setColumns(2);\n txtB9AK7_20.setMaxDigit('2');\n txtB9AK7_20.setMinDigit('1');\n txtB9AK7_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan350.add(txtB9AK7_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan350, gridBagConstraints);\n\n txtB9AK8_20.setColumns(2);\n txtB9AK8_20.setMaxDigit('2');\n txtB9AK8_20.setMinDigit('1');\n txtB9AK8_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan351.add(txtB9AK8_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan351, gridBagConstraints);\n\n txtB9AK9_20.setColumns(2);\n txtB9AK9_20.setMaxDigit('2');\n txtB9AK9_20.setMinDigit('1');\n txtB9AK9_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan352.add(txtB9AK9_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan352, gridBagConstraints);\n\n txtB9AK10_20.setColumns(2);\n txtB9AK10_20.setMaxDigit('2');\n txtB9AK10_20.setMinDigit('1');\n txtB9AK10_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan353.add(txtB9AK10_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan353, gridBagConstraints);\n\n txtB9AK11_20.setColumns(2);\n txtB9AK11_20.setMaxDigit('2');\n txtB9AK11_20.setMinDigit('1');\n txtB9AK11_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan354.add(txtB9AK11_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan354, gridBagConstraints);\n\n panelTransparan355.setAlpha(70);\n panelTransparan355.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan355, gridBagConstraints);\n\n txtB9AK13_20.setColumns(2);\n txtB9AK13_20.setMaxDigit('2');\n txtB9AK13_20.setMinDigit('1');\n txtB9AK13_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan356.add(txtB9AK13_20);\n\n txtB9AK13_20Als.setColumns(3);\n txtB9AK13_20Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan356.add(txtB9AK13_20Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan356, gridBagConstraints);\n\n panelTransparan357.setLayout(new java.awt.GridBagLayout());\n\n label118.setText(\"21\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan357.add(label118, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan357, gridBagConstraints);\n\n txtB9AK2_21.setColumns(3);\n txtB9AK2_21.setLength(2);\n txtB9AK2_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan358.add(txtB9AK2_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan358, gridBagConstraints);\n\n panelTransparan359.setAlpha(70);\n panelTransparan359.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan359, gridBagConstraints);\n\n panelTransparan360.setAlpha(70);\n panelTransparan360.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan360, gridBagConstraints);\n\n txtB9AK5_21.setColumns(2);\n txtB9AK5_21.setMaxDigit('2');\n txtB9AK5_21.setMinDigit('1');\n txtB9AK5_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan361.add(txtB9AK5_21);\n\n txtB9AK5_21Als.setColumns(3);\n txtB9AK5_21Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan361.add(txtB9AK5_21Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan361, gridBagConstraints);\n\n txtB9AK6_21.setColumns(2);\n txtB9AK6_21.setMaxDigit('2');\n txtB9AK6_21.setMinDigit('1');\n txtB9AK6_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan362.add(txtB9AK6_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan362, gridBagConstraints);\n\n txtB9AK7_21.setColumns(2);\n txtB9AK7_21.setMaxDigit('2');\n txtB9AK7_21.setMinDigit('1');\n txtB9AK7_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan363.add(txtB9AK7_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan363, gridBagConstraints);\n\n txtB9AK8_21.setColumns(2);\n txtB9AK8_21.setMaxDigit('2');\n txtB9AK8_21.setMinDigit('1');\n txtB9AK8_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan364.add(txtB9AK8_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan364, gridBagConstraints);\n\n txtB9AK9_21.setColumns(2);\n txtB9AK9_21.setMaxDigit('2');\n txtB9AK9_21.setMinDigit('1');\n txtB9AK9_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan365.add(txtB9AK9_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan365, gridBagConstraints);\n\n txtB9AK10_21.setColumns(2);\n txtB9AK10_21.setMaxDigit('2');\n txtB9AK10_21.setMinDigit('1');\n txtB9AK10_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan366.add(txtB9AK10_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan366, gridBagConstraints);\n\n txtB9AK11_21.setColumns(2);\n txtB9AK11_21.setMaxDigit('2');\n txtB9AK11_21.setMinDigit('1');\n txtB9AK11_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan367.add(txtB9AK11_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan367, gridBagConstraints);\n\n panelTransparan368.setAlpha(70);\n panelTransparan368.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan368, gridBagConstraints);\n\n txtB9AK13_21.setColumns(2);\n txtB9AK13_21.setMaxDigit('2');\n txtB9AK13_21.setMinDigit('1');\n txtB9AK13_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan369.add(txtB9AK13_21);\n\n txtB9AK13_21Als.setColumns(3);\n txtB9AK13_21Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan369.add(txtB9AK13_21Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan369, gridBagConstraints);\n\n panelTransparan370.setLayout(new java.awt.GridBagLayout());\n\n label119.setText(\"22\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan370.add(label119, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan370, gridBagConstraints);\n\n txtB9AK2_22.setColumns(3);\n txtB9AK2_22.setLength(2);\n txtB9AK2_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan371.add(txtB9AK2_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan371, gridBagConstraints);\n\n panelTransparan372.setAlpha(70);\n panelTransparan372.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan372, gridBagConstraints);\n\n panelTransparan373.setAlpha(70);\n panelTransparan373.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan373, gridBagConstraints);\n\n txtB9AK5_22.setColumns(2);\n txtB9AK5_22.setMaxDigit('2');\n txtB9AK5_22.setMinDigit('1');\n txtB9AK5_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan374.add(txtB9AK5_22);\n\n txtB9AK5_22Als.setColumns(3);\n txtB9AK5_22Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan374.add(txtB9AK5_22Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan374, gridBagConstraints);\n\n txtB9AK6_22.setColumns(2);\n txtB9AK6_22.setMaxDigit('2');\n txtB9AK6_22.setMinDigit('1');\n txtB9AK6_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan375.add(txtB9AK6_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan375, gridBagConstraints);\n\n txtB9AK7_22.setColumns(2);\n txtB9AK7_22.setMaxDigit('2');\n txtB9AK7_22.setMinDigit('1');\n txtB9AK7_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan376.add(txtB9AK7_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan376, gridBagConstraints);\n\n txtB9AK8_22.setColumns(2);\n txtB9AK8_22.setMaxDigit('2');\n txtB9AK8_22.setMinDigit('1');\n txtB9AK8_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan377.add(txtB9AK8_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan377, gridBagConstraints);\n\n txtB9AK9_22.setColumns(2);\n txtB9AK9_22.setMaxDigit('2');\n txtB9AK9_22.setMinDigit('1');\n txtB9AK9_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan378.add(txtB9AK9_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan378, gridBagConstraints);\n\n txtB9AK10_22.setColumns(2);\n txtB9AK10_22.setMaxDigit('2');\n txtB9AK10_22.setMinDigit('1');\n txtB9AK10_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan379.add(txtB9AK10_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan379, gridBagConstraints);\n\n txtB9AK11_22.setColumns(2);\n txtB9AK11_22.setMaxDigit('2');\n txtB9AK11_22.setMinDigit('1');\n txtB9AK11_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan380.add(txtB9AK11_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan380, gridBagConstraints);\n\n panelTransparan381.setAlpha(70);\n panelTransparan381.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan381, gridBagConstraints);\n\n txtB9AK13_22.setColumns(2);\n txtB9AK13_22.setMaxDigit('2');\n txtB9AK13_22.setMinDigit('1');\n txtB9AK13_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan382.add(txtB9AK13_22);\n\n txtB9AK13_22Als.setColumns(3);\n txtB9AK13_22Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan382.add(txtB9AK13_22Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan382, gridBagConstraints);\n\n panelTransparan383.setLayout(new java.awt.GridBagLayout());\n\n label120.setText(\"23\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan383.add(label120, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan383, gridBagConstraints);\n\n txtB9AK2_23.setColumns(3);\n txtB9AK2_23.setLength(2);\n txtB9AK2_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan384.add(txtB9AK2_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan384, gridBagConstraints);\n\n panelTransparan385.setAlpha(70);\n panelTransparan385.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan385, gridBagConstraints);\n\n panelTransparan386.setAlpha(70);\n panelTransparan386.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan386, gridBagConstraints);\n\n txtB9AK5_23.setColumns(2);\n txtB9AK5_23.setMaxDigit('2');\n txtB9AK5_23.setMinDigit('1');\n txtB9AK5_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan387.add(txtB9AK5_23);\n\n txtB9AK5_23Als.setColumns(3);\n txtB9AK5_23Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan387.add(txtB9AK5_23Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan387, gridBagConstraints);\n\n txtB9AK6_23.setColumns(2);\n txtB9AK6_23.setMaxDigit('2');\n txtB9AK6_23.setMinDigit('1');\n txtB9AK6_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan388.add(txtB9AK6_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan388, gridBagConstraints);\n\n txtB9AK7_23.setColumns(2);\n txtB9AK7_23.setMaxDigit('2');\n txtB9AK7_23.setMinDigit('1');\n txtB9AK7_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan389.add(txtB9AK7_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan389, gridBagConstraints);\n\n txtB9AK8_23.setColumns(2);\n txtB9AK8_23.setMaxDigit('2');\n txtB9AK8_23.setMinDigit('1');\n txtB9AK8_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan390.add(txtB9AK8_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan390, gridBagConstraints);\n\n txtB9AK9_23.setColumns(2);\n txtB9AK9_23.setMaxDigit('2');\n txtB9AK9_23.setMinDigit('1');\n txtB9AK9_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan391.add(txtB9AK9_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan391, gridBagConstraints);\n\n txtB9AK10_23.setColumns(2);\n txtB9AK10_23.setMaxDigit('2');\n txtB9AK10_23.setMinDigit('1');\n txtB9AK10_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan392.add(txtB9AK10_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan392, gridBagConstraints);\n\n txtB9AK11_23.setColumns(2);\n txtB9AK11_23.setMaxDigit('2');\n txtB9AK11_23.setMinDigit('1');\n txtB9AK11_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan393.add(txtB9AK11_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan393, gridBagConstraints);\n\n panelTransparan394.setAlpha(70);\n panelTransparan394.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan394, gridBagConstraints);\n\n txtB9AK13_23.setColumns(2);\n txtB9AK13_23.setMaxDigit('2');\n txtB9AK13_23.setMinDigit('1');\n txtB9AK13_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan395.add(txtB9AK13_23);\n\n txtB9AK13_23Als.setColumns(3);\n txtB9AK13_23Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan395.add(txtB9AK13_23Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan395, gridBagConstraints);\n\n panelTransparan396.setLayout(new java.awt.GridBagLayout());\n\n label121.setText(\"24\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan396.add(label121, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan396, gridBagConstraints);\n\n txtB9AK2_24.setColumns(3);\n txtB9AK2_24.setLength(2);\n txtB9AK2_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan397.add(txtB9AK2_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan397, gridBagConstraints);\n\n panelTransparan398.setAlpha(70);\n panelTransparan398.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan398, gridBagConstraints);\n\n panelTransparan399.setAlpha(70);\n panelTransparan399.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan399, gridBagConstraints);\n\n txtB9AK5_24.setColumns(2);\n txtB9AK5_24.setMaxDigit('2');\n txtB9AK5_24.setMinDigit('1');\n txtB9AK5_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan400.add(txtB9AK5_24);\n\n txtB9AK5_24Als.setColumns(3);\n txtB9AK5_24Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan400.add(txtB9AK5_24Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan400, gridBagConstraints);\n\n txtB9AK6_24.setColumns(2);\n txtB9AK6_24.setMaxDigit('2');\n txtB9AK6_24.setMinDigit('1');\n txtB9AK6_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan401.add(txtB9AK6_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan401, gridBagConstraints);\n\n txtB9AK7_24.setColumns(2);\n txtB9AK7_24.setMaxDigit('2');\n txtB9AK7_24.setMinDigit('1');\n txtB9AK7_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan402.add(txtB9AK7_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan402, gridBagConstraints);\n\n txtB9AK8_24.setColumns(2);\n txtB9AK8_24.setMaxDigit('2');\n txtB9AK8_24.setMinDigit('1');\n txtB9AK8_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan403.add(txtB9AK8_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan403, gridBagConstraints);\n\n txtB9AK9_24.setColumns(2);\n txtB9AK9_24.setMaxDigit('2');\n txtB9AK9_24.setMinDigit('1');\n txtB9AK9_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan404.add(txtB9AK9_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan404, gridBagConstraints);\n\n txtB9AK10_24.setColumns(2);\n txtB9AK10_24.setMaxDigit('2');\n txtB9AK10_24.setMinDigit('1');\n txtB9AK10_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan405.add(txtB9AK10_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan405, gridBagConstraints);\n\n txtB9AK11_24.setColumns(2);\n txtB9AK11_24.setMaxDigit('2');\n txtB9AK11_24.setMinDigit('1');\n txtB9AK11_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan406.add(txtB9AK11_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan406, gridBagConstraints);\n\n panelTransparan407.setAlpha(70);\n panelTransparan407.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan407, gridBagConstraints);\n\n txtB9AK13_24.setColumns(2);\n txtB9AK13_24.setMaxDigit('2');\n txtB9AK13_24.setMinDigit('1');\n txtB9AK13_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan408.add(txtB9AK13_24);\n\n txtB9AK13_24Als.setColumns(3);\n txtB9AK13_24Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan408.add(txtB9AK13_24Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan408, gridBagConstraints);\n\n panelTransparan409.setLayout(new java.awt.GridBagLayout());\n\n label122.setText(\"25\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan409.add(label122, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan409, gridBagConstraints);\n\n txtB9AK2_25.setColumns(3);\n txtB9AK2_25.setLength(2);\n txtB9AK2_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan410.add(txtB9AK2_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan410, gridBagConstraints);\n\n panelTransparan411.setAlpha(70);\n panelTransparan411.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan411, gridBagConstraints);\n\n panelTransparan412.setAlpha(70);\n panelTransparan412.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan412, gridBagConstraints);\n\n txtB9AK5_25.setColumns(2);\n txtB9AK5_25.setMaxDigit('2');\n txtB9AK5_25.setMinDigit('1');\n txtB9AK5_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan413.add(txtB9AK5_25);\n\n txtB9AK5_25Als.setColumns(3);\n txtB9AK5_25Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan413.add(txtB9AK5_25Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan413, gridBagConstraints);\n\n txtB9AK6_25.setColumns(2);\n txtB9AK6_25.setMaxDigit('2');\n txtB9AK6_25.setMinDigit('1');\n txtB9AK6_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan414.add(txtB9AK6_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan414, gridBagConstraints);\n\n txtB9AK7_25.setColumns(2);\n txtB9AK7_25.setMaxDigit('2');\n txtB9AK7_25.setMinDigit('1');\n txtB9AK7_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan415.add(txtB9AK7_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan415, gridBagConstraints);\n\n txtB9AK8_25.setColumns(2);\n txtB9AK8_25.setMaxDigit('2');\n txtB9AK8_25.setMinDigit('1');\n txtB9AK8_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan416.add(txtB9AK8_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan416, gridBagConstraints);\n\n txtB9AK9_25.setColumns(2);\n txtB9AK9_25.setMaxDigit('2');\n txtB9AK9_25.setMinDigit('1');\n txtB9AK9_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan417.add(txtB9AK9_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan417, gridBagConstraints);\n\n txtB9AK10_25.setColumns(2);\n txtB9AK10_25.setMaxDigit('2');\n txtB9AK10_25.setMinDigit('1');\n txtB9AK10_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan418.add(txtB9AK10_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan418, gridBagConstraints);\n\n txtB9AK11_25.setColumns(2);\n txtB9AK11_25.setMaxDigit('2');\n txtB9AK11_25.setMinDigit('1');\n txtB9AK11_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan419.add(txtB9AK11_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan419, gridBagConstraints);\n\n panelTransparan420.setAlpha(70);\n panelTransparan420.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan420, gridBagConstraints);\n\n txtB9AK13_25.setColumns(2);\n txtB9AK13_25.setMaxDigit('2');\n txtB9AK13_25.setMinDigit('1');\n txtB9AK13_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan421.add(txtB9AK13_25);\n\n txtB9AK13_25Als.setColumns(3);\n txtB9AK13_25Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan421.add(txtB9AK13_25Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan421, gridBagConstraints);\n\n panelTransparan422.setAlpha(70);\n panelTransparan422.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan422, gridBagConstraints);\n\n panelTransparan423.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan423, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan424, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan425, gridBagConstraints);\n\n panelTransparan426.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan426, gridBagConstraints);\n\n panelTransparan427.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan427, gridBagConstraints);\n\n panelTransparan428.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan428, gridBagConstraints);\n\n panelTransparan429.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan429, gridBagConstraints);\n\n panelTransparan430.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan430, gridBagConstraints);\n\n panelTransparan431.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan431, gridBagConstraints);\n\n panelTransparan432.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan432, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan433, gridBagConstraints);\n\n panelTransparan434.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan434, gridBagConstraints);\n\n javax.swing.GroupLayout panelScrollLayout = new javax.swing.GroupLayout(panelScroll);\n panelScroll.setLayout(panelScrollLayout);\n panelScrollLayout.setHorizontalGroup(\n panelScrollLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelScrollLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelTabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(275, Short.MAX_VALUE))\n );\n panelScrollLayout.setVerticalGroup(\n panelScrollLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelScrollLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelTabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(31, Short.MAX_VALUE))\n );\n\n scroolPane1.setViewportView(panelScroll);\n\n add(scroolPane1, java.awt.BorderLayout.CENTER);\n }", "private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelComp(shell, this, upperWheelTitle);\n // upperColorWheel.setColor(colorArray.get(0));\n upperColorWheel.setColor(initial);\n\n // Create the color bar object that is displayed\n // in the middle of the dialog.\n colorBar = new ColorBarViewer(shell, this, sliderText, cmapParams);\n\n // Create the lower color wheel for the display.\n lowerColorWheel = new ColorWheelComp(shell, this, lowerWheelTitle);\n // lowerColorWheel.setColor(colorArray.get(colorArray.size() - 1));\n lowerColorWheel.setColor(initial);\n\n // Create the bottom control buttons.\n createBottomButtons();\n }", "private void initializeLayout(){\n String title = mStrInfo;\n String subtitle = mClientItem.clientName;\n mHomeToolbar.setGymRatToolbarTitle(title, subtitle);\n\n //initialize maids\n initializeMaid();\n\n //initialize bottom navigation\n initializeBottomNavigation();\n }", "protected abstract void initializeComponent(View view);", "private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }", "void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}", "private void createdComponent() {\r\n\r\n\t\tloadImage();\r\n\t\tresizeImage();\r\n\t\ttry {\r\n\t\t\tif (customFont == null) {\r\n\t\t\t\tcustomFont = FontLoader.getInstance().getXenipa();\r\n\t\t\t\tif (customFont == null) {\r\n\t\t\t\t\tcustomFont = new FontLoader().importFont();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FontFormatException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t\tthis.createpanel1();\r\n\t\tthis.createpanel2();\r\n\t\tthis.createpanel3();\r\n\t\tthis.createpanel4();\r\n\t\tthis.revalidate();\r\n\t}", "private void initComponents() {\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n jPanel1 = new javax.swing.JPanel();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xNumberField1 = new com.rameses.rcp.control.XNumberField();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel2 = new javax.swing.JPanel();\n xDataTable5 = new com.rameses.rcp.control.XDataTable();\n xDataTable4 = new com.rameses.rcp.control.XDataTable();\n xLabel1 = new com.rameses.rcp.control.XLabel();\n jPanel3 = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n xDataTable6 = new com.rameses.rcp.control.XDataTable();\n jTabbedPane2 = new javax.swing.JTabbedPane();\n jPanel5 = new javax.swing.JPanel();\n xDataTable7 = new com.rameses.rcp.control.XDataTable();\n xDataTable8 = new com.rameses.rcp.control.XDataTable();\n jPanel6 = new javax.swing.JPanel();\n xDataTable9 = new com.rameses.rcp.control.XDataTable();\n xLabel2 = new com.rameses.rcp.control.XLabel();\n jPanel7 = new javax.swing.JPanel();\n xButton2 = new com.rameses.rcp.control.XButton();\n xButton3 = new com.rameses.rcp.control.XButton();\n xButton4 = new com.rameses.rcp.control.XButton();\n xDataTable10 = new com.rameses.rcp.control.XDataTable();\n\n setLayout(new java.awt.BorderLayout());\n\n xActionBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 0));\n xActionBar1.setDepends(new String[] {\"selectedItem\"});\n xActionBar1.setName(\"formActions\");\n add(xActionBar1, java.awt.BorderLayout.NORTH);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Land RY Setting\");\n jPanel1.setBorder(xTitledBorder1);\n\n formPanel1.setCaptionWidth(100);\n xNumberField1.setEditable(false);\n xNumberField1.setCaption(\"Revision Year\");\n xNumberField1.setCaptionWidth(100);\n xNumberField1.setEnabled(false);\n xNumberField1.setFieldType(Integer.class);\n xNumberField1.setName(\"entity.ry\");\n xNumberField1.setPreferredSize(new java.awt.Dimension(80, 19));\n xNumberField1.setRequired(true);\n formPanel1.add(xNumberField1);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder2 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder2.setTitle(\"If not Special, the applicable Assessment Levels\");\n xDataTable5.setBorder(xTitledBorder2);\n xDataTable5.setDepends(new String[] {\"selectedAssessLevel\"});\n xDataTable5.setDynamic(true);\n xDataTable5.setHandler(\"rangeLevelListHandler\");\n xDataTable5.setImmediate(true);\n xDataTable5.setName(\"selectedRangeLevel\");\n\n xDataTable4.setHandler(\"assessLevelListHandler\");\n xDataTable4.setImmediate(true);\n xDataTable4.setName(\"selectedAssessLevel\");\n\n xLabel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n xLabel1.setForeground(new java.awt.Color(153, 0, 0));\n xLabel1.setFont(new java.awt.Font(\"Arial\", 1, 12));\n xLabel1.setName(\"assessLevelMsg\");\n xLabel1.setPreferredSize(new java.awt.Dimension(104, 22));\n\n org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(xDataTable4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 399, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xDataTable5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 363, Short.MAX_VALUE))\n .add(xLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(xDataTable5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)\n .add(xDataTable4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jTabbedPane1.addTab(\"Assessment Levels\", jPanel2);\n\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n xDataTable6.setHandler(\"lcuvListHandler\");\n xDataTable6.setImmediate(true);\n xDataTable6.setName(\"selectedLCUV\");\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder3 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder3.setTitle(\"Specific Class\");\n xDataTable7.setBorder(xTitledBorder3);\n xDataTable7.setHandler(\"specificClassListHandler\");\n xDataTable7.setImmediate(true);\n xDataTable7.setName(\"selectedSpecificClass\");\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder4 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder4.setTitle(\"Sub Class\");\n xDataTable8.setBorder(xTitledBorder4);\n xDataTable8.setHandler(\"subClassListHandler\");\n xDataTable8.setImmediate(true);\n xDataTable8.setName(\"selectedSubClass\");\n\n org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .add(xDataTable7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xDataTable8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, xDataTable7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 373, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, xDataTable8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 373, Short.MAX_VALUE))\n .addContainerGap())\n );\n jTabbedPane2.addTab(\"Specific and Sub Classes\", jPanel5);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder5 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder5.setTitle(\"Stripping\");\n xDataTable9.setBorder(xTitledBorder5);\n xDataTable9.setHandler(\"strippingListHandler\");\n xDataTable9.setImmediate(true);\n xDataTable9.setName(\"selectedStripping\");\n\n org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .add(xDataTable9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 297, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(287, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .add(xDataTable9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 373, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jTabbedPane2.addTab(\"Stripping\", jPanel6);\n\n xLabel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n xLabel2.setForeground(new java.awt.Color(153, 0, 0));\n xLabel2.setFont(new java.awt.Font(\"Arial\", 1, 12));\n xLabel2.setName(\"lcuvMsg\");\n xLabel2.setPreferredSize(new java.awt.Dimension(104, 22));\n\n org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE)\n .add(jPanel4Layout.createSequentialGroup()\n .add(xDataTable6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 163, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jTabbedPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 599, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xDataTable6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE)\n .add(jTabbedPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n );\n jPanel3.add(jPanel4, java.awt.BorderLayout.CENTER);\n\n jTabbedPane1.addTab(\"LCUV\", jPanel3);\n\n xButton2.setMnemonic('n');\n xButton2.setText(\"New\");\n xButton2.setName(\"createLandAdjustment\");\n\n xButton3.setMnemonic('o');\n xButton3.setText(\"Open\");\n xButton3.setName(\"openLandAdjustment\");\n\n xButton4.setMnemonic('r');\n xButton4.setText(\"Remove\");\n xButton4.setName(\"removeLandAdjustment\");\n\n xDataTable10.setHandler(\"landAdjustmentListHandler\");\n xDataTable10.setName(\"selectedLandAdjustment\");\n\n org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xDataTable10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE)\n .add(jPanel7Layout.createSequentialGroup()\n .add(xButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(xButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(xButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(xButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xDataTable10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 411, Short.MAX_VALUE)\n .addContainerGap())\n );\n jTabbedPane1.addTab(\"Land Adjustment\", jPanel7);\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(29, 29, 29)\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 240, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 793, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 490, Short.MAX_VALUE)\n .addContainerGap())\n );\n add(jPanel1, java.awt.BorderLayout.CENTER);\n\n }", "public void init() {\n\t\tJFrame frame = new JFrame(\"员工管理系统\");\r\n\t\tframe.setSize(300, 200);\r\n\t\tframe.setLocationRelativeTo(null);// 居中\r\n\t\tframe.setResizable(false);// 不可放大\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// 关闭立即退出\r\n\t\tJPanel jPanel = (JPanel) frame.getContentPane();// 获得主面板\r\n\t\t\r\n\t\tjPanel.setLayout(new FlowLayout());\r\n\t\t\r\n\t\tempBt = new JButton(\"员工管理\");\r\n\t\t\r\n\t\tempBt.setPreferredSize(new Dimension(120, 70));\r\n\t\tempBt.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tnew EmployeeView().init();\r\n\t\t\t}\r\n\t\t});\r\n\t\tdeptBt = new JButton(\"部门管理\");\r\n\t\tdeptBt.setPreferredSize(new Dimension(120, 70));\r\n\t\tdeptBt.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tnew DeptView().init();\r\n\t\t\t}\r\n\t\t});\r\n\t\tprojectBt = new JButton(\"项目管理\");\r\n\t\tprojectBt.setPreferredSize(new Dimension(120, 70));\r\n\t\tprojectBt.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tnew ProjectView().init();\r\n\t\t\t}\r\n\t\t});\r\n\t\tscBt = new JButton(\"绩效管理\");\r\n\t\tscBt.setPreferredSize(new Dimension(120, 70));\r\n\t\tscBt.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tnew ScoreView().init();\r\n\t\t\t}\r\n\t\t});\r\n\t\tjPanel.add(empBt);\r\n\t\tjPanel.add(deptBt);\r\n\t\tjPanel.add(projectBt);\r\n\t\tjPanel.add(scBt);\r\n\t\tframe.setVisible(true);\r\n\t}", "private void init(){\n panel_principal = new JPanel();\r\n panel_principal.setLayout(new BorderLayout());\r\n //EN EL NORTE IRA LA CAJA DE TEXTO\r\n caja = new JTextField();\r\n panel_principal.add(\"North\",caja);\r\n //EN EL CENTRO IRA EL PANEL DE BOTONES\r\n panel_botones = new JPanel();\r\n //El GRIDLAYOUT RECIBE COMO PARAMETROS:\r\n //FILAS,COLUMNAS ESPACIADO ENTRE FILAS,\r\n //ESPACIADO ENTRE COLUMNAS\r\n panel_botones.setLayout(new GridLayout(5,4,8,8));\r\n agregarBotones();\r\n panel_principal.add(\"Center\",panel_botones);\r\n //AGREGAMOS TODO EL CONTENIDO QUE ACABAMOS DE HACER EN\r\n //PANEL_PRINCIPAL A EL PANEL DEL FORMULARIO\r\n getContentPane().add(panel_principal);\r\n\r\n }", "private void afterInitComponents() {\n \t\t\n \t}", "public void init() {\n setLayout(new BorderLayout());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "private void initilize()\n\t{\n\t\tdimXNet = project.getNoC().getNumRotX();\n\t\tdimYNet = project.getNoC().getNumRotY();\n\t\t\n\t\taddProperties();\n\t\taddComponents();\n\t\tsetVisible(true);\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initComponents() {\n\n dataScrollPane = new javax.swing.JScrollPane();\n dataTable = new com.cosmos.acacia.gui.AcaciaTable();\n buttonsPanel = new com.cosmos.swingb.JBPanel();\n closeButton = new com.cosmos.swingb.JBButton();\n refreshButton = new com.cosmos.swingb.JBButton();\n deleteButton = new com.cosmos.swingb.JBButton();\n modifyButton = new com.cosmos.swingb.JBButton();\n newButton = new com.cosmos.swingb.JBButton();\n selectButton = new com.cosmos.swingb.JBButton();\n unselectButton = new com.cosmos.swingb.JBButton();\n classifyButton = new com.cosmos.swingb.JBButton();\n specialFunctionalityButton = new com.cosmos.swingb.JBButton();\n filterButton = new com.cosmos.swingb.JBButton();\n\n setName(\"Form\"); // NOI18N\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n onKeyPressed(evt);\n }\n });\n setLayout(new java.awt.BorderLayout());\n\n dataScrollPane.setName(\"dataScrollPane\"); // NOI18N\n\n dataTable.setName(\"dataTable\"); // NOI18N\n dataTable.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n onKeyPressed(evt);\n }\n });\n dataScrollPane.setViewportView(dataTable);\n\n add(dataScrollPane, java.awt.BorderLayout.CENTER);\n\n buttonsPanel.setName(\"buttonsPanel\"); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getActionMap(AbstractTablePanel.class, this);\n closeButton.setAction(actionMap.get(\"closeAction\")); // NOI18N\n closeButton.setName(\"closeButton\"); // NOI18N\n\n refreshButton.setAction(actionMap.get(\"refreshAction\")); // NOI18N\n refreshButton.setName(\"refreshButton\"); // NOI18N\n\n deleteButton.setAction(actionMap.get(\"deleteAction\")); // NOI18N\n deleteButton.setName(\"deleteButton\"); // NOI18N\n\n modifyButton.setAction(actionMap.get(\"modifyAction\")); // NOI18N\n modifyButton.setName(\"modifyButton\"); // NOI18N\n\n newButton.setAction(actionMap.get(\"newAction\")); // NOI18N\n newButton.setName(\"newButton\"); // NOI18N\n\n selectButton.setAction(actionMap.get(\"selectAction\")); // NOI18N\n selectButton.setName(\"selectButton\"); // NOI18N\n\n unselectButton.setAction(actionMap.get(\"unselectAction\")); // NOI18N\n unselectButton.setName(\"unselectButton\"); // NOI18N\n\n classifyButton.setAction(actionMap.get(\"classifyAction\")); // NOI18N\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getResourceMap(AbstractTablePanel.class);\n classifyButton.setText(resourceMap.getString(\"classifyButton.text\")); // NOI18N\n classifyButton.setName(\"classifyButton\"); // NOI18N\n\n specialFunctionalityButton.setAction(actionMap.get(\"specialAction\")); // NOI18N\n specialFunctionalityButton.setName(\"specialFunctionalityButton\"); // NOI18N\n\n filterButton.setAction(actionMap.get(\"filter\")); // NOI18N\n filterButton.setName(\"filterButton\"); // NOI18N\n\n javax.swing.GroupLayout buttonsPanelLayout = new javax.swing.GroupLayout(buttonsPanel);\n buttonsPanel.setLayout(buttonsPanelLayout);\n buttonsPanelLayout.setHorizontalGroup(\n buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonsPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(unselectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)\n .addComponent(specialFunctionalityButton, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(classifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(modifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n buttonsPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {closeButton, deleteButton, modifyButton, newButton, refreshButton, selectButton});\n\n buttonsPanelLayout.setVerticalGroup(\n buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonsPanelLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(modifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(unselectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(classifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(specialFunctionalityButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n buttonsPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {closeButton, deleteButton, modifyButton, newButton, refreshButton, selectButton, unselectButton});\n\n add(buttonsPanel, java.awt.BorderLayout.PAGE_END);\n }", "private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }", "private void initComponent(){\n chart = view.findViewById(R.id.chart1);\n imMood = view.findViewById(R.id.mood_view);\n btnSetMood = view.findViewById(R.id.btnSetMood);\n tvToday = view.findViewById(R.id.step_today);\n tvStepTakenToday = view.findViewById(R.id.step_takens_today);\n tvStepRunningToday = view.findViewById(R.id.step_running_today);\n btnSetMood2 = view.findViewById(R.id.btnSetMood2);\n tvToday.setText(DateUtilities.getCurrentDateInString());\n tvStepRunningToday.setText(\"0 km\");\n }", "private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}", "public void InicializarComponentes() {\n campoCadastroNome = findViewById(R.id.campoCadastroNome);\n campoCadastroEmail = findViewById(R.id.campoCadastroEmail);\n campoCadastroSenha = findViewById(R.id.campoCadastroSenha);\n switchEscolhaTipo = findViewById(R.id.switchCadastro);\n botaoFinalizarCadastro = findViewById(R.id.botaoFinalizarCriacao);\n\n\n }", "private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }", "private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moIntYear.setIntegerSettings(SGuiUtils.getLabelName(jlYear.getText()), SGuiConsts.GUI_TYPE_INT_CAL_YEAR, true);\n moDateDate.setDateSettings(miClient, SGuiUtils.getLabelName(jlDate.getText()), true);\n moTextCode.setTextSettings(SGuiUtils.getLabelName(jlCode.getText()), 10);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 50);\n\n moFields.addField(moIntYear);\n moFields.addField(moDateDate);\n moFields.addField(moTextCode);\n moFields.addField(moTextName);\n\n moFields.setFormButton(jbSave);\n }", "private void initialize() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setBounds(new Rectangle(0, 0, 393, 177));\r\n\t\tthis.add(getBasePanel(), BorderLayout.CENTER);\r\n\r\n\t}", "private void initComponent()\n {\n //component initialize\n eName = findViewById(R.id.txtName);\n eUserName = findViewById(R.id.txtUserName);\n eEmail = findViewById(R.id.txtEmail);\n eAddress = findViewById(R.id.txtAddress);\n ePassword = findViewById(R.id.txtPassword);\n txtSign = findViewById(R.id.txtSignIn);\n txtProceed = findViewById(R.id.txtProceed);\n eFavourite = findViewById(R.id.txtFavourite);\n progressBar = findViewById(R.id.progress);\n toolbar = findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n\n txtPassErr = findViewById(R.id.passErr);\n\n //object initialize\n informationCheck = new DatabaseBackgroundTask(this);\n internetIsOn = new CheckInternetIsOn(this);\n dialogClass = new AlertDialogClass(this);\n someMethod = new NeedSomeMethod(this);\n sharedPreferenceData = new SharedPreferenceData(RegisterUser.this);\n encryptionAlgo = new DesEncryptionAlgo(this);\n //calling method\n onButtonClick();\n }", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(300, 200);\n this.setPreferredSize(new java.awt.Dimension(450, 116));\n this.add(getListPanel(), java.awt.BorderLayout.CENTER);\n this.add(getButtonPanel(), java.awt.BorderLayout.SOUTH);\n }", "private void initialize() {\n\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.setRows(1);\n\t\t\n\t\tGridBagLayout gridbag = new GridBagLayout();\n\t\tbase=new JPanel(gridbag);\n\t\tbase.setBackground(new Color(250,251,245));\n\t\t// default size\n\t\tbase.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\t//base.setPreferredSize(new Dimension(200,320));\n\t\t\n\t\t/*\n\t\t// separator\n\t\tGridBagConstraints constraints1 = new GridBagConstraints();\n\t\tconstraints1.gridx = 0;\n\t\tconstraints1.gridy = 0;\n\t\tconstraints1.gridwidth= 1;\n\t\tconstraints1.gridheight = 1;\n\t\tconstraints1.insets = new Insets(0, 0, 0, 0);\n\n\t\tJSeparator vspr=new JSeparator(JSeparator.HORIZONTAL);\n\t\tvspr.setPreferredSize(new Dimension(200, 20));\n\t\tgridbag.setConstraints(vspr, constraints1);\n\t\tbase.add(vspr);\n\t\t*/\n\t\t\n\t\t// panel1\n\t\tString st = Path.getPath()+\"/images//program_h6_bg_illuminance.gif\";\n\t\tif(IsMacorWin.isMacOrWin()==false) st = Path.getPath()+\"images\\\\/program_h6_bg_illuminance.gif\";\n\n\t\tgJPanel = new GJPanel(st);\n\t\tgJPanel.setText(\"LEDライト\");\n\n\t\tGridBagConstraints constraints1 = new GridBagConstraints();\n\t\tconstraints1.gridx = 0;\n\t\tconstraints1.gridy = 1;\n\t\tconstraints1.gridwidth= 1;\n\t\tconstraints1.gridheight = 1;\n\t\tconstraints1.insets = new Insets(0, 0, 0, 0);\n\t\tgridbag.setConstraints(gJPanel, constraints1);\n\t\tbase.add(gJPanel);\n\t\t\n\t\t\n\t\t// panel\n\t\tJPanel jp1=new JPanel();\n\t\tjp1.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\tjp1.setLayout(gridLayout);\n//\t\tjp1.setPreferredSize(new Dimension(gJPanel.getWidth(),gJPanel.getHeight()));\n\t\tjp1.setPreferredSize(new Dimension(160,50));\n\t\tjp1.setBackground(Color.gray);\n\t\n//\n\t\tifD1=new InfoDispEdit();\n\t\tifD1.setText(\"警告下限照度\");\n\t\t// lux\n\t\tString[] illumdata=new String[50];\n\t\tfor(int i=0;i<50;i++){\n\t\t\tillumdata[i]= String.valueOf(i*100);\n\t\t}\n\t\tifD1.setSelectionItems(illumdata);\n\t\tifD1.setSelectedIndex(22);// 2500 lux\n\t\tifD1.setUnit(\"lux\");\n\t\t//\n\t\tGridBagConstraints constraints2 = new GridBagConstraints();\n\t\tconstraints2.gridy = 0;\t\n\t\tconstraints2.gridy = 2;\t\n\t\tconstraints2.gridwidth= 1;\n\t\tconstraints2.gridheight = 1;\n\t\tconstraints2.insets = new Insets(0, 0, 0, 0);\n\t\tgridbag.setConstraints(ifD1, constraints2);\n\t\t\n\t\tif(Version.getRevision().equals(\"Education\")!=true)\n\t\t\tbase.add(ifD1);\n\n\t\tsetParentClass(this);\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.add( base, BorderLayout.CENTER );\n\n\t\t// 観察される人を生成\n\t\tobservableMan = new ObservableMan();\n\n\t\t// デフォルトの観察者を追加\n\t\tdefaultO=new PlantPrgEdit.ObserverA();\n\t\tobservableMan.addObserver(defaultO);\n\t}", "private void initComponents() {\n\n scenePanel = new javax.swing.JPanel();\n\n setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.PAGE_AXIS));\n\n scenePanel.setLayout(new javax.swing.BoxLayout(scenePanel, javax.swing.BoxLayout.LINE_AXIS));\n add(scenePanel);\n }", "private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\n\t}", "private void initComponents() {\r\n\r\n jPanel1 = new javax.swing.JPanel();\r\n jPanel2 = new javax.swing.JPanel();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel9 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n jPanel3 = new javax.swing.JPanel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jPanel4 = new javax.swing.JPanel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jTextField3 = new javax.swing.JTextField();\r\n jLabel5 = new javax.swing.JLabel();\r\n jTextField4 = new javax.swing.JTextField();\r\n jButton1 = new javax.swing.JButton();\r\n jPanel5 = new javax.swing.JPanel();\r\n jPanel6 = new javax.swing.JPanel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jCheckBox1 = new javax.swing.JCheckBox();\r\n jCheckBox2 = new javax.swing.JCheckBox();\r\n jCheckBox3 = new javax.swing.JCheckBox();\r\n jPanel7 = new javax.swing.JPanel();\r\n jComboBox1 = new javax.swing.JComboBox();\r\n jTextField5 = new javax.swing.JTextField();\r\n jButton4 = new javax.swing.JButton();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel8 = new javax.swing.JLabel();\r\n jButton2 = new javax.swing.JButton();\r\n jButton3 = new javax.swing.JButton();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\r\n jPanel1.setBackground(new java.awt.Color(204, 204, 255));\r\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"模板信息\"));\r\n\r\n jLabel1.setText(\"模板名称\");\r\n\r\n jLabel2.setText(\"模板类型\");\r\n\r\n \r\n jLabel9.setText(mName);\r\n String ttype = IreportUtil.getTemplateType(mName);\r\n jLabel10.setText(ttype==null?\"未知\":ttype);\r\n\r\n org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel2Layout.createSequentialGroup()\r\n .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 56, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 340, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jPanel2Layout.createSequentialGroup()\r\n .add(jLabel2)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\r\n .add(jLabel10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 299, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .addContainerGap(91, Short.MAX_VALUE))\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(18, 18, 18)\r\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel2)\r\n .add(jLabel10))\r\n .addContainerGap(119, Short.MAX_VALUE))\r\n );\r\n File imgFile = new File(MainFrame.IREPORT_TMP_TEMPLATE_DIR+File.separator+mName+\".png\");\r\n javax.swing.ImageIcon showImg = null;\r\n if(imgFile.exists()){\r\n \tshowImg = new ImageIcon(imgFile.getPath());\r\n }else{\r\n \tshowImg = new ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/plugin/templatemanager/no_preview.png\"));\r\n }\r\n \r\n double dsix =new Double(showImg.getIconHeight()) / new Double(showImg.getIconWidth()) ; //高度与宽度的比率\r\n \r\n //保持宽与高的比率不变而缩放\r\n showImg.setImage(showImg.getImage().getScaledInstance(100,(int)Math.round(100*dsix),Image.SCALE_DEFAULT));\r\n jLabel3.setBorder(new ReportBorder());\r\n jLabel3.setIcon(showImg); // NOI18N\r\n\r\n org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);\r\n jPanel3.setLayout(jPanel3Layout);\r\n jPanel3Layout.setHorizontalGroup(\r\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3Layout.createSequentialGroup()\r\n .addContainerGap(11, Short.MAX_VALUE)\r\n .add(jLabel3)\r\n .addContainerGap())\r\n );\r\n jPanel3Layout.setVerticalGroup(\r\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jLabel3)\r\n .addContainerGap(25, Short.MAX_VALUE))\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n\r\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(\"重定义属性\"));\r\n\r\n jLabel4.setText(\"模板名称\");\r\n\r\n jLabel5.setText(\"预览图片\");\r\n\r\n jButton1.setText(\"浏览...\");\r\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton1MouseClicked(evt);\r\n }\r\n });\r\n\r\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(\"模板文件选择\"));\r\n\r\n jPanel6.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jLabel6.setText(\"选择文件来源\");\r\n\r\n jCheckBox1.setText(\"从已经打开的模板选择\");\r\n\r\n jCheckBox2.setText(\"从本地文件系统中选择\");\r\n\r\n jCheckBox3.setSelected(true);\r\n jCheckBox3.setText(\"不更改文件\");\r\n\r\n org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6);\r\n jPanel6.setLayout(jPanel6Layout);\r\n jPanel6Layout.setHorizontalGroup(\r\n jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel6Layout.createSequentialGroup()\r\n .add(jLabel6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 81, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\r\n .add(jCheckBox3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 154, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\r\n .add(jCheckBox1)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 73, Short.MAX_VALUE)\r\n .add(jCheckBox2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 160, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n jPanel6Layout.setVerticalGroup(\r\n jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel6Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 15, Short.MAX_VALUE)\r\n .add(jCheckBox2)\r\n .add(jCheckBox3)\r\n .add(jCheckBox1))\r\n .addContainerGap())\r\n );\r\n\r\n jPanel7.setBackground(new java.awt.Color(204, 204, 204));\r\n\r\n jComboBox1.setBackground(new java.awt.Color(204, 204, 204));\r\n //jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n\r\n List<ComboxObject> list = IreportUtil.getAllOpenedTemplate();\r\n if(list!=null && list.size()>0){\r\n \tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\t\tjComboBox1.addItem(list.get(i));\r\n\t\t\t}\r\n }\r\n \r\n jTextField5.setBackground(new java.awt.Color(204, 204, 204));\r\n jTextField5.setEditable(false);\r\n\r\n jButton4.setText(\"浏览...\");\r\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton4MouseClicked(evt);\r\n }\r\n });\r\n\r\n org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);\r\n jPanel7.setLayout(jPanel7Layout);\r\n jPanel7Layout.setHorizontalGroup(\r\n jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel7Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jComboBox1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 254, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jTextField5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel7Layout.setVerticalGroup(\r\n jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel7Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jComboBox1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jTextField5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jButton4))\r\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5);\r\n jPanel5.setLayout(jPanel5Layout);\r\n jPanel5Layout.setHorizontalGroup(\r\n jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n jPanel5Layout.setVerticalGroup(\r\n jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel5Layout.createSequentialGroup()\r\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(jPanel6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jPanel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n );\r\n \r\n jLabel7.setText(\" 若不选择文件将保持默认\");\r\n\r\n jLabel8.setText(\" 不填写将保持当前名称\");\r\n\r\n org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);\r\n jPanel4.setLayout(jPanel4Layout);\r\n jPanel4Layout.setHorizontalGroup(\r\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel4Layout.createSequentialGroup()\r\n .add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 87, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 276, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\r\n .add(jLabel8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)\r\n .addContainerGap())\r\n .add(jPanel4Layout.createSequentialGroup()\r\n .add(jLabel5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 60, Short.MAX_VALUE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jTextField4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 227, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jButton1)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 261, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n jPanel4Layout.setVerticalGroup(\r\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel8))\r\n .add(18, 18, 18)\r\n .add(jPanel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jTextField4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jButton1)\r\n .add(jLabel7))\r\n .addContainerGap())\r\n );\r\n\r\n jButton2.setIcon(new javax.swing.ImageIcon(this.getClass().getResource(\"/it/businesslogic/ireport/plugin/templatemanager/cancle.png\"))); // NOI18N\r\n jButton2.setText(\"取消\");\r\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton2MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton3.setIcon(new javax.swing.ImageIcon(this.getClass().getResource(\"/it/businesslogic/ireport/plugin/templatemanager/modify.png\"))); // NOI18N\r\n jButton3.setText(\"确定\");\r\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton3MouseClicked(evt);\r\n }\r\n });\r\n\r\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jPanel4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\r\n .add(jButton3)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jButton2)))\r\n .addContainerGap())\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\r\n .add(jPanel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton3)\r\n .add(jButton2))\r\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n pack();\r\n }", "private void initComponent() {\n ImageIcon imageIcon = new ImageIcon(new ImageIcon(\"./data/images/RULES.png\").getImage().getScaledInstance(500, 300, Image.SCALE_SMOOTH));\n this.rulesPanel = new JLabel();\n this.rulesPanel.setIcon(imageIcon);\n this.retour = new JButton(\"Back\");\n this.retour.addActionListener(this.menuGuiListener);\n }", "private void initComponents() {\n\t\tthis.setTitle(\"Boggle\");\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.setMinimumSize(new Dimension(600, 575));\n\t\t\n\t\tinitMenuBar();\n\t\tinitDiceGridPanel();\n\t\tinitInputPanel();\n\t\tinitInfoPanel();\n\t\taddPanels();\n\t\t\n\t\tthis.setVisible(true);\n\t}", "private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }", "public void InitializeComponents(){\n\n\n screen = new JPanel();\n screen.setLayout(null);\n screen.setBackground(Color.BLUE);\n this.getContentPane().add(screen);\n ScreenComps();\n\n }", "@Override\r\n protected void onFinishInflate() {\r\n initComponents();\r\n }", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }", "private void init (){\n ///compoennetes\n // cuadros de texto\n txCodigo = new JTextField(10);\n txNombre = new JTextField(10);\n // etiquetas\n lbCodigo = new JLabel(\"codigo: \");\n lbNombre = new JLabel(\"nombre: \");\n // boton \n btAcpetar = new JButton(\"aceptar\");\n btAcpetar.setToolTipText(\"realizar insert\");\n btAcpetar.addActionListener(this);\n // paneles contenedores\n JPanel pCodigo = new JPanel();\n JPanel pNombre = new JPanel();\n // cambio de layout\n BoxLayout bx = new BoxLayout(this.getContentPane(), BoxLayout.PAGE_AXIS);\n this.setLayout(bx);\n // annadir a los paneles\n pCodigo.add(lbCodigo);\n pCodigo.add(txCodigo);\n pNombre.add(lbNombre);\n pNombre.add(txNombre);\n // annadir al dialogo\n add(pCodigo);\n add(pNombre);\n add(btAcpetar);\n }", "private void initComponents() {\n\t\tbValider = new JButton();\n\t\tbReset = new JButton();\n\t\tjScrollPane1 = new JScrollPane();\n\t\tresScroll = new JScrollPane();\n\t\tinformation = new JTextArea();\n\t\tquestionsPanel = new JPanel();\n\t\tbuttonPanel = new JPanel();\n\t\tsetDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\tsetTitle(\"******Wikiversity Parser******\");\n\t\tbValider.setText(\"Valider\");\n\t\tbReset.setText(\"Réinitialiser\");\n\t\tinformation.setEditable(false);\n\t\tinformation.setBackground(new java.awt.Color(0, 0, 0));\n\t\tinformation.setColumns(INFO_NUM_COL);\n\t\tinformation.setForeground(Color.green);\n\t\tinformation.setRows(INFO_NUM_ROW);\n\n\t\tintializeQuizView();\n\t\tjScrollPane1.setViewportView(questionsPanel);\n\t\tresScroll.setViewportView(information);\n\t\tquestionsPanel\n\t\t\t\t.setLayout(new BoxLayout(questionsPanel, BoxLayout.Y_AXIS));\n\t\tquestionsPanel.setSize(getPreferredSize());\n\t\tinformation.setSize(getPreferredSize());\n\t\tbuttonPanel.add(bValider);\n\t\tbuttonPanel.add(bReset);\n\n\t\tbValider.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tbValiderActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\tbReset.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tbResetActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\tBorderLayout layout = new BorderLayout();\n\t\tgetContentPane().setLayout(layout);\n\t\tadd(jScrollPane1, BorderLayout.NORTH);\n\t\tadd(resScroll, BorderLayout.CENTER);\n\t\tadd(buttonPanel, BorderLayout.SOUTH);\n\t\tpack();\n\t}", "public intrebarea() {\n initComponents();\n }", "private void initProcess(){\n this.getScPanelFriends().getViewport().setOpaque(false);\n this.getScPanelTopics().getViewport().setOpaque(false);\n this.getCenterPanel().setSize(0,0);\n this.getEastPanel().setSize(1700,800);\n //Administrador inhabilitado por defecto hasta implementación\n this.getBtnAdmin().setEnabled(false);\n this.getMenuOption().setLocationRelativeTo(this);\n }", "public void init()\r\n\t{\r\n\r\n\t\tsetLayout(new BorderLayout());\r\n\t\t\r\n\t\tb1=new Button(\"Ok\");\r\n\t\tadd(b1,BorderLayout.SOUTH);\r\n\t\t\r\n\t\t//GRID LAYOUT\r\n\r\n\t\t/*setLayout(new GridLayout(1,2));\r\n\t\tb1=new Button(\"Submit\");\r\n\t\tadd(b1);\r\n\t\tb2=new Button(\"Submit\");\r\n\t\tadd(b2);*/\r\n\r\n\t\t//CARD LAYOUT\r\n\r\n\t\t/*setLayout(new CardLayout(100,200));\r\n\t\tt1=new TextField(20);\r\n\t\tadd(b1);*/\r\n\t\r\n\t\t/*t2=new TextField(\"Submit\");\r\n\t\tadd(b2);*/\r\n\t\t//b1.addActionListener(this);\r\n\t\t\t\t\r\n\t\t\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t}", "void inicializaComponentes(){\r\n\t\t\r\n\t\t//Botão com status\r\n\t\ttgbGeral = (ToggleButton) findViewById(R.id.tgbGeral);\r\n\t\ttgbGeral.setOnClickListener(this);\r\n\t\ttgbMovimento = (ToggleButton) findViewById(R.id.tgbMovimento);\r\n\t\ttgbMovimento.setOnClickListener(this);\r\n\t\ttgbfogo = (ToggleButton) findViewById(R.id.tgbFogo);\r\n\t\ttgbfogo.setOnClickListener(this);\r\n\r\n\t\t//botão\r\n\t\tbtnTemperatura = (Button) findViewById(R.id.btnTemperatura);\r\n\t\tbtnTemperatura.setOnClickListener(this);\r\n\t\t\r\n\t\t//label\r\n\t\ttxtLegenda = (TextView) findViewById(R.id.txtSensorLegenda);\r\n\t}", "private void initComponents() {\n jSplitPane1 = new javax.swing.JSplitPane();\n jPanel1 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n xActionTextField1 = new com.rameses.rcp.control.XActionTextField();\n xDataTable1 = new com.rameses.rcp.control.XDataTable();\n jPanel2 = new javax.swing.JPanel();\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n jPanel4 = new javax.swing.JPanel();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xTextField1 = new com.rameses.rcp.control.XTextField();\n xTextField2 = new com.rameses.rcp.control.XTextField();\n xCheckBox1 = new com.rameses.rcp.control.XCheckBox();\n xNumberField1 = new com.rameses.rcp.control.XNumberField();\n\n setLayout(new java.awt.BorderLayout());\n\n setPreferredSize(new java.awt.Dimension(748, 396));\n jSplitPane1.setDividerLocation(400);\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Listing\");\n jPanel1.setBorder(xTitledBorder1);\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n jPanel3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 1, 3, 5));\n xActionTextField1.setActionName(\"search\");\n xActionTextField1.setCaptionMnemonic('h');\n xActionTextField1.setHint(\"Search\");\n xActionTextField1.setIndex(-1);\n xActionTextField1.setName(\"searchText\");\n xActionTextField1.setPreferredSize(new java.awt.Dimension(200, 19));\n jPanel3.add(xActionTextField1, java.awt.BorderLayout.WEST);\n\n jPanel1.add(jPanel3, java.awt.BorderLayout.NORTH);\n\n xDataTable1.setHandler(\"listHandler\");\n xDataTable1.setImmediate(true);\n xDataTable1.setName(\"selectedItem\");\n jPanel1.add(xDataTable1, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setLeftComponent(jPanel1);\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder2 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder2.setTitle(\"Document\");\n jPanel2.setBorder(xTitledBorder2);\n xActionBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 0));\n xActionBar1.setDepends(new String[] {\"selectedItem\"});\n xActionBar1.setName(\"formActions\");\n jPanel2.add(xActionBar1, java.awt.BorderLayout.NORTH);\n\n jPanel4.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 5, 5));\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder3 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder3.setTitle(\"Property Classification Information\");\n formPanel1.setBorder(xTitledBorder3);\n xTextField1.setCaption(\"Code\");\n xTextField1.setDepends(new String[] {\"selectedItem\"});\n xTextField1.setName(\"entity.propertycode\");\n xTextField1.setPreferredSize(new java.awt.Dimension(80, 18));\n xTextField1.setRequired(true);\n formPanel1.add(xTextField1);\n\n xTextField2.setCaption(\"Description\");\n xTextField2.setDepends(new String[] {\"selectedItem\"});\n xTextField2.setName(\"entity.propertydesc\");\n xTextField2.setPreferredSize(new java.awt.Dimension(0, 18));\n xTextField2.setRequired(true);\n formPanel1.add(xTextField2);\n\n xCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n xCheckBox1.setText(\" Is Special?\");\n xCheckBox1.setCaption(\"\");\n xCheckBox1.setCheckValue(1);\n xCheckBox1.setDepends(new String[] {\"selectedItem\"});\n xCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));\n xCheckBox1.setName(\"entity.special\");\n formPanel1.add(xCheckBox1);\n\n xNumberField1.setCaption(\"Order No\");\n xNumberField1.setDepends(new String[] {\"selectedItem\"});\n xNumberField1.setFieldType(int.class);\n xNumberField1.setName(\"entity.orderno\");\n xNumberField1.setPreferredSize(new java.awt.Dimension(75, 18));\n xNumberField1.setRequired(true);\n formPanel1.add(xNumberField1);\n\n org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 328, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(29, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 177, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(166, Short.MAX_VALUE))\n );\n jPanel2.add(jPanel4, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setRightComponent(jPanel2);\n\n add(jSplitPane1, java.awt.BorderLayout.CENTER);\n\n }", "private void initialize()\n {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(549,426));\n this.add(getComboBox(), com.ulcjava.base.application.ULCBorderLayoutPane.NORTH);\n }", "protected void init(){\n\t\n\t\tsetBounds(getControllerScreenPosition());\n\t\taddComponentListener(new ComponentListener(){\n\n\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint w = arg0.getComponent().getWidth();\n\t\t\t\tint h = arg0.getComponent().getHeight();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_W, String.valueOf(w));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_H, String.valueOf(h));\t \t\t\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint x = arg0.getComponent().getX();\n\t\t\t\tint y = arg0.getComponent().getY();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\t\t\t \t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_X, String.valueOf(x));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_Y, String.valueOf(y));\t \t\t\n\t\t\t}\n\n\t\t\tpublic void componentShown(ComponentEvent arg0) {}\n\t\t\tpublic void componentHidden(ComponentEvent arg0) {}\n\t\t\t\n\t\t});\n\t\t\n\t\tthis.addWindowListener(new WindowAdapter(){\n\t\t\n\t\t\tpublic void windowClosing(WindowEvent evt){\n\t\t\t\tstoreAppSettings();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void initComponents(){\n\t\n\t\tthis.setLayout(null);\n\t\t\n\t\tscreensize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\n\t\tlogo = new JLabel(getLogoIcon(), JLabel.CENTER); // 500x50\n\t\t\n\t\toptionList = new JComboBox();\n\t\t\n\t\tcreate = new JButton(\"Create\");\n\t\tclose = new JButton(\"Close\");\n\t\t\n\t\tcreate.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tcreateActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\t\n\t\tclose.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tcloseActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void initComponents() {\n createUIComponents();\n\n panel6 = new JPanel();\n scrollPane1 = new JScrollPane();\n resumeList = new JList();\n swapPanel = new JPanel();\n payPartialCard = new JPanel();\n panel1 = new JPanel();\n displayPartial = new JTextField();\n partialPayment = new JTextField();\n payTotalCard = new JPanel();\n panel2 = new JPanel();\n displayTotal = new JTextField();\n totalPayment = new JTextField();\n\n //======== this ========\n setName(\"this\");\n\n //======== panel6 ========\n {\n panel6.setName(\"panel6\");\n\n //======== scrollPane1 ========\n {\n scrollPane1.setName(\"scrollPane1\");\n\n //---- resumeList ----\n resumeList.setName(\"resumeList\");\n scrollPane1.setViewportView(resumeList);\n }\n\n PanelBuilder panel6Builder = new PanelBuilder(new FormLayout(\n \"[75dlu,default]:grow\",\n \"default:grow, $lgap, [35dlu,default]:grow, $lgap, [35dlu,default]\"), panel6);\n\n panel6Builder.add(scrollPane1, CC.xywh(1, 1, 1, 5, CC.FILL, CC.FILL));\n }\n\n //======== swapPanel ========\n {\n swapPanel.setName(\"swapPanel\");\n swapPanel.setLayout(new CardLayout());\n\n //======== payPartialCard ========\n {\n payPartialCard.setBorder(null);\n payPartialCard.setName(\"payPartialCard\");\n\n //======== panel1 ========\n {\n panel1.setBorder(new TitledBorder(\"Paga acconto\"));\n panel1.setName(\"panel1\");\n\n //---- label5 ----\n label5.setText(\"Acconto\");\n label5.setName(\"label5\");\n\n //---- displayPartial ----\n displayPartial.setEditable(false);\n displayPartial.setName(\"displayPartial\");\n\n //---- label6 ----\n label6.setText(\"Pagamento\");\n label6.setName(\"label6\");\n\n //---- partialPayment ----\n partialPayment.setName(\"partialPayment\");\n\n PanelBuilder panel1Builder = new PanelBuilder(new FormLayout(\n \"[50dlu,default], $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,default], $lgap, fill:[35dlu,min]\"), panel1);\n\n panel1Builder.add(label5, CC.xy (1, 1));\n panel1Builder.add(displayPartial, CC.xywh(3, 1, 3, 1));\n panel1Builder.add(label6, CC.xy (1, 3));\n panel1Builder.add(partialPayment, CC.xywh(3, 3, 3, 1));\n }\n\n //---- payPartialButton ----\n payPartialButton.setText(\"Paga Acconto\");\n payPartialButton.setName(\"payPartialButton\");\n payPartialButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n payPartialButtonActionPerformed(e);\n }\n });\n\n PanelBuilder payPartialCardBuilder = new PanelBuilder(new FormLayout(\n \"[50dlu,default], $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,default], $lgap, default:grow, $lgap, fill:[35dlu,min]\"), payPartialCard);\n\n payPartialCardBuilder.add(panel1, CC.xywh(1, 1, 5, 1));\n payPartialCardBuilder.add(payPartialButton, CC.xy (5, 5));\n }\n swapPanel.add(payPartialCard, \"card1\");\n\n //======== payTotalCard ========\n {\n payTotalCard.setBorder(null);\n payTotalCard.setName(\"payTotalCard\");\n\n //======== panel2 ========\n {\n panel2.setBorder(new TitledBorder(\"Paga totale\"));\n panel2.setName(\"panel2\");\n\n //---- label7 ----\n label7.setText(\"Totale\");\n label7.setName(\"label7\");\n\n //---- displayTotal ----\n displayTotal.setEditable(false);\n displayTotal.setName(\"displayTotal\");\n\n //---- label8 ----\n label8.setText(\"Pagamento\");\n label8.setName(\"label8\");\n\n //---- totalPayment ----\n totalPayment.setName(\"totalPayment\");\n\n PanelBuilder panel2Builder = new PanelBuilder(new FormLayout(\n \"50dlu, $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,min], $lgap, fill:[35dlu,min]\"), panel2);\n\n panel2Builder.add(label7, CC.xy (1, 1));\n panel2Builder.add(displayTotal, CC.xywh(3, 1, 3, 1));\n panel2Builder.add(label8, CC.xy (1, 3));\n panel2Builder.add(totalPayment, CC.xywh(3, 3, 3, 1));\n }\n\n //---- payTotalButton ----\n payTotalButton.setText(\"Paga Totale\");\n payTotalButton.setName(\"payTotalButton\");\n payTotalButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n payTotalButtonActionPerformed(e);\n }\n });\n\n PanelBuilder payTotalCardBuilder = new PanelBuilder(new FormLayout(\n \"50dlu, $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,min], $lgap, default:grow, $lgap, [35dlu,default]\"), payTotalCard);\n\n payTotalCardBuilder.add(panel2, CC.xywh(1, 1, 5, 1));\n payTotalCardBuilder.add(payTotalButton, CC.xy (5, 5, CC.FILL, CC.FILL));\n }\n swapPanel.add(payTotalCard, \"card2\");\n }\n\n //---- button2 ----\n button2.setText(\"Indietro\");\n button2.setName(\"button2\");\n button2.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n indietroActionPerformed(e);\n }\n });\n\n PanelBuilder builder = new PanelBuilder(new FormLayout(\n \"$rgap, [75dlu,default], $lcgap, [150dlu,default]:grow, $lcgap, right:[72dlu,default,112dlu], $lcgap, [75dlu,default,75dlu], $rgap\",\n \"$rgap, 90dlu, $lgap, 90dlu:grow, $rgap, bottom:[35dlu,default], $rgap\"), this);\n\n builder.add(panel6, CC.xywh(2, 2, 3, 3, CC.FILL, CC.FILL));\n builder.add(swapPanel, CC.xywh(6, 2, 3, 5, CC.FILL, CC.FILL));\n builder.add(button2, CC.xy (2, 6, CC.DEFAULT, CC.FILL));\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "private void initializeComponents()\r\n\t{\n\t\tmain = (JPanel) this.getContentPane();\r\n\t\tmain.setLayout(new BorderLayout());\r\n\t\t\r\n\t\tpanelNorth = new JPanel(new FlowLayout());\r\n\t\tpanelSouth = new JPanel(new FlowLayout());\r\n\t\t\r\n\t\tlbKiez = new JLabel(\"Kiez quiz lijst\");\r\n\t\tcbxRapporten = new JComboBox<String>(new String[]{\"OpdrachtenPerCategorie\", \"QuizzenSorteerd\"});\r\n\t\ttxtRapport = new JTextArea();\r\n\t\tchbDatumDecor = new JCheckBox(\"Add datum\");\r\n\t\tchbAuteurDecor = new JCheckBox(\"Add auteur\");\r\n\t\t\r\n\t\tpanelNorth.add(lbKiez);\r\n\t\tpanelNorth.add(cbxRapporten);\r\n\t\t\r\n\t\tpanelSouth.add(chbDatumDecor);\r\n\t\tpanelSouth.add(chbAuteurDecor);\r\n\t\t\r\n\t\tmain.add(panelNorth, BorderLayout.NORTH);\r\n\t\tmain.add(txtRapport, BorderLayout.CENTER);\r\n\t\tmain.add(panelSouth, BorderLayout.SOUTH);\r\n\t}", "private void initComponents() {\n\t\t\tpreviewLabel = new JLabel();\n\t\t\tpreview2Label = new JLabel();\n\t\t\tdescLabel = new JLabel();\n\n\t\t\t//======== this ========\n\t\t\tsetLayout(new MigLayout(\n\t\t\t\t\"insets 0,hidemode 3\",\n\t\t\t\t// columns\n\t\t\t\t\"[left]\",\n\t\t\t\t// rows\n\t\t\t\t\"[]0\" +\n\t\t\t\t\"[]\"));\n\n\t\t\t//---- previewLabel ----\n\t\t\tpreviewLabel.setText(\"preview\");\n\t\t\tadd(previewLabel, \"cell 0 0\");\n\t\t\tadd(preview2Label, \"cell 0 0\");\n\n\t\t\t//---- descLabel ----\n\t\t\tdescLabel.setText(\"description\");\n\t\t\tdescLabel.putClientProperty(\"FlatLaf.styleClass\", \"small\");\n\t\t\tdescLabel.setEnabled(false);\n\t\t\tadd(descLabel, \"cell 0 1\");\n\t\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t\t}", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\r\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initLayoutReferences() {\n // Initializing views\n initViews();\n // Initializing mapView element\n initMap();\n }", "public void init(){\n\t\t\n\t\t// Definition general de la fenetre\n\t\tthis.setLayout(new BorderLayout());\n\t\t\n\t\t/*********** PARTIE HAUTE *************/\n\t\t\n\t\t// JPanel qui va contenir l'interface de controle\n\t\tJPanel panH=new JPanel();\n\t\t\n\t\t// Ajout de la zone de saisie du mot binaire\n\t\tpanH.add(new JLabel(\"Mot binaire:\"));\n\t\tentree=new JTextField(\"1100110101\",10);\n\t\tpanH.add(entree);\n\t\t\n\t\t// Ajout de la liste de selection du codage\n\t\tcodage=new JComboBox();\n\t\tcodage.addItem(\"NRZ\");\n\t\tcodage.addItem(\"NRZI\");\n\t\tcodage.addItem(\"Manchester\");\n\t\tcodage.addItem(\"Manchester differentiel\");\n\t\tcodage.addItem(\"Miller\");\n\t\t\n\t\tpanH.add(codage);\n\t\t\n\t\t\n\t\t// Ajout du bouton d'execution du codage\n\t\tconvertir=new JButton(\"Convertir\");\n\t\tconvertir.addActionListener(new EcouteurBouton());\n\t\tpanH.add(convertir);\n\t\t\n\t\t\n\t\tadd(panH,BorderLayout.NORTH);\n\t\t\n\t\t\n\t\t/*********** PARTIE CENTRALE *************/\n\t\t\n\t\t// Ajout de la zone d'affichage de la solution\n\t\tzoneGraph=new Dessin();\n\t\tadd(zoneGraph);\n\t}", "private void init() {\n\t\tcreateSubjectField();\n\t\tcreateTextField();\n\t\tcreateButton();\n\t\tsetupSubjectPanel();\n\t\tsetupToDoPanel();\n\n\t\tsetBorder(BorderFactory.createTitledBorder(\"To Do List\"));\n\t\tsetLayout(new BorderLayout());\n\t\tadd(pnlSubject, BorderLayout.NORTH);\n\t\tadd(scroll, BorderLayout.CENTER);\n\t\tadd(pnlButton, BorderLayout.SOUTH);\n\t}", "private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setPreferredSize(new java.awt.Dimension(686, 530));\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, 699, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 541, Short.MAX_VALUE)\n );\n\n pack();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void initialize() {\n\t\tjLabel3 = new JLabel();\n\t\tjLabel = new JLabel();\n\t\tthis.setLayout(null);\n\t\tthis.setBounds(new java.awt.Rectangle(0, 0, 486, 377));\n\t\tjLabel.setText(PluginServices.getText(this,\n\t\t\t\t\"Areas_de_influencia._Introduccion_de_datos\") + \":\");\n\t\tjLabel.setBounds(5, 20, 343, 21);\n\t\tjLabel3.setText(PluginServices.getText(this, \"Cobertura_de_entrada\")\n\t\t\t\t+ \":\");\n\t\tjLabel3.setBounds(6, 63, 190, 21);\n\t\tthis.add(jLabel, null);\n\t\tthis.add(jLabel3, null);\n\t\tthis.add(getLayersComboBox(), null);\n\t\tthis.add(getSelectedOnlyCheckBox(), null);\n\t\tthis.add(getMethodSelectionPanel(), null);\n\t\tthis.add(getResultSelectionPanel(), null);\n\t\tthis.add(getExtendedOptionsPanel(), null);\n\t\tconfButtonGroup();\n\t\tlayersComboBox.setSelectedIndex(0);\n\t\tinitSelectedItemsJCheckBox();\n\t\tdistanceBufferRadioButton.setSelected(true);\n\t\tlayerFieldsComboBox.setEnabled(false);\n\t\tverifyTypeBufferComboEnabled();\n\t}" ]
[ "0.81117636", "0.806043", "0.806043", "0.8029072", "0.8024472", "0.79412985", "0.7616335", "0.7483393", "0.7412917", "0.7410375", "0.7301828", "0.7278694", "0.7278261", "0.7256253", "0.7169677", "0.7165001", "0.7165001", "0.7151525", "0.712748", "0.71274126", "0.71229506", "0.71161467", "0.71118975", "0.71107477", "0.71052843", "0.7093985", "0.7084627", "0.706963", "0.70599717", "0.70598346", "0.7022636", "0.70057195", "0.7005607", "0.7003174", "0.6992762", "0.69924206", "0.69881725", "0.69836235", "0.6981005", "0.69679415", "0.696739", "0.6955139", "0.6951267", "0.6948769", "0.6944572", "0.69414157", "0.6939376", "0.69386166", "0.6930641", "0.6919634", "0.6911979", "0.69106203", "0.6900175", "0.68953353", "0.6883993", "0.68776476", "0.6870721", "0.6869258", "0.6868873", "0.6867045", "0.6859657", "0.68514466", "0.6844588", "0.6841713", "0.6840455", "0.6831596", "0.6824288", "0.68224424", "0.6821492", "0.6821439", "0.6815873", "0.68080306", "0.6807394", "0.6804955", "0.68037003", "0.6800005", "0.67975515", "0.67968553", "0.6795523", "0.67912394", "0.6790222", "0.6784956", "0.67764634", "0.6775201", "0.6770446", "0.67668945", "0.6761187", "0.6757675", "0.67569226", "0.6752374", "0.6751688", "0.6748581", "0.674492", "0.6743171", "0.6743097", "0.6732585", "0.67324626", "0.6724648", "0.67160374", "0.6714427", "0.67123634" ]
0.0
-1
//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////// ////////////CREATE EVENTS/////////////// //////////////////////////////////////// //////////////////////////////////////// ////////////////////////////////////////
private void createEvent() { // When the user clicks on the add button btnAdd.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ////////////////////////////////// ////////////////////////////////// //Adding Info To Reservation.txt// ////////////////////////////////// ////////////////////////////////// /** * First i surround the whole with with try.. catch block * First in the try block * i get the values of the check-in and check-out info * i save them in strings * then cast them in integers * and finally add it to Reservation.txt * then i close the file. */ try { Object HotelID = cbHotelsOptions.getSelectedItem(); Hotel hotel; hotel = (Hotel) HotelID; long id = hotel.getUniqueId(); // System.out.println(id); String inmonth = txtInMonth.getText(); int inMonth = Integer.valueOf(inmonth); String inday = txtInDay.getText(); int inDay = Integer.parseInt(inday); String outmonth = txtOutMonth.getText(); int outMonth = Integer.valueOf(outmonth); String outday = txtOutDay.getText(); int OutDay = Integer.parseInt(outday); FileOutputStream fos = new FileOutputStream("Reservation.txt", true); PrintWriter pw = new PrintWriter(fos); /** * i then check the canBook method and according to the canBook method * i check if they can book, and if yes i add the reservation * otherwise it prints so the user may enter different values */ { if(h.canBook(new Reservation(id,inMonth, inDay, OutDay)) == true) { reservation.add(new Reservation (id,inMonth, inDay, outMonth, OutDay)); r = new Reservation (id,inMonth, inDay, OutDay); h.addResIfCanBook(new Reservation(id,inMonth, inDay, outMonth, OutDay)); reservationsModel.addElement(r); pw.println( id + " - " + inMonth + "-"+ inDay+ " - " + outMonth + "-" + OutDay); pw.close(); txtInMonth.setText(""); txtOutMonth.setText(""); txtInDay.setText(""); txtOutDay.setText(""); } else { JOptionPane.showMessageDialog(null, "These dates are already reserved" + "\nPlease try again!"); txtInMonth.setText(""); txtOutMonth.setText(""); txtInDay.setText(""); txtOutDay.setText(""); } } } /** * Then the catch Block checks for file not found exception */ catch (FileNotFoundException fnfe) { System.err.println("File not found."); } } }); // When the user selects a specific hotel cbHotelsOptions.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { /** * first i save selected hotel in a hotel object * then i get reservations for the selected hotel * then i make all the labels and text fields visible */ Hotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem(); JOptionPane.showMessageDialog(null, "You selected the " + selectedHotel.getHotelName()); selectedHotel.getReservations(); lblCheckIn.setVisible(true); lblInMonth.setVisible(true); txtInMonth.setVisible(true); lblInDay.setVisible(true); txtInDay.setVisible(true); lblCheckout.setVisible(true); lblOutMonth.setVisible(true); txtOutMonth.setVisible(true); lblOutDay.setVisible(true); txtOutDay.setVisible(true); btnAdd.setVisible(true); reservationsModel.removeAllElements(); ///////////////////////////////////// ///////////////////////////////////// //Reading Info From Reservation.txt// ///////////////////////////////////// ///////////////////////////////////// /** * First i surround everything is a try.. catch blocks * then in the try block i declare the file input stream * then a scanner * then in a while loop i check if the file has next line * and a user a delimiter "-" * and it adds it to a new reservation * then it adds it to the ArrayList reservation * and it also adds it to the hotel object * then it checks if it can book that hotel * and if yes it adds it to the ReservationsModel */ try { FileInputStream fis = new FileInputStream("Reservation.txt"); Scanner fscan = new Scanner (fis); int INMonth = 0; int INday = 0; int OUTmonth = 0; int OUTday = 0; long iD = 0; while (fscan.hasNextLine()) { Scanner ls = new Scanner (fscan.nextLine()); ls.useDelimiter("-"); iD = Integer.parseInt(ls.next().trim()); INMonth = Integer.parseInt(ls.next().trim()); INday = Integer.parseInt(ls.next().trim()); OUTmonth = Integer.parseInt(ls.next().trim()); OUTday = Integer.parseInt(ls.next().trim()); r = new Reservation (iD,INMonth, INday, OUTmonth, OUTday); h.addReservation(new Reservation(iD,INMonth, INday, OUTmonth, OUTday)); Hotel hotel = (Hotel) cbHotelsOptions.getSelectedItem(); long hotID = hotel.getUniqueId(); if(iD == hotID) { reservationsModel.addElement((new Reservation(iD, INMonth, INday, OUTday))); } } } /** * The catch block checks to make sure that the file is found */ catch( FileNotFoundException fnfe) { System.err.println("File not found!"); } } }); /** * This is the setRenderer to make the hotel appear in the hotelsOptions * just the hotel name. */ cbHotelsOptions.setRenderer(new DefaultListCellRenderer() { @Override public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { Component renderer = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); if (renderer instanceof JLabel && value instanceof Hotel) { // Here value will be of the Type 'Hotel' ((JLabel) renderer).setText(((Hotel) value).getHotelName()); } return renderer; } }); /** * The setCallRenderer is for the reservation's list * it only prints the check-in and check-out info */ lstReservation.setCellRenderer(new DefaultListCellRenderer() { @Override public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { Component renderer = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); if (renderer instanceof JLabel && value instanceof Reservation) { // Here value will be of the Type 'Reservation' Hotel selectedHotel = (Hotel) cbHotelsOptions.getSelectedItem(); ((JLabel) renderer).setText(((Reservation) value).getFormattedDisplayString()); } return renderer; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createEvents() {\n\t}", "BasicEvents createBasicEvents();", "Event createEvent();", "Event createEvent();", "private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}", "private void initializeEvents() {\r\n\t}", "@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}", "com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "void onNewEvent(Event event);", "EventUse createEventUse();", "private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }", "@Override\n\tpublic void loadEvents() {\n\t\t\n\t}", "private IEvent createEvent() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IEvent.ELEMENT_TYPE, null, null);\n\t}", "protected abstract void createHistoryEvents();", "public void consulterEvent() {\n\t\t\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "private void addEvent() {\n String name = selectString(\"What is the name of this event?\");\n ReferenceFrame frame = selectFrame(\"Which frame would you like to define the event in?\");\n double time = selectDouble(\"When does the event occur (in seconds)?\");\n double x = selectDouble(\"Where does the event occur (in light-seconds)?\");\n world.addEvent(new Event(name, time, x, frame));\n System.out.println(\"Event added!\");\n }", "private void createEvents() {\n\t\taddBtn.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbuildOutput();\n\t\t\t}\n\t\t});\n\t}", "BasicEvent createBasicEvent();", "public Event createEvent(String name) {\r\n\t\tEvent newEvent = new Event(this.GID, name);\r\n\t\tevents.add(newEvent);\r\n\t\treturn newEvent;\r\n\t}", "EventManager()\n {\n }", "public void registerEvents()\n {\n \t\tfinal pchestPlayerListener playerListener = new pchestPlayerListener(this, chestManager);\n \t\tfinal pchestEntityListener entityListener = new pchestEntityListener(this, chestManager);\n \t\tfinal pchestBlockListener blockListener = new pchestBlockListener(this, chestManager);\n \t\t\n \t\t\n pm = getServer().getPluginManager();\n \n /* Entity events */\n pm.registerEvent(Type.ENTITY_EXPLODE, entityListener, Event.Priority.Normal, this);\n \n /* Player events */\n pm.registerEvent(Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\n \n /* Block events */\n \t\tpm.registerEvent(Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\n \t\tpm.registerEvent(Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\n \n \t\t\n /* Spout Required events */\n \t\tif(SpoutLoaded)\n \t\t{\n \t\t\tfinal pchestInventoryListener inventoryListener = new pchestInventoryListener(this, chestManager);\n \n \t /* Inventory events */\n \t\t\tpm.registerEvent(Type.CUSTOM_EVENT, inventoryListener, Event.Priority.Normal, this);\n \t\t}\n }", "StartEvent createStartEvent();", "private void registerEvents(){\n\t\tPluginManager pm = getServer().getPluginManager();\r\n\t\t//PlayerListener stuff\r\n\t pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_MOVE, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\r\n\t //BlockListener stuff\r\n pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_DAMAGE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\r\n //EntityListener stuff\r\n pm.registerEvent(Event.Type.CREATURE_SPAWN, entityListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.ENTITY_DAMAGE, entityListener, Event.Priority.Normal, this);\r\n //ServerListener stuff\r\n pm.registerEvent(Event.Type.PLUGIN_ENABLE, serverListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLUGIN_DISABLE, serverListener, Event.Priority.Normal, this);\r\n }", "public String getEventName();", "public interface Event\n\t{\n\t\tpublic static final String EVENT_ID = \"aether.event.id\";\n\t\tpublic static final String TIME = \"aether.event.time\";\n\t\tpublic static final String EVENT_TYPE = \"aether.event.type\";\n\t}", "EventUses createEventUses();", "@Override\n protected void initializeEventList()\n {\n }", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "public void setEventName(String name);", "public void addEvent(Event event) {\n\t\t\n\t}", "@Override\n protected void initEventAndData() {\n }", "private void createEvents() {\n\t\tbtnPushTheButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t\n\t\t\tprivate List<String> b;\n\n\t\n\t\t\t//@SuppressWarnings(\"unchecked\")\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tact = true;\n\t\t\t\t\n//\t\t\t\tb = new ArrayList<String>();\n//\t\t\t\t\n//\t\t\t\tthis.b= (List<String>) ((List<Object>) (agent.v.getData())).stream().map(item -> {\n//\t\t\t\t\treturn (String) item;\n//\t\t\t\t});\n//\t\t\t\tString c = String.join(\", \", b);\n//\t\t\t\tclassTextArea.setText(c);\n//\t\t\t\n//\t\t\t\tclassTextArea.setText(b.toString());\n//\t\t\t\t\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t\t\n\t}", "java.lang.String getEventType();", "EventType getEvent();", "public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }", "public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }", "public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "EventChannel create();", "public void addEvent(Event e) {\n\t\t\n\t}", "public void addEvent(Event e) {\n\t\t\n\t}", "private List<Event> generateEvents() {\n\t\tList<Event> events = new ArrayList<Event>();\n\t\tint numEvents = random.nextInt(2) + 1;\n\t\tfor (int i = 0; i < numEvents; i++) {\n\t\t\tEvent newEvent = null;\n\t\t\tdo {\n\t\t\t\tnewEvent = new Event(db);\n\t\t\t} while (events.contains(newEvent)); // make sure only one instance of an event occurs per turn\n\t\t\tevents.add(newEvent);\t\t\t\n\t\t}\n\t\treturn events;\n\t}", "private void initEvents() {\r\n\t\teventPool = new EventPool();\r\n\t\teventPool.addEvent(new BlockGeneratorEvent(this));\r\n\t\teventPool.addEvent(new BlockOffScreenEvent(this));\r\n\t\teventPool.addEvent(new DeathEvent(myDropThis, this));\r\n\t}", "public void addEvPEC(Event ev);", "ProgramEventEvent createProgramEventEvent();", "Event getEvent();", "public\n CreateEvent()\n {}", "private void registerEvents(){\n Bukkit.getPluginManager().registerEvents(new RegionListener(), this);\n Bukkit.getPluginManager().registerEvents(new SignListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonerListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonBlockListener(), this);\n Bukkit.getPluginManager().registerEvents(new MonitorListener(), this);\n Bukkit.getPluginManager().registerEvents(new PortalListener(), this);\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "private void listEvents() {\n System.out.println(\"\\nEvents:\");\n for (Event event: world.getEvents()) {\n String name = event.getName();\n String coords = \" with x = \" + event.getX() + \" light seconds and t = \" + event.getTime() + \" seconds \";\n String frame = \"in \" + event.getFrame().getName() + \".\";\n System.out.println(name + coords + frame);\n }\n }", "Event(int start, int end, String eventName) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = \"\";\r\n }", "private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}", "protected ICEvent() {}", "EndEvent createEndEvent();", "RemoteEvent createRemoteEvent();", "private void registerEvents() {\n createRoomBTN.addActionListener(actionEvent -> {\n chatController.createRoom(roomNameIF.getText());\n roomNameIF.setText(\"\");\n });\n\n backBTN.addActionListener(actionEvent -> {\n if (chatController.getJoinedRooms().size() > 0) chatView.renderChatPanel();\n });\n }", "com.walgreens.rxit.ch.cda.EIVLEvent getEvent();", "public void onEvent(EventIterator events) {\n\n }", "Event(int start, int end, String eventName, String description) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = description;\r\n }", "public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}", "public void createEvents(){\r\n\t\tbtnCurrent.addActionListener((ActionEvent e) -> JLabelDialog.run());\r\n\t}", "public void readInEvents() {\n // read CSV file for events\n allEvents = new ArrayList<Event>();\n InputStream inputStream = getResources().openRawResource(R.raw.events);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] eventData = (String[]) scoreList.get(i);\n\n // group together description\n String description = getDescription(8, eventData);\n\n // inputs to Event constructor:\n // String name, String date, String startTime, String endTime, String location,\n // int photoID, String organizations, String categories, String description\n\n // get image ID according to its name\n int photoID = context.getResources().getIdentifier(eventData[5], \"drawable\", context.getPackageName());\n allEvents.add(new Event(eventData[0], eventData[1], eventData[2], eventData[3], eventData[4],\n photoID, eventData[6], eventData[7], description));\n\n\n //System.out.println(\"ADD Event: \" + eventData[0]);\n }\n\n }", "public abstract Event[] getInitialEvents();", "Event () {\n // Nothing to do here.\n }", "CatchingEvent createCatchingEvent();", "public Event() {\r\n\r\n\t}", "private void createEvents() {\n\t\tbtnRetour.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tDashboard_Preteur dashboard_Preteur = new Dashboard_Preteur(currentPreteur);\r\n\t\t\t\tdashboard_Preteur.setVisible(true);\r\n\t\t\t\tdashboard_Preteur.setResizable(false);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void createMainEvents() {\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\t\tjdbc.closeSQLConnection();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtn_settings.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\n\t}", "private static void addEventTypes(Configuration cepConfig) {\n\t cepConfig.addEventType(\"Batch\", Batch.class.getName());\n\t cepConfig.addEventType(\"Span\", Span.class.getName());\n\t cepConfig.addEventType(\"Process\", Process.class.getName());\n\t cepConfig.addEventType(\"Log\", Log.class.getName());\n\t cepConfig.addEventType(\"Tag\", Tag.class.getName());\n\t cepConfig.addEventType(\"SpanRef\", SpanRef.class.getName());\n\t \n\t // SOCKET events\n\t // Metrics -> JSON influxDB\n\t // Events -> Custom definition\n\t // We register metrics and events as objects the engine will have to handle\n\t cepConfig.addEventType(\"Metric\", Metric.class.getName());\n\t cepConfig.addEventType(\"Event\", Event.class.getName());\n\t\t\n\t}", "public final void loadEvents() {\n\n if (selectedUser == null || selectedUser.equals(\"All\")) {\n for (Absence a : AbsenceService.getAllUnacknowledged()) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n } else {\n for (Absence a : AbsenceService.getAbsenceByUserAndUnacknowledged(BenutzerverwaltungService.getUser(selectedUser))) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType() + \" \" + a.getReason(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n }\n\n DefaultScheduleEvent holidayevent;\n\n for (Holiday h : HolidayService.getList()) {\n holidayevent = new DefaultScheduleEvent(h.getHolidayComment(), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()));\n holidayevent.setAllDay(true);\n holidayevent.setStyleClass(\"feiertag\");\n\n this.addEvent(holidayevent);\n }\n }", "public Eventd() {\n }", "private void registerEvents() {\n MouseEventHandler handler = new MouseEventHandler();\n setOnMousePressed(handler);\n setOnMouseReleased(handler);\n setOnMouseMoved(handler);\n setOnMouseEntered(handler);\n setOnMouseExited(handler);\n\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "public GameEvent[] getEvents();", "private void registerGlobalEvents() {\n\t\tsubmit(new CycleEvent());\n\t\tsubmit(new CleanupEvent());\n\t\tsubmit(new FloorItemEvent());\n\t}", "public InspectorEvent (double time,double clock, Inspector insp, factoryComponent fc,EventTypes type){\n eventfTime = time + clock;\n eventsTime = clock;\n this.fc = fc;\n this.insp = insp;\n eventType = type;\n }", "public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }", "public void transmitEvents(){\n Log.info(\"Transmitting Events\", EventShare.class);\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n for(EventTrigger trigger : eventGroup.getValue()){\n if(trigger.getServer()!=this) { // do not send own events...\n if(trigger.getMethod()!=null){ // its a local event\n if(trigger.getMethod().isAnnotationPresent(ES.class)){\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }else {\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n }", "@Test\n public void testNear()\n {\n String sName = \"near-client-listener\";\n generateEvents(sName);\n checkEvents(true, false);\n }", "public void setMarioEvents() {\n\t\tCollisionEvent event1, event2, event4, event98, event6, event7, event8, event9;\n\t\tAdvancedCollisionEvent event_1LandsTop4, event_1Touches4NotTop, event5;\n\t\ttry {\n\t\t\t// player with block\n\t\t\tevent1 = new CollisionEvent(\n\t\t\t\t\tArrays.asList(new String[] { \"0\", \"1\" }),\n\t\t\t\t\tPLAYER_LANDING_ON_BLOCK_STRING);\n\t\t\t// enemy with block\n\t\t\tevent2 = new CollisionEvent(Arrays.asList(\"1\", \"2\"),\n\t\t\t\t\tENEMY_ON_BLOCK_STRING);\n\t\t\t// player killing enemy\n\t\t\tevent_1LandsTop4 = new AdvancedCollisionEvent(Arrays.asList(\"0\",\n\t\t\t\t\t\"2\", \"true\", \"false\", \"false\", \"false\", \"false\"),\n\t\t\t\t\tPLAYER_JUMPING_ON_ENEMY_STRING);\n\t\t\t// enemy kills player\n\t\t\tevent_1Touches4NotTop = new AdvancedCollisionEvent(Arrays.asList(\n\t\t\t\t\t\"0\", \"2\", \"false\", \"true\", \"true\", \"true\", \"false\"),\n\t\t\t\t\tENEMY_KILLING_PLAYER_STRING);\n\t\t\t// player reaches goal\n\t\t\tevent4 = new CollisionEvent(Arrays.asList(\"0\", \"3\"),\n\t\t\t\t\tPLAYER_HITTING_GOAL_STRING);\n\t\t\t// player collects coin\n\t\t\tevent98 = new CollisionEvent(Arrays.asList(\"0\", \"5\"),\n\t\t\t\t\tPLAYER_COLLECTING_COIN_STRING);\n\t\t\t// bullet hits enemy\n\t\t\tevent5 = new AdvancedCollisionEvent(Arrays.asList(\"2\", \"150\",\n\t\t\t\t\t\"true\", \"true\", \"true\", \"true\", \"true\"),\n\t\t\t\t\tBULLET_HITTING_ENEMY_STRING);\n\t\t\t// player gets gun power up\n\t\t\tevent6 = new CollisionEvent(Arrays.asList(\"0\", \"6\"),\n\t\t\t\t\tPLAYER_HITS_GUN_POWERUP_STRING);\n\t\t\t// player gets invincibility power up\n\t\t\tevent7 = new CollisionEvent(Arrays.asList(\"0\", \"7\"),\n\t\t\t\t\tPLAYER_HITS_INVINCIBILITY_POWERUP_STRING);\n\t\t\t// player gets size power up\n\t\t\tevent8 = new CollisionEvent(Arrays.asList(\"0\", \"8\"),\n\t\t\t\t\tPLAYER_HITS_SIZE_POWER_UP_STRING);\n\t\t\t// player gets speed power up\n\t\t\tevent9 = new CollisionEvent(Arrays.asList(\"0\", \"9\"),\n\t\t\t\t\tPLAYER_HITS_SPEED_POWERUP_STRING);\n\t\t\tAddPowerUpAction action13 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"8\",\n\t\t\t\t\t\t\tSIZE_POWER_UP_STRING, \"10\", \"mario\")));\n\t\t\tAddPowerUpAction action12 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"9\",\n\t\t\t\t\t\t\tSPEED_POWER_UP_STRING, \"10\", \"bullet\")));\n\n\t\t\tDecreaseObjectHitPointsByCollisionAction action14 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"8\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action15 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"9\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action9 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"6\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action11 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"7\", \"0\")));\n\t\t\tAddPowerUpAction action7 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"6\",\n\t\t\t\t\t\t\tGUN_POWERUP_STRING, \"10\", \"mario\")));\n\t\t\tAddPowerUpAction action8 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"7\",\n\t\t\t\t\t\t\tINVINCIBILITY_POWERUP_STRING, \"10\", \"mobile\")));\n\t\t\tCollideSolidAction action = new CollideSolidAction(\n\t\t\t\t\tnew Tuple<Integer>(0, 1).toListString());\n\t\t\tCollideSolidAction action2 = new CollideSolidAction(\n\t\t\t\t\tnew Tuple<Integer>(2, 1).toListString());\n\t\t\tKillPlayerAction action3 = new KillPlayerAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\")));\n\n\t\t\tDecreaseObjectHitPointsByCollisionAction action10 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"5\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action5 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"150\", \"2\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action6 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"2\", \"150\")));\n\t\t\tEndLevelAction action4 = new EndLevelAction(new ArrayList<String>());\n\n\t\t\tChangeScoreAction action98 = new ChangeScoreAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"5\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action_1Kills4 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"2\", \"0\")));\n\n\t\t\tevent1.addAction(action);\n\t\t\tevent2.addAction(action2);\n\t\t\tevent_1Touches4NotTop.addAction(action3);\n\t\t\tevent_1LandsTop4.addAction(action_1Kills4);\n\t\t\tevent4.addAction(action4);\n\t\t\tevent98.addAction(action98);\n\t\t\tevent98.addAction(action10);\n\t\t\tevent5.addAction(action5, action6);\n\t\t\tevent6.addAction(action7, action9);\n\t\t\tevent7.addAction(action8, action11);\n\t\t\tevent9.addAction(action12, action15);\n\t\t\tevent8.addAction(action13, action14);\n\t\t\tmyLevel.addEvent(event1, event2, event_1Touches4NotTop, event4,\n\t\t\t\t\tevent98, event_1LandsTop4, event5, event6, event7, event8,\n\t\t\t\t\tevent9);\n\t\t\tmyLevelObjectBar.initializeEventsMap(myLevel.getEvents());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void create() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString title = \"\";\n\t\tString date = \"\";\n\t\tString startTime = \"\";\n\t\tString endTime = \"\";\n\t\tSystem.out.println(\"Enter the title of the event you would like to create: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\ttitle = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the starting time in 24 hour format (ex 15:30): \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tstartTime = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the ending time: in 24 hour format (ex 15:30): \"); // if there's no end time set the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// end time to the start time.\n\t\tif (sc.hasNextLine()) {\n\t\t\tendTime = sc.nextLine().toLowerCase();\n\t\t\tif (endTime.equals(\"\")) {\n\t\t\t\tendTime = startTime;\n\t\t\t}\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event>treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\tboolean canAdd = true;\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t}", "public Event() {\n\n }", "public void TopDreiEvent();", "@Test\n public void testNearFront()\n {\n String sName = \"near-front-listener\";\n generateEvents(sName);\n checkEvents(true, false);\n }", "public void addEvent(Event e){\r\n\t\tallEvents.add(e);\r\n\t}", "public void initEventsAndProperties() {\r\n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "private void storeEvent() throws IOException {\n\t\tMagical.getStorage().create(Storage.EVENTS_INDEX, event);\n\t\tMagical.addDisplayList(Storage.EVENTS_INDEX, event);\n\t}" ]
[ "0.84068066", "0.7618843", "0.72193736", "0.72193736", "0.72122425", "0.7198253", "0.7108609", "0.7079604", "0.70561117", "0.70500255", "0.6965316", "0.69364583", "0.6874804", "0.68366987", "0.67959374", "0.67610556", "0.6758045", "0.66980463", "0.65975595", "0.65975595", "0.65864867", "0.65729076", "0.65705013", "0.655781", "0.65537435", "0.65208685", "0.65140253", "0.6505797", "0.650535", "0.64976287", "0.64918333", "0.6484236", "0.64711833", "0.644358", "0.64360464", "0.64306474", "0.64201677", "0.64161724", "0.6410292", "0.6385219", "0.6385048", "0.63842183", "0.6375817", "0.63675344", "0.63675344", "0.6367371", "0.63511014", "0.63511014", "0.63477033", "0.63399523", "0.63289547", "0.6328009", "0.63260245", "0.6321673", "0.63152045", "0.62876725", "0.62876725", "0.62876725", "0.62876725", "0.62876725", "0.6286327", "0.62759286", "0.62720853", "0.62641084", "0.6263788", "0.62637746", "0.62605244", "0.6259252", "0.6227368", "0.62240607", "0.61975247", "0.617294", "0.6167358", "0.61669165", "0.61598665", "0.61532754", "0.61531705", "0.61513156", "0.61387163", "0.61321783", "0.6126824", "0.6124632", "0.61181885", "0.6117264", "0.6117264", "0.6117264", "0.61126995", "0.6107616", "0.6096591", "0.60866386", "0.60813236", "0.60762036", "0.6071528", "0.6069796", "0.6064031", "0.6062447", "0.6061455", "0.60528636", "0.6051187", "0.6041237", "0.6040059" ]
0.0
-1
//////////////////////////////// //////////////////////////////// Adding Info To Reservation.txt// //////////////////////////////// //////////////////////////////// First i surround the whole with with try.. catch block First in the try block i get the values of the checkin and checkout info i save them in strings then cast them in integers and finally add it to Reservation.txt then i close the file.
public void actionPerformed(ActionEvent e) { try { Object HotelID = cbHotelsOptions.getSelectedItem(); Hotel hotel; hotel = (Hotel) HotelID; long id = hotel.getUniqueId(); // System.out.println(id); String inmonth = txtInMonth.getText(); int inMonth = Integer.valueOf(inmonth); String inday = txtInDay.getText(); int inDay = Integer.parseInt(inday); String outmonth = txtOutMonth.getText(); int outMonth = Integer.valueOf(outmonth); String outday = txtOutDay.getText(); int OutDay = Integer.parseInt(outday); FileOutputStream fos = new FileOutputStream("Reservation.txt", true); PrintWriter pw = new PrintWriter(fos); /** * i then check the canBook method and according to the canBook method * i check if they can book, and if yes i add the reservation * otherwise it prints so the user may enter different values */ { if(h.canBook(new Reservation(id,inMonth, inDay, OutDay)) == true) { reservation.add(new Reservation (id,inMonth, inDay, outMonth, OutDay)); r = new Reservation (id,inMonth, inDay, OutDay); h.addResIfCanBook(new Reservation(id,inMonth, inDay, outMonth, OutDay)); reservationsModel.addElement(r); pw.println( id + " - " + inMonth + "-"+ inDay+ " - " + outMonth + "-" + OutDay); pw.close(); txtInMonth.setText(""); txtOutMonth.setText(""); txtInDay.setText(""); txtOutDay.setText(""); } else { JOptionPane.showMessageDialog(null, "These dates are already reserved" + "\nPlease try again!"); txtInMonth.setText(""); txtOutMonth.setText(""); txtInDay.setText(""); txtOutDay.setText(""); } } } /** * Then the catch Block checks for file not found exception */ catch (FileNotFoundException fnfe) { System.err.println("File not found."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeInfoTofile() throws IOException\n\t{\n\t\tFileWriter fstream = new FileWriter(\"booking.txt\",true);\n BufferedWriter out = new BufferedWriter(fstream); //buffer class name out\n out.append(\"name : \"+this.customer_name);\n out.newLine();\n out.append(hotelInfo.getName());// Writing all customer info\n out.newLine();\n out.append(\"country : \"+hotelInfo.getCountry());\n out.newLine();\n out.append(\"Hotel rating : \"+hotelInfo.getStar());\n out.newLine(); \n out.append(\"check-in date : \"+this.checkin_date);\n out.newLine();\n out.append(\"check-out date: \"+this.checkout_date);\n out.newLine();\n out.append(\"Total price : \"+this.totalPrice);\n out.newLine();\n out.close();\n System.out.println(\"Writting successful.\");\n\t}", "private void createEvent() \n\t{\n\t\t// When the user clicks on the add button\n\t\tbtnAdd.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//Adding Info To Reservation.txt//\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//////////////////////////////////\n\t\t\t\t/**\n\t\t\t\t * First i surround the whole with with try.. catch block\n\t\t\t\t * First in the try block \n\t\t\t\t * i get the values of the check-in and check-out info\n\t\t\t\t * i save them in strings \n\t\t\t\t * then cast them in integers \n\t\t\t\t * and finally add it to Reservation.txt\n\t\t\t\t * then i close the file.\n\t\t\t\t */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tObject HotelID = cbHotelsOptions.getSelectedItem();\n\t\t\t\t\tHotel hotel;\n\t\t\t\t\thotel = (Hotel) HotelID;\n\t\t\t\t\tlong id = hotel.getUniqueId();\n\t\t\t\t\t//\tSystem.out.println(id);\n\t\t\t\t\tString inmonth = txtInMonth.getText();\n\t\t\t\t\tint inMonth = Integer.valueOf(inmonth);\n\t\t\t\t\tString inday = txtInDay.getText();\n\t\t\t\t\tint inDay = Integer.parseInt(inday);\n\t\t\t\t\tString outmonth = txtOutMonth.getText();\n\t\t\t\t\tint outMonth = Integer.valueOf(outmonth);\n\t\t\t\t\tString outday = txtOutDay.getText();\n\t\t\t\t\tint OutDay = Integer.parseInt(outday);\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"Reservation.txt\", true);\n\t\t\t\t\tPrintWriter pw = new PrintWriter(fos);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * i then check the canBook method and according to the canBook method \n\t\t\t\t\t * i check if they can book, and if yes i add the reservation\n\t\t\t\t\t * otherwise it prints so the user may enter different values\n\t\t\t\t\t */\n\t\t\t\t\t{\n\t\t\t\t\t\tif(h.canBook(new Reservation(id,inMonth, inDay, OutDay)) == true) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservation.add(new Reservation (id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\tr = new Reservation (id,inMonth, inDay, OutDay);\n\t\t\t\t\t\t\th.addResIfCanBook(new Reservation(id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\treservationsModel.addElement(r);\n\t\t\t\t\t\t\tpw.println( id + \" - \" + inMonth + \"-\"+ inDay+ \" - \" + outMonth + \"-\" + OutDay);\n\t\t\t\t\t\t\tpw.close();\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"These dates are already reserved\"\n\t\t\t\t\t\t\t\t\t+ \"\\nPlease try again!\");\t\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\t/**\n\t\t\t\t * Then the catch Block checks for file not found exception\n\t\t\t\t */\n\t\t\t\tcatch (FileNotFoundException fnfe) \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// When the user selects a specific hotel \n\t\tcbHotelsOptions.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * first i save selected hotel in a hotel object\n\t\t\t\t * then i get reservations for the selected hotel\n\t\t\t\t * then i make all the labels and text fields visible \n\t\t\t\t */\n\t\t\t\tHotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You selected the \" + selectedHotel.getHotelName());\n\t\t\t\tselectedHotel.getReservations();\n\t\t\t\tlblCheckIn.setVisible(true);\n\t\t\t\tlblInMonth.setVisible(true);\n\t\t\t\ttxtInMonth.setVisible(true);\n\t\t\t\tlblInDay.setVisible(true);\n\t\t\t\ttxtInDay.setVisible(true);\n\t\t\t\tlblCheckout.setVisible(true);\n\t\t\t\tlblOutMonth.setVisible(true);\n\t\t\t\ttxtOutMonth.setVisible(true);\n\t\t\t\tlblOutDay.setVisible(true);\n\t\t\t\ttxtOutDay.setVisible(true);\n\t\t\t\tbtnAdd.setVisible(true);\n\t\t\t\treservationsModel.removeAllElements();\n\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t//Reading Info From Reservation.txt//\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/**\n\t\t\t\t * First i surround everything is a try.. catch blocks \n\t\t\t\t * then in the try block i declare the file input stream\n\t\t\t\t * then a scanner \n\t\t\t\t * then in a while loop i check if the file has next line \n\t\t\t\t * and a user a delimiter \"-\"\n\t\t\t\t * and it adds it to a new reservation\n\t\t\t\t * then it adds it to the ArrayList reservation\n\t\t\t\t * and it also adds it to the hotel object\n\t\t\t\t * then it checks if it can book that hotel\n\t\t\t\t * and if yes it adds it to the ReservationsModel\n\t\t\t\t */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFileInputStream fis = new FileInputStream(\"Reservation.txt\");\n\t\t\t\t\tScanner fscan = new Scanner (fis);\n\t\t\t\t\tint INMonth = 0;\n\t\t\t\t\tint INday = 0;\n\t\t\t\t\tint OUTmonth = 0;\n\t\t\t\t\tint OUTday = 0;\n\t\t\t\t\tlong iD = 0;\n\t\t\t\t\twhile (fscan.hasNextLine())\n\t\t\t\t\t{\n\t\t\t\t\t\tScanner ls = new Scanner (fscan.nextLine());\n\t\t\t\t\t\tls.useDelimiter(\"-\");\n\t\t\t\t\t\tiD = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINMonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tOUTmonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tOUTday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tr = new Reservation (iD,INMonth, INday, OUTmonth, OUTday);\n\t\t\t\t\t\th.addReservation(new Reservation(iD,INMonth, INday, OUTmonth, OUTday));\n\t\t\t\t\t\tHotel hotel = (Hotel) cbHotelsOptions.getSelectedItem();\n\t\t\t\t\t\tlong hotID = hotel.getUniqueId();\n\t\t\t\t\t\tif(iD == hotID)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservationsModel.addElement((new Reservation(iD, INMonth, INday, OUTday)));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * The catch block checks to make sure that the file is found\n\t\t\t\t */\n\t\t\t\tcatch( FileNotFoundException fnfe)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found!\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * This is the setRenderer to make the hotel appear in the hotelsOptions \n\t\t * just the hotel name.\n\t\t */\n\t\tcbHotelsOptions.setRenderer(new DefaultListCellRenderer() {\n\t\t\t@Override\n\t\t\tpublic Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)\n\t\t\t{\n\t\t\t\tComponent renderer = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\t\t\t\tif (renderer instanceof JLabel && value instanceof Hotel)\n\t\t\t\t{\n\t\t\t\t\t// Here value will be of the Type 'Hotel'\n\t\t\t\t\t((JLabel) renderer).setText(((Hotel) value).getHotelName());\n\t\t\t\t}\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * The setCallRenderer is for the reservation's list\n\t\t * it only prints the check-in and check-out info\n\t\t */\n\t\tlstReservation.setCellRenderer(new DefaultListCellRenderer() {\n\t\t\t@Override\n\t\t\tpublic Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)\n\t\t\t{\n\t\t\t\tComponent renderer = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\t\t\t\tif (renderer instanceof JLabel && value instanceof Reservation)\n\t\t\t\t{\n\t\t\t\t\t// Here value will be of the Type 'Reservation'\n\t\t\t\t\tHotel selectedHotel = (Hotel) cbHotelsOptions.getSelectedItem();\n\t\t\t\t\t((JLabel) renderer).setText(((Reservation) value).getFormattedDisplayString());\n\t\t\t\t}\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t});\t\n\t}", "public static void storeDataIntoFile() {\n\r\n try {\r\n FileWriter writer = new FileWriter(\"DetailsOfVaccination.txt.txt\");\r\n writer.write(\"Vaccination booth info - First names-\" + Arrays.toString(firstName)); //Write the patients first name\r\n writer.write(\"\\n Patient's surnames - \" + Arrays.toString(surname)); //Write the patients surname\r\n writer.write(\"\\n Number of remaining vaccines = \" + vaccines); //Write the remaining of vaccines in stock\r\n writer.close();\r\n System.out.println(\"Successfully stored data into the file.\");\r\n }\r\n catch (IOException e) { //Runs if there was an error in file\r\n System.out.println(\"An error occurred while storing data into the file. Please try again.\");\r\n e.printStackTrace(); //Tool used to handle exceptions and errors (gives the line number and class name where exception happened)\r\n }\r\n }", "private void saveLicenseFile(long renewalDate, boolean pBogus)\n{\n\n FileOutputStream fileOutputStream = null;\n OutputStreamWriter outputStreamWriter = null;\n BufferedWriter out = null;\n\n try{\n\n fileOutputStream = new FileOutputStream(licenseFilename);\n outputStreamWriter = new OutputStreamWriter(fileOutputStream);\n out = new BufferedWriter(outputStreamWriter);\n\n //if the number is to purposely invalid, add junk to the encoded value\n int bogusModifier = 0;\n if (pBogus) {bogusModifier = 249872349;}\n\n //save the renewal date followed by the same value encoded\n\n out.write(\"\" + renewalDate); out.newLine();\n out.write(\"\" + encodeDecode(renewalDate + bogusModifier));\n out.newLine();\n\n }\n catch(IOException e){\n logSevere(e.getMessage() + \" - Error: 274\");\n }\n finally{\n\n try{if (out != null) {out.close();}}\n catch(IOException e){}\n try{if (outputStreamWriter != null) {outputStreamWriter.close();}}\n catch(IOException e){}\n try{if (fileOutputStream != null) {fileOutputStream.close();}}\n catch(IOException e){}\n }\n\n}", "public static void saveData() throws FileNotFoundException {\t\n\t\t\t\n\tScanner inputStream = new Scanner(new File(\"bookings.dat\"));\n\t\ttry {\n\t\t\t\n\t\t\tBookingList.surName = inputStream.nextLine();\n\t\t\tBookingList.tableNo = inputStream.nextLine();\n\t\t\tBookingList.sittingTime = inputStream.nextLine();\n\t\t\tBookingList.partyOf = inputStream.nextLine();\n\t\t\t\t\n\t\t\tBooking<?> bookingData = new Booking<Object>(null, surName, tableNo, sittingTime, partyOf);\n\t\t\tb1.insert(bookingData);\n\t\t\t\t\n\t\t}finally {\n\t\t\tinputStream.close();\n\t\t}\n\t\t\t\n\t}", "public void restock(String fileName) {\n\t\tString timeFormat = \"dd'/'MM'/'yyyy' 'hh:mm:ss a\";\n\t\tFile log = new File(\"Log.txt\");\n\t\tLocalDateTime dateTime = LocalDateTime.now();\n\t\t\n\t\ttry(PrintWriter tracker = new PrintWriter(new FileOutputStream(log,true))){\n\t\t\ttracker.println(dateTime.format(DateTimeFormatter.ofPattern(timeFormat)) + \" \" + \"Restocking Vending Machine\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Audit error: log not found\");\n\t\t}\n\t\t\n\t\t/*String timeFormat2 = \"dd'_'MM'_'yyyy'-'hh_mm_ss_a\";\n\t\tString time = dateTime.format(DateTimeFormatter.ofPattern(timeFormat2));\n\t\tthis.salesReportFileName = \"SalesReport:\" + time + \".txt\";\n\t\tFile salesReport = new File(salesReportFileName);*/\n\t\t\n\t\t\n\t\tSimpleDateFormat dt = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\"); \n\t\tDate date = new Date();\n\t\tsalesReportFileName = \"SalesReport-\" + dt.format(date) + \".txt\";\n\t\tFile salesReport = new File(salesReportFileName);\n\t\t\n\t\ttry {\n\t\t\tsalesReport.createNewFile();\n\t\t} catch (IOException e1) {\n\t\t}\n\t\t\n\t\tFile inputFile = new File(fileName);\n\t\t\n\t\ttry(Scanner fileScanner = new Scanner(inputFile)){\n\t\t\n\t\twhile (fileScanner.hasNextLine()) {\n\t\t\tString line = fileScanner.nextLine();\n\t\t\tString [] lineArr = line.split(\"\\\\|\");\n\t\t\t\n\t\t\tString slotLocation = lineArr[0];\n\t\t\tString productName = lineArr[1];\n\t\t\tBigDecimal price = new BigDecimal(lineArr[2]);\n\t\t\tString category = lineArr[3];\n\t\t\tif (category.contentEquals(\"Drink\")) {\n\t\t\t\t\n\t\t\t\tBeverage product = new Beverage(slotLocation, productName, price);\n\t\t\t\tsellables.put(slotLocation, product);\n\t\t\t\torderedSellables.add(product);\n\t\t\t\tsales.put(productName, 0);\n\t\t\t}\n\t\t\t\n\t\t\tif (category.contentEquals(\"Chip\")) {\n\t\t\t\t\n\t\t\t\tChips product = new Chips(slotLocation, productName, price);\n\t\t\t\tsellables.put(slotLocation,product);\n\t\t\t\torderedSellables.add(product);\n\t\t\t\tsales.put(productName, 0);\n\t\t\t}\n\t\t\tif (category.contentEquals(\"Gum\")) {\n\t\t\t\t\n\t\t\t\tGum product = new Gum(slotLocation, productName, price);\n\t\t\t\tsellables.put(slotLocation, product);\n\t\t\t\torderedSellables.add(product);\n\t\t\t\tsales.put(productName, 0);\n\t\t\t}\n\t\t\t\n\t\t\tif (category.contentEquals(\"Candy\")) {\n\t\t\t\t\n\t\t\t\tCandy product = new Candy(slotLocation, productName, price);\n\t\t\t\tsellables.put(slotLocation, product);\n\t\t\t\torderedSellables.add(product);\n\t\t\t\tsales.put(productName, 0);\n\t\t\t}\n\t\t}\n\t} catch (FileNotFoundException e) {\n\t\t\n\t\tSystem.out.println(\"File not found\");\n\t\tSystem.exit(1);\n\t}\n\n}", "public void saveFile(String theFileLocation){\r\n try {\r\n File fileArchive = new File(theFileLocation);\r\n if (!fileArchive.exists()){ //if there is no file then it creates a new file\r\n fileArchive.createNewFile();\r\n }\r\n FileWriter fW = new FileWriter(theFileLocation);\r\n BufferedWriter bW = new BufferedWriter(fW);\r\n \r\n for (int p = 0; p < buckets.length; p++){\r\n for (int i = 0; i < buckets[p].size(); i++){\r\n EmployeeInfo theEmployee = buckets[p].get(i);\r\n \r\n if (theEmployee instanceof FTE){\r\n bW.write(\"FTE\");\r\n bW.write(\"*\");\r\n } else {\r\n if (theEmployee instanceof PTE){\r\n bW.write(\"PTE\");\r\n bW.write(\"*\");\r\n } \r\n }\r\n // general for both\r\n bW.write(Integer.toString(theEmployee.getEmpNum()));;\r\n bW.write(\"*\");\r\n bW.write(theEmployee.getFirstName());\r\n bW.write(\"*\");\r\n bW.write(theEmployee.getLastName());\r\n bW.write(\"*\");\r\n bW.write(Integer.toString(theEmployee.getGender()));\r\n bW.write(\"*\");\r\n bW.write(Integer.toString(theEmployee.getWorkLoc()));\r\n bW.write(\"*\");\r\n bW.write(Integer.toString(theEmployee.getEmpRole()));\r\n bW.write(\"*\");\r\n bW.write(Double.toString(theEmployee.getDeductRate()));\r\n bW.write(\"*\");\r\n \r\n if (theEmployee instanceof FTE){\r\n FTE theFTE = (FTE) theEmployee;\r\n bW.write(Double.toString(theFTE.yearlySalary));\r\n\r\n } else {\r\n if (theEmployee instanceof PTE){\r\n PTE thePTE = (PTE) theEmployee;\r\n bW.write(Double.toString(thePTE.hourlyWage));\r\n bW.write(\"*\");\r\n bW.write(Double.toString(thePTE.hoursPerWeek));\r\n bW.write(\"*\");\r\n bW.write(Double.toString(thePTE.weeksPerYear));\r\n } \r\n }\r\n \r\n bW.newLine(); \r\n \r\n }\r\n \r\n }\r\n bW.write(\"$$$$$$$\");\r\n bW.close();\r\n }\r\n \r\n catch (IOException IOE){\r\n IOE.printStackTrace();\r\n }\r\n }", "public void writeTicketToFile(){\n\t\ttry{\n\t\t\tString fileName = \"flight\";\n\t\t\tfileName += Integer.toString(flightNum);\n\t\t\tfileName += \"ticket\";\n\t\t\tfileName += Integer.toString(ticketNum);\n\t\t\tfileName += \".txt\";\n\t\t\tFileWriter fw = new FileWriter(fileName, false);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\t\n\n\t\t\tbw.write(\"ENSF Airline Ticket:\\n\\n\");\n\t\t\tbw.write(\"Passenger first name: \" + pass.firstName + \"\\n\");\n\t\t\tbw.write(\"Passenger last name: \" + pass.lastName + \"\\n\");\n\t\t\tbw.write(\"Passenger date of birth: \" + pass.dOB + \"\\n\\n\");\n\t\t\tbw.write(\"Flight number: \" + flightNum + \"\\n\");\n\t\t\tbw.write(\"Flight origin: \" + source + \"\\n\");\n\t\t\tbw.write(\"Flight destination: \" + dest + \"\\n\");\n\t\t\tbw.write(\"Flight date (YYYYMMDD): \" + date + \"\\n\");\n\t\t\tbw.write(\"Flight time (HH:MM): \" + time + \"\\n\");\n\t\t\tbw.write(\"Flight duration: \" + duration +\" hours\");\n\t\t\t\n\t\t\tbw.close();\n\t\t}\n\t\tcatch(IOException ex){\n\t\t\tSystem.out.println(\"Error writing to output file 1\\n\");\n\t\t}\n\t}", "public static void Store(Room[] hotel) {\n try {\n FileWriter filewriter = new FileWriter(\"Output.txt\");\n filewriter.write(\"|--------------------------HOTEL DATA---------------------------|\" + \"\\n\");\n filewriter.write(\"\\n\");\n\n for(int x = 0; x < 8; x++) {\n if (hotel[x].equals(\"Empty\")) {\n filewriter.write(\"---------------------------------------------------------------\" + \"\\n\");\n filewriter.write(\"Room number \" + (x + 1) + \" is empty \\n\");\n\n }else{\n filewriter.write(\"---------------------------------------------------------------\"+ \"\\n\");\n filewriter.write(\"Room number \" + (x + 1) + \" is occupied by \" + hotel[x].getName() + \"\\n\");\n filewriter.write(\"Guest's Full Name: \" + firstName[x].getFirstName() + \" \" + surName[x].getSurName() +\"\\n\");\n filewriter.write(\"Number of Guests in the room: \" + guestNumber[x].getGuestNum() + \" Credit card number: \" + creditNumber[x].getCreditNum()+ \"\\n\");\n }\n filewriter.write(\"---------------------------------------------------------------\" + \"\\n\");\n filewriter.write(\"\\n\");\n }\n filewriter.close();\n System.out.println(\"Data has been successfully Stored in a file.\");\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "public void dump(PhoneBill bill) throws IOException{\n String customer = bill.getCustomer();\n File file = new File(\"/Users/srubey/PortlandStateJavaSummer2020/phonebill/src/main/resources/edu/pdx/cs410J/scrubey/\"\n + Project2.getFileName());\n FileWriter writer = null;\n\n try{\n //**if file not yet created\n writer = new FileWriter(file);\n\n writer.write(\"Customer name: \" + bill.getCustomer() + \"\\n\\n\");\n writer.write(\"Caller# Callee#\\t\\t Start Date\\tStart Time\\tEnd Date\\tEnd Time\\n\");\n\n //iterate through each phone call, extracting and adding data to file\n for(int i = 0; i < bill.getPhoneCalls().size(); ++i) {\n String caller = bill.getPhoneCalls().get(i).callerNumber;\n String callee = bill.getPhoneCalls().get(i).calleeNumber;\n String sd = bill.getPhoneCalls().get(i).startDate;\n String st = bill.getPhoneCalls().get(i).startTime;\n String ed = bill.getPhoneCalls().get(i).endDate;\n String et = bill.getPhoneCalls().get(i).endTime;\n\n writer.write(caller + \" \" + callee + \" \" + sd);\n\n //formatting\n if(sd.length() < 10)\n writer.write(\"\\t\");\n\n writer.write(\"\\t\" + st + \"\\t\\t\" + ed + \"\\t\" + et + \"\\n\");\n }\n\n file.createNewFile();\n }catch(IOException e){\n System.out.print(\"\\nText File error\");\n }finally{\n writer.close();\n }\n }", "public void writeToBookingListFile()\r\n {\r\n\ttry(ObjectOutputStream toBookingListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/bookinglist.dta\")))\r\n\t{\r\n toBookingListFile.writeObject(bookingList);\r\n bookingList.saveStaticBookingRunNr(toBookingListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Booking objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public void addShop(String fileName)\r\n {\r\n //read file \r\n try\r\n {\r\n //file reader\r\n FileReader fin = new FileReader(fileName);\r\n //create a new scanner\r\n Scanner graphFile = new Scanner(fin);\r\n\r\n //String variable \r\n String line;\r\n //while the file has next line\r\n while(graphFile.hasNextLine())\r\n {\r\n\r\n //get the next line in the file\r\n line=graphFile.nextLine();\r\n\r\n //create a new StringTokenizer at that line\r\n StringTokenizer st = new StringTokenizer(line);\r\n //read through that line\r\n try\r\n {\r\n //if there is only 1 string in this line\r\n if(st.countTokens()==1)\r\n {\r\n // pick up this String as the number of coffeeshop in total \r\n int numOfShops = Integer.parseInt(st.nextToken());\r\n //continue to next iteration of the loop \r\n continue;\r\n }\r\n\r\n //if more than 1 String in the line\r\n //take the first String and store as the id of coffeeShop\r\n String id = (\"S\"+Integer.parseInt(st.nextToken()));\r\n //take the next String which contains the X coordinate of the coffeeshop\r\n String coordinateX = st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st1 = new StringTokenizer(coordinateX,\"(,\");\r\n //take the first String and store it as the x coordinate of this coffeeshop \r\n int x= Integer.parseInt(st1.nextToken());\r\n //take the next String which contains the Y coordinate of the coffeeshop\r\n String coordinateY = st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st2 = new StringTokenizer(coordinateY,\"):\");\r\n //take the first String and store it as the y coordinate of this coffeeshop \r\n int y= Integer.parseInt(st2.nextToken());\r\n //create a new Queue implement by linkedlist to store the order of the warehouse\r\n Queue<Integer> cargoList= new LinkedList<Integer> ();\r\n //while the line has more Strings inside it \r\n while(st.hasMoreTokens())\r\n {\r\n //take the next String in the line and store it as cargo\r\n String cargo =st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st3 = new StringTokenizer(cargo,\",\");\r\n //take the first String and store it as the order of this coffeeshop \r\n Integer order =Integer.parseInt(st3.nextToken());\r\n\r\n //add the order into the cargo list\r\n cargoList.add(order);\r\n \r\n\r\n }\r\n\r\n //add the coffeeshop into the graph \r\n town.addCoffeeShop(x,y,id, cargoList);\r\n\r\n\r\n\r\n }\r\n //catch exceptions\r\n catch(NumberFormatException e )\r\n { System.err.println( \"Skipping bad line \" + line ); }\r\n\r\n }\r\n\r\n }\r\n //catch exceptions \r\n catch( IOException e )\r\n { System.err.println( e ); }\r\n }", "private static void saveIntoFile() throws IOException {\n\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\");\n\t\tString fileName = \"./ipmi.\" + format.format(new Date()) + \".log\";\n\n\t\tBasicConsumptionList file = new BasicConsumptionList();\n\t\tlogger.debug(\"file:\" + fileName);\n\t\tfile.setWriter(new FileWriter(fileName));\n\n\t\tSystem.err.println(ipmi.execute(Command.IPMI_SENSOR_LIST));\n\n\t\twhile (true) {\n\t\t\tDouble watts = ipmi.getWatt();\n\t\t\tfile.addData(System.currentTimeMillis(), watts);\n\t\t\tfile.commit();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.trace(\"\", e);\n\t\t\t}\n\t\t}\n\t}", "private void updateFile() {\n\t\tPrintWriter outfile;\n\t\ttry {\n\t\t\toutfile = new PrintWriter(new BufferedWriter(new FileWriter(\"stats.txt\")));\n\t\t\toutfile.println(\"15\"); // this is the number\n\t\t\tfor (Integer i : storeInfo) {\n\t\t\t\toutfile.println(i); // we overwrite the existing files\n\t\t\t}\n\t\t\tfor (String s : charBought) {\n\t\t\t\toutfile.println(s); // overwrite the character\n\t\t\t}\n\t\t\tfor (String s : miscBought) {\n\t\t\t\toutfile.println(s);\n\t\t\t}\n\t\t\toutfile.close();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}", "public void createFiles() {\r\n try {\r\n FileWriter file = new FileWriter(registerNumber + \".txt\");\r\n file.write(\"Name : \" + name + \"\\n\");\r\n file.write(\"Surname : \" + surname + \"\\n\");\r\n file.write(\"Registration Number : \" + registerNumber + \"\\n\");\r\n file.write(\"Position : \" + position + \"\\n\");\r\n file.write(\"Year of Start : \" + yearOfStart + \"\\n\");\r\n file.write(\"Total Salary : \" + Math.round(totalSalary) + \".00 TL\" +\"\\n\");\r\n file.close();\r\n }\r\n catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) throws IOException {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Main Menu\");\r\n\t\tSystem.out.println(\"1. Add an Employee\");\r\n\t\tSystem.out.println(\"2. Display All\");\r\n\t\tSystem.out.println(\"3. Exit\");\r\n\t\tFile f= new File(\"EmployeeDetails.txt\");\r\n\t\tint choice=0;\r\n\t\tdo\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter your choice: \");\r\n\t\t\tchoice=s.nextInt();\r\n\t\t\tswitch(choice)\r\n\t\t\t{\r\n\t\t\tcase 1:\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Enter Employee ID: \");\r\n\t\t\t\tint emp_id=s.nextInt();\r\n\t\t\t\tSystem.out.println(\"Enter Employee Name: \");\r\n\t\t\t\tString emp_name=s.next();\r\n\t\t\t\tSystem.out.println(\"Enter Employee age: \");\r\n\t\t\t\tint emp_age=s.nextInt();\r\n\t\t\t\tSystem.out.println(\"Enter Employee Salary:\");\r\n\t\t\t\tdouble emp_salary=s.nextDouble();\r\n\t\t\t\tString str=emp_id+\" \"+emp_name+\" \"+emp_age+\" \"+emp_salary;\r\n\t\t\t\tFileWriter fwrite=new FileWriter(f.getAbsoluteFile(),true);\r\n\t\t\t\tfor(int i=0;i<str.length();i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfwrite.write(str.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t\tfwrite.close();\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tScanner fread= new Scanner(f);\r\n\t\t\t\tSystem.out.println(\"-----Report-----\");\r\n\t\t\t\twhile(fread.hasNext())\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(fread.nextLine());\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"-----End of Report-----\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tSystem.out.println(\"Exiting the system\");\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"Invalid input\");\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}while(choice<=3);\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tpublic void Write_text(String CustomerCode, String Device, String Lot, String CP, File DataSorce,String FileName)\r\n\t\t\tthrows IOException {\n\t\tFile[] Filelist=DataSorce.listFiles();\r\n\t\tfor (int k = 0; k < Filelist.length; k++) {\t\t\t\t\t\r\n\t\t\tparseRawdata parseRawdata=new parseRawdata(Filelist[k]);\r\n\t\t\tLinkedHashMap<String, String> properties=parseRawdata.getProperties();\r\n\t\t\t\r\n\t\t\tString Wafer_ID_R=properties.get(\"Wafer ID\");\r\n\t\t\tString waferid=properties.get(\"Wafer ID\");\r\n\t\t\tString[][] MapCell_R=parseRawdata.getAllDiesDimensionalArray();\r\n\t\t\tString Flat_R=null;\r\n\t\t\tString notch=properties.get(\"Notch\");\r\n\t\t\tif (notch.equals(\"0-Degree\")) {\r\n\t\t\t\tFlat_R=\"Up\";\r\n\t\t\t}else if (notch.equals(\"90-Degree\")) {\r\n\t\t\t\tFlat_R=\"Right\";\r\n\t\t\t}else if (notch.equals(\"180-Degree\")) {\r\n\t\t\t\tFlat_R=\"Down\";\r\n\t\t\t}else {\r\n\t\t\t\tFlat_R=\"Left\";\r\n\t\t\t}\r\n\t\t\tInteger PassDie_R=Integer.parseInt(properties.get(\"Pass Die\"));\t\r\n\t\t\tInteger RightID_R=Integer.valueOf(properties.get(\"RightID\"));\r\n\t\t\tInteger Col_R=(Integer.parseInt(properties.get(\"Map Cols\"))) ;\r\n\t\t\tInteger Row_R=(Integer.parseInt(properties.get(\"Map Rows\")));\r\n\t\t\t\r\n\t\t\tMapCell_R=TurnNighteenDegree.turnNegativeNighteen(MapCell_R, Row_R, Col_R);\t\t\r\n\t\t\tInteger temp=Row_R;\r\n\t\t\tRow_R=Col_R;\r\n\t\t\tCol_R=temp;\r\n\t\t\t\r\n\t\t\tString FailDie_R=properties.get(\"Fail Die\");\r\n\t\t\tString FinalID=RightID_R.toString();\r\n\t\t\tString TestStartTime_R=properties.get(\"Test Start Time\");\r\n\t\t\tString Wafer_Load_Time_R=properties.get(\"Test Start Time\");\r\n\t\t\tTreeMap<Integer, Integer> Bin_Summary_R=parseRawdata.getBinSummary();\r\n\t\t\tString OPerater_R=properties.get(\"Operator\");\r\n\t\t\tString Yeild_R=properties.get(\"Wafer Yield\");\r\n\t\t\tString TestEndTime_R=properties.get(\"Test End Time\");\r\n\t\t\tInteger gross_die=Integer.parseInt(properties.get(\"Gross Die\"));\r\n\t\t\tString waferSize_R=properties.get(\"WF_Size\");\r\n\t\t\tString slotId=properties.get(\"Slot\");\r\n\t\t\tTextReportModel9TurnN90 model1=new TextReportModel9TurnN90();\r\n\t\t\tString VERSION=\"NA\";\r\n\t\t\tif (RightID_R<10) {\r\n\t\t\t\tFinalID=\"0\"+RightID_R.toString();\r\n\t\t\t}\r\n\t\t\tHashMap<String, String> NameMap=model1.InitMap(Lot, FinalID, CP, Wafer_Load_Time_R, Device, Wafer_ID_R, VERSION);\r\n\t\t\tSet<String> keyset1=NameMap.keySet();\r\n\t\t\tString FinalName=FileName;\r\n\t\t\tfor (String key : keyset1) {\r\n\t\t\t\tif (FinalName.contains(key)) {\r\n\t\t\t\t\tFinalName=FinalName.replace(key, NameMap.get(key));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tFile Result_Text=new File(reportBath+CustomerCode+\"/\"+Device+\"/\"+Lot+\"/\"+CP+\"/\"+FinalName);\r\n\r\n\t\t\tPrintWriter out=null;\r\n\t\t\ttry {\r\n\t\t\t\tout=new PrintWriter(new FileWriter(Result_Text));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tout.print(\" \");\r\n\t\t\tfor(int i = 1;i<Col_R;i++)\r\n\t\t\t{\r\n\t\t\t\tif (i<10) {\r\n\t\t\t\t\tout.print(\" 0\"+i);\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tout.print(\" \"+i);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tout.print(\" \");\r\n\t\t\tfor(int i = 1;i<Col_R;i++)\r\n\t\t\t{\r\n\t\t\t\tout.print(\"++-\");\r\n\t\t\t}\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tfor (int i = 0; i < Row_R; i++) {\r\n\t\t\t\tif (i<10) {\r\n\t\t\t\t\tout.print(\"00\"+i+\"|\");\r\n\t\t\t\t}else if (i>9&&i<100) {\r\n\t\t\t\t\tout.print(\"0\"+i+\"|\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tout.print(i+\"|\");\r\n\t\t\t\t}\r\n\t\t\t\tfor (int j = 0; j < Col_R; j++) {\r\n\t\t\t\t\tif (MapCell_R[i][j]==null) {\r\n\t\t\t\t\t\tout.print(String.format(\"%3s\",\" \"));\r\n\t\t\t\t\t}else if (MapCell_R[i][j].equals(\"S\")||MapCell_R[i][j].equals(\"M\")) {\r\n\t\t\t\t\t\tout.print(String.format(\"%3s\",\" \"));\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tif (Integer.valueOf(MapCell_R[i][j])>9) {\r\n\t\t\t\t\t\t\tout.print(String.format(\"%3s\", MapCell_R[i][j]));\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tout.print(String.format(\"%3s\", \"0\"+MapCell_R[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\tout.print(\"\\r\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tout.print(\"============ Wafer Information () ===========\"+\"\\r\\n\");\r\n\t\t\tout.print(\" Device: \"+Device+\"\\r\\n\");\r\n\t\t\tout.print(\" Lot NO: \"+Lot+\"\\r\\n\");\r\n\t\t\tout.print(\" Slot No: \"+(slotId.length()==1?\"0\"+slotId:slotId)+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer ID: \"+waferid+\"\\r\\n\");\r\n\t\t\tout.print(\" Operater: \"+OPerater_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Size: \"+waferSize_R+\" Inch\"+\"\\r\\n\");\r\n\t\t\tout.print(\" Flat Dir: \"+Flat_R+\"\\r\\n\");\r\n//\t\t\tif (Flat_R.equals(\"LEFT\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+270+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n//\t\t\tif (Flat_R.equals(\"RIGHT\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+90+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n//\t\t\tif (Flat_R.equals(\"UP\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+0+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n//\t\t\tif (Flat_R.equals(\"DOWN\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+180+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n\t\t\tout.print(\" Wafer Test Start Time: \"+TestStartTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Test Finish Time: \"+TestEndTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Load Time: \"+TestStartTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Unload Time: \"+TestEndTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Total test die: \"+gross_die+\"\\r\\n\");\r\n\t\t\tout.print(\" Pass Die: \"+PassDie_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Fail Die: \"+FailDie_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Yield: \"+Yeild_R+\"\\r\\n\");\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tout.print(\" Bin (0~63) Data Deatil Summary\"+\"\\r\\n\");\r\n\t\t\tout.print(\"=======================================================================\"+\"\\r\\n\");\r\n\t\t \r\n\t\t\tString Bin_Sum=\"\";\r\n\t\t\tString Bin_yield_percent=\"\";\r\n\t\t\tfor (int i = 0; i < 64; i++) {\r\n\t\t\t\tString Every_Bininfor=\"\";\r\n\t\t\t\tInteger Sum=0;\r\n\t\t\t\tif (Bin_Summary_R.containsKey(i+1)) {\r\n\t\t\t\t\tSum=Bin_Summary_R.get(i+1);\r\n\t\t\t\t}\r\n\t\t\t\tfor(int j=0;j<5-(\"\"+Sum).length();j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEvery_Bininfor+=\"0\";\r\n\t\t\t\t}\r\n\t\t\t\tBin_Sum+=Every_Bininfor+Sum+\" | \";\r\n\t\t\t\tString percent=String.format(\"%.2f\", ((double)Sum*100/gross_die));\r\n\t\t\t\tif (percent.length()!=5) {\t\t\r\n\t\t\t\t\tpercent=\"0\"+percent;\r\n\t\t\t\t}\r\n\t\t\t\tBin_yield_percent+= percent+\"% | \";\r\n\t\t\t\t\r\n\t\t\t\tif ((i+1)>9) {\r\n\t\t\t\t\tout.print(\"Bin \"+(i+1)+\" | \");\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tout.print(\"Bin \"+(i+1)+\" | \");\r\n\t\t\t\t}\r\n\t\t\t\tif ((i+1)%8==0) {\r\n\t\t\t\r\n\t\t\t\t\tout.print(\"\\r\\n\");\t\t\r\n\t\t\t\t\tout.print(Bin_Sum);\r\n\t\t\t\t\tBin_Sum=\"\";\t\r\n\t\t\t\t\tout.print(\"\\r\\n\");\r\n\t\t\t\t\tout.print(Bin_yield_percent);\r\n\t\t\t\t\tBin_yield_percent=\"\";\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\tif ((i+1)%8==0) {\r\n\t\t\t\t\tout.print(\"\\r\\n\");\r\n\t\t\t\t\tout.print(\"=======================================================================\"+\"\\r\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t\tout.flush();\r\n\t\t\tout.close();\r\n\t\t\tFTP_Release(CustomerCode, Device, Lot, CP, Result_Text);\r\n\t\t}\r\n\r\n\t}", "public void writeToHotelRoomListFile()\r\n {\r\n\ttry(ObjectOutputStream toHotelRoomListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/hotelroomlist.dta\")))\r\n\t{\r\n toHotelRoomListFile.writeObject(hotelRoomList);\r\n hotelRoomList.saveStaticPrice(toHotelRoomListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Hotelrom objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public void acomodaBloques() throws IOException {\n try { // checa si encontro el archivo\n // se lee el archivo\n bfrEntrada = new BufferedReader(new FileReader(\"coordenadas.txt\"));\n } catch (FileNotFoundException fnfEx) { // si no lo encuentra\n // Se crea el archivo con los datos iniciales del juego\n PrintWriter prwSalida\n = new PrintWriter(new FileWriter(\"coordenadas.txt\"));\n prwSalida.println(\"29,174\");\n prwSalida.println(\"62,182\");\n prwSalida.println(\"95,70\");\n prwSalida.println(\"95,127\");\n prwSalida.println(\"95,184\");\n prwSalida.println(\"128,72\");\n prwSalida.println(\"128,129\");\n prwSalida.println(\"128,186\");\n prwSalida.println(\"161,76\");\n prwSalida.println(\"161,131\");\n prwSalida.println(\"161,188\");\n prwSalida.println(\"194,78\");\n prwSalida.println(\"194,133\");\n prwSalida.println(\"194,190\");\n prwSalida.println(\"227,78\");\n prwSalida.println(\"227,133\");\n prwSalida.println(\"227,190\");\n prwSalida.println(\"260,76\");\n prwSalida.println(\"260,131\");\n prwSalida.println(\"260,188\");\n prwSalida.println(\"293,72\");\n prwSalida.println(\"293,129\");\n prwSalida.println(\"293,186\");\n prwSalida.println(\"326,70\");\n prwSalida.println(\"326,127\");\n prwSalida.println(\"326,184\");\n prwSalida.println(\"359,182\");\n prwSalida.println(\"392,174\");\n prwSalida.println(\"95,267\");\n prwSalida.println(\"128,267\");\n prwSalida.println(\"161,267\");\n prwSalida.println(\"194,286\");\n prwSalida.println(\"227,286\");\n prwSalida.println(\"260,267\");\n prwSalida.println(\"293,267\");\n prwSalida.println(\"326,267\");\n prwSalida.println(\"100,324\");\n prwSalida.println(\"133,324\");\n prwSalida.println(\"166,324\");\n prwSalida.println(\"255,324\");\n prwSalida.println(\"288,324\");\n prwSalida.println(\"321,324\");\n prwSalida.println(\"111,440\");\n prwSalida.println(\"144,411\");\n prwSalida.println(\"177,411\");\n prwSalida.println(\"210,425\");\n prwSalida.println(\"243,411\");\n prwSalida.println(\"276,411\");\n prwSalida.println(\"309,440\");\n prwSalida.println(\"144,468\");\n prwSalida.println(\"177,497\");\n prwSalida.println(\"210,516\");\n prwSalida.println(\"243,497\");\n prwSalida.println(\"276,468\");\n prwSalida.close();\n // se lee el archivo\n bfrEntrada = new BufferedReader(new FileReader(\"coordenadas.txt\"));\n }\n // se llena la lista de bloques\n for (int iI = 0; iI < iNumBloques; iI++) {\n // se carga la imagen del alien corredor\n URL urlImagenCaminador\n = this.getClass().getResource(\"barrilBB.png\");\n // se crea un alien corredor\n Objeto objBloque = new Objeto(0, 0,\n Toolkit.getDefaultToolkit().getImage(urlImagenCaminador));\n\n // Se lee la primera linea (vidas)\n String sDato = bfrEntrada.readLine();\n // se dividen los datos en un arreglo\n strArrDatos = sDato.split(\",\");\n // se asigna el primer dato a la posX\n objBloque.setX((Integer.parseInt(strArrDatos[0])));\n // se asigna el segundo dato a la posX\n objBloque.setY((Integer.parseInt(strArrDatos[1])));\n // Se agrega al caminador a la lista de corredores\n lnkBloques.add(objBloque);\n }\n //Se le agrega poderes a bloques al azar\n //Se le agrega poderes a bloques al azar\n for(int iI=0; iI<lnkBloques.size(); iI++) {\n if(1 == ((int) (1 + Math.random() * 2))) {\n Objeto objPoderosos = (Objeto) lnkBloques.get((int) \n (1 + Math.random() * 50));\n objPoderosos.setPoder((int) (1 + Math.random() * 3));\n }\n \n }\n }", "public void saveInfoToFile(File file) {\n PrintWriter printFile = null;\n try {\n printFile = new PrintWriter(file);\n } catch (FileNotFoundException e) {\n e.getStackTrace();\n return;\n }\n ArrayList<Passenger> reservedPas = airplane.getAllReservedPas(false);\n reservedPas.addAll(airplane.getAllReservedPas(true));\n\n for (Passenger k : reservedPas) {\n String info = getReservedPassInfo(k);\n printFile.println(info);\n }\n printFile.close();\n }", "private static void writeToSaleItems() throws IOException {\n FileWriter write = new FileWriter(path4, false);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Product> stock = Inventory.getStock();\n for (int i = 0; i < stock.size(); i++) {\n Product product = (Product) stock.get(i);\n if (product.price.isOnSale()) {\n int UPC = product.getUpc();\n float price = product.price.getSalePrice();\n String period = product.price.getSalePeriod();\n\n textLine = UPC + \" \" + price + \" \" + period;\n\n print_line.printf(\"%s\" + \"%n\", textLine);\n\n }\n }\n print_line.close();\n\n }", "void writeToFile () throws IOException{\n FileWriter deleteFile = new FileWriter(\"Resolved Ticket of \" + this.resovedDate + \".txt\");\n BufferedWriter FileDeleted = new BufferedWriter(deleteFile);\n\n FileDeleted.write(\"Resolution: \" + this.Resolution + \" ; Date: \" + this.resovedDate);\n FileDeleted.close();\n }", "public static void main(String[] args) throws Exception{\n\tElectricBillTest myBill = new ElectricBillTest(\"customers.txt\"); \r\n\t\r\n\tint type;\r\n\tint custID;\r\n\tString fName,lName;\r\n\tint noOfKWH;\r\n\tint month;\r\n\tDecimalFormat df=new DecimalFormat(\"#.##\");\r\n \r\n\t//Obtain user input with proper validation\r\n\tdo {\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tcustID=Integer.parseInt(JOptionPane.showInputDialog(null, \"Enter the Customer ID: \"));\r\n\t\t\t\tif(!String.valueOf(custID).matches(\"^[0-9]{8}$\"))\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the correct Customer ID(8 digits)! Ex:12345678\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\ttype=Integer.parseInt(JOptionPane.showInputDialog(null,\"Enter the type of Customer(0-Residential,1-Commercial): \"));\r\n\t\t\t\tif(!String.valueOf(type).matches(\"^[0-1]{1}$\"))\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the correct type of Customer(0-Residential,1-Commercial)\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tfName=JOptionPane.showInputDialog(null, \"Enter the first name:\");\r\n\t\t\t\tif(fName.isEmpty())\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the first name! Ex:Anand\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tlName=JOptionPane.showInputDialog(null, \"Enter the last name:\");\r\n\t\t\t\tif(lName.isEmpty())\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the last name! Ex:Sudhan\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tnoOfKWH=Integer.parseInt(JOptionPane.showInputDialog(null,\"Enter the value of energy used(in KWh): \"));\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the correct value of energy used(in KWh): Ex:500\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tmonth=Integer.parseInt(JOptionPane.showInputDialog(null,\"Enter the month for which billing is to be generated: \"));\r\n\t\t\t\tif(!(month>=1 && month<=12))\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the correct month! Ex:3 for March\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t//Add Customer details\t\t\t\r\n\t\tmyBill.bill.addCustomer(custID, fName, lName, type, noOfKWH, month,0);\r\n\t\t\r\n\t\t\t\t\r\n\t}while(Customer.getNumberOfCustomers()!=4);\r\n\t\r\n\t//Print Customer details in Console for reference\r\n\t\t\tSystem.out.println(\"CustomerID FirstName LastName Customer Status NoOfKWH Month Bill Amount\");\r\n\t\t\tSystem.out.println(myBill.bill.toString());\r\n\t\r\n\t//Print Customer Summary Details for reference in the Console\r\n\tSystem.out.println(\"Sum of Bill Amount : $\"+df.format(myBill.bill.getSum())+\r\n\t\t\t\" Average Bill Amount : $\"+df.format(myBill.bill.getAVG()));\r\n\t\r\n\t//Write to File\r\n\tif(myBill.bill.writeToFile(myBill.fileName)) {\r\n\t\tJOptionPane.showMessageDialog(null, \"File Written Successfully!\");\r\n\t}\r\n\t\t\t\r\n\t\r\n}", "public void saveVehicles() throws IOException {\n //Overwrite data file\n FileWriter fw = new FileWriter(new File(VE_FILE), false);\n BufferedWriter bw = new BufferedWriter(fw);\n try {\n System.out.print(\"Vehicle is saving into data file vehicles.txt...\");\n\n //Writes number of Vehicle\n bw.write(String.valueOf(this.vehicles.size()));\n\n for (int i = 0; i < this.vehicles.size(); i++) {\n //Inits Vehicle's information\n int contractId = this.vehicles.get(i).getContractId();\n String type = this.vehicles.get(i).getType();\n String licensePlate = this.vehicles.get(i).getLicensePlate();\n String chassisId = this.vehicles.get(i).getChassisId();\n String enginesId = this.vehicles.get(i).getEnginesId();\n\n //Writes Vehicle's information into data file\n bw.newLine();\n bw.write(String.valueOf(contractId));\n bw.newLine();\n bw.write(type);\n bw.newLine();\n bw.write(licensePlate);\n bw.newLine();\n bw.write(chassisId);\n bw.newLine();\n bw.write(enginesId);\n\n }\n } finally {\n //Saves data file (from RAM into HDD)\n bw.close();\n System.out.println(\"Done!\");\n }\n }", "public void recordOrder(){ \n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Tea);//writes into the file contents of String Tea\n output.close();//closes file\n }", "public static void writeNumberToFile() {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n outputStream.write(String.valueOf(53).getBytes());\n } catch (FileNotFoundException e) {\n // handle FileNotFoundException\n } catch (IOException e) {\n // handle IOException\n } finally {\n System.out.println(\"Finally block\");\n }\n }", "private static void writeToBooksFile() throws IOException{\n\t\tFileWriter fw = new FileWriter(BOOKS_FILE, false); //overwrites the students.txt file\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\n\t\tSet<Integer> keys = ALL_BOOKS.keySet(); //returns list of all keys in ALL_BOOKS\n\t\tfor(int key : keys){\n\t\t\tbw.write(ALL_BOOKS.get(key).ParseForTextFile()); //writes the Parsed Form of the BookDetails object to the books.txt file\n\t\t}\n\t\tbw.close();\n\t}", "public void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tHotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You selected the \" + selectedHotel.getHotelName());\n\t\t\t\tselectedHotel.getReservations();\n\t\t\t\tlblCheckIn.setVisible(true);\n\t\t\t\tlblInMonth.setVisible(true);\n\t\t\t\ttxtInMonth.setVisible(true);\n\t\t\t\tlblInDay.setVisible(true);\n\t\t\t\ttxtInDay.setVisible(true);\n\t\t\t\tlblCheckout.setVisible(true);\n\t\t\t\tlblOutMonth.setVisible(true);\n\t\t\t\ttxtOutMonth.setVisible(true);\n\t\t\t\tlblOutDay.setVisible(true);\n\t\t\t\ttxtOutDay.setVisible(true);\n\t\t\t\tbtnAdd.setVisible(true);\n\t\t\t\treservationsModel.removeAllElements();\n\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t//Reading Info From Reservation.txt//\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/**\n\t\t\t\t * First i surround everything is a try.. catch blocks \n\t\t\t\t * then in the try block i declare the file input stream\n\t\t\t\t * then a scanner \n\t\t\t\t * then in a while loop i check if the file has next line \n\t\t\t\t * and a user a delimiter \"-\"\n\t\t\t\t * and it adds it to a new reservation\n\t\t\t\t * then it adds it to the ArrayList reservation\n\t\t\t\t * and it also adds it to the hotel object\n\t\t\t\t * then it checks if it can book that hotel\n\t\t\t\t * and if yes it adds it to the ReservationsModel\n\t\t\t\t */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFileInputStream fis = new FileInputStream(\"Reservation.txt\");\n\t\t\t\t\tScanner fscan = new Scanner (fis);\n\t\t\t\t\tint INMonth = 0;\n\t\t\t\t\tint INday = 0;\n\t\t\t\t\tint OUTmonth = 0;\n\t\t\t\t\tint OUTday = 0;\n\t\t\t\t\tlong iD = 0;\n\t\t\t\t\twhile (fscan.hasNextLine())\n\t\t\t\t\t{\n\t\t\t\t\t\tScanner ls = new Scanner (fscan.nextLine());\n\t\t\t\t\t\tls.useDelimiter(\"-\");\n\t\t\t\t\t\tiD = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINMonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tOUTmonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tOUTday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tr = new Reservation (iD,INMonth, INday, OUTmonth, OUTday);\n\t\t\t\t\t\th.addReservation(new Reservation(iD,INMonth, INday, OUTmonth, OUTday));\n\t\t\t\t\t\tHotel hotel = (Hotel) cbHotelsOptions.getSelectedItem();\n\t\t\t\t\t\tlong hotID = hotel.getUniqueId();\n\t\t\t\t\t\tif(iD == hotID)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservationsModel.addElement((new Reservation(iD, INMonth, INday, OUTday)));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * The catch block checks to make sure that the file is found\n\t\t\t\t */\n\t\t\t\tcatch( FileNotFoundException fnfe)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found!\");\n\t\t\t\t}\n\t\t\t}", "public void recordOrder(){\n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){//throws exception\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Coffee);//prints in file contents of Coffee\n output.close();//closes file\n }", "public void saveStock(){\n\n\n try {\n BufferedWriter writercowA = new BufferedWriter(new FileWriter(\"cowAmount.txt\"));\n writercowA.write(cowAmount.getText());\n writercowA.close();\n\n BufferedWriter writerSheepA = new BufferedWriter(new FileWriter(\"sheepAmount.txt\"));\n writerSheepA.write(sheepAmount.getText());\n writerSheepA.close();\n\n BufferedWriter writergoatA = new BufferedWriter(new FileWriter(\"goatAmount.txt\"));\n writergoatA.write(goatAmount.getText());\n writergoatA.close();\n\n BufferedWriter writerChickenA = new BufferedWriter(new FileWriter(\"chickenAmount.txt\"));\n writerChickenA.write(chickenAmount.getText());\n writerChickenA.close();\n\n BufferedWriter writerduckA = new BufferedWriter(new FileWriter(\"duckAmount.txt\"));\n writerduckA.write(duckAmount.getText());\n writerduckA.close();\n\n BufferedWriter writercowW = new BufferedWriter(new FileWriter(\"cowWeight.txt\"));\n writercowW.write(cowWeight.getText());\n writercowW.close();\n\n BufferedWriter writerSheepW = new BufferedWriter(new FileWriter(\"sheepWeight.txt\"));\n writerSheepW.write(sheepWeight.getText());\n writerSheepW.close();\n\n BufferedWriter writergoatW = new BufferedWriter(new FileWriter(\"goatWeight.txt\"));\n writergoatW.write(goatWeight.getText());\n writergoatW.close();\n\n BufferedWriter writerChickenW = new BufferedWriter(new FileWriter(\"chickenWeight.txt\"));\n writerChickenW.write(chickenWeight.getText());\n writerChickenW.close();\n\n BufferedWriter writerduckW = new BufferedWriter(new FileWriter(\"duckWeight.txt\"));\n writerduckW.write(duckWeight.getText());\n writerduckW.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws MissingFileNameArgumentException{\n FileReader file = null;\r\n BufferedReader buffer = null;\r\n Scanner bScan = null;\r\n Scanner scan = null;\r\n double total1 =0, total2= 0, total3 = 0, total4 = 0, total5 = 0;\r\n if(args.length == 0){\r\n throw new MissingFileNameArgumentException(\"Missing input file name\");\r\n }\r\n try{\r\n file = new FileReader(args[0]);\r\n buffer = new BufferedReader(file);\r\n bScan = new Scanner(buffer);\r\n //try scanning in the name from the buffer reader.\r\n try{\r\n String name = bScan.nextLine();\r\n String domain = bScan.nextLine();\r\n String license = bScan.nextLine();\r\n int year = bScan.nextInt();\r\n bScan.nextLine();\r\n printReportHeader(name, domain, license, year);\r\n while(bScan.hasNext()){\r\n String branch = bScan.nextLine();\r\n scan = new Scanner(branch);\r\n scan.useDelimiter(\",\");\r\n String id = scan.next();\r\n if(id.equals(\"Total:\")){\r\n\r\n total1 = Double.parseDouble(scan.next());\r\n total2 = Double.parseDouble(scan.next());\r\n total3 = Double.parseDouble(scan.next());\r\n total4 = Double.parseDouble(scan.next());\r\n total5 = Double.parseDouble(scan.next());\r\n printSeparatorLine();\r\n printBranchProfit(\"Totals:\", \"\", total1, total2, total3, total4, total5);\r\n printSeparatorLine();\r\n System.out.println();\r\n\r\n }\r\n else{\r\n String location = scan.next();\r\n total1 = Double.parseDouble(scan.next());\r\n total2 = Double.parseDouble(scan.next());\r\n total3 = Double.parseDouble(scan.next());\r\n total4 = Double.parseDouble(scan.next());\r\n total5 = Double.parseDouble(scan.next());\r\n printBranchProfit(id, location, total1, total2, total3, total4, total5);\r\n\r\n }\r\n }\r\n\r\n\r\n }\r\n //handling any NoSuchElement exceptions\r\n catch(NoSuchElementException exp){\r\n System.err.println(\"\\nNo such element or invalid input!!\\n\" + exp);\r\n\r\n }\r\n }\r\n //catching any IO exceptions\r\n catch(IOException exp){\r\n System.err.println(\"Error opening file!\\n\"+ exp);\r\n }\r\n //finally, close the scanner and the buffer\r\n finally{\r\n System.out.println();\r\n if(scan!= null){\r\n scan.close();\r\n }\r\n if(buffer!= null){\r\n try{\r\n buffer.close();\r\n }catch(IOException exp){\r\n //handles the IOException for trying to close the buffer reader.\r\n System.out.println(\"Error closing buffer!\" + exp);\r\n }\r\n }\r\n\r\n }\r\n }", "private void writeReceipt(String text) throws IOException {\n\n PrintWriter pw = new PrintWriter(\"receipt.txt\");\n pw.println(text);\n pw.close();\n }", "private void createOrder(Shop shop, FileManager fileManager, ArrayList<Tool> toolList,\n ArrayList<Integer> quantityList) {\n if (toolList.size() != 0) {\n if (shop.createOrderOrAppendOrder(shop, toolList, quantityList, fileManager)) {\n System.out.println(\"Successfully added and/or appended order to orders.txt!\");\n } else {\n System.out.println(\"ERROR: Could not edit orders.txt.\");\n }\n }\n }", "private static void addNewBooking() {\n ArrayList<Customer> listCustomer = FuncFileCSVCustomer.getFileCSVToListCustomer();\n listCustomer.sort(new CustomerSort());\n int i = 1;\n for (Customer customer : listCustomer) {\n System.out.println(\"-------------------------\");\n System.out.println(\"Customer \" + i + \" : \");\n System.out.println(customer.showInfo());\n System.out.println(\"-------------------------\");\n i++;\n }\n System.out.println(\"Choose Customer Booking\");\n Customer customer = listCustomer.get(scanner.nextInt() - 1);\n scanner.nextLine();\n System.out.println(\"\\n1. Booking Villa.\" +\n \"\\n2. Booking House.\" +\n \"\\n3. Booking Room.\");\n System.out.println(\"Choose Service Booking\");\n String choose = scanner.nextLine();\n switch (choose) {\n case \"1\":\n i = 1;\n ArrayList<Villa> listVilla = FuncFileCSVVilla.getFileCSVToListVilla();\n for (Villa villa : listVilla) {\n System.out.println(\"-------------------------\");\n System.out.println(\"No : \" + i);\n System.out.println(villa.showInfo());\n System.out.println(\"-------------------------\");\n i++;\n }\n System.out.println(\"Choose Villa Booking\");\n int chooseVillaBooking;\n chooseVillaBooking = scanner.nextInt();\n Villa villa = listVilla.get(chooseVillaBooking - 1);\n customer.setService(villa);\n break;\n case \"2\":\n i = 1;\n ArrayList<House> listHouse = FuncFileCSVHouse.getFileCSVToListHouse();\n for (House house : listHouse) {\n System.out.println(\"-------------------------\");\n System.out.println(\"No : \" + i);\n System.out.println(house.showInfo());\n System.out.println(\"-------------------------\");\n i++;\n }\n System.out.println(\"Choose House Booking\");\n int chooseHouseBooking;\n chooseHouseBooking = scanner.nextInt();\n House house = listHouse.get(chooseHouseBooking - 1);\n customer.setService(house);\n break;\n case \"3\":\n i = 1;\n ArrayList<Room> listRoom = FuncFileCSVRoom.getFileCSVToListRoom();\n for (Room room : listRoom) {\n System.out.println(\"-------------------------\");\n System.out.println(\"No : \" + i);\n System.out.println(room.showInfo());\n System.out.println(\"-------------------------\");\n i++;\n }\n System.out.println(\"Choose Room Booking\");\n int chooseRoomBooking;\n chooseRoomBooking = scanner.nextInt();\n Room room = listRoom.get(chooseRoomBooking - 1);\n customer.setService(room);\n break;\n default:\n System.out.println(\"Nhap sai, quay ve menu.\");\n backToMenu();\n break;\n\n }\n //bi ghi de do get ra khong duoc\n ArrayList<Customer> listCustomerBooking = FuncFileCSVBooking.getFileCSVToListBooking();\n //???????????????????? get tu file ra khong duoc\n listCustomerBooking.add(customer);\n FuncFileCSVBooking.writeBookingToFileCSV(listCustomerBooking);\n displayMainMenu();\n }", "public static void writeReservations() throws Exception {\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(reservations)); // Create a new buffered writer\n\n\t\t// We create an iterator to iterate through the Reservation database HashMap\n\t\tIterator hashMapIterator = ReservationManager.getAllReservations().entrySet().iterator();\n\t\twhile (hashMapIterator.hasNext()) {\n\t\t\tMap.Entry mapElement = (Map.Entry) hashMapIterator.next();\n\n\t\t\tString userKey = (String) mapElement.getKey();\n\t\t\tbw.write(\"User: \" + userKey); // Prints the username of the current user\n\t\t\tbw.write(\", Password: \" + UserManager.getUserDataBase().get(userKey));\n\t\t\tbw.newLine();\n\t\t\t// Prints all Reservations of the current user\n\t\t\tfor (Reservation res : ReservationManager.getUserReservations(userKey)) {\n\t\t\t\tbw.write(res.getShow().getMonth() + \" \" + res.getShow().getDate() + \", \" + res.getShow().getYear()\n\t\t\t\t\t\t+ \"; \" + res.getShow().getTime() + \"PM. \" + \"Seats reserved: \" + res.getSeats().toString());\n\t\t\t\tbw.newLine();\n\n\t\t\t}\n\t\t\tbw.newLine();\n\t\t\tbw.newLine();\n\t\t}\n\n\t\tbw.close();\n\t}", "public void closeFile()\n {\n ArrayList<String> jobs = new ArrayList<String>();\n ArrayList<String> jobRecruiters = new ArrayList<String>();\n ArrayList<String> jobSeekers = new ArrayList<String>();\n ArrayList<String> notifications = new ArrayList<String>();\n for (Job job : jobList)\n {\n String jobinfo = job.getJobRecruiterUsername() + \"///\" + job.getTitle() + \"///\" + job.getDescription() + \"/// \" + job.getSalary();\n jobinfo = jobinfo + \"///\" + job.getLocation() + \"///\";\n for (String cate: job.getCategory())\n {\n jobinfo = jobinfo + cate + \",\";\n }\n jobinfo = jobinfo.substring(0,jobinfo.length()-1) + \"///\";\n for (String seek : job.getJobSeekerUsername())\n {\n jobinfo = jobinfo + seek + \",\";\n }\n jobinfo = jobinfo.substring(0,jobinfo.length()-1);\n jobs.add(jobinfo);\n }\n writeFile(\"Job.txt\", jobs);\n for (JobRecruiter recruiter : jobRecruiterList)\n {\n String recinfo = recruiter.getName() + \",\" + recruiter.getUserName() + \",\" + recruiter.getRole() + \",\" + recruiter.getGender() + \",\";\n recinfo = recinfo + recruiter.getEmail() + \",\" + recruiter.getPassword() + \",\" + recruiter.getCompanyName() + \",\" + recruiter.getLocation();\n jobRecruiters.add(recinfo);\n }\n writeFile(\"JobRecruiter.txt\", jobRecruiters);\n for (JobSeeker seeker : jobSeekerList)\n {\n String seekinfo = seeker.getName() + \",\" + seeker.getUserName() + \",\" + seeker.getRole() + \",\" + seeker.getGender() + \",\";\n seekinfo = seekinfo + seeker.getEmail() + \",\" + seeker.getPassword() + \",\";\n for(String skill : seeker.getSkillsets())\n {\n seekinfo = seekinfo + skill + \",\";\n }\n seekinfo = seekinfo.substring(0,seekinfo.length()-1);\n String notinfo = seeker.getUserName() + \"///\";\n for (String noti : seeker.getNotification())\n {\n notinfo = notinfo + noti + \",\";\n }\n notinfo = notinfo.substring(0,notinfo.length()-1);\n jobSeekers.add(seekinfo);\n notifications.add(notinfo);\n }\n writeFile(\"JobSeeker.txt\", jobSeekers);\n writeFile(\"Notification.txt\", notifications);\n }", "public void buildOutPutFile() throws Exception {\n\t\tFile theFile = openInputFile();\n\t\t\n\t\t// Open a random access file for reading the file from the disk\n\t\tRandomAccessFile theRAFile = new RandomAccessFile(theFile, \"r\");\t\n\t\tBufferedWriter theOutFile = null;\n\t\t// Create the file name\n\t\tString fileName = getOutPutFilePath();\n\t\t\n\t\t// Create the buffered writer\n\t\ttheOutFile = new BufferedWriter(new FileWriter(fileName));\n\t\t\n\t\tString badChars[] = {\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"0\"};\n\t\t\n\t\t\n\t\tString line = \"\";\n\t\twhile(line != null) {\t\t\t\t\t\t\t// Loop through the list\n\t\t\tline = theRAFile.readLine();\t\t\t\t// read the next line\n\t\t\tString goodLine=line;\t\t\t\t\t\t// set the good line equal to the line in the file\n\t\t\t// Loop through the line and replace all of the bad characters\n\t\t\tfor (int i=0; i < badChars.length; i++) {\n\t\t\t\t\n\t\t\t\tif (goodLine != null) {\n\t\t\t\t\t// take out the beginning line numbers\n\t\t\t\t\tgoodLine = goodLine.replace(badChars[i], \"\");\t\n\t\t\t\t\tSystem.out.println(\"goodLine\" + goodLine);\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t}\n\t\t\t// Write the good file out\n\t\t\twriteFile(goodLine, theOutFile);\t\t\t\n\t\t}\n\t\ttheRAFile.close();\t\t\t\t\t\t\t\t// close the reader \n\t\ttheOutFile.close();\t\t\t\t\t\t\t\t// close the writer\t\t\n\t}", "public static void main(String[] args) throws IOException {\n \r\nFile f=new File(\"d:\\\\addition.txt\");\r\nString s=\" addition\"+\"\\n\"+( 2+ 1);\r\n FileOutputStream fos=new FileOutputStream(f,true);\r\n byte[] b=s.getBytes();\r\n fos.write(13);\r\n fos.write(b);\r\n fos.flush();\r\n\t}", "private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);//goes stream based on filename\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos)); //create buffer writer\n Gson gson = new Gson();\n gson.toJson(countbookList, out);//convert java object to json string & save in output\n out.flush();\n fos.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "@Override\n public void save(String fileName){\n FileWriter addEmployeeDetails = null;\n\n try{\n addEmployeeDetails = new FileWriter(fileName,true);\n addEmployeeDetails.append(getUsername());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getPassword());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getFirstname());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getLastname());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(DMY.format(getDoB()));//format,convert,save\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getContactNumber());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getEmail());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(String.valueOf(getSalary()));\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getPositionStatus());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n //************Saves the address in the file.****************\n homeAddress.save(addEmployeeDetails);\n //**********************************************************\n addEmployeeDetails.append(\"$$$\");\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.close();\n addEmployeeDetails = null;\n\n }//end try\n catch (IOException ioe){}//end catch\n }", "public void writeCustomerReceipt(ArrayList<CustomerShoppingCart> products, String firstName, String lastName, int mobile,String deliveryAddressNumber, String deliveryAddress, String email, int age, CustomerShoppingCart items)\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tPrintWriter out = new PrintWriter(new FileWriter(\"customerReceipt.txt\"));\r\n\t\t\t\r\n\t\t\tdouble totalCost = items.totalCost(products);\r\n\t\t\tdouble discount = items.calculateDiscount(age, totalCost);\r\n\t\t\tdouble totalDiscountedCost = totalCost - discount;\r\n\t\t\t\r\n\t\t\tNumberFormat currencyFormat = NumberFormat.getCurrencyInstance();\r\n\t\t\tout.println(\"================================= CUSTOMER RECEIPT ==================================\");\r\n\t\t\tout.println(\"Customer Name: \" +firstName + \" \" +lastName);\r\n\t\t\tout.println(\"Email: \" +email);\r\n\t\t\tout.println(\"Mobile Number: \"+mobile);\r\n\t\t\tout.println(\"Delivery Address: \" +deliveryAddressNumber+ \" \" + deliveryAddress);\r\n\t\t\tout.println(\"Age: \" +age);\r\n\t\t\tout.println(\"-------------------------------------------------------------------------------------\");\r\n\t\t\tout.println(\" Items you have purchased \");\r\n\t\t\tout.println(\"-------------------------------------------------------------------------------------\");\r\n\t\t\tfor (CustomerShoppingCart pItems: products)\r\n\t\t\t{\r\n\t\t\t\tout.println(pItems);\r\n\t\t\t}\r\n\t\t\tout.println(\"-------------------------------------------------------------------------------------\");\r\n\t\t\tout.println(\"Customers over 50 receive a 20% discount, customers under 20 receive a 15% discount\");\r\n\t\t\tout.println(\" \");\r\n\t\t\tout.println(\"Total cost excluding discount: \" +currencyFormat.format(totalCost));\r\n\t\t\tout.println(\"Discount received: \" +currencyFormat.format(discount));\r\n\t\t\tout.println(\" \");\r\n\t\t\tout.println(\"Total cost: \" +currencyFormat.format(totalDiscountedCost));\r\n\t\t\tout.println(\"=====================================================================================\\n\");\r\n\t\t\tout.close();\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: Cannot open file for writing\");\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: Cannot write to file\");\r\n\t\t}\r\n\t}", "static void writeOperations(){\n \ttry{\n \t\t\n\t\t\t// Create file \n\t\t\tFileWriter fstream = new FileWriter(FILE_FILEOP);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t \tfor (int i=0; i < operations.size(); i++){\n\t \t\tout.write(operations.get(i).getDetails() );\n\t \t}\n\t\t\t\n\t\t\t//Close the output stream\n\t\t\tout.close();\n\t\t}\n \tcatch (Exception e){//Catch exception if any\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t\tSystem.out.print(\"Operations file written.\\n\");\n\n \t\n }", "public void writeIDfile(String ID,String password)throws IOException\n {\n\n\n List<String> lines = Files.readAllLines(Paths.get(\"idpassword.txt\"));\n /*write part*/\n\n BufferedWriter bw = null;\n FileWriter fw = null;\n try {\n int j=0;\n String content = \"\";\n while (j<lines.size())\n {\n content+= lines.get(j)+\"\\n\";\n j++;\n }\n content+=ID+\",\"+password;\n\n fw = new FileWriter(\"idpassword.txt\");\n bw = new BufferedWriter(fw);\n bw.write(content);\n\n bw.close();\n fw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n } finally {\n\n try {\n\n if (bw != null)\n bw.close();\n\n if (fw != null)\n fw.close();\n\n } catch (IOException ex) {\n\n ex.printStackTrace();\n\n }\n\n }\n }", "public static void writeTextToFile() {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n int number = Integer.parseInt(\"2f5\");\n outputStream.write(String.valueOf(number).getBytes());\n\n } catch (IOException | NumberFormatException e) {\n // handle exception\n } finally {\n System.out.println(\"Finally block\");\n }\n }", "public void writeBuyingHistory(ArrayList<String> boughtBooks)throws IOException\n {\n String toWrite = new String();\n int i =0;\n if(hisMap.get(Customer.getInstance().getUsername())==null)\n {\n hisMap.put(Customer.getInstance().getUsername(),new ArrayList<String>());\n }\n else\n {\n i=0;\n while (i<boughtBooks.size())\n {\n hisMap.get(Customer.getInstance().getUsername()).add(boughtBooks.get(i));\n i++;\n }\n }\n\n\n i=0;\n\n toWrite+=Customer.getInstance().getUsername()+\",\";\n while (i<hisMap.get(Customer.getInstance().getUsername()).size()-boughtBooks.size())\n {\n toWrite+=hisMap.get(Customer.getInstance().getUsername()).get(i)+\"%\";\n i++;\n }\n ;\n i=0;\n while (i<boughtBooks.size())\n {\n toWrite+=boughtBooks.get(i);\n if(i!=boughtBooks.size()-1)\n toWrite+=\"%\";\n i++;\n }\n\n\n\n\n List<String> lines = Files.readAllLines(Paths.get(\"history.txt\"));\n if(specificLine>lines.size()-1)\n {\n lines.add(toWrite);\n }\n else {\n lines.set(specificLine, toWrite);\n }\n /*write part*/\n BufferedWriter bw = null;\n FileWriter fw = null;\n try {\n int j=0;\n String content = \"\";\n while (j<lines.size())\n {\n content+= lines.get(j)+\"\\n\";\n j++;\n }\n\n fw = new FileWriter(\"history.txt\");\n bw = new BufferedWriter(fw);\n bw.write(content);\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n } finally {\n\n try {\n\n if (bw != null)\n bw.close();\n\n if (fw != null)\n fw.close();\n\n } catch (IOException ex) {\n\n ex.printStackTrace();\n\n }\n\n }\n\n }", "private void toSave() {\n File file4=new File(\"trial.txt\");\n try\n {\n String row;\n BufferedWriter bw=new BufferedWriter(new FileWriter(file4));\n for(int i=0;i<jt.getRowCount();i++)\n {\n row = \"\";\n for(int j=0;j<jt.getColumnCount();j++)\n {\n row += (jt.getValueAt(i, j) +\",\");\n }\n row = row.substring(0, row.length()-1);\n //System.out.println(row);\n bw.write(row);\n bw.newLine();\n }\n bw.close();\n \n \n JOptionPane.showMessageDialog(rootPane,\"Details saved succesfully\");\n }\n \n catch(Exception ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Exception occured\");\n }\n }", "public static void backup() throws FileNotFoundException, SQLException {\n\n // Laver en dato til vores End Of Days filer i filnavnet\n Date date = new Date();\n String dagensDato = date.toString();\n dagensDato = dagensDato.replaceAll(\" \", \"_\");\n dagensDato = dagensDato.replaceAll(\":\", \"_\");\n\n File file = new File(\"End_Of_Days/End_Of_Day_\" + dagensDato + \".txt\");\n\n try (\n // Laver filen\n PrintWriter output = new PrintWriter(file);\n ) {\n // Initialiserer varibler der skal bruges\n String sql, hentetFnavn, hentetLnavn, hentetAdresse, hentetKonto_type, hentetOvertraeks, hentetUsername;\n int hentetPerson_id, hentetReg_nr, hentetKonto_nr, hentetRentesats, hentetSaldo, hentetOvertraeksgebyr, hentetId, hentetFra_Konto, hentetTil_Konto, hentetPassword;\n double hentetTrukketbelob, hentetIndfortbelob;\n Timestamp hentetTimestamp;\n\n\n output.println(\"Person_id \\t\\t fnavn \\t\\t lnavn \\t\\t adresse\");\n output.println(\"------------------------------------------------\");\n\n // Henter bruger tabelen\n stmt = con.createStatement();\n sql = \"SELECT * FROM bruger\";\n ResultSet rs = stmt.executeQuery(sql);\n while (rs.next()) { // Indsaetter raekkerne fra bruger tabelen ind i tekstfilen\n hentetPerson_id = rs.getInt(1);\n hentetFnavn = rs.getNString(2);\n hentetLnavn = rs.getNString(3);\n hentetAdresse = rs.getNString(4);\n output.print(hentetPerson_id + \"\\t\\t\" + hentetFnavn + \"\\t\\t\" + hentetLnavn + \"\\t\\t\" + hentetAdresse + \"\\n\");\n }\n\n output.println();\n output.println(\"Konto_type \\t\\t reg_nr \\t\\t konto_nr \\t\\t rentesats \\t\\t saldo \\t\\t overtraeksgebyr \\t\\t overtraek \\t\\t id\");\n output.println(\"------------------------------------------------------------------------------------------------------------------------------------\");\n\n // Henter konto tabelen\n stmt = con.createStatement();\n sql = \"SELECT * FROM konto\";\n rs = stmt.executeQuery(sql);\n while (rs.next()) { // Indsaetter raekkerne fra konto tabelen ind i tekstfilen\n hentetKonto_type = rs.getNString(1);\n hentetReg_nr = rs.getInt(2);\n hentetKonto_nr = rs.getInt(3);\n hentetRentesats = rs.getInt(4);\n hentetSaldo = rs.getInt(5);\n hentetOvertraeksgebyr = rs.getInt(6);\n hentetOvertraeks = rs.getNString(7);\n hentetId = rs.getInt(8);\n output.print(hentetKonto_type + \"\\t\\t\" + hentetReg_nr + \"\\t\\t\" + hentetKonto_nr + \"\\t\\t\" + hentetRentesats + \"\\t\\t\" + hentetSaldo + \"\\t\\t\" + hentetOvertraeksgebyr + \"\\t\\t\" + hentetOvertraeks + \"\\t\\t\" + hentetId + \"\\n\");\n }\n\n output.println();\n output.println(\"id \\t\\t Fra_Konto \\t\\t Trukketbeløb \\t\\t Til_kontoNr \\t\\t Indførtbeløb \\t\\t Timestamp\");\n output.println(\"------------------------------------------------------------------------------------------------------------------------------------\");\n\n // Henter transactioner tabelen\n stmt = con.createStatement();\n sql = \"SELECT * FROM transactioner\";\n rs = stmt.executeQuery(sql);\n while (rs.next()) { // Indsaetter raekkerne fra transactioner tabelen ind i tekstfilen\n hentetId = rs.getInt(1);\n hentetFra_Konto = rs.getInt(2);\n hentetTrukketbelob = rs.getDouble(3);\n hentetTil_Konto = rs.getInt(4);\n hentetIndfortbelob = rs.getDouble(5);\n hentetTimestamp = rs.getTimestamp(6);\n output.print(hentetId + \"\\t\\t\" + hentetFra_Konto + \"\\t\\t\" + hentetTrukketbelob + \"\\t\\t\" + hentetTil_Konto + \"\\t\\t\" + hentetIndfortbelob + \"\\t\\t\" + hentetTimestamp + \"\\n\");\n }\n\n output.println();\n output.println(\"username \\t\\t password\");\n output.println(\"------------------------------------------------------------------------------------------------------------------------------------\");\n\n // Henter login tabelen\n stmt = con.createStatement();\n sql = \"SELECT * FROM login\";\n rs = stmt.executeQuery(sql);\n while (rs.next()) { // Indsaetter raekkerne fra login tabelen ind i tekstfilen\n hentetUsername = rs.getNString(1);\n hentetPassword = rs.getInt(2);\n output.print(hentetUsername + \"\\t\\t\" + hentetPassword + \"\\n\");\n }\n\n }\n System.out.println(\"End Of Days backup successful!\");\n }", "public static void printTotalDeductions() throws Exception\r\n\t{\r\n\t\tFile file=new File(\"Data/Peopledetails.txt\");\r\n\t\tfs=new Scanner(file);\r\n\t\tfs.useDelimiter(\",|\\\\r\\n\");\r\n\t\t\r\n\t\t//Print out headers for table\r\n\t\tSystem.out.printf(\"\\n\\n%10s%10s%15s\\n\\n\",\"Total Tax\",\"Total NI\", \"Total Pension\");\r\n\t\t\r\n\t\ttotaltax=0;\r\n\t\ttotalni=0;\r\n\t\ttotalpen=0;\r\n\t\t\r\n\t\twhile (fs.hasNext())\r\n\t\t{\r\n\t\t\tid=fs.nextInt();\r\n\t\t\tfname=fs.next();\r\n\t\t\tsname=fs.next();\r\n\t\t\tgen=fs.next();\r\n\t\t\thrate=fs.nextDouble();\r\n\t\t\thrs=fs.nextDouble();\r\n\t\t\t\r\n\t\t\tgross=hrs*hrate;\r\n\t\t\t\r\n\t\t\t//Calculates the overtime\r\n\t\t\tif(hrs>40)\r\n\t\t\t{\r\n\t\t\t\totime=hrs-40;\r\n\t\t\t\tstandard=40;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\totime=0;\r\n\t\t\t\tstandard=hrs;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgross=(standard*hrate+otime*hrate*1.5);\r\n\t\t\t\r\n\t\t\t//Calculates the annual gross in order to calculate the income tax per week\r\n\t\t\tannualgross=gross*52;\r\n\t\t\t\r\n\t\t\t//Calculates Income Tax\r\n\t\t\tdouble p,b,h,a;\r\n\t\t\t\r\n\t\t\tif(annualgross<=12500)\r\n\t\t\t{\r\n\t\t\t\tp=0;\r\n\t\t\t\tb=0;\r\n\t\t\t\th=0;\r\n\t\t\t\ta=0;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>12500 && annualgross<=50000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t\tb = annualgross - 12500;\r\n\t\t\t\th = 0;\r\n\t\t\t\ta = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse if(annualgross>50000 && annualgross<=150000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t b = 37500;\r\n\t\t\t h = annualgross - 50000;\r\n\t\t\t a = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t p = 12500;\r\n\t\t b = 37500;\r\n\t\t h = 100000;\r\n\t\t a = annualgross - 150000;\r\n\r\n\t\t\t}\r\n\t\t\ttax= (p * 0 + b * 0.2 + h * 0.4 + a * 0.45)/52;\r\n\t\t\t\r\n\t\t\t//Calculates National Insurance Contribution\r\n\t\t\tif(annualgross>8500 && annualgross<50000)\r\n\t\t\t{\r\n\t\t\t\tnirate=0.12;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tnirate=0.02;\r\n\t\t\t}\r\n\t\t\tnitax=gross*nirate;\r\n\t\t\t\r\n\t\t\t//Calculates Pension Contribution\r\n\t\t\tif(annualgross<27698)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.074;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=27698 && annualgross<37285)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.086;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=37285 && annualgross<44209)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.096;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.117;\r\n\t\t\t}\r\n\t\t\tpension=gross*penrate;\r\n\t\t\r\n\t\t\t//Calculates all income tax\r\n\t\t\ttotaltax=totaltax+tax;\r\n\t\t\t//Calculates all national insurance tax\r\n\t\t\ttotalni=totalni+nitax;\r\n\t\t\t//Calculates all pension contributions\r\n\t\t\ttotalpen=totalpen+pension;\r\n\t\t}\r\n\t\tSystem.out.printf(\"%10.2f%10.2f%15.2f\\n\", totaltax,totalni,totalpen);\r\n\t\tfs.close();\r\n\t}", "public void gerarCupom(String cliente, String vendedor,List<Produto> produtos, float totalVenda ) throws IOException {\r\n \r\n File arquivo = new File(\"cupomFiscal.txt\");\r\n String produto =\" \"; \r\n if(arquivo.exists()){\r\n System.out.println(\"Arquivo localizado com sucessso\");\r\n }else{\r\n System.out.println(\"Arquivo não localizado, será criado outro\");\r\n arquivo.createNewFile();\r\n } \r\n \r\n for(Produto p: produtos){\r\n produto += \" \"+p.getQtd()+\" \"+ p.getNome()+\" \"+p.getMarca()+\" \"+ p.getPreco()+\"\\n \";\r\n }\r\n \r\n \r\n \r\n FileWriter fw = new FileWriter(arquivo, true);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n \r\n \r\n bw.write(\" \"+LOJA);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"CLIENTE CPF\");\r\n bw.newLine();\r\n bw.write(cliente);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(DateCustom.dataHora());\r\n bw.newLine();\r\n bw.write(\" CUPOM FISCAL \");\r\n bw.newLine();\r\n bw.write(\"QTD DESCRIÇÃO PREÇO\");\r\n bw.newLine();\r\n bw.write(produto);\r\n bw.newLine(); \r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"TOTAL R$ \" + totalVenda);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"Vendedor \" + vendedor);\r\n bw.newLine();\r\n bw.newLine();\r\n bw.close();\r\n fw.close();\r\n }", "public void data() {\n\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(\"/Users/macbook_user/Desktop/OOP Project/List.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return;\n }\n\n String[] columnName\n = {\"Id\", \"Name\", \"Amount\", \"Shelf#\", \"Position\"};\n int i, index;\n String line;\n try {\n br.readLine();\n while ((line = br.readLine()) != null) {\n index = 0;\n String[] se = line.split(\" \");\n Map<String, Object> item = new HashMap<>();\n for (i = 0; i < se.length; i++) {\n if (\"\".equals(se[i])) {\n continue;\n }\n if (index >= columnName.length) {\n continue;\n }\n item.put(columnName[index], se[i]);\n index++;\n }\n\n //get the amount of the item from the list\n int amount = Integer.parseInt((String) item\n .get(columnName[2]));\n\n // if amount greater than 0, Existence is Y, else N\n if (amount > 0) {\n item.put(\"Existence\", \"Y\");\n } else {\n item.put(\"Existence\", \"N\");\n }\n\n inventory.add(item);// add item to ArrayList\n }\n br.close();\n\n outPutFile();\n } catch (IOException e) {\n }\n\n }", "public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}", "public void addPoint (String user, double point) throws IOException { \r\n this.point = this.point + point; \r\n Owner o = new Owner(user, password);\r\n String lineSplit[];\r\n out = new FileReader(\"Customer.txt\");\r\n BufferedReader read = new BufferedReader(out);\r\n \r\n String line;\r\n String data = \"\";\r\n \r\n while((line = read.readLine()) != null){\r\n lineSplit = null;\r\n lineSplit = line.split(\",\");\r\n userName = lineSplit[0];\r\n password = lineSplit[1];\r\n status = o.changeStatus(this.point);\r\n \r\n if(user.equals(userName)){\r\n data+=userName+\",\"+password+\",\"+status+\",\"+this.point+\"\\r\\n\";\r\n System.out.println(data);\r\n }\r\n else{\r\n data+=line+\"\\r\\n\";\r\n }\r\n }\r\n read.close();\r\n in = new FileWriter(\"Customer.txt\");\r\n in.write(data);\r\n in.close();\r\n }", "public ArrayList load() {\n File savefile = new File(\"bookings.txt\");\r\n try {\r\n if (savefile.createNewFile()) {\r\n System.out.println(\"Save file doesnt exist, creating...\");\r\n\r\n try {\r\n FileWriter writer = new FileWriter(savefile);\r\n\r\n for (int x = 0; x <= 89; x = x + 1) {\r\n String stringbuild = (x + \",false,none\");\r\n writer.write(stringbuild + \"\\n\");\r\n }\r\n writer.flush();\r\n writer.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n } else {\r\n System.out.println(\"Save file exists. Will load...\");\r\n }\r\n } catch (IOException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n System.out.println(\"Loading Started...\");\r\n\r\n ArrayList Seats = new ArrayList();\r\n ArrayList Seats_Bronze = new ArrayList();\r\n ArrayList Seats_Silver = new ArrayList();\r\n ArrayList Seats_Gold = new ArrayList();\r\n\r\n try {\r\n File file = new File(\"bookings.txt\");\r\n FileReader filereader = new FileReader(file);\r\n BufferedReader bufferedreader = new BufferedReader(filereader);\r\n\r\n String buffer;\r\n while ((buffer = bufferedreader.readLine()) != null) {\r\n String[] buffersplit = buffer.split(\",\", -1);\r\n int index = Integer.parseInt(buffersplit[0]);\r\n if (index < 30) {\r\n //System.out.println(\"Bronze @ \"+index);\r\n\r\n Seat_Bronze bseat_ = new Seat_Bronze();\r\n bseat_.setID(index);\r\n bseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);\r\n Seats_Bronze.add(bseat_);\r\n\r\n } else if (59 >= index && index > 29) {\r\n //System.out.println(\"Silver @ \"+index);\r\n\r\n Seat_Silver sseat_ = new Seat_Silver();\r\n sseat_.setID(index);\r\n sseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);\r\n Seats_Silver.add(sseat_);\r\n\r\n } else {\r\n //System.out.println(\"Gold @\"+index);\r\n\r\n Seat_Gold gseat_ = new Seat_Gold();\r\n gseat_.setID(index);\r\n gseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);\r\n Seats_Gold.add(gseat_);\r\n\r\n }\r\n\r\n }\r\n\r\n Seats.add(Seats_Bronze);\r\n Seats.add(Seats_Silver);\r\n Seats.add(Seats_Gold);\r\n System.out.println(\"Loading Complete.\");\r\n System.out.println(\"Loaded B/S/G: \" + Seats_Bronze.size() + \"/\" + Seats_Silver.size() + \"/\" + Seats_Gold.size());\r\n\r\n return Seats;\r\n\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (IOException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return null;\r\n }", "@Override\n\tpublic void write() throws IOException {\n\t\t// declare and instantiate a filewriter to write to the customer's file\n\t\tFileWriter wr = new FileWriter(this.customer);\n\t\tBufferedWriter br = new BufferedWriter(wr);\n\n\t\t// write the customers first and last name (seperate lines)\n\t\tbr.write(this.firstName + \"\\n\");\n\t\tbr.write(this.lastName + \"\\n\");\n\t\t// write the customers phone number (remove the parenthesis around the\n\t\t// area code and spaces)\n\t\t// only write a new line if the customer has transactions\n\t\t// (BufferedReader does not allow preceding \"\\n\")\n\t\tString phoneNum = this.phoneNum.substring(1, 4) + this.phoneNum.substring(6, 9) + this.phoneNum.substring(10);\n\n\t\tif (this.transactions.size() == 0) {\n\t\t\tbr.write(phoneNum);\n\t\t} else {\n\t\t\tbr.write(phoneNum + \"\\n\");\n\t\t}\n\n\t\t// write all of the transaction numbers\n\t\tfor (int i = 0; i < this.transactions.size(); i++) {\n\t\t\t// if this last transaction, do not write an enter\n\t\t\t// else, write an enter\n\t\t\tif (i == this.transactions.size() - 1) {\n\t\t\t\tbr.write(this.transactions.get(i));\n\t\t\t} else {\n\t\t\t\tbr.write(this.transactions.get(i) + \"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// close the filewriter (finished writing)\n\t\tbr.close();\n\t}", "public void dump(AbstractPhoneBill bill) throws IOException{\n\n if(!file.exists()){\n file.createNewFile();\n }\n\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n FileReader fr = new FileReader(file);\n BufferedWriter bw = new BufferedWriter(fw);\n BufferedReader br = new BufferedReader(fr);\n //bw.write(String.valueOf(bill.getPhoneCalls()));\n\n if(br.readLine()==null) {\n bw.write(bill.toString());\n bw.write(\"\\n\");\n bw.write(String.valueOf(bill.getPhoneCalls()));\n }else{\n bw.write(\",\");\n bw.write(String.valueOf(bill.getPhoneCalls()));\n\n }\n\n bw.close();\n\n\n\n\n }", "public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(System.in);\r\n \r\n RoomManager rm = new RoomManager();\r\n String text;\r\n int input = 0;\r\n while (input != 5)\r\n {\r\n System.out.println(\"1. add type, 2. add room, 3. rooms avail, 4. reserve\");\r\n input = scanner.nextInt();\r\n \r\n if (input == 1)\r\n {\r\n System.out.println(\"Enter name of room type\");\r\n text = scanner.next();\r\n rm.AddRoomType(text);\r\n }\r\n if (input == 2)\r\n {\r\n System.out.println(\"Enter room type\");\r\n text = scanner.next();\r\n double money;\r\n int roomn;\r\n System.out.println(\"Enter room number\");\r\n roomn = scanner.nextInt();\r\n System.out.println(\"Enter room cost\");\r\n money = scanner.nextDouble();\r\n rm.AddRoom(text, roomn, money);\r\n }\r\n if (input == 3)\r\n {\r\n LocalDate before = new LocalDate();\r\n LocalDate after = new LocalDate();\r\n System.out.println(\"Enter number of day from now to checkin\");\r\n int days = scanner.nextInt();\r\n before = before.plusDays(days);\r\n System.out.println(\"Enter number of day from now to checkout\");\r\n days = scanner.nextInt();\r\n after = after.plusDays(days);\r\n rm.CheckAvail(before, after);\r\n }\r\n if (input == 4)\r\n {\r\n LocalDate before = new LocalDate();\r\n LocalDate after = new LocalDate();\r\n System.out.println(\"Enter number of day from now to checkin\");\r\n int days = scanner.nextInt();\r\n before.plusDays(days);\r\n System.out.println(\"Enter number of day from now to checkout\");\r\n days = scanner.nextInt();\r\n after.plusDays(days);\r\n System.out.println(\"Enter room type\");\r\n text = scanner.next();\r\n double rmprice = rm.MakeReserve(text, before, after);\r\n System.out.println(rmprice);\r\n //rm.CheckAvail(before, after);\r\n }\r\n }\r\n }", "public static void main(String[] args) throws IOException {\n\r\n\t\t\tint oper = 0, amt = 0;\r\n\t\t\tSystem.out.print(\"請選擇(1) 存入 (2) 支出 (3) 離開 :\");\r\n\t\t\tScanner scn = new Scanner(System.in);\r\n\t\t\toper = scn.nextInt();\r\n\r\n\t\t\twhile (oper != 3) {\r\n\t\t\t\t// System.out.println(\"The function code is \" + op);\r\n\t\t\t\tSystem.out.print(\"請輸入欲『存入』或『取款』的金額:\");\r\n\t\t\t\tamt = scn.nextInt();\r\n\t\t\t\t//System.out.print(\"The amount is \" + amt);\r\n\t\t\t\tif(amt < 0){\r\n\t\t\t\t\tSystem.out.println(\"金額不可為負數!\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tFileOutputStream fos = new FileOutputStream(\"D://cat\");\r\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\r\n\t\t\t\tMyAccount myacnt = new MyAccount(amt);\r\n\t\t\t\tSystem.out.println(\"My balance in c:/cat= \" + myacnt.getBalance());\r\n\r\n\t\t\t\tif (oper == 1) {\r\n\t\t\t\t\tmyacnt.deposite(amt);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif ((myacnt.getBalance() - 100) < 0) {\r\n\t\t\t\t\t\tSystem.out.println(\"您的存款餘額不足,此次無法支出金額 \" + amt + \" 元 !!\");\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmyacnt.fetch(amt);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\toos.writeObject(myacnt);\r\n\t\t\t\toos.flush();\r\n\t\t\t\toos.close();\r\n\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tMyAccount myacnt2;\r\n\t\t\t\t\tFileInputStream fis = new FileInputStream(\"D://cat\");\r\n\t\t\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\t\t\t\tmyacnt2 = (MyAccount) ois.readObject();\r\n\t\t\t\t\tois.close();\r\n\t\t\t\t\tSystem.out.println(\"您的最新餘額為:\" + myacnt2.getBalance() + \"\\n\");\r\n\t\t\t\t} catch (Exception e) {\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.print(\"請選擇(1) 存入 (2) 支出 (3) 離開 :\");\r\n\t\t\t\tscn = new Scanner(System.in);\r\n\t\t\t\toper = scn.nextInt();\r\n\r\n\t\t\t\t// switch (oper) {\r\n\t\t\t\t// case 1:\r\n\t\t\t\t// myacnt.deposite(amt);\r\n\t\t\t\t// break;\r\n\t\t\t\t// case 2:\r\n\t\t\t\t// if ((myacnt.getBalance() - 100) < 0) {\r\n\t\t\t\t// System.out.println(\"餘額不足!\");\r\n\t\t\t\t// } else {\r\n\t\t\t\t// myacnt.fetch(amt);\r\n\t\t\t\t// }\r\n\t\t\t\t// break;\r\n\t\t\t\t// case 3:\r\n\t\t\t\t// break;\r\n\t\t\t\t// default:\r\n\t\t\t\t// break;\r\n\t\t\t\t// }\r\n\t\t\t\t// oos.writeObject(myacnt);\r\n\t\t\t\t// System.out.println(\"您的最新餘額為:\" + myacnt.getBalance() + \"\\n\");\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"程式即將結束,謝謝測試!!\");\r\n\t\t}", "public static void readInputPropertyFile(String fileName, ArrayList<Apartment> apartments, ArrayList<House> houses, ArrayList<Villa> villas) {\n File file = new File(fileName);\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new FileReader(file));\n String tempString = null;\n int line = 1;\n // read one line every time until no text\n while ((tempString = reader.readLine()) != null) {\n // show the line number\n// System.out.println(\"line \" + line + \": \" + tempString);\n String[] line_part = tempString.split(\" \");\n int property_type = Integer.parseInt(line_part[0]);\n line++;\n\n //Initial info for Apartment\n int storey_num = 0, beds = 0;\n\n //Initial info for house\n int storey = 0; double clearing = 0;\n\n //Initial info for villa\n double tax = 0, service = 0;\n\n //Shared Initial info for all\n int number = 0, ID = 0; double cost = 0;\n String name = \"\", address = \"\";\n\n\n //Apartment\n if (property_type == 1)\n {\n number = Integer.parseInt(line_part[1]);\n ID = Integer.parseInt(line_part[2]);\n name = line_part[3];\n address = line_part[4];\n cost = Double.parseDouble(line_part[5]);\n storey_num = Integer.parseInt(line_part[6]);\n beds = Integer.parseInt(line_part[7]);\n apartments.add(new Apartment(number, ID, name, address, cost, storey_num, beds));\n\n }\n\n //House\n else if(property_type == 2)\n {\n number = Integer.parseInt(line_part[1]);\n ID = Integer.parseInt(line_part[2]);\n name = line_part[3];\n address = line_part[4];\n cost = Integer.parseInt(line_part[5]);\n storey = Integer.parseInt(line_part[6]);\n clearing = Double.parseDouble(line_part[7]);\n houses.add(new House(number, ID, name, address, cost, storey, clearing));\n }\n\n else if(property_type == 3)\n {\n number = Integer.parseInt(line_part[1]);\n ID = Integer.parseInt(line_part[2]);\n name = line_part[3];\n address = line_part[4];\n cost = Double.parseDouble(line_part[5]);\n tax = Double.parseDouble(line_part[6]);\n service = Double.parseDouble(line_part[7]);\n villas.add(new Villa(number, ID, name, address, cost, tax, service));\n }\n }\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e1) {\n }\n }\n }\n }", "public void saveAllVehiclesToFile(ArrayList<DeliveryVehicle> vehicleList) throws java.io.IOException {\n\n // write object to file\n FileOutputStream fos = new FileOutputStream(_filePath); //object to hold a file, e.g. EmployeeData.txt\n PrintStream writer = new PrintStream(fos); //object to write data\n\n //For loop to read each employee and write them to the file\n for(DeliveryVehicle vehicle : vehicleList){\n writer.println(vehicle);\n }\n\n writer.close();//close the writer\n fos.close();//close the file\n\n }", "private void writeInfoToFile() {\n createInfoFile(\"infoList.txt\", fwExMessage);\n outFile.println(\"منشی\");\n outFile.println(username);\n outFile.println(password);\n outFile.println(\" \");\n outFile.close();\n }", "public static void main(String[] args) throws Exception{\n TicketManager manager = new TicketManager();\n\n BufferedWriter fileOpen = new BufferedWriter(new FileWriter(\"open_tickets.txt\", true));\n Scanner inputFile = new Scanner(new File(\"open_tickets.txt\"));\n\n String dateFormat = \"EEE MMM dd hh:mm:ss z yyyy\";\n SimpleDateFormat format = new SimpleDateFormat(dateFormat);\n\n while (inputFile.hasNext())\n {\n Ticket open = new Ticket(inputFile.nextLine(), Integer.parseInt(inputFile.nextLine()),\n inputFile.nextLine(), format.parse(inputFile.nextLine()), null, null);\n\n ticketQueue.add(open);\n }\n fileOpen.close();\n\n //TODO problem 8 load open tickets from a file\n\n //TODO Problem 9 how will you know what ticket ID to start with?\n\n manager.mainMenu();\n }", "public static void createTransaction() throws IOException {\n\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\tint cid = random(SSNmap.size()) + 1;\n\t\tint vid = random(venders.size()) + 1;\n\t\t\n\t\twhile(ownership.get(cid) == null)\n\t\t\tcid = random(SSNmap.size()) + 1;\n\t\tString cc = ownership.get(cid).get(random(ownership.get(cid).size()));\n\t\t\n\t\twriter.write(\"INSERT INTO Transaction (Id, Date, vid, cid, CCNum, amount) Values (\" + tid++ +\", \" \n\t\t\t\t+ date2 + \", \" + vid + \", \" + cid + \", '\" + cc + \"', \" + amount + line);\n\t\twriter.flush();\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString username, password, payee;\n\t\tUser user;\n\t\tBank bank = new Bank();\n\t\tObjectOutputStream oos = null;\n\t\tString outputFile = \"resource/Bank.txt\";\n\t\tObjectInputStream ois = null;\n\t\tString inputFile = \"resource/Bank.txt\";\n\t\tString trInputFile = \"resource/Transactions.txt\";\n\t\tFile f = new File(outputFile);\n\n\t\tdouble amount;\n\n\t\tint choice;\n\t\tdashbord: while (true) {\n\t\t\tSystem.out.println(\"\\n-------------------\");\n\t\t\tSystem.out.println(\"BANK OF MyBank\");\n\t\t\tSystem.out.println(\"-------------------\\n\");\n\t\t\tSystem.out.println(\"1. Register account.\");\n\t\t\tSystem.out.println(\"2. Login.\");\n\t\t\tSystem.out.println(\"3. Update accounts.\");\n\t\t\tSystem.out.println(\"4. Exit.\");\n\t\t\tSystem.out.print(\"\\nEnter your choice : \");\n\t\t\tchoice = sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.print(\"Enter name : \");\n\t\t\t\tString name = sc.nextLine();\n\t\t\t\tSystem.out.print(\"Enter address : \");\n\t\t\t\tString address = sc.nextLine();\n\t\t\t\tSystem.out.print(\"Enter contact number : \");\n\t\t\t\tString phone = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Set username : \");\n\t\t\t\tusername = sc.next();\n\t\t\t\t// -------------------------------------------------------\n\n\t\t\t\ttry {\n\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(inputFile));\n\t\t\t\t\tif (f.length() != 0) {\n\n\t\t\t\t\t\tbank.userMap = (Map<String, User>) ois.readObject();\n\t\t\t\t\t}\n\n\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\tSystem.out.println(\"its end of the record\");\n\t\t\t\t}\n\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t} finally {\n\t\t\t\t\tif (ois != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// --------------------------------------------------------\n\n\t\t\t\twhile (bank.userMap.containsKey(username)) {\n\t\t\t\t\tSystem.out.println(\"Username already exists. Set again : \");\n\t\t\t\t\tusername = sc.next();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Set a password (minimum 8 chars; minimum 1 digit, 1 lowercase, 1 uppercase, 1 special character[!@#$%^&*_]) :\");\n\t\t\t\tpassword = sc.next();\n\t\t\t\tsc.nextLine();\n\t\t\t\twhile (!password.matches(((\"(?=.*\\\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*_]).{8,}\")))) {\n\t\t\t\t\tSystem.out.println(\"Invalid password . Set again :\");\n\t\t\t\t\tpassword = sc.next();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Enter initial deposit :10000 \");\n\t\t\t\tamount = sc.nextDouble();\n//\t\t\t\twhile (!sc.hasNextDouble()) {\n//\t\t\t\t\tSystem.out.println(\"Invalid amount. Enter again :\");\n//\t\t\t\t\tamount=sc.nextDouble();\n//\t\t\t\t}\n\n//\t\t\t\tsc.nextLine();\n\t\t\t\tuser = new User(name, address, phone, username, password, amount, new Date());\n\t\t\t\ttry {\n\t\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(outputFile));\n//\t\t\t\t\tif(f.length()==0)\n\t\t\t\t\tbank.userMap.put(username, user);\n\t\t\t\t\tfor (Entry<String, User> entry : bank.userMap.entrySet())\n\t\t\t\t\t\toos.writeObject(bank.userMap);\n\t\t\t\t\toos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tif (oos != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\toos.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Enter username : \");\n\t\t\t\tusername = sc.next();\n\t\t\t\tsc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter password : \");\n\t\t\t\tpassword = sc.next();\n\t\t\t\tsc.nextLine();\n\n\t\t\t\ttry {\n\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(inputFile));\n\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tbank.userMap = (Map<String, User>) ois.readObject();\n\t\t\t\t\t\tSystem.out.println(bank.userMap);\n\t\t\t\t\t\t// System.out.println(bank.userMap);\n\t\t\t\t\t\tif (bank.userMap.containsKey(username)) {\n\t\t\t\t\t\t\tuser = bank.userMap.get(username);\n\t\t\t\t\t\t\tif (bank.userMap.get(username).getPassword().equals(password)) {\n//\t\t\t\t\t\t\tSystem.out.println(\"hi\");\n\t\t\t\t\t\t\t\twhile (true) {\n\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\n---------------------------------\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"W E L C O M E, \" + username.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"-----------------------------------\\n\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"1. Deposit.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"2. Transfer.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"3. Last 5 transactions.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"4. User information.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"5. Log out.\");\n\t\t\t\t\t\t\t\t\tSystem.out.print(\"\\nEnter your choice : \");\n\t\t\t\t\t\t\t\t\tchoice = sc.nextInt();\n\t\t\t\t\t\t\t\t\tsc.nextLine();\n\t\t\t\t\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter amount : \");\n//\t\t\t\t\t\t\t\t\twhile (!sc.hasNextDouble()) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Invalid amount. Enter again :\");\n//\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tamount = sc.nextDouble();\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(amount);\n\n\t\t\t\t\t\t\t\t\t\tdeposit(amount, new Date(), bank, username, user, payee = null);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter payee username : \");\n\t\t\t\t\t\t\t\t\t\tpayee = sc.next();\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Enter amount : \");\n//\t\t\t\t\t\t\t\t\twhile (!sc.hasNextDouble()) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Invalid amount. Enter again :\");\n//\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tamount = sc.nextDouble();\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n//\t\t\t\t\t\t\t\t\tif (amount > 300000) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Transfer limit exceeded. Contact bank manager.\");\n//\t\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// --------------------------------------------------------------------------------\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(inputFile));\n\n//\t\t\t\t\t\t\t\t\t while(true) {\n\t\t\t\t\t\t\t\t\t\t\tbank.userMap = (Map<String, User>) ois.readObject();\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"whil\");\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(bank.userMap);\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(bank.userMap.get(username).getPassword().equals(password));\n\t\t\t\t\t\t\t\t\t\t\tif (bank.userMap.containsKey(payee)) {\n\t\t\t\t\t\t\t\t\t\t\t\twithdraw(amount, new Date(), bank, username, user);\n\t\t\t\t\t\t\t\t\t\t\t\tdeposit(amount, new Date(), bank, username, bank.userMap.get(payee),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpayee);\n\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Username doesn't exist.\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"its end of the record\");\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\t\t\t\tif (ois != null)\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(trInputFile));\n\n\t\t\t\t\t\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t\t\t\t\tbank.transactions = (ArrayList<String>) ois.readObject();\n\t\t\t\t\t\t\t\t\t\t\t\tfor (String tr : bank.transactions)\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (tr.contains(username))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(tr);\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"its end of the record\");\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\t\t\t\tif (ois != null)\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t}\n\n//\t\t\t\t\t\t\t\t\tSet set = bank.transactions.entrySet();\n//\t\t\t\t\t\t\t Iterator iterator = set.iterator();\n//\t\t\t\t\t\t\t \n//\t\t\t\t\t\t\t while (iterator.hasNext()) {\n//\t\t\t\t\t\t\t Map.Entry entry = (Map.Entry)iterator.next();\n//\t\t\t\t\t\t\t System.out.println();\n//\t\t\t\t\t\t\t }\n//\t\t\t\t\t\t\t\t\tfor (String transactions : user.transactions) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(transactions);\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Accountholder name : \" + user.getName());\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Accountholder address : \" + user.getAddress());\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Accountholder contact : \" + user.getPhone());\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t\t\t\tcontinue dashbord;\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Wrong choice !\");\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\"wrong password\");\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"user name dosnt exist\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t} catch (OptionalDataException e) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tif (oos != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\toos.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println(\"Enter username : \");\n\t\t\t\tusername = sc.next();\n\t\t\t\tuser = bank.userMap.get(username);\n\t\t\t\tif (bank.userMap.containsKey(username)) {\n\t\t\t\t\tbank.userMap.replace(username, new User(user.getName(), user.getAddress(), user.getPhone(),\n\t\t\t\t\t\t\tuser.getName(), user.getPassword(), user.getAmount(), new Date()));\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Username doesn't exist.\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.println(\"\\nThank you for choosing Bank Of MyBank.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Wrong choice !\");\n\t\t\t}\n\n\t\t}\n\t}", "private static int addPersonToFile(String name, String phoneNo, String email, String address){\r\n FileWriter fr = null;\r\n BufferedWriter br = null;\r\n PrintWriter pr = null;\r\n\r\n if (name.length() == 0) return 1; //nameField is empty\r\n if (phoneNo.length() == 0) return 2; //phoneNoField is empty\r\n if (email.length() == 0) return 3; //emailField is empty\r\n if (address.length() == 0) return 4; //addressField is empty\r\n\r\n int validate = phoneNoValidator(phoneNo);\r\n if (validate == 1) return 5; //phone number is not in correct format.\r\n validate = emailValidator(email);\r\n if (validate == 1) return 6; //email isn't in correct format.\r\n\r\n try{\r\n fr = new FileWriter(file, true);\r\n br = new BufferedWriter(fr);\r\n pr = new PrintWriter(br);\r\n Scanner scanner = new Scanner(file);\r\n\r\n String content = name+separator+phoneNo+separator+email+separator+address;\r\n\r\n while (scanner.hasNext()){\r\n String line = scanner.nextLine();\r\n if (content.equals(line)){\r\n return 7; //person already exists.\r\n }\r\n }\r\n\r\n if (contentSet.contains(content))\r\n return 7;\r\n\r\n /*kept this hashSet so that if someone accidentally presses the addPersonButton\r\n *repeatedly it can quickly tell that this person has already been added.\r\n */\r\n\r\n else {\r\n contentSet.add(content);\r\n pr.println(content);\r\n }\r\n\r\n }catch (IOException e){\r\n fileError();\r\n e.printStackTrace();\r\n }finally {\r\n try{\r\n if (pr != null) pr.close();\r\n if (br != null) br.close();\r\n if (fr != null) fr.close();\r\n }catch (IOException | NullPointerException e){\r\n e.printStackTrace();\r\n }\r\n }\r\n return 0;\r\n }", "public void filecreate(String Response_details) throws IOException\n\t{\n\t\tFileWriter myWriter = new FileWriter(\"D://Loadtime.txt\",true);\n\t\tmyWriter.write(Response_details+System.lineSeparator());\n\t\tmyWriter.close();\n\t\tSystem.out.println(\"Successfully wrote to the file.\");\n\t\t\n\t\t\n\t}", "public void saveFile() throws FileNotFoundException {\r\n try {\r\n PrintWriter out = new PrintWriter(FILE_NAME);\r\n //This puts back the labels that the loadFile removed\r\n out.println(\"date,cust_email,cust_location,product_id,product_quantity\");\r\n int i = 0;\r\n\r\n while (i < orderInfo.size()) {\r\n String saved = orderInfo.get(i).toString();\r\n out.println(saved);\r\n i++;\r\n }\r\n out.close();\r\n } catch (FileNotFoundException e) {\r\n }\r\n\r\n }", "public void saveFile() {\r\n final String file = \"respuestaConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\";\r\n try {\r\n int count = 0;\r\n PrintWriter writer = new PrintWriter(file, \"UTF-8\");\r\n for (int i = 0; i < this.numberOfBees; i++) {\r\n if (beesArray[i].isInCollisionRisk()) {\r\n writer.println(beesArray[i].getLatitude() + \",\" + beesArray[i].getLongitude() + \",\" + beesArray[i].getHeight());\r\n count++;\r\n }\r\n }\r\n System.out.println(\"Number of bees in collision risk: \" + count);\r\n writer.close();\r\n } catch (IOException ioe) {\r\n System.out.println(\"Something went wrong writing the exit file\");\r\n }\r\n }", "public void writeToRestaurantFile()\r\n {\r\n\ttry(ObjectOutputStream toRestaurantFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/restaurant.dta\")))\r\n\t{\r\n toRestaurantFile.writeObject(restaurant);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Restaurant objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public static void main(String[] args) throws ParseException, IOException, ClassNotFoundException, SQLException {\n\t\tTravelDaoImpl tdao=new TravelDaoImpl();\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd-MMM-yy\");\n\t\tScanner sc=new Scanner(System.in);\n\t\tdo\n\t\t{\n\t\t\tint travelId;\n\t\t\t String placeName=\"\";\n\t\t\t Date dateOfJourney=null;\n\t\t\t int pricePackage;\n\t\t\t byte[] placeImage=null;\n\t\t\tTravel travel=null;\n\t\t\tSystem.out.println(\"\t1) Add travel details\\r\\n\" + \n\t\t\t\t\t\"\t2) display the travels details\\r\\n\" + \n\t\t\t\t\t\"\t3) display detais by travelid\\r\\n\" + \n\t\t\t\t\t\"\t4) update the detaisl\\r\\n\" + \n\t\t\t\t\t\"\t5) delete an entry\\r\\n\" + \n\t\t\t\t\t\"\t6) Exit\\r\\n\" + \n\t\t\t\t\t\"\");\n\t\t\tint choice=sc.nextInt();\n\t\t\tswitchBlock:\n\t\t\tswitch(choice)\n\t\t\t{\n\t\t\tcase 1:\t\t\t//add\n\t\t\t\tSystem.out.println(\"Please provide the details \");\n\t\t\t\tSystem.out.println(\"Travel Id:\");\n\t\t\t\ttravelId=sc.nextInt();\n\t\t\t\tSystem.out.println(\"Place to travel:\");\n\t\t\t\tplaceName=sc.nextLine();\n\t\t\t\tif(placeName.equals(\"\"))\n\t\t\t\t\tplaceName=sc.nextLine();\n\t\t\t\tSystem.out.println(\"Date of Journey: (dd-MMM-yy)\");\n\t\t\t\tdateOfJourney=sdf.parse(sc.nextLine());\n\t\t\t\tSystem.out.println(\"price:\");\n\t\t\t\tpricePackage=sc.nextInt();\n\t\t\t\tsc.nextLine();\n\t\t\t\tSystem.out.println(\"Picture: (pls enter the full path)\");\n\t\t\t\tFile f=new File(sc.nextLine());\n\t\t\t\tint len=(int)f.length();\n\t\t\t\tplaceImage=new byte[len];\n\t\t\t\tFileInputStream fis=new FileInputStream(f);\n\t\t\t\tfis.read(placeImage);\n\t\t\t\tfis.close();\n\t\t\t\ttravel=new Travel(travelId,placeName,dateOfJourney,pricePackage,placeImage);\n\t\t\t\ttdao.create(travel);\n\t\t\t\tSystem.out.println(\"Added...\");\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 2:///display details\n//\t\t\t\tSystem.out.format(\"%d %-10s %-10s %d %10s\\n\");\n\t\t\t\tList<Travel> travels = tdao.read();\n for(Travel t : travels)\n// System.out.format(\"%d %-10s %-10s %d %15s\\n\", t.getTravelId(),t.getPlaceName(),t.getDateOfJourney(),t.getPricePackage(),t.getPlaceImage());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3://display by id\n\t\t\t\tSystem.out.println(\"Enter the travelId to view the details\");\n\t\t\t\tint tid=sc.nextInt();\n\t\t\t\ttravel=tdao.read(tid);\n//\t\t\t\t System.out.format(\"%d %-10s %-10s %d %15s\\n\", travel.getTravelId(),travel.getPlaceName(),travel.getDateOfJourney(),travel.getPricePackage(),travel.getPlaceImage());\n\t\t\t\tSystem.out.println(travel);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4://update\n\t\t\t\tSystem.out.println(\"Please provide the values to update the details\");\n\t\t\t\tSystem.out.println(\"travelId Id:(mandatory)\");\n\t\t\t\ttry {\n\t\t\t\ttravelId=sc.nextInt();\n\t\t\t\t}catch(InputMismatchException ime)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Please enter only valid travel Id\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"placeName:(leave blank to keep unchanged)\");\n\t\t\t\tplaceName=sc.nextLine();\n\t\t\t\tif(placeName.equals(\"\"))\n\t\t\t\t\tplaceName=sc.nextLine();\n\t\t\t\tSystem.out.println(\"Date of Journey: (dd-MMM-yy)(leave blank to keep unchanged)\");\n\t\t\t\tString sdate=sc.nextLine();\n\t\t\t\tif(!sdate.equals(\"\"))\n\t\t\t\t\tdateOfJourney=sdf.parse(sdate);\n\t\t\t\tSystem.out.println(\"price:(leave blank to keep unchanged)\");\n\t\t\t\tpricePackage=sc.nextInt();\n\t\t\t\tsc.nextLine();\n\t\t\t\tSystem.out.println(\"Picture: (pls enter the full path)(leave blank to keep unchanged)\");\n\t\t\t\tString sFile=sc.nextLine();\n\t\t\t\tif(!sFile.equals(\"\"))\n\t\t\t\t{\t\n\t\t\t\t\tf=new File(sFile);\n\t\t\t\t\tlen=(int)f.length();\n\t\t\t\t\tplaceImage=new byte[len];\n\t\t\t\t\tfis=new FileInputStream(f);\n\t\t\t\t\tfis.read(placeImage);\n\t\t\t\t\tfis.close();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttravel=tdao.read(travelId);\n\t\t\t\tif(travel==null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Sorry, No associate found for id:\"+travelId);\n\t\t\t\t\tbreak switchBlock;\n\t\t\t\t}\n\t\t\t\t//update whichever field is entered by the user\n\t\t\t\tif(!placeName.equals(\"\"))\n\t\t\t\t\ttravel.setPlaceName(placeName);\n\t\t\t\tif(dateOfJourney!=null)\n\t\t\t\t\ttravel.setDateOfJourney(dateOfJourney);\n\t\t\t\tif(pricePackage!=0)\n\t\t\t\t\ttravel.setPricePackage(pricePackage);\n\t\t\t\tif(placeImage!=null)\n\t\t\t\t\ttravel.setPlaceImage(placeImage);\n\t\t\t\tint no=tdao.update(travel);\n\t\t\t\tSystem.out.println(no+\" row(s) updated\");\n\t\t\t\tbreak;\n\t\t\tcase 5://delete\n\t\t\t\tSystem.out.println(\"provide an id to delete the details \");\n\t\t\t\ttid=sc.nextInt();\n\t\t\t\ttdao.delete(tid);\n\t\t\t\tSystem.out.println(\"the entry was deleted\");\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t}\n\t\t}while(true);\n\n\t}", "@Override\r\n public void update() {\n ArrayList<String>Lines=new ArrayList<>();\r\n File file =new File(\"/home/yara/Documents/4year/OODP/Task.txt\");\r\n BufferedReader br = null;\r\n try {\r\n br = new BufferedReader(new FileReader(\"/home/yara/Documents/4year/OODP/Task.txt\"));\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(Task.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n String str;\r\n String UID=id.getText();\r\n try {\r\n while((str=br.readLine()) !=null)\r\n {\r\n \r\n Lines.add(str);\r\n }\r\n String UpadetString = id.getText() +\" , \"+ name.getText()+\" , \"+ date_start.getText()+\" , \"+ date_finish.getText()+\" , \"+status.getText();\r\n for (int i=0 ;i<Lines.size();i++)\r\n {\r\n String line=Lines.get(i).trim();\r\n String[] datarow =line.split(\" , \");\r\n if(datarow[0].equals(UID))\r\n {\r\n Lines.set(i,UpadetString );\r\n } \r\n }\r\n PrintWriter Pwriter = new PrintWriter(file);\r\n Pwriter.print(\"\");\r\n Pwriter.close();\r\n \r\n File f=new File(\"/home/yara/Documents/4year/OODP/Task.txt\");\r\n FileWriter writer = new FileWriter(f.getAbsoluteFile(), true);\r\n BufferedWriter bw=new BufferedWriter(writer);\r\n for(String x:Lines)\r\n {\r\n bw.write(x);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n \r\n } catch (IOException ex) {\r\n Logger.getLogger(Task.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n }", "@Override\n\tprotected void save() throws Exception {\n\t\t//turn the list of data into a unique list of tickets\n\t\tMap<String, ExtTicketVO> tickets= new HashMap<>(data.size());\n\t\tfor (SOHDRFileVO dataVo : data) {\n\t\t\t//035 are harvests and all we care about\n\t\t\tif (\"035\".equals(dataVo.getSoType())) {\n\t\t\t\tExtTicketVO vo = transposeTicketData(dataVo, new ExtTicketVO());\n\t\t\t\ttickets.put(vo.getTicketId(), vo);\n\t\t\t}\n\t\t}\n\n\t\tpopulateTicketDBData(tickets);\n\n\t\ttickets = removeGhostRecords(tickets);\n\n\t\t//don't bother with the rest of this class if we have no tickets\n\t\tif (tickets.isEmpty()) return;\n\n\t\tdecomissionUnits(tickets.keySet()); //ticket\n\n\t\tpurgePartShipments(tickets.keySet()); //calls purgeShipments to cascade deletion\n\n\t\tsetDispositionCode(tickets); //ticket_data attr_dispositionCode\tNONREPAIRABLE\n\n\t\tcorrectLedgerEntries(tickets);\n\t}", "public void writeToEmployeeListFile()\r\n {\r\n\ttry(ObjectOutputStream toEmployeeListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/employeelist.dta\")))\r\n\t{\r\n toEmployeeListFile.writeObject(employeeList);\r\n employeeList.saveStaticEmpRunNr(toEmployeeListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Ansatt objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public void addWarehouses(String fileName)\r\n {\r\n //read file \r\n try\r\n {\r\n //file reader\r\n FileReader fin = new FileReader(fileName);\r\n //create a new scanner\r\n Scanner graphFile1 = new Scanner(fin);\r\n\r\n //String variable \r\n String line;\r\n //while the file has next line\r\n while(graphFile1.hasNextLine())\r\n {\r\n //get the next line in the file\r\n line=graphFile1.nextLine();\r\n //create a new StringTokenizer at that line\r\n StringTokenizer st = new StringTokenizer(line);\r\n //read through that line\r\n try\r\n {\r\n //if there is only 1 string in this line\r\n if(st.countTokens()==1)\r\n {\r\n // pick up this String as the number of warehouse in total \r\n int numOfWarehouse = Integer.parseInt(st.nextToken());\r\n //continue to next iteration of the loop \r\n continue;\r\n }\r\n //if more than 1 String in the line\r\n //take the first String and store as the id of warehouse\r\n String id = (\"W\"+Integer.parseInt(st.nextToken()));\r\n //take the next String which contains the X coordinate of the warehouse\r\n String coordinateX = st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st1 = new StringTokenizer(coordinateX,\"(,\");\r\n //take the first String and store it as the x coordinate of this warehouse \r\n int x= Integer.parseInt(st1.nextToken());\r\n\r\n //take the next String which contains the Y coordinate of the warehouse\r\n String coordinateY = st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st2 = new StringTokenizer(coordinateY,\"):\");\r\n //take the first String and store it as the y coordinate of this warehouse \r\n int y= Integer.parseInt(st2.nextToken());\r\n //take the next String which contains number of truck of the warehosue\r\n String Truck =st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st3 = new StringTokenizer(Truck,\",\");\r\n //take the next String and store it as the number of trucks the warehouse has \r\n int numOfTruck =Integer.parseInt(st3.nextToken());\r\n\r\n //add the warehouse into the graph \r\n town.addWarehouse(x,y,id, numOfTruck);\r\n }\r\n catch(NumberFormatException e )\r\n { System.err.println( \"Skipping bad line \" + line ); }\r\n\r\n }\r\n\r\n }\r\n catch( IOException e )\r\n { System.err.println( e ); }\r\n\r\n \r\n }", "public void saveStage1(String format)\n {\n super.saveStage1(format);\n try{\n writer.write(\"CB336\");\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(33).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(34).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(35).getText()));\n writer.write(\"\\r\\n\");\n\n writer.write(\"CB714\");\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(36).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(37).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(38).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(39).getText())); \n writer.close();\n }\n catch(IOException e){\n JOptionPane.showMessageDialog(null, \"Error in exporting file\", \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n }", "private void BtnTimeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnTimeActionPerformed\n if(time1==null || time2==null || interval==null)\n {\n JOptionPane.showMessageDialog(null, \"Please enter all fields\", \"Warning!\", JOptionPane.WARNING_MESSAGE);\n }\n else\n {\n //Create Files\n File f = new File(\"Time.sys\");\n BufferedWriter out = null;\n try {\n if(f.createNewFile())\n System.out.println(\"Created!\");\n else\n System.out.println(\"Already Exists!\");\n \n FileWriter fstream = new FileWriter(\"Time.sys\", false); //true tells to append data.\n out = new BufferedWriter(fstream);\n out.write(time1+\"\\n\"+time2+\"\\n\"+interval);\n \n } catch (IOException ex) {\n Logger.getLogger(Settings.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n if(out!=null)\n try {\n out.close();\n } catch (IOException ex) {\n Logger.getLogger(Settings.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n }", "public void saveCart() throws IOException {\n String fileName = userid + \"cart.txt\";\n File file=new File(fileName);\n if(file.exists())\n {\n FileOutputStream fos = new FileOutputStream(fileName);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this.cartContents);\n oos.flush();\n oos.close();\n fos.close();\n }\n else{\n file.createNewFile();\n }\n }", "void create() {\n\t\ttry {\n\t\t\tFile file = new File(\"Student.txt\");\n\t\t\t//File named Student.txt is created\n\t\t\tboolean x = file.createNewFile();\n\t\t\tif (x) {\n\t\t\t\tSystem.out.println(\"File has been created successfully! \");\n\t\t\t//Message of successful creation after new file is created\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"File already present\");\n\t\t\t\t//message if file already exists\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Exception Occurred:\");\n\n\t\t}\t\t\t\t\n\t\t\n\t\t\t\t\n\t\ttry {\n\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\"Student.txt\", true)));\n\t\tint x = 1;\n\t\t\n\t\tdo {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint y;\n\t\t\t//take input from user for name,roll no and mobile no.\n\t\t\t\n\t\t\tSystem.out.print(\"\\nEnter Student Name: \");\n\t\t\tstudentname = br.readLine();\n\t\t\t\n\t\t\tSystem.out.print(\"Student Roll no: \");\n\t\t\trollno = Integer.parseInt(br.readLine());\t\t\n\t\t\t\n\t\t\tSystem.out.print(\"Mobile Number: \");\n\t\t\tmob_no = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tSystem.out.print(\"Marks : \");\n\t\t\tmarks = Float.parseFloat(br.readLine());\n\t\t\t\n\t\t\t//display student data\n\n\t\t\tpw.println(studentname + \"\\t\" + rollno + \"\\t\" + marks + \"\\t\" + mob_no);\n\t\t\t\n\t\t\tSystem.out.println(\"Do you want to enter more records? \\n1) Yes\\n2) No\");\n\t\t\t\n\t\t\ty = sc.nextInt();\n\t\t\t\n\t\t\tif(y == 2) {\n\t\t\t\tx = 0;\n\t\t\t}\n\t\t}while(x==1); //loop to add more records\n\t\tpw.close();\n\t\t}catch(IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}", "public static void printReport() throws Exception\r\n\t{\n\t\tFile file=new File(\"Data/Peopledetails.txt\");\r\n\t\tfs=new Scanner(file);\r\n\t\tfs.useDelimiter(\",|\\\\r\\n\");\r\n\t\t\r\n\t\t//Print out headers for table\r\n\t\tSystem.out.printf(\"%5s%20s%10s%15s%20s%15s%15s%20s%10s%20s%10s\\n\\n\", \r\n\t\t\t\t\"ID\", \"Name\", \"Gender\", \"Hourly Rate\", \"Contracted Hours\",\t\"Gross Pay\", \r\n\t\t\t\t\"Income Tax\", \"National Insurance\", \"Pension\", \"Total Deductions\", \"Net pay\");\r\n\t\t\r\n\t\twhile (fs.hasNext())\r\n\t\t{\r\n\t\t\tid=fs.nextInt();\r\n\t\t\tfname=fs.next();\r\n\t\t\tsname=fs.next();\r\n\t\t\tgen=fs.next();\r\n\t\t\thrate=fs.nextDouble();\r\n\t\t\thrs=fs.nextDouble();\r\n\t\t\t\t\t\t\r\n\t\t\tgross=hrs*hrate;\r\n\t\t\t\t\t\t\r\n\t\t\t//Calculates the overtime\r\n\t\t\tif(hrs>40)\r\n\t\t\t{\r\n\t\t\t\totime=hrs-40;\r\n\t\t\t\tstandard=40;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\totime=0;\r\n\t\t\t\tstandard=hrs;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgross=(standard*hrate+otime*hrate*1.5);\r\n\t\t\t\r\n\t\t\t//Calculates the annual gross in order to calculate the income tax per week\r\n\t\t\tannualgross=gross*52;\r\n\t\t\t\r\n\t\t\t//Calculates Income Tax\r\n\t\t\tdouble p,b,h,a;\r\n\t\t\t\r\n\t\t\tif(annualgross<=12500)\r\n\t\t\t{\r\n\t\t\t\tp=0;\r\n\t\t\t\tb=0;\r\n\t\t\t\th=0;\r\n\t\t\t\ta=0;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>12500 && annualgross<=50000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t\tb = annualgross - 12500;\r\n\t\t\t\th = 0;\r\n\t\t\t\ta = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse if(annualgross>50000 && annualgross<=150000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t b = 37500;\r\n\t\t\t h = annualgross - 50000;\r\n\t\t\t a = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t p = 12500;\r\n\t\t b = 37500;\r\n\t\t h = 100000;\r\n\t\t a = annualgross - 150000;\r\n\r\n\t\t\t}\r\n\t\t\ttax= (p * 0 + b * 0.2 + h * 0.4 + a * 0.45)/52;\r\n\t\t\t\r\n\t\t\t//Calculates National Insurance Contribution\r\n\t\t\tif(annualgross>8500 && annualgross<50000)\r\n\t\t\t{\r\n\t\t\t\tnirate=0.12;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tnirate=0.02;\r\n\t\t\t}\r\n\t\t\tnitax=gross*nirate;\r\n\t\t\t\r\n\t\t\t//Calculates Pension Contribution\r\n\t\t\tif(annualgross<27698)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.074;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=27698 && annualgross<37285)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.086;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=37285 && annualgross<44209)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.096;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.117;\r\n\t\t\t}\r\n\t\t\tpension=gross*penrate;\r\n\t\t\t\r\n\t\t\t//Calculates total deductions\r\n\t\t\tdeduct=tax+nitax+pension;\r\n\t\t\t\r\n\t\t\t//Calculates net pay\r\n\t\t\tnet=gross-deduct;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.printf(\"%5d%20s%10s%15.2f%20.2f%15.2f%15.2f%15.2f%15.2f%20.2f%10.2f\\n\",\r\n\t\t\t\t\tid, fname+\" \"+sname, gen, hrate, hrs, gross, tax, nitax, pension, deduct, net);\r\n\t\t}\r\n\t\tfs.close();\r\n\t\t\r\n\t}", "public static void saveDataToFile() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy MM dd, HH mm\");\n Date date = new Date();\n String fileName= dateFormat.format(date)+\".txt\";\n\n try {\n PrintWriter writer = new PrintWriter(fileName, \"UTF-8\");\n writer.print(\"Wins: \");\n writer.println(wins);\n writer.print(\"Draws: \");\n writer.println(draws);\n writer.print(\"Losses: \");\n writer.println(loses);\n writer.close();\n System.out.println(\"File Write Successful\");\n } catch (IOException e) {\n\n }\n\n\n }", "public static void createAccount()throws IOException{\n\t\ttry{\n\t\t\tFile accountInfo = new File(\"account.txt\");\n\t\t\tFile Information = new File(\"information.txt\");\n\t\t\tArrayList<String> temp = new ArrayList<String>();\n\t\t\tArrayList<String> info = new ArrayList<String>();\n\t\t\tScanner inputFromInformation = new Scanner(Information);\n\t\t\tScanner inputFromAccount = new Scanner(accountInfo);\n\t\t\twhile (inputFromAccount.hasNextLine()){\n\t\t\t\ttemp.add(inputFromAccount.nextLine());\n\t\t\t}\n\t\t\tScanner input = new Scanner(System.in);\n\t\t\t// This is where we will start the new account process\n\t\t\t// first by telling us who you are.\n\t\t\tSystem.out.println(\"Enter your First Name\");\n\t\t\tString firstName = input.next();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter your Last Name\");\n\t\t\tString lastName = input.next();\n\t\t\t// This will give the user recommended\n\t\t\t// user names if they cannot think of one.\n\t\t\tRecommendedUserNames(firstName,lastName);\n\t\t\t// here they will be prompt to enter their preferred user name\n\t\t\tSystem.out.println(\"Enter your preferred username\");\n\t\t\tString UserName = input.next();\n\t\t\t// This will prompt the user for a password\n\t\t\t// The password will have to meet these requirements\n\t\t\tSystem.out.println(\"Your password should meet the following requirements:\");\n\t\t\tSystem.out.println(\"-It must have at least eight characters.\\n-It must consist of only letters and digits.\"\n\t\t\t\t\t\t\t+ \"\\n-It must contain more than two digits and two characters.\");\n\t\t\tSystem.out.println(\"\\nEnter your new Password\");\n\t\t\tString Password = input.next();\n\t\t\t\n\t\t\t// this is what will verify the user password and see if it meets the recommended requirements\n\t\t\t// for security reasons of course.\n\t\t\tString Pass;\n\n\t\t\tboolean check=false;\n\t\t\tif(validigits(Password)&&letter_digit_check(Password))check=true;\n\t\t\twhile(!check){\n\t\t\t\tSystem.out.println(\"Please recheck the password requirement and try again.\");\n\t\t\t\tPassword = input.next();\n\t\t\t\tif(validigits(Password)&&letter_digit_check(Password))check=true;\n\t\t\t}\n\t\t\tdo{\n\t\t\t\tSystem.out.println(\"\\nPlease re-enter the Password\");\n\t\t\t\tPass = input.next();\n\t\t\t\tif(!Pass.equals(Password))System.out.println(\"Passwords do not match!\");\n\t\t\t}while(!Pass.equals(Password));\n\t\t\tboolean CreateAccount = true;\n\t\t\tSystem.out.println(\"You need to fill the information for completion of your account registration\");\n\t\t\teditInfo(UserName,CreateAccount);\n\t\t\tPrintWriter output = new PrintWriter(accountInfo);\n\t\t\ttemp.add(UserName+\" \"+Password);\n\t\t\tfor (int i=0; i<temp.size(); i++){\n\t\t\t\toutput.println(temp.get(i));\n\t\t\t}\n\t\t\toutput.close();\n\t\t\tSystem.out.println(\"Your account has been created and your information has been saved\"\n\t\t\t\t\t+ \"\\nYou have been logged out for this session\\n\");\n\t\t\tstarter();\n\t\t}\n\t\tcatch (java.io.IOException ex){\n\t\t\tSystem.out.println(\"I/O Errors: File is not found\");\n\t\t}\t\n\t}", "private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "public static void writeFile(String formattedGuests, File file) throws IOException {\n\n\t\tOutputStream out = null;\n\n\t\ttry {\n\n\t\t\tout = new BufferedOutputStream(new FileOutputStream(file));\n\t\t\tbyte[] bytes = formattedGuests.getBytes();\n\n\t\t\t//to avoid the annoying bug with the last two CR + LF we write bytes one\n\t\t\tfor (int i = 0; i < bytes.length - 3; i++){\n\t\t\t\tout.write(bytes[i]);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\n\t\t\t//Ugly to read but needed to ensure the file is correctly closed after an IOError\n\t\t\tif (out != null) {\n\t\t\t\ttry {\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "private void saveDataToFile() {\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n // path for new accounts 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 try (FileWriter fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw)) {\n for (int i = 0; i < remindersTable.getRowCount(); i++) { // rows\n for (int j = 0; j < remindersTable.getColumnCount(); j++) { // cols\n bw.write(remindersTable.getValueAt(i, j).toString() + \"\\t\");\n }\n bw.newLine();\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // path for existing accounts 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 try (FileWriter fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw)) {\n for (int i = 0; i < remindersTable.getRowCount(); i++) { // rows\n for (int j = 0; j < remindersTable.getColumnCount(); j++) { // cols\n bw.write(remindersTable.getValueAt(i, j).toString() + \"\\t\");\n }\n bw.newLine();\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "private void saveEmployee()\n {\n Employee tempEmployee = new Employee();\n String line = \"\";\n try\n {\n PrintWriter out = new PrintWriter(fileName);\n for(int i = 0; i < employees.size(); i++)\n {\n tempEmployee = (Employee) employees.get(i);\n line = tempEmployee.getName() + \",\" + tempEmployee.getHours() + \",\" +\n tempEmployee.getRate();\n out.println(line);\n }\n out.close(); \n }\n catch(IOException ex)\n {\n ex.printStackTrace();\n }\n }", "public static void main(String[] args) throws Exception {\n File file = new File(\"e://m/iphone_cust_id_2017-09-27-14.txt\");\n Set<String> xiaoMi = readFile(file);\n Set<String> origin = readFile(new File(\"e://m/split_bug8091_default_cust_id_num545268.txt\"));\n Set<String> s3 = new HashSet<String>();\n Set<String> last = new HashSet<String>(origin.size());\n for (String custId : origin) {\n if(xiaoMi.contains(custId)) {\n last.add(custId);\n }\n }\n System.out.println(last.size());\n writeFile(last, \"e://m/iphone.txt\");\n //List<String> last = setHandle(origin, xiaoMi, s3,3);\n //System.out.println(last.size());\n }", "private void jButtonSaveActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n String ItemCode,ItemName,ItemDescription,UOM;\n Double SellingPrice,CostPrice;\n Float VATValue;\n Boolean VATInclusive;\n\n ItemCode=ItemCode1.getText();\n if(ItemCode.isEmpty()){\n JOptionPane.showMessageDialog(null,\"Enter ItemCode To Continue\");\n return;\n }\n ItemName=txtItemName.getText();\n if(ItemName.isEmpty()){\n JOptionPane.showMessageDialog(null,\"Enter ItemName To Continue\");\n return;\n }\n ItemDescription=Itemdesc.getText();\n if(ItemDescription.isEmpty()){\n JOptionPane.showMessageDialog(null,\"Enter ItemDescription To Continue\");\n return;\n }\n UOM=TXTUOM.getText();\n if(UOM.isEmpty()){\n JOptionPane.showMessageDialog(null,\"Enter UOM To Continue\");\n return;\n }\n String va=txtVATValue.getText();\n \n if(va.isEmpty()){\n JOptionPane.showMessageDialog(null,\"Enter VATValue To Continue\");\n return;\n }else{\n VATValue=Float.parseFloat(va);\n }\n VATInclusive=jCheckBox1.isSelected();\n String se=txtSellingPrice.getText();\n \n if(se.isEmpty()){\n JOptionPane.showMessageDialog(null,\"Enter SellingPrice To Continue\");\n return;\n }else{\n SellingPrice=Double.parseDouble(se);\n }\n String co=txtItemCostprice.getText();\n \n if(co.isEmpty()){\n JOptionPane.showMessageDialog(null,\"Enter CostPrice To Continue\");\n return;\n }else{\n CostPrice=Double.parseDouble(co);\n }\n \n Item _Item=new Item( ItemCode, ItemName, ItemDescription, UOM, _Constants.getRegSource(), _Constants.getUserId(), SellingPrice, CostPrice, VATValue, VATInclusive);\n if(_Item.SaveItem()){\n JOptionPane.showMessageDialog(null,\"Item Saved Successfully\");\n LoadItemss();\n }\n } catch (Exception e) {\n Security sec=new Security();\n sec.setMessage(e.getMessage());\n sec.setModule(\"Saving Items\");\n sec.setRegSource(_Constants.getRegSource());\n sec.setUserID(_Constants.getUserId());\n sec.SaveErrors();\n }\n }", "public void save(int reservationID, int customerId,String airline, int flightNumber, int HotelId, int carId,\n\t\t\tint numberOfReservedRooms, int numberOfReservedSuites, int numberOfReservedCars, int numberOfreservedSeats,\n\t\t\tint numNightsPerRooms, int numberNightPerSuites, int numDaysPerCars, int numSeats)\n\t\n\t{\n\t}", "public static void openF(){\n Scanner in = new Scanner(System.in);\n \n String Name;\n\tString Code;\n\tString Capital;\n\tlong Population;\n\tlong GDP;\n\tString HappinessRank;\n int GDPperCapita;\n \n \n Country country;\n \n \n Scanner stream;\n \n File file = new File(fName);\n \n if(!file.exists()){\n System.out.println(\"File does not exist.\");\n }\n else\n\n \n try{\n stream = new Scanner(file);\n stream.nextLine();\n stream.useDelimiter(\",|\\\\n\");\n \n while(stream.hasNext()){\n Name = stream.next();\n Code = stream.next();\n Capital = stream.next();\n Population = Long.parseLong(stream.next());\n GDP = new BigDecimal(stream.next()).longValue();\n HappinessRank = NumberFormat.getIntegerInstance(Locale.US).format(stream.nextInt());\n GDPperCapita = (int) (GDP/ Population);\n \n \n \n country = new Country (Name, Code, Capital, Population, GDP, HappinessRank, GDPperCapita);\n \n \n \n \n \n if(country.getGDPperCapita()< 1000)\n POOR.insert(country);\n \n \n else if(country.getGDPperCapita() >= 1000 && country.getGDPperCapita() < 5000)\n FAIR.insert(country);\n \n \n else if(country.getGDPperCapita() >= 5000 && country.getGDPperCapita() < 20000)\n GOOD.insert(country);\n \n \n else if(country.getGDPperCapita() >= 20000 && country.getGDPperCapita() < 50000)\n VGOOD.insert(country);\n \n \n else \n EXCELLENT.insert(country);\n \n \n \n \n } stream.close();\n System.out.println(\"\");\n \n }\n \n catch(IOException e){\n e.printStackTrace();\n } \n \n }", "public static void main(String[] args) {\n\t\tint accountInput = -1;\r\n\t\twhile(accountInput != 5){\r\n\t\t\tSystem.out.println(\"\\nWelcome to the bank.\\n 1) Existing Account Holder\\n 2) Open a New Account\\nWhat would you like to do? \");\r\n\t\t\tScanner s = new Scanner(System.in);\r\n\t\t\tint mainInput = s.nextInt();\r\n\t\t\tif(mainInput == 1){\r\n\t\t\t\tFileWriter fw = null;\r\n\t\t\t\tPrintWriter pw = null;\r\n\t\t\t\tFileReader fr = null;\r\n\t\t\t\tBufferedReader br = null;\r\n\t\t\t\tboolean incorrectLogin = true;\r\n\t\t\t\tString username = null;\r\n\t\t\t\tString password = null;\r\n\t\t\t\tString line = null;\r\n\t\t\t\tCheckingAccount C;\r\n\t\t\t\tCheckingAccount C1;\r\n\t\t\t\tSavingsAccount S;\r\n\t\t\t\tSavingsAccount S1;\r\n\t\t\t\tboolean quit = true;\r\n\t\t\t\tboolean filenotfound = false;\r\n\t\t\t\tboolean quitstate = false;\r\n\t\t\t\twhile(incorrectLogin){\r\n\t\t\t\t\tSystem.out.println(\"Username: \");\r\n\t\t\t\t\tusername = s.next();\r\n\t\t\t\t\tif(quitstate){\r\n\t\t\t\t\t\tif(username.equals(\"q\")) break;\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tquitstate = false;\r\n\t\t\t\t\t\t\tquit = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tfr = new FileReader(\"./Users.txt\");\r\n\t\t\t\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\t\t\tline = br.readLine();\r\n\t\t\t\t\t\twhile(line != null){\r\n\t\t\t\t\t\t\tString[] arr = line.split(\" \");\r\n\t\t\t\t\t\t\tif(username.equals(arr[0])){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Password: \");\r\n\t\t\t\t\t\t\t\tpassword = s.next();\r\n\t\t\t\t\t\t\t\tif(password.equals(arr[1])){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Welcome to your accounts, \" + username + \".\");\r\n\t\t\t\t\t\t\t\t\tquit = false;\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\tline = br.readLine();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(quit){\r\n\t\t\t\t\t\t\tincorrectLogin = true;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Iím sorry, but that username and password does not match any at our bank. Please try again (or enter \\'q\\' to return to the main menu).\");\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tquitstate = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse incorrectLogin = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\t\t\tSystem.out.println(\"Iím sorry, but that username and password does not match any at our bank. Please try again (or enter \\'q\\' to return to the main menu).\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfilenotfound = true;\r\n\t\t\t\t\t\tincorrectLogin = false;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\");\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t\t\r\n\t\r\n\t\t\t\t\t} catch (IOException 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}\r\n\t\t\t\tif(!quit){\r\n\t\t\t\t\tString [] arr = line.split(\" \");\r\n\t\t\t\t\tC = new CheckingAccount(Double.parseDouble(arr[2]));\r\n\t\t\t\t\tC1 = C;\r\n\t\t\t\t\tif(C.getBalance() + Double.parseDouble(arr[3]) < 1000 ){\r\n\t\t\t\t\t\tS = new Basic(Double.parseDouble(arr[3]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(C.getBalance() + Double.parseDouble(arr[3]) < 10000 ){\r\n\t\t\t\t\t\tS = new Premium(Double.parseDouble(arr[3]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tS = new Deluxe(Double.parseDouble(arr[3]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tS1 = S;\r\n\t\t\t\t\twhile(accountInput!=5){\r\n\t\t\t\t\t\tSystem.out.println(\"\\n 1) View Account Information\\n 2) Make a Deposit\\n 3) Make a Withdrawal\\n 4) Determine Balance in x Years\\n 5) Logout \\nWhat would you like to do? \");\r\n\t\t\t\t\t\taccountInput = s.nextInt();\r\n\t\t\t\t\t\tif(accountInput == 1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"You have a Checking account with a balance of $ \" + C.getBalance());\r\n\t\t\t\t\t\t\tSystem.out.println(\"You have a \" + S.getAccountType() + \" account with a balance of $ \" + S.getBalance());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(accountInput == 2){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Here are the accounts you have: \\n 1) Checking\\n 2) \" + S.getAccountType() + \"\\nInto which account would you like to make a deposit?\");\r\n\t\t\t\t\t\t\tint depIn = s.nextInt();\r\n\t\t\t\t\t\t\tif(depIn == 1){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tdouble checkingsDeposit = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to deposit into your checking account? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tcheckingsDeposit = s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(checkingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\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\tSystem.out.println(\"$\" + checkingsDeposit + \" has been deposited into your checking account\");\r\n\t\t\t\t\t\t\t\tC1 = new CheckingAccount(C.getBalance() + checkingsDeposit);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(depIn == 2){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tdouble savingsDeposit = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to deposit into your \" + S.getAccountType() + \" account? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tsavingsDeposit = s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(savingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\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\tSystem.out.println(\"$\" + savingsDeposit + \" has been deposited into your \" + S.getAccountType() + \" account\");\r\n\t\t\t\t\t\t\t\tS1 = new SavingsAccount(S.getBalance() + savingsDeposit);\r\n\t\t\t\t\t\t\t\tif(S1.getBalance() + C1.getBalance() < 1000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Basic(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(S1.getBalance() + C1.getBalance() < 10000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Premium(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\tS1 = new Deluxe(S1.getBalance());\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\telse if(accountInput == 3){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Here are the accounts you have: \\n 1) Checking\\n 2) \" + S.getAccountType() + \"\\nFrom which account would you like to withdraw?\");\r\n\t\t\t\t\t\t\tint withOut = s.nextInt();\r\n\t\t\t\t\t\t\tif(withOut == 1){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tboolean TooMuch = true;\r\n\t\t\t\t\t\t\t\tdouble checkingsWithdrawal = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative||TooMuch){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to withdraw? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tcheckingsWithdrawal= s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(checkingsWithdrawal > C.getBalance()){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = true;\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You do not have $\" + checkingsWithdrawal + \" in your checking account.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse if(checkingsWithdrawal > 0){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You are not allowed to withdrawal a negative amount.\");\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = true;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\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\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"$\" + checkingsWithdrawal + \" withdrawn from your checking account\");\r\n\t\t\t\t\t\t\t\tC1 = new CheckingAccount(C.getBalance() - checkingsWithdrawal);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(withOut == 2){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tboolean TooMuch = true;\r\n\t\t\t\t\t\t\t\tdouble savingsWithdrawal = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative||TooMuch){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to withdraw? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tsavingsWithdrawal= s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(savingsWithdrawal > C.getBalance()){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = true;\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You do not have $\" + savingsWithdrawal + \" in your \" + S.getAccountType() + \" account.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse if(savingsWithdrawal > 0){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You are not allowed to withdrawal a negative amount.\");\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = true;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\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\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"$\" + savingsWithdrawal + \" withdrawn from your \" + S.getAccountType() + \" account.\");\r\n\t\t\t\t\t\t\t\tS1 = new SavingsAccount(S.getBalance() - savingsWithdrawal);\r\n\t\t\t\t\t\t\t\tif(S1.getBalance() + C1.getBalance() < 1000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Basic(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(S1.getBalance() + C1.getBalance() < 10000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Premium(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\tS1 = new Deluxe(S1.getBalance());\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\telse if(accountInput == 4){\r\n\t\t\t\t\t\t\tSystem.out.println(\"In how many years? \");\r\n\t\t\t\t\t\t\tint years = s.nextInt();\r\n\t\t\t\t\t\t\tSystem.out.println(\"Your \" + S.getAccountType() + \" account will have the following: \");\r\n\t\t\t\t\t\t\tSystem.out.println(\"Year Amount Interest \");\r\n\t\t\t\t\t\t\tSystem.out.println(\"---- ------ --------\");\r\n\t\t\t\t\t\t\tfor(int i = 0; i < years; i ++){\r\n\t\t\t\t\t\t\t\tSystem.out.print(i + \" $\");\r\n\t\t\t\t\t\t\t\tSystem.out.printf(\"%.2f\", S1.getBalanceAfterNumYears(i));\r\n\t\t\t\t\t\t\t\tSystem.out.print(\" $\");\r\n\t\t\t\t\t\t\t\tSystem.out.printf(\"%.2f\", S1.getBalanceAfterNumYears(i+1)-S1.getBalanceAfterNumYears(i));\r\n\t\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tSystem.out.print(years + \" $\");\r\n\t\t\t\t\t\t\tSystem.out.printf(\"%.2f\", S1.getBalanceAfterNumYears(years));\r\n\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(accountInput == 5){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Thank you for coming to the bank!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(accountInput == 2 || accountInput == 3){\r\n\t\t\t\t\t\t\tline = null;\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tfr = new FileReader(\"./Users.txt\");\r\n\t\t\t\t\t\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\t\t\t\t\tString totalText = \"\";\r\n\t\t\t\t\t\t\t\twhile((line = br.readLine()) != null){\r\n\t\t\t\t\t\t\t\t\ttotalText += line + '\\n';\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tString text = username + \" \" + password + \" \" + C.getBalance() + \" \" + S.getBalance();\r\n\t\t\t\t\t\t\t\tString text1 = username + \" \" + password + \" \" + C1.getBalance() + \" \" + S1.getBalance();\r\n\t\t\t\t\t\t\t\ttotalText = totalText.replaceAll(text,text1);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\");\r\n\t\t\t\t\t\t\t\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t\t\t\tpw.write(totalText);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tfw.close();\r\n\t\t\t\t\t\t\t\tbr.close();\r\n\t\t\t\t\t\t\t\tfr.close();\r\n\t\t\t\t\t\t\t\tpw.flush();\r\n\t\t\t\t\t\t\t\tpw.close();\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\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\telse if(mainInput == 2){\r\n\t\t\t\tFileWriter fw = null;\r\n\t\t\t\tPrintWriter pw = null;\r\n\t\t\t\tFileReader fr = null;\r\n\t\t\t\tBufferedReader br = null;\r\n\t\t\t\tboolean nameTaken = true;\r\n\t\t\t\tString username = null;\r\n\t\t\t\tboolean quit = false;\r\n\t\t\t\tboolean filenotfound = false;\r\n\t\t\t\tboolean quitstate = false;\r\n\t\t\t\twhile(nameTaken){\r\n\t\t\t\t\tSystem.out.println(\"Username: \");\r\n\t\t\t\t\tusername = s.next();\r\n\t\t\t\t\tif(quitstate){\r\n\t\t\t\t\t\tif(username.equals(\"q\")) break;\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tquitstate = false;\r\n\t\t\t\t\t\t\tquit = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tfr = new FileReader(\"./Users.txt\");\r\n\t\t\t\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\t\t\tString line = br.readLine();\r\n\t\t\t\t\t\twhile(line != null){\r\n\t\t\t\t\t\t\tString[] arr = line.split(\" \");\r\n\t\t\t\t\t\t\tif(username.equals(arr[0])){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Iím sorry, but the username \\\" \" + username + \"\\\" is already associated with an account. Please try again (or enter \\'q\\' to return to the main menu).\");\r\n\t\t\t\t\t\t\t\tquit = true;\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\tline = br.readLine();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(quit){\r\n\t\t\t\t\t\t\tnameTaken = true;\r\n\t\t\t\t\t\t\tquitstate = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse nameTaken = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\t\t\tfilenotfound = true;\r\n\t\t\t\t\t\tnameTaken = false;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\");\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t\t\r\n\t\r\n\t\t\t\t\t} catch (IOException 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}\r\n\t\t\t\tif(!quit){\r\n\t\t\t\t\tif(!filenotfound){\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\", true);\r\n\t\t\t\t\t\t} catch (IOException 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\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Great, that username is not in use!\");\r\n\t\t\t\t\tSystem.out.println(\"Password: \");\r\n\t\t\t\t\tString password = s.next();\r\n\t\t\t\t\tpw.print(username + \" \" + password + \" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\tdouble checkingsDeposit = 0;\r\n\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\tSystem.out.println(\"How much would you like to deposit in checking? \");\r\n\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\tcheckingsDeposit = s.nextDouble();\t\r\n\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\tif(checkingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\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\tCheckingAccount C = new CheckingAccount(checkingsDeposit);\r\n\t\t\t\t\t\r\n\t\t\t\t\tNegative = true;\r\n\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\tdouble savingsDeposit = 0;\r\n\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\tSystem.out.println(\"How much would you like to deposit in savings? \");\r\n\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\tsavingsDeposit = s.nextDouble();\r\n\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\tif(savingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tpw.println(checkingsDeposit + \" \" + savingsDeposit + \" \");\r\n\t\t\t\t\tif(savingsDeposit + C.getBalance() < 1000.00){\r\n\t\t\t\t\t\tBasic S = new Basic(savingsDeposit);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(savingsDeposit + C.getBalance() < 10000.00){\r\n\t\t\t\t\t\tPremium S = new Premium(savingsDeposit);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tDeluxe S = new Deluxe(savingsDeposit);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tfw.close();\r\n\t\t\t\t\t\tbr.close();\r\n\t\t\t\t\t\tfr.close();\r\n\t\t\t\t\t\tpw.flush();\r\n\t\t\t\t\t\tpw.close();\r\n\t\t\t\t\t} catch (IOException 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}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void ReadVehicle(String inputfile, String outputfile, String[] styleids) {\n\r\n\t\tString StyleID_0 = \"\";\r\n\t\tString ImageID_1 = \"\";\r\n\t\tString FileName_2 = \"\";\r\n\t\tString Type_3 = \"\";\r\n\t\tString Background_4 = \"\";\r\n\t\tString Size_5 = \"\";\r\n\t\tString Carryover_6 = \"\";\r\n\t\tString Year_7 = \"\";\r\n\t\tString DivisionName_8 = \"\";\r\n\t\tString ModelName_9 = \"\";\r\n\t\tString BodyType_10 = \"\";\r\n\t\tString ExactMatch_11 = \"\";\r\n\t\tString OEMTemp_12 = \"\";\r\n\t\t// Assume default encoding.\r\n\t\tFileWriter fileWriter = null;\r\n\t\ttry {\r\n\t\t\tfileWriter = new FileWriter(outputfile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// Always wrap FileWriter in BufferedWriter.\r\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\r\n\r\n\t\tSystem.out.println(\"Started!\");\r\n\t\tint styleLenth = styleids.length;\r\n\t\tfor (String styleid : styleids) {\r\n\r\n\t\t\ttry (BufferedReader br = new BufferedReader(new FileReader(inputfile))) {\r\n\t\t\t\tString line;\r\n\t\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\t\t// process the line.\r\n\t\t\t\t\tList<String> elephantList = Arrays.asList(line.split(\",\"));\r\n\t\t\t\t\tStyleID_0 = elephantList.get(0);\r\n\t\t\t\t\t// StyleID_0=elephantList.get(12); //\r\n\r\n\t\t\t\t\tif (StyleID_0.equalsIgnoreCase(styleid)) {\r\n\t\t\t\t\t\t// if (StyleID_0.equalsIgnoreCase(\"~Y~\")) {\r\n\t\t\t\t\t\tbufferedWriter.write(line);\r\n\t\t\t\t\t\tbufferedWriter.newLine();\r\n\r\n\t\t\t\t\t\tSystem.out.println(line);\r\n\t\t\t\t\t\t// System.out.println(elephantList);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tbufferedWriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"Total StyleIDs=\" + styleLenth + \". Complete!\");\r\n\r\n\t}", "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\nSystem.out.println(\"Enter the name\");\nString name=s.nextLine();\nSystem.out.println(\"Enter the address\");\nString address=s.nextLine();\nSystem.out.println(\"Number of room\");\nint room=s.nextInt();\nSystem.out.println(\"Number of persons\");\nint persons=s.nextInt();\nSystem.out.println(\"AC OR Non-AC\");\nString ac=s.next();\nSystem.out.println(\"Booking Date\");\nString booking=s.next();\nSystem.out.println(\"Checkout Date\");\nString checkout=s.next();\nLocalDate ds=LocalDate.parse(booking);\nLocalDate de=LocalDate.parse(checkout);\nlong total=ChronoUnit.DAYS.between(ds, de);\nlong total=0;int p=(person%2);\nSystem.out.println(\"Reg-Details: \");\nSystem.out.println(\"Name : \"+name);\nSystem.out.println(\"Address : \"+address);\nSystem.out.println(\"No.of rooms : \"+room);\nSystem.out.println(\"No.of.Guest : \"+persons);\nint ac_amount=0,flag=0;\nif(ac.equals(\"AC\"))\n{\n\tac_amount=100;\n\tflag=1;\n}\n\t\nelse\n{\n\tac_amount=0;\n\tflag=0;\n}\nif(flag==1)\n\tSystem.out.println(\"AC :Yes\");\nelse\n\tSystem.out.println(\"AC :No\");\n\n\n\nint rent=500,flag1=0;;\n\nif(persons==(room*2)+1)\n{\n\t\n\tint amount=(int)((500+ac_amount)*(persons*total))+250;\n\tSystem.out.print(\"Amount :\"+amount);\n}\n\t\nelse\n{\n\tint amount=(int)((500+ac_amount)*(persons*total));\n\tSystem.out.print(\"Amount :\"+amount);\n\t\n\t}\n\n}", "public static void main(String[] args) {\n \n //variables\n String event, month, day, year, date, hour, min, time, \n section, row, seat, price, discount, cost, prize; \n double priceNum, discountNum, costNum, prizeNum;\n \n //getting input from user\n Scanner scan = new Scanner(System.in);\n System.out.print(\"Enter your event code: \");\n String userInput = scan.nextLine().trim();\n System.out.println();\n \n //if statement\n if (userInput.length() < MIN_LENGTH) {\n \n System.out.println(\"Invalid Event Code.\\n\"\n + \"Event code must have at least 26 characters.\");\n \n } else {\n \n event = userInput.substring(25, userInput.length());\n month = userInput.substring(0, 2);\n day = userInput.substring(2, 4);\n year = userInput.substring(4, 8);\n date = month + \"/\" + day + \"/\" + year;\n hour = userInput.substring(8, 10);\n min = userInput.substring(10, 12);\n time = hour + \":\" + min;\n section = userInput.substring(19, 21);\n row = userInput.substring(21, 23);\n seat = userInput.substring(23, 25);\n \n //setup formatters\n DecimalFormat dfPrice = new DecimalFormat(\"$#,##0.00\");\n DecimalFormat dfDiscount = new DecimalFormat(\"0%\");\n DecimalFormat dfPrize = new DecimalFormat(\"0000\");\n \n //price\n price = userInput.substring(12, 17);\n priceNum = Double.parseDouble(price);\n priceNum = priceNum / 100;\n price = dfPrice.format(priceNum);\n \n //discount\n discount = userInput.substring(17, 19);\n discountNum = Double.parseDouble(discount);\n discountNum = discountNum / 100;\n discount = dfDiscount.format(discountNum);\n \n //cost\n costNum = priceNum - (priceNum * discountNum);\n cost = dfPrice.format(costNum);\n \n //prize number\n prizeNum = (Math.random() * 10000) + 1;\n prize = dfPrize.format(prizeNum);\n \n \n //print statements\n System.out.print(\"Event: \" + event + \" Date: \" \n + date + \" Time: \" + time + \"\\n\"\n + \"Section: \" + section + \" Row: \" \n + row + \" Seat: \" + seat + \"\\n\"\n + \"Price: \" + price + \" Discount: \" \n + discount + \" Cost: \" + cost + \"\\n\"\n + \"Prize Number: \" + prize); \n }\n \n }", "private void readAndSAVE(String operation){\n boolean vaidation_status = true;\n\n new_notice_id = edtxt_new_notice_id.getText().toString();\n if (TextUtils.isEmpty(new_notice_id)){\n edtxt_new_notice_id.setError(\"Please enter valid details !!\");\n vaidation_status = false;\n } else {\n edtxt_new_notice_id.setError(null);\n }\n\n new_notice_title = edtxt_new_notice_title.getText().toString();\n if (TextUtils.isEmpty(new_notice_title)){\n edtxt_new_notice_title.setError(\"Please enter valid details !!\");\n vaidation_status = false;\n } else {\n edtxt_new_notice_title.setError(null);\n }\n\n new_notice_date = edtxt_new_notice_date.getText().toString();\n if (TextUtils.isEmpty(new_notice_date)){\n edtxt_new_notice_date.setError(\"Please enter valid details !!\");\n vaidation_status = false;\n } else {\n edtxt_new_notice_date.setError(null);\n }\n\n //---department,approved_by,announced_by\n department = edtxt_new_notice_department.getText().toString();\n if (TextUtils.isEmpty(department)){\n edtxt_new_notice_department.setError(\"Please enter valid details !!\");\n vaidation_status = false;\n } else {\n edtxt_new_notice_department.setError(null);\n }\n\n approved_by = edtxt_new_notice_approved_by.getText().toString();\n if (TextUtils.isEmpty(approved_by)){\n edtxt_new_notice_approved_by.setError(\"Please enter valid details !!\");\n vaidation_status = false;\n } else {\n edtxt_new_notice_approved_by.setError(null);\n }\n\n announced_by = edtxt_new_notice_announced_by.getText().toString();\n if (TextUtils.isEmpty(announced_by)){\n edtxt_new_notice_announced_by.setError(\"Please enter valid details !!\");\n vaidation_status = false;\n } else {\n edtxt_new_notice_announced_by.setError(null);\n }\n\n //--\n\n\n\n new_notice_details = edtxt_new_notice_details.getText().toString();\n if(new_notice_details.isEmpty()){\n vaidation_status = false;\n edtxt_new_notice_details.setText(\"Please write Details!!\");\n }\n\n // if all vaidation is true then add all details into firbase database\n if(vaidation_status){\n\n //create Details model\n NoticeDetails addNewNotice = new NoticeDetails();\n\n addNewNotice.setNotice_ID(new_notice_id);\n addNewNotice.setNotice_titles(new_notice_title);\n addNewNotice.setNotice_date(new_notice_date);\n addNewNotice.setNotice_details(new_notice_details);\n addNewNotice.setNotice_department(department);\n addNewNotice.setNotice_approved_by(approved_by);\n addNewNotice.setNotice_announced_by(announced_by);\n addNewNotice.setAttachmentsFilesName(textView_new_notice_vlu.getText().toString());\n\n addNewNotice.setNotice_user_type(StartUpActivity.userDetails.getType());\n addNewNotice.setNotice_user_state(StartUpActivity.userDetails.getState());\n addNewNotice.setNotice_user_district(StartUpActivity.userDetails.getDistt());\n\n addNewNotice.setUser_firebase_ID(StartUpActivity.userDetails.getSchool_firbaseDataID());\n\n showProgressDialog();\n\n if(mAuth.getCurrentUser()!=null)\n {\n //CHECK IF new achivments has been added or update process.\n if(operation.equals(\"CREATE_NEW\")) {\n\n // Get new push key\n new_notice_key = mDatabase.child(\"Global\").child(StartUpActivity.userDetails.getState()).child(\"Notice_Board\").push().getKey();\n addNewNotice.setNotice_firbase_ID(new_notice_key);\n\n } else {\n addNewNotice.setNotice_firbase_ID(new_notice_key);\n }\n\n // save the user at Global under user UID\n mDatabase.child(\"Global\").child(StartUpActivity.userDetails.getState()).child(\"Notice_Board\").child(new_notice_key).setValue(addNewNotice, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n\n hideProgressDialog();\n\n new_notice_created = true;\n\n if(databaseError==null)\n {\n Toast.makeText(AddNewNoticeActivity.this, \"Your Details has been saved !!\",\n Toast.LENGTH_SHORT).show();\n\n btn_add_new_notice.setText(\"EXIT\");\n\n\n }\n }\n });\n }\n\n\n\n }\n }", "@Override\r\n\tpublic void addSoftDrink() {\n\t\ttry {\r\n\t\t\toos = new ObjectOutputStream(new FileOutputStream(\"softDrink.txt\"));\r\n\t\t\r\n\t\t\tint flag = 1;\r\n\t\t\twhile (flag == 1) {\r\n\t\t\t\tSystem.out.println(\"Enter your sid\");\r\n\t\t\t\tint sId = sc.nextInt();\r\n\t\t\t\tSystem.out.println(\"Enter your sname\");\r\n\t\t\t\tString sName = sc.next();\r\n\t\t\t\tSystem.out.println(\"Enter your sprice\");\r\n\t\t\t\tdouble sPrice = sc.nextDouble();\r\n\t\t\t\tSystem.out.println(\"enter icequantity\");\r\n\t\t\t\tint sqty = sc.nextInt();\r\n\t\t\t\tSoftDrinkBean sdb = new SoftDrinkBean(sId, sName, sPrice, sqty);\r\n\t\t\t\tdrink.add(sdb);\r\n\t\t\t\tSystem.out\r\n\t\t\t\t\t\t.println(\"Do you want to add one more record press 1 otherwise any number\");\r\n\t\t\t\tflag = sc.nextInt();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\toos.writeObject(drink);\r\n\t\t\t\toos.flush();\r\n\t\t\t\toos.close();\r\n\t\t\t\tSystem.out.println(\"----SoftDrinks succesfully added\");\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}", "@Override\n\tpublic void insert(WareInListPO po) throws RemoteException {\n\t\tFile Arrivalfile = new File(\"TxtData/warein.txt\");\n\t\tif (po == null) {\n\t\t\tSystem.out.println(\"WAREINLIST IS NOTHING\");\n\t\t}\n\t\tif (po != null) {\n\t\t\ttry {\n\t\t\t\tOutputStreamWriter itemWriter = new OutputStreamWriter(new FileOutputStream(Arrivalfile, true),\n\t\t\t\t\t\t\"UTF-8\");\n\t\t\t\titemWriter.write(po.getId() + \"\");\n\t\t\t\titemWriter.write(\":\");\n\t\t\t\titemWriter.write(po.getTime() + \"\");\n\t\t\t\titemWriter.write(\":\");\n\t\t\t\titemWriter.write(po.getDestination().toString());\n\t\t\t\titemWriter.write(\":\");\n\t\t\t\titemWriter.write(po.getPlace().getQu() + \"\");\n\t\t\t\titemWriter.write(\"-\");\n\t\t\t\titemWriter.write(po.getPlace().getPai() + \"\");\n\t\t\t\titemWriter.write(\"-\");\n\t\t\t\titemWriter.write(po.getPlace().getJia() + \"\");\n\t\t\t\titemWriter.write(\"-\");\n\t\t\t\titemWriter.write(po.getPlace().getWei() + \"\");\n\t\t\t\titemWriter.write(\":\");\n\t\t\t\titemWriter.write(po.getState().toString());\n\t\t\t\titemWriter.write(\":\");\n\t\t\t\titemWriter.write(po.getTranscenterid() + \"\");\n\t\t\t\titemWriter.write(\":\");\n\t\t\t\titemWriter.write(po.getVehicle().toString());\n\t\t\t\titemWriter.write(\"\\r\\n\");\n\t\t\t\titemWriter.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void writingSpecializedArea(String newArea){//writing to objcet to file \n String filePath = \"userData\\\\specializedArea.txt\";\n BufferedWriter bw = null;\n try {//try catch start\n //file function\n File file = new File(filePath);\n \n if (!file.exists()) {//checking the is given file exists\n file.createNewFile();//creating new file\n Exception fileError=new IOException(\"File is not founded\");\n }\n \n FileWriter fw = new FileWriter(file,true);\n \n bw = new BufferedWriter(fw);\n \n bw.write(newArea);\n bw.newLine();\n \n } catch (IOException ioe) {\n System.out.println(ioe);\n ioe.printStackTrace();\n }\n finally{ \n try{\n if(bw!=null){\n bw.close();\n }\n }catch(Exception ex){\n System.out.println(\"Error in closing the BufferedWriter\"+ex);\n }\n }\n }", "public void Write_data() {\n // add-write text into file\n try {\n FileOutputStream fileout=openFileOutput(\"savedata11.txt\", MODE_PRIVATE);\n OutputStreamWriter outputWriter=new OutputStreamWriter(fileout);\n outputWriter.write(Integer.toString(_cnt));\n outputWriter.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void saveReceipt()\r\n\t{\r\n\t\tPrintWriter listWriter = null;\r\n\t\tPrintWriter contentWriter = null;\r\n\t\tnewReceipt = getTimeStamp();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tlistWriter = new PrintWriter(new FileOutputStream(RECEIPT_LIST_FILE, true));\r\n\t\t\tcontentWriter = new PrintWriter(RECEIPT_PATH + newReceipt);\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null,\"File Not Found\");\r\n\t\t}\r\n\t\t\r\n\t\tlistWriter.println(newReceipt);\r\n\t\tfor(int count=0; count < listModel.getSize(); count++)\r\n\t\t\tcontentWriter.println(listModel.elementAt(count));\r\n\t\t\r\n\t\tlistWriter.close();\r\n\t\tcontentWriter.close();\r\n\t\tclearReceipt();\r\n\t}", "private void saveData() {\n\t\tlogger.trace(\"saveData() is called\");\n\t\t\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFileOutputStream fileOut = new FileOutputStream(\"server-info.dat\");\n\t\t\tout = new ObjectOutputStream(fileOut);\n\t\t\tout.writeObject(jokeFile);\n\t\t\tout.writeObject(kkServerPort);\n\t\t\tout.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\t\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t} \n\t\tfinally {\n\t\t\tif (out != null){\n\t\t\t\ttry{\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }" ]
[ "0.6610412", "0.5928704", "0.589798", "0.5877241", "0.56991476", "0.56853765", "0.5684803", "0.5671392", "0.5667729", "0.56617564", "0.56078523", "0.55344814", "0.5532849", "0.5510544", "0.549679", "0.5453628", "0.544071", "0.54121584", "0.5402311", "0.5389403", "0.5346412", "0.5345315", "0.53282344", "0.5316245", "0.53131604", "0.530634", "0.5282114", "0.5274095", "0.52664244", "0.52384937", "0.5235317", "0.5220817", "0.52031815", "0.5199049", "0.5183886", "0.5181004", "0.5179062", "0.51774454", "0.51738524", "0.5166594", "0.5166142", "0.5163583", "0.5153517", "0.51465684", "0.5146353", "0.5137358", "0.5136189", "0.5135259", "0.5125658", "0.5125236", "0.5116278", "0.5115157", "0.5105285", "0.5101908", "0.50973815", "0.5097065", "0.5082174", "0.5071997", "0.50703955", "0.50664777", "0.5063918", "0.506349", "0.5057367", "0.5056985", "0.50539345", "0.50476277", "0.504444", "0.5040772", "0.5037626", "0.5033182", "0.5030141", "0.502954", "0.50199777", "0.50075823", "0.50017345", "0.49925223", "0.49869817", "0.4985285", "0.4982424", "0.49763927", "0.4971827", "0.49589992", "0.49583042", "0.49571857", "0.49545303", "0.4953469", "0.4953367", "0.49503022", "0.4949227", "0.4947956", "0.49431404", "0.49368715", "0.49367094", "0.49324384", "0.49290407", "0.4927145", "0.49206805", "0.4914312", "0.4911185", "0.49034244" ]
0.5435421
17
first i save selected hotel in a hotel object then i get reservations for the selected hotel then i make all the labels and text fields visible
public void actionPerformed(ActionEvent e) { Hotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem(); JOptionPane.showMessageDialog(null, "You selected the " + selectedHotel.getHotelName()); selectedHotel.getReservations(); lblCheckIn.setVisible(true); lblInMonth.setVisible(true); txtInMonth.setVisible(true); lblInDay.setVisible(true); txtInDay.setVisible(true); lblCheckout.setVisible(true); lblOutMonth.setVisible(true); txtOutMonth.setVisible(true); lblOutDay.setVisible(true); txtOutDay.setVisible(true); btnAdd.setVisible(true); reservationsModel.removeAllElements(); ///////////////////////////////////// ///////////////////////////////////// //Reading Info From Reservation.txt// ///////////////////////////////////// ///////////////////////////////////// /** * First i surround everything is a try.. catch blocks * then in the try block i declare the file input stream * then a scanner * then in a while loop i check if the file has next line * and a user a delimiter "-" * and it adds it to a new reservation * then it adds it to the ArrayList reservation * and it also adds it to the hotel object * then it checks if it can book that hotel * and if yes it adds it to the ReservationsModel */ try { FileInputStream fis = new FileInputStream("Reservation.txt"); Scanner fscan = new Scanner (fis); int INMonth = 0; int INday = 0; int OUTmonth = 0; int OUTday = 0; long iD = 0; while (fscan.hasNextLine()) { Scanner ls = new Scanner (fscan.nextLine()); ls.useDelimiter("-"); iD = Integer.parseInt(ls.next().trim()); INMonth = Integer.parseInt(ls.next().trim()); INday = Integer.parseInt(ls.next().trim()); OUTmonth = Integer.parseInt(ls.next().trim()); OUTday = Integer.parseInt(ls.next().trim()); r = new Reservation (iD,INMonth, INday, OUTmonth, OUTday); h.addReservation(new Reservation(iD,INMonth, INday, OUTmonth, OUTday)); Hotel hotel = (Hotel) cbHotelsOptions.getSelectedItem(); long hotID = hotel.getUniqueId(); if(iD == hotID) { reservationsModel.addElement((new Reservation(iD, INMonth, INday, OUTday))); } } } /** * The catch block checks to make sure that the file is found */ catch( FileNotFoundException fnfe) { System.err.println("File not found!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tObject HotelID = cbHotelsOptions.getSelectedItem();\n\t\t\t\t\tHotel hotel;\n\t\t\t\t\thotel = (Hotel) HotelID;\n\t\t\t\t\tlong id = hotel.getUniqueId();\n\t\t\t\t\t//\tSystem.out.println(id);\n\t\t\t\t\tString inmonth = txtInMonth.getText();\n\t\t\t\t\tint inMonth = Integer.valueOf(inmonth);\n\t\t\t\t\tString inday = txtInDay.getText();\n\t\t\t\t\tint inDay = Integer.parseInt(inday);\n\t\t\t\t\tString outmonth = txtOutMonth.getText();\n\t\t\t\t\tint outMonth = Integer.valueOf(outmonth);\n\t\t\t\t\tString outday = txtOutDay.getText();\n\t\t\t\t\tint OutDay = Integer.parseInt(outday);\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"Reservation.txt\", true);\n\t\t\t\t\tPrintWriter pw = new PrintWriter(fos);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * i then check the canBook method and according to the canBook method \n\t\t\t\t\t * i check if they can book, and if yes i add the reservation\n\t\t\t\t\t * otherwise it prints so the user may enter different values\n\t\t\t\t\t */\n\t\t\t\t\t{\n\t\t\t\t\t\tif(h.canBook(new Reservation(id,inMonth, inDay, OutDay)) == true) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservation.add(new Reservation (id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\tr = new Reservation (id,inMonth, inDay, OutDay);\n\t\t\t\t\t\t\th.addResIfCanBook(new Reservation(id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\treservationsModel.addElement(r);\n\t\t\t\t\t\t\tpw.println( id + \" - \" + inMonth + \"-\"+ inDay+ \" - \" + outMonth + \"-\" + OutDay);\n\t\t\t\t\t\t\tpw.close();\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"These dates are already reserved\"\n\t\t\t\t\t\t\t\t\t+ \"\\nPlease try again!\");\t\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\t/**\n\t\t\t\t * Then the catch Block checks for file not found exception\n\t\t\t\t */\n\t\t\t\tcatch (FileNotFoundException fnfe) \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found.\");\n\t\t\t\t}\n\t\t\t}", "private void initHotelsAndReservations() \n\t{\n\t\ttry\n\t\t{\n\t\t\tFileInputStream fis = new FileInputStream(\"Hotels.txt\");\n\t\t\tScanner fs = new Scanner(fis);\n\t\t\twhile(fs.hasNextLine())\n\t\t\t{\n\t\t\t\tScanner is = new Scanner(fs.nextLine());\n\t\t\t\tis.useDelimiter(\",\");\n\t\t\t\tint id = Integer.parseInt(is.next().trim());\n\t\t\t\tString name = is.next().trim();\n\t\t\t\tString address = is.next().trim();\n\t\t\t\tString city = is.next().trim();\n\t\t\t\tString state = is.next().trim();\n\t\t\t\tint pricePerNight = Integer.parseInt(is.next().trim());\n\t\t\t\th = new Hotel (id, name, address, city, state, pricePerNight);\n\t\t\t\thotels.add(h);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * The catch block checks to make sure that the file is found\n\t\t */\n\t\tcatch( FileNotFoundException fnfe)\n\t\t{\n\t\t\tSystem.err.println(\"File not found!\");\n\t\t}\n\n\t\t/**\n\t\t * Binding hotel reservations to model/JComboBox\n\t\t */\n\t\tfor(Hotel h1: hotels)\n\t\t\thotelsModel.addElement(h1);\n\t\t/**\n\t\t * Binding hotel reservations to model/JList\n\t\t */\n\t\tHotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem();\n\t\tfor(Reservation r1 : selectedHotel.getReservations())\n\t\t\treservationsModel.addElement(r1);\n\t}", "public ModifyRoomReservation() {\n initComponents();\n\n btn_search.requestFocus();\n\n getAllIds();\n\n }", "public void setMyRoomReservationOK() throws SQLException{\n int guestID = guest[guestIndex].getAccountID();\n int selRoomCount = getSelectedRoomsCounter();\n int[] tempRooms = getGuestSelRooms(); //Selected room by room number\n \n roomStartDate = convertMonthToDigit(startMonth) + \"/\" +startDay+ \"/\" + startYear;\n roomEndDate = convertMonthToDigit(endMonth) + \"/\" +endDay+ \"/\" + endYear; \n \n System.out.println(\"\\nSaving reservation\");\n System.out.println(\"roomStartDate\" + roomStartDate);\n System.out.println(\"roomEndDate:\" + roomEndDate);\n \n //Searching the reserved room number in the hotel rooms\n for(int i=0;i<selRoomCount;i++){\n for(int i2=0;i2<roomCounter;i2++){\n if(myHotel[i2].getRoomNum() == tempRooms[i]){ \n //if room number from array is equal to selected room number by guest\n System.out.println(\"Room Found:\"+tempRooms[i]); \n \n myHotel[i2].setOccupantID(guestID);\n myHotel[i2].setAvailability(false);\n myHotel[i2].setOccupant(guest[guestIndex].getName());\n myHotel[i2].setStartDate(roomStartDate);\n myHotel[i2].setEndDate(roomEndDate);\n }\n }\n }\n \n updateRoomChanges_DB(); //apply changes to the database\n \n //Updates room preference of the current guest \n String sqlstmt = \"UPDATE APP.GUEST \"\n + \" SET ROOMPREF = '\" + guest[guestIndex].getPref()\n + \"' WHERE ID = \"+ guest[guestIndex].getAccountID();\n \n CallableStatement cs = con.prepareCall(sqlstmt); \n cs.execute(); //execute the sql command \n cs.close(); \n }", "public void updateDisplayFields(Booking b){\n Vehicle v = b.getVehicle();\n CustomerAccount ca = v.getCustomer(); \n \n \n createCustomerName.setText(ca.getFirstName());\n createCustomerSurname.setText(ca.getLastName());\n createCustomerNumber.setText(ca.getPhoneNumber());\n createCustomerAddress1.setText(ca.getAddressLine1());\n createCustomerAddress2.setText(ca.getAddressLine2());\n createCustomerCounty.setText(ca.getCounty());\n createCustomerPostal.setText(ca.getPostCode());\n createCustomerCompany.setText(ca.getCompanyName());\n //VEHICLES\n createVehicleMake.setText(v.getMake());\n createVehicleModel.setText(v.getModel());\n createVehicleReg.setText(v.getRegistration());\n createVehicleMileage.setText(Integer.toString(v.getMileage()));\n createVehicleEngine.setText(v.getEngineSize());\n createVehicleColour.setText(v.getColour());\n createVehicleFuel.setText(v.getFuelType());\n String MOTexpire = \"\";\n if (v.getMOTExpire() == null)\n MOTexpire = \"N/A\";\n else\n MOTexpire = v.getMOTExpire().getTime().toString();\n \n createVehicleMOT.setText(MOTexpire);\n \n String ServiceDate = \"\";\n if (v.getLastService() == null)\n ServiceDate = \"N/A\";\n else\n ServiceDate = v.getLastService().getTime().toString();\n \n createVehicleService.setText(ServiceDate);\n createVehicleWarranty.setText(v.getWarrantyCompany());\n\n }", "public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }", "public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }", "private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}", "private void createEvent() \n\t{\n\t\t// When the user clicks on the add button\n\t\tbtnAdd.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//Adding Info To Reservation.txt//\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//////////////////////////////////\n\t\t\t\t/**\n\t\t\t\t * First i surround the whole with with try.. catch block\n\t\t\t\t * First in the try block \n\t\t\t\t * i get the values of the check-in and check-out info\n\t\t\t\t * i save them in strings \n\t\t\t\t * then cast them in integers \n\t\t\t\t * and finally add it to Reservation.txt\n\t\t\t\t * then i close the file.\n\t\t\t\t */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tObject HotelID = cbHotelsOptions.getSelectedItem();\n\t\t\t\t\tHotel hotel;\n\t\t\t\t\thotel = (Hotel) HotelID;\n\t\t\t\t\tlong id = hotel.getUniqueId();\n\t\t\t\t\t//\tSystem.out.println(id);\n\t\t\t\t\tString inmonth = txtInMonth.getText();\n\t\t\t\t\tint inMonth = Integer.valueOf(inmonth);\n\t\t\t\t\tString inday = txtInDay.getText();\n\t\t\t\t\tint inDay = Integer.parseInt(inday);\n\t\t\t\t\tString outmonth = txtOutMonth.getText();\n\t\t\t\t\tint outMonth = Integer.valueOf(outmonth);\n\t\t\t\t\tString outday = txtOutDay.getText();\n\t\t\t\t\tint OutDay = Integer.parseInt(outday);\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"Reservation.txt\", true);\n\t\t\t\t\tPrintWriter pw = new PrintWriter(fos);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * i then check the canBook method and according to the canBook method \n\t\t\t\t\t * i check if they can book, and if yes i add the reservation\n\t\t\t\t\t * otherwise it prints so the user may enter different values\n\t\t\t\t\t */\n\t\t\t\t\t{\n\t\t\t\t\t\tif(h.canBook(new Reservation(id,inMonth, inDay, OutDay)) == true) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservation.add(new Reservation (id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\tr = new Reservation (id,inMonth, inDay, OutDay);\n\t\t\t\t\t\t\th.addResIfCanBook(new Reservation(id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\treservationsModel.addElement(r);\n\t\t\t\t\t\t\tpw.println( id + \" - \" + inMonth + \"-\"+ inDay+ \" - \" + outMonth + \"-\" + OutDay);\n\t\t\t\t\t\t\tpw.close();\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"These dates are already reserved\"\n\t\t\t\t\t\t\t\t\t+ \"\\nPlease try again!\");\t\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\t/**\n\t\t\t\t * Then the catch Block checks for file not found exception\n\t\t\t\t */\n\t\t\t\tcatch (FileNotFoundException fnfe) \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// When the user selects a specific hotel \n\t\tcbHotelsOptions.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * first i save selected hotel in a hotel object\n\t\t\t\t * then i get reservations for the selected hotel\n\t\t\t\t * then i make all the labels and text fields visible \n\t\t\t\t */\n\t\t\t\tHotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You selected the \" + selectedHotel.getHotelName());\n\t\t\t\tselectedHotel.getReservations();\n\t\t\t\tlblCheckIn.setVisible(true);\n\t\t\t\tlblInMonth.setVisible(true);\n\t\t\t\ttxtInMonth.setVisible(true);\n\t\t\t\tlblInDay.setVisible(true);\n\t\t\t\ttxtInDay.setVisible(true);\n\t\t\t\tlblCheckout.setVisible(true);\n\t\t\t\tlblOutMonth.setVisible(true);\n\t\t\t\ttxtOutMonth.setVisible(true);\n\t\t\t\tlblOutDay.setVisible(true);\n\t\t\t\ttxtOutDay.setVisible(true);\n\t\t\t\tbtnAdd.setVisible(true);\n\t\t\t\treservationsModel.removeAllElements();\n\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t//Reading Info From Reservation.txt//\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/**\n\t\t\t\t * First i surround everything is a try.. catch blocks \n\t\t\t\t * then in the try block i declare the file input stream\n\t\t\t\t * then a scanner \n\t\t\t\t * then in a while loop i check if the file has next line \n\t\t\t\t * and a user a delimiter \"-\"\n\t\t\t\t * and it adds it to a new reservation\n\t\t\t\t * then it adds it to the ArrayList reservation\n\t\t\t\t * and it also adds it to the hotel object\n\t\t\t\t * then it checks if it can book that hotel\n\t\t\t\t * and if yes it adds it to the ReservationsModel\n\t\t\t\t */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFileInputStream fis = new FileInputStream(\"Reservation.txt\");\n\t\t\t\t\tScanner fscan = new Scanner (fis);\n\t\t\t\t\tint INMonth = 0;\n\t\t\t\t\tint INday = 0;\n\t\t\t\t\tint OUTmonth = 0;\n\t\t\t\t\tint OUTday = 0;\n\t\t\t\t\tlong iD = 0;\n\t\t\t\t\twhile (fscan.hasNextLine())\n\t\t\t\t\t{\n\t\t\t\t\t\tScanner ls = new Scanner (fscan.nextLine());\n\t\t\t\t\t\tls.useDelimiter(\"-\");\n\t\t\t\t\t\tiD = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINMonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tOUTmonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tOUTday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tr = new Reservation (iD,INMonth, INday, OUTmonth, OUTday);\n\t\t\t\t\t\th.addReservation(new Reservation(iD,INMonth, INday, OUTmonth, OUTday));\n\t\t\t\t\t\tHotel hotel = (Hotel) cbHotelsOptions.getSelectedItem();\n\t\t\t\t\t\tlong hotID = hotel.getUniqueId();\n\t\t\t\t\t\tif(iD == hotID)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservationsModel.addElement((new Reservation(iD, INMonth, INday, OUTday)));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * The catch block checks to make sure that the file is found\n\t\t\t\t */\n\t\t\t\tcatch( FileNotFoundException fnfe)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found!\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * This is the setRenderer to make the hotel appear in the hotelsOptions \n\t\t * just the hotel name.\n\t\t */\n\t\tcbHotelsOptions.setRenderer(new DefaultListCellRenderer() {\n\t\t\t@Override\n\t\t\tpublic Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)\n\t\t\t{\n\t\t\t\tComponent renderer = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\t\t\t\tif (renderer instanceof JLabel && value instanceof Hotel)\n\t\t\t\t{\n\t\t\t\t\t// Here value will be of the Type 'Hotel'\n\t\t\t\t\t((JLabel) renderer).setText(((Hotel) value).getHotelName());\n\t\t\t\t}\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * The setCallRenderer is for the reservation's list\n\t\t * it only prints the check-in and check-out info\n\t\t */\n\t\tlstReservation.setCellRenderer(new DefaultListCellRenderer() {\n\t\t\t@Override\n\t\t\tpublic Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)\n\t\t\t{\n\t\t\t\tComponent renderer = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\t\t\t\tif (renderer instanceof JLabel && value instanceof Reservation)\n\t\t\t\t{\n\t\t\t\t\t// Here value will be of the Type 'Reservation'\n\t\t\t\t\tHotel selectedHotel = (Hotel) cbHotelsOptions.getSelectedItem();\n\t\t\t\t\t((JLabel) renderer).setText(((Reservation) value).getFormattedDisplayString());\n\t\t\t\t}\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t});\t\n\t}", "public interface HotelReservations {\n\n void lookupHotels();\n Hotel getSelectedHotel();\n \n void destroy();\n}", "@FXML\n public void fieldsEntered() {\n single.setLastTime();\n RoomAccess ra = new RoomAccess();\n int startTimeMil = 0;\n int endTimeMil = 0;\n String date = \"\";\n String endDate = \"\";\n\n if (startTime.getValue() != null && endTime.getValue() != null && datePicker.getValue() != null) {\n date = datePicker.getValue().toString();\n endDate = endDatePicker.getValue().toString();\n date += \"T\" + String.format(\"%02d\", startTime.getValue().getHour()) + \":\" + String.format(\"%02d\", startTime.getValue().getMinute()) + \":00\";\n endDate += \"T\" + String.format(\"%02d\", endTime.getValue().getHour()) + \":\" + String.format(\"%02d\", endTime.getValue().getMinute()) + \":00\";\n availableRooms.getSelectionModel().clearSelection();\n\n rooms = ra.getAvailRooms(date, endDate);\n /*for (int i = 0; i < rooms.size(); i++) {\n System.out.println(\"Available Rooms: \" + rooms.get(i));\n }*/\n\n listOfRooms.clear();\n\n for (int i = 0; i < DisplayRooms.size(); i++) {\n DisplayRooms.get(i).setAvailable(false);\n }\n\n //System.out.println(\"startTimeMil: \" + startTimeMil + \"\\n endTimeMil:\" + endTimeMil);\n rooms = ra.getAvailRooms(date, endDate);\n\n for (int j = 0; j < rooms.size(); j++) {\n listOfRooms.add(rooms.get(j));\n for (int i = 0; i < DisplayRooms.size(); i++) {\n //System.out.println(\"COMPARE \" + DisplayRooms.get(i).roomName + \" AND \" + rooms.get(j));\n if (DisplayRooms.get(i).roomName.equals(rooms.get(j))) {\n DisplayRooms.get(i).setAvailable(true);\n //System.out.println(\"True: \" + i);\n break;\n }\n }\n }\n\n eventName.clear();\n eventDescription.clear();\n eventType.getSelectionModel().clearSelection();\n error.setText(\"\");\n privateEvent.setSelected(false);\n EmployeeAccess ea = new EmployeeAccess();\n ArrayList<ArrayList<String>> emps = ea.getEmployees(\"\",\"\");\n for(int i = 0; i < emps.size(); i++) {\n eventEmployees.getCheckModel().clearCheck(i);\n }\n availableRooms.setItems(listOfRooms);\n displayAllRooms();\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n btnConsultar = new javax.swing.JButton();\n btnSalir = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n pais = new javax.swing.JTextField();\n provincia = new javax.swing.JTextField();\n region = new javax.swing.JTextField();\n ciudad = new javax.swing.JTextField();\n direccion = new javax.swing.JTextField();\n comida = new javax.swing.JTextField();\n hotel = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n vaciar = new javax.swing.JButton();\n id = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setResizable(false);\n\n jLabel1.setText(\"Turista\");\n\n btnConsultar.setText(\"consultar\");\n btnConsultar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnConsultarActionPerformed(evt);\n }\n });\n\n btnSalir.setText(\"salir al menú principal\");\n btnSalir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalirActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"País\");\n\n jLabel3.setText(\"Provincia\");\n\n jLabel4.setText(\"Región\");\n\n jLabel5.setText(\"Ciudad\");\n\n jLabel6.setText(\"Direccion\");\n\n jLabel7.setText(\"Comida\");\n\n jLabel8.setText(\"Hotel\");\n\n pais.setEditable(false);\n\n provincia.setEditable(false);\n\n region.setEditable(false);\n\n ciudad.setEditable(false);\n\n direccion.setEditable(false);\n\n comida.setEditable(false);\n\n hotel.setEditable(false);\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel9.setText(\"CONSULTAR LUGAR TURÍSTICO POR TURISTA\");\n\n vaciar.setText(\"vaciar\");\n vaciar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n vaciarActionPerformed(evt);\n }\n });\n\n id.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n idActionPerformed(evt);\n }\n });\n id.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n idKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n idKeyTyped(evt);\n }\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 .addGap(63, 63, 63)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8))\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ciudad, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(region, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(provincia, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(hotel, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE)\n .addComponent(comida)\n .addComponent(direccion)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(28, 28, 28))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(vaciar)\n .addGap(26, 26, 26)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(id, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnConsultar))\n .addGroup(layout.createSequentialGroup()\n .addGap(91, 91, 91)\n .addComponent(btnSalir)))))\n .addContainerGap(66, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9)\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(btnConsultar)\n .addComponent(id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(provincia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(region, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(ciudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(direccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(comida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(hotel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSalir)\n .addComponent(vaciar))\n .addContainerGap())\n );\n\n pack();\n }", "public BestellingAfleveradres() {\n initComponents();\n txtGemeente.setText(gemeente);\n txtGemeente.setEnabled(false);\n txtPostcode.setText(postcode2);\n txtPostcode.setEnabled(false);\n }", "public void addZoneCommitte() {\n\t\t\tid = new JComboBox<Integer>();\n\t\t\tAutoCompleteDecorator.decorate(id);\n\t\t\tid.setBackground(Color.white);\n\t\t\tJButton save = new JButton(\"Save members \");\n\t\t\tfinal Choice position = new Choice();\n\t\t\tfinal JTextField txtLevel = new JTextField(10), txtPhone = new JTextField(10);\n\t\t\tfinal Choice chczon = new Choice();\n\n\t\t\ttry {\n\t\t\t\tString sql = \"select * from Zone;\";\n\t\t\t\tResultSet rs = null;\n\t\t\t\t// Register jdbc driver\n\t\t\t\tClass.forName(DRIVER_CLASS);\n\t\t\t\t// open connection\n\t\t\t\tcon = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\tstmt = con.prepareStatement(sql);\n\t\t\t\trs = stmt.executeQuery();\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tchczon.add(rs.getString(\"Name\"));\n\t\t\t\t}\n\t\t\t} catch (SQLException | ClassNotFoundException e) {\n\t\t\t}\n\n\t\t\t// select zone before proceeding\n\t\t\tObject[] zone = { new JLabel(\"Zone\"), chczon };\n\t\t\tint option = JOptionPane.showConfirmDialog(this, zone, \"Choose zone..\", JOptionPane.OK_CANCEL_OPTION,\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\n\t\t\tif (option == JOptionPane.OK_OPTION) {\n\n\t\t\t\ttry {\n\t\t\t\t\tString sql = \"select * from Registration where Zone=?;\";\n\t\t\t\t\tResultSet rs = null;\n\t\t\t\t\t// Register jdbc driver\n\t\t\t\t\tClass.forName(DRIVER_CLASS);\n\t\t\t\t\t// open connection\n\t\t\t\t\tcon = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\t\tstmt = con.prepareStatement(sql);\n\t\t\t\t\tstmt.setString(1, chczon.getSelectedItem());\n\t\t\t\t\trs = stmt.executeQuery();\n\n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tid.addItem(Integer.parseInt(rs.getString(\"RegNo\")));\n\t\t\t\t\t}\n\t\t\t\t\tif (id.getItemCount() > 0) {\n\t\t\t\t\t\tsql = \"select * from Registration where RegNo=?;\";\n\t\t\t\t\t\tstmt = con.prepareStatement(sql);\n\t\t\t\t\t\tstmt.setInt(1, Integer.parseInt(id.getSelectedItem().toString()));\n\n\t\t\t\t\t\trs = stmt.executeQuery();\n\t\t\t\t\t\trs.beforeFirst();\n\t\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\t\ttxtFname.setText(rs.getString(\"BaptismalName\"));\n\t\t\t\t\t\t\ttxtSname.setText(rs.getString(\"OtherNames\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} catch (SQLException | ClassNotFoundException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tid.addItemListener(new ItemListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tString sql = \"select * from Registration where RegNo=?;\";\n\t\t\t\t\t\t\tstmt = con.prepareStatement(sql);\n\t\t\t\t\t\t\tstmt.setInt(1, Integer.parseInt(id.getSelectedItem().toString()));\n\t\t\t\t\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t\t\t\t\trs.beforeFirst();\n\t\t\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\t\t\ttxtFname.setText(rs.getString(\"BaptismalName\"));\n\t\t\t\t\t\t\t\ttxtSname.setText(rs.getString(\"OtherNames\"));\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// If save button clicked, get the inputs from the text fields\n\t\t\t\tsave.addActionListener(new ActionListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t// ID = Integer.parseInt(IDs.getSelectedItem().toString());\n\t\t\t\t\t\tint RegNo = Integer.parseInt(id.getSelectedItem().toString());\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Insertion to database\n\t\t\t\t\t\t */\n\n\t\t\t\t\t\tif (txtPhone.getText().isEmpty() | txtLevel.getText().isEmpty()) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Phone Number or Level cannot be empty\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t// Register jdbc driver\n\t\t\t\t\t\t\t\tClass.forName(DRIVER_CLASS);\n\t\t\t\t\t\t\t\t// open connection\n\t\t\t\t\t\t\t\tcon = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\t\t\t\t\tString sql = \"INSERT INTO `Zone committee`(`ID`, `BaptismalName`, `OtherName`, `Phone`, `Position`, `Level`, `Zone`)\"\n\t\t\t\t\t\t\t\t\t\t+ \" VALUES (?,?,?,?,?,?,?);\";\n\t\t\t\t\t\t\t\tstmt = (PreparedStatement) con.prepareStatement(sql);\n\t\t\t\t\t\t\t\tstmt.setInt(1, RegNo);\n\t\t\t\t\t\t\t\tstmt.setString(2, txtFname.getText().toString().toUpperCase());\n\t\t\t\t\t\t\t\tstmt.setString(3, txtSname.getText().toString().toUpperCase());\n\n\t\t\t\t\t\t\t\tstmt.setInt(4, Integer.parseInt(txtPhone.getText().toString()));\n\t\t\t\t\t\t\t\tstmt.setString(5, position.getSelectedItem().toUpperCase());\n\t\t\t\t\t\t\t\tstmt.setString(6, txtLevel.getText().toUpperCase());\n\t\t\t\t\t\t\t\tstmt.setString(7, chczon.getSelectedItem().toUpperCase());\n\t\t\t\t\t\t\t\tstmt.executeUpdate();\n\t\t\t\t\t\t\t\tshowZonecomm();\n\t\t\t\t\t\t\t\tid.setSelectedIndex(0);\n\t\t\t\t\t\t\t\ttxtFname.setText(\"\");\n\t\t\t\t\t\t\t\ttxtSname.setText(\"\");\n\t\t\t\t\t\t\t\ttxtLevel.setText(\"\");\n\t\t\t\t\t\t\t\ttxtPhone.setText(\"\");\n\t\t\t\t\t\t\t\tposition.select(0);\n\t\t\t\t\t\t\t} catch (SQLException | ClassNotFoundException e2) {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Member exists in the committee list!\");\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\t// add items to the choice box\n\t\t\t\tposition.add(\"Chairperson\");\n\t\t\t\tposition.add(\"Vice chairperson\");\n\t\t\t\tposition.add(\"Secretary\");\n\t\t\t\tposition.add(\"Vice secretary\");\n\t\t\t\tposition.add(\"Treasurer\");\n\t\t\t\tposition.add(\"Member\");\n\t\t\t\tposition.select(\"Member\");\n\n\t\t\t\tObject[] inputfields = { new JLabel(\"Type ID and press ENTER\"), id, labBaptismalName, txtFname,\n\t\t\t\t\t\tlabOtherName, txtSname, labPhone, txtPhone, new JLabel(\"Level\"), txtLevel, labPosition, position };\n\n\t\t\t\tJOptionPane.showOptionDialog(this, inputfields, \"Enter zone committee members\", JOptionPane.DEFAULT_OPTION,\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE, null, new Object[] { save }, null);\n\t\t\t}\n\n\t\t}", "public ListReservations() {\n\t\tsetTitle(\"Liste de Reservations\");\n\t\tsetBounds(100, 100, 450, 300);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\t//contentPane.setLayout(null);\n\t\t//Appel de la couche service\n\t\t\n\t\t\t\tIService service = new ServiceImpl();\n\t\t\t\t\n\t\t\t\t//Appel de la methode ListEtudiants de la couche service.\n\t\t\t\tList<Etudiant> etudiants;\n\t\t\t\t\n\t\t\t\tetudiants = service.listEtudiantsService();\n\t\t\t\t\n\t\t\t\tetudiantModel = new EtudiantModel (etudiants);\n\t\t\t\t //Insertion des attributs de la variable Etudiant model dans la table.\n\t\t table_1 = new JTable(etudiantModel);\t\n\t\ttable_1.setBounds(160, 105, 1, 1);\n\t\t//contentPane.add(table_1);\n\t\tJScrollPane scrollPane = new JScrollPane(table_1);\n\t\t//scrollPane.setBounds(0, 264, 435, -264);\n\t\tcontentPane.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t}", "Sporthall() {\n reservationsList = new ArrayList<>();\n }", "public HotelPanel() {\n initComponents();\n showAllHotelToTable();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n HotelScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jLabel2 = new javax.swing.JLabel();\n jComboBox2 = new javax.swing.JComboBox();\n searchButton = new javax.swing.JButton();\n newHotel = new javax.swing.JButton();\n updateHotel = new javax.swing.JButton();\n deleteHotel = new javax.swing.JButton();\n\n setPreferredSize(new java.awt.Dimension(700, 500));\n\n jTable1.setModel(dtm);\n HotelScrollPane1.setViewportView(jTable1);\n\n jLabel2.setText(\"Hotel Type\");\n\n List<String> typeListCombox = new ArrayList<String>();\n typeListCombox.add(\"All Types\");\n typeListCombox.addAll(getHotelType());\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(typeListCombox.toArray()));\n\n searchButton.setText(\"Search\");\n searchButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n searchButtonActionPerformed(evt);\n }\n });\n\n newHotel.setText(\"New Hotel\");\n newHotel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n newHotelActionPerformed(evt);\n }\n });\n\n updateHotel.setText(\"Update\");\n updateHotel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n updateHotelActionPerformed(evt);\n }\n });\n\n deleteHotel.setText(\"Delete\");\n deleteHotel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteHotelActionPerformed(evt);\n }\n });\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 .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(searchButton))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(HotelScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 643, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(180, 180, 180)\n .addComponent(newHotel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(updateHotel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(deleteHotel)))\n .addContainerGap(16, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(searchButton))\n .addGap(18, 18, 18)\n .addComponent(HotelScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(newHotel)\n .addComponent(updateHotel)\n .addComponent(deleteHotel))\n .addContainerGap(24, Short.MAX_VALUE))\n );\n }", "public ReservationUpdatePanel(int id) {\n initComponents();\n this.id = id;\n connectDB();\n String sql = \"SELECT * FROM CAR_Reserve WHERE ReserveID =\"+id;\n reserving_detail = db.queryRows(sql);\n int n = 0;\n for(HashMap i : reserving_detail){\n n++;\n }\n if(n>=1){\n setInitText();\n }\n }", "@Override\r\n\t\t\tpublic void valueChanged(ListSelectionEvent ev) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tReservation selected = reservationsList.getSelectedValue();\r\n\t\t\t\t//Add other Values\r\n\t\t\t\t\tcodeTextField.setText(selected.getCode());\r\n\t\t\t\t\tflightTextField.setText(selected.getFlightCode());\r\n\t\t\t\t\tairlineTextField.setText(selected.getAirline());\r\n\t\t\t\t\tcostTextField.setText(\"$\"+selected.getCost());\r\n\t\t\t\t\tnameTextField.setText(selected.getName());\r\n\t\t\t\t\tcitizenshipTextField.setText(selected.getCitizenship());\r\n\t\t\t\t\tif(selected.isActive()) {\r\n\t\t\t\t\t\tstatusComboBox.setSelectedItem(\"Active\");\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tstatusComboBox.setSelectedItem(\"Inactive\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(NullPointerException ex) {\r\n\t\t\t\t\t//exists to stop crashing of program when it new list is selected.\r\n\t\t\t\t}\r\n\t\t\t}", "@FXML void ShowOffer(ActionEvent event4) throws IOException, BusinessException {\n\n\tPane annunci[] = { Annuncio1, Annuncio2, Annuncio3};\n\tTextArea embio[] = {EditWorkInfoArea,EditWorkInfoArea1,EditWorkInfoArea11};\n\tLabel Titoli[] = { TitleLabel,TitleLabel1,TitleLabel11};\n\tLabel Posizioni[] = {PositionLabel,PositionLabel1,PositionLabel11};\n\tLabel TipoContratto[] = {ContractTypeLabel,ContractTypeLabel1,ContractTypeLabel11}; \n\tLabel TempoContratto[] = {ContractTimeLabel,ContractTimeLabel1,ContractTimeLabel11};\n\tLabel Retribuzioni[] = {RetributionLabel,RetributionLabel1,RetributionLabel11};\n\tLabel Settori[] = {SectorLabel,SectorLabel1,SectorLabel11};\n\tLabel Regioni[] = {RegionLabel,RegionLabel1,RegionLabel11};\n\tLabel RetxTempo[] = {RetxTLabel,RetxTLabel1,RetxTLabel11};\n\tLabel Bonus [] = {BonusLabel,BonusLabel1,BonusLabel11};\n\tLabel Studi[] = {DegreeLabel,DegreeLabel1,DegreeLabel11};\n\tLabel Esperienze[] = {ExpLabel,ExpLabel1,ExpLabel11};\n\n try {\n\tint i = 0;\n\tList<Offer> offerList = offerService.findMyOffers(eoEmail.getText().toString());\n\t\t if ( offerList.size() < 3 ) {\n\t\t for ( i = offerList.size(); i < 3; i++ ) {\n\t\t annunci[i].setVisible(false); }\n\t\t }\n\t\t i = 0;\n\t\t for (Offer o: offerList) {\n\t\t annunci[i].setVisible(true);\n\t\t Titoli[i].setText(o.getTitle());\n\t\t Posizioni[i].setText(o.getPosition());\n\t\t Settori[i].setText(o.getSector());\n\t\t Regioni[i].setText(o.getRegion());\n\t\t TipoContratto[i].setText(o.getContractType()); \n\t\t TempoContratto[i].setText(o.getContractTime());\n\t\t Retribuzioni[i].setText(o.getWage());\n\t\t RetxTempo[i].setText(o.getWageTime());\n\t\t Studi[i].setText(o.getEducation());\n\t\t Bonus[i].setText(o.getBonus());\n\t\t embio[i].setText(o.getInfo());\n\t\t Esperienze[i].setText(o.getExperience());\n\t\t i++;\n\t\t }\n } catch (BusinessException e) {\n e.printStackTrace();\n throw new BusinessException(e);\n }\n}", "private void prepareInfo() {\n if (plane != null) {\n String planeType = plane.getType();\n ArrayList<String> airports = new ArrayList<>();\n\n if (planeType.equalsIgnoreCase(\"Passenger Plane\")) {\n World.getPublicAirports().forEach(publicAirport ->\n airports.add(publicAirport.getName())\n );\n } else if (planeType.equalsIgnoreCase(\"Military Plane\")) {\n World.getMilitaryAirports().forEach(militaryAirport ->\n airports.add(militaryAirport.getName())\n );\n }\n\n startAirport.setItems(FXCollections.observableArrayList(airports));\n endAirport.setItems(FXCollections.observableArrayList(airports));\n startAirport.getSelectionModel().select(plane.getStartBuilding().getName());\n endAirport.getSelectionModel().select(plane.getEndBuilding().getName());\n\n title.setText(\"PLANE INFO\");\n name.setText(plane.getName());\n speed.setText(String.valueOf(plane.getSpeed()));\n fuelLevel.setText(String.valueOf(plane.getFuelLevel()));\n type.setText(plane.getType());\n\n if (plane.isEmergencyLanding()) {\n landButton.setText(\"Take off\");\n } else {\n landButton.setText(\"Emergency land\");\n }\n\n if (plane.getType().equalsIgnoreCase(\"Military Plane\")) {\n MilitaryPlane plane = (MilitaryPlane) this.plane;\n weapon.setText(plane.getWeaponType().weaponType());\n passengers.setVisible(false);\n passengers.setMaxHeight(0);\n } else {\n PassengerPlane plane = (PassengerPlane) this.plane;\n passengers.setItems(FXCollections.observableArrayList(plane.getPassengerContainer().getPassengers()));\n }\n }\n }", "private void mostrarReservas() {\n\t\tJFReservasAdmin jfres =new JFReservasAdmin();\n\t\tjfres.setVisible(true);\n\t\t\n\t\tMap<Integer,Reserva> reservas = modelo.obtenerReservasPeriodo(per.getIdPeriodo());\n\t\tDefaultTableModel dtm = new DefaultTableModel(new Object[][] {},\n\t\t\t\tnew String[] { \"Dia\", \"Hora\", \"Email\" });\n\n\t\tfor (Integer key : reservas.keySet()) {\n\n\t\t\tdtm.addRow(new Object[] { reservas.get(key).getReserva_dia(), reservas.get(key).getReserva_hora(),reservas.get(key).getEmail() });\n\t\t}\n\t\tjfres.tReservas.setModel(dtm);\n\t}", "public Hotel getHotel(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel res ){\n\t\tHotel hotel = new Hotel();\n\t\t\n\t\t//set the gdsHotelCode\n\t\thotel.setGdsHotelCode(res.getGdsHotelCode());\n\t\thotel.setVendorHotelCode(res.getVendorHotelCode());\n\t\thotel.setHotelCode( res.getHotelCode() );\n\t\thotel.setHotelChain( res.getHotelChain() );\n\t\thotel.setHotelName( res.getHotelName() );\n\t\thotel.setAppleRating( res.getAppleRating() );\n\t\thotel.setCurrency( res.getCurrency() );\n\t\thotel.setHotelCityCode( res.getHotelCityCode() );\n\t\thotel.setOriginLocation( res.getOriginLocation() );\n\t\thotel.setNoOfNights( res.getNoOfNights() ); \n\t\thotel.setHbsiPNR(res.getHbsiPNRNo());\n\t\thotel.setHBSI(res.isIsHBSi()!=null?res.isIsHBSi():false);\n\n\t\tif( res.getHotelId() != null ){\n\t\t\thotel.setHotelId( res.getHotelId().intValue() );\n\t\t}\n\t\tif( res.getNoOfRequestedRooms() != null ){\n\t\t\thotel.setNoOfRequestedRooms( res.getNoOfRequestedRooms().intValue() );\n\t\t}\n\t\tif( res.getNoOfRooms() != null ){\n\t\t\thotel.setNoOfRooms( res.getNoOfRooms().intValue() );\n\t\t}\n\t\tif( res.getMinRate() != null ){\n\t\t\thotel.setMinRate( res.getMinRate().doubleValue() );\n\t\t}\n\t\tif( res.isAppleSpecialsAndSavers() != null ){\n\t\t\thotel.setAppleSpecialsAndSavers( res.isAppleSpecialsAndSavers().booleanValue() );\n\t\t}\n\t\tif( res.isRiskHotel() != null ){\n\t\t\thotel.setRiskHotel( res.isRiskHotel().booleanValue() );\n\t\t}\n\t\tif( res.getCheckInDate() != null ){\n\t\t\thotel.setCheckInDate( this.getDate( res.getCheckInDate() ) );\n\t\t}\n\t\tif( res.getCheckOutDate() != null ){\n\t\t\thotel.setCheckOutDate( this.getDate( res.getCheckOutDate() ) );\n\t\t}\n\t\tif( res.getVendor() != null ){\n\t\t\thotel.setVendor( this.getVendor( res.getVendor()) );\n\t\t}\n\t\tif( res.getOccupancy() != null ){\n\t\t\thotel.setOccupancy( this.getOccupancy( res.getOccupancy() ) );\n\t\t}\n\t\tif( res.getResortArea() != null ){\n\t\t\thotel.setResortArea( this.getResortArea( res.getResortArea() ) );\n\t\t}\n\t\tif( res.getDisplayRoomCategory() != null ){\n\t\t\thotel.setDisplayRoomCategory( this.getRoomCategory( res.getDisplayRoomCategory() ) );\n\t\t}\n\t\tif( (res.getPreselectedRooms() != null) && (res.getPreselectedRooms().size() > 0) ){\n\t\t\tList<RoomPrice> preselectedRooms = new ArrayList<RoomPrice>();\n\t\t\tfor(int i=0; i < res.getPreselectedRooms().size(); i++){\n\t\t\t\tif( res.getPreselectedRooms().get(i) != null ){\n\t\t\t\t\tpreselectedRooms.add( this.getRoomPrice( res.getPreselectedRooms().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setPreselectedRooms(preselectedRooms);\n\t\t}\n\t\tif( (res.getSelectedRooms() != null) && (res.getSelectedRooms().size() > 0) ){\n\t\t\tList<RoomPrice> selectedRooms = new ArrayList<RoomPrice>();\n\t\t\tfor(int i=0; i < res.getSelectedRooms().size(); i++){\n\t\t\t\tif( res.getSelectedRooms().get(i) != null ){\n\t\t\t\t\tselectedRooms.add( this.getRoomPrice( res.getSelectedRooms().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setSelectedRooms(selectedRooms);\n\t\t}\n\t\tif( (res.getRequestedDatesForAvailabilities() != null) && (res.getRequestedDatesForAvailabilities().size() > 0) ){\n\t\t\tList<RequestedDatesForAvailability> requestedDatesForAvailabilities = \n\t\t\t\t\t\t\tnew ArrayList<RequestedDatesForAvailability>();\n\t\t\tfor(int i=0; i < res.getRequestedDatesForAvailabilities().size(); i++){\n\t\t\t\tif( res.getRequestedDatesForAvailabilities().get(i) != null ){\n\t\t\t\t\trequestedDatesForAvailabilities.add( this.getRequestedDatesForAvailability( res.getRequestedDatesForAvailabilities().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setRequestedDatesForAvailabilities(requestedDatesForAvailabilities);\n\t\t}\n\t\tif( (res.getRoomCategories() != null) && (res.getRoomCategories().size() > 0) ){\n\t\t\tList<RoomCategory> roomCategories = new ArrayList<RoomCategory>();\n\t\t\tfor(int i=0; i < res.getRoomCategories().size(); i++){\n\t\t\t\tif( res.getRoomCategories().get(i) != null ){\n\t\t\t\t\troomCategories.add( this.getRoomCategory( res.getRoomCategories().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setRoomCategories(roomCategories);\n\t\t}\n\t\tif( (res.getVendorServices() != null) && (res.getVendorServices().size() > 0) ){\n\t\t\tList<VendorService> vendorServices = new ArrayList<VendorService>();\n\t\t\tfor(int i=0; i < res.getVendorServices().size(); i++){\n\t\t\t\tif( res.getVendorServices().get(i) != null ){\n\t\t\t\t\tvendorServices.add( this.getVendorService( res.getVendorServices().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setVendorServices(vendorServices);\n\t\t}\n\t\t\n\t\t//set cancellation policy\n\t\t\n\t\tif(res.getCancellationPolicy()!=null && res.getCancellationPolicy().size()>0)\n\t\t//if(res.getCancellationPolicy()==null)\n\t\t{\n\t\t\t\n\t\t\thotel.setCancellationPolicy(res.getCancellationPolicy());\n\t\t\n\t\t}\n\t\t\n\t\treturn hotel;\n\t}", "public ReservaBean() {\r\n nrohabitacion=1;\r\n createLista(nrohabitacion);\r\n editable=true;\r\n sino=\"\";\r\n \r\n reserva = new TReserva();\r\n }", "private void iniciaTela() {\n try {\n tfCod.setText(String.valueOf(reservaCliDAO.getLastId()));\n desabilitaCampos(false);\n DefaultComboBoxModel modeloComboCliente;\n modeloComboCliente = new DefaultComboBoxModel(funDAO.getAll().toArray());\n cbFunc.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(quartoDAO.getAll().toArray());\n cbQuarto.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(cliDAO.getAll().toArray());\n cbCliente.setModel(modeloComboCliente);\n btSelect.setEnabled(false);\n verificaCampos();\n carregaTableReserva(reservaDAO.getAll());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void plannerDisplayComboBoxs(){\n Days dm = weekList.getSelectionModel().getSelectedItem();\n if (dm.isBreakfastSet()){\n //find Recipe set for breakfast in the Days in the comboBox and display it in the comboBox\n Recipe breakfast = findRecipeFromID(dm.getBreakfast().getId(), breakfastCombo);\n breakfastCombo.getSelectionModel().select(breakfast);\n }\n\n if (dm.isLunchSet()){\n //find Recipe set for lunch in the Days in the comboBox and display it in the comboBox\n Recipe lunch = findRecipeFromID(dm.getLunch().getId(), lunchCombo);\n lunchCombo.getSelectionModel().select(lunch);\n }\n\n if (dm.isDinnerSet()){\n //find Recipe set for dinner in the Days in the comboBox and display it in the comboBox\n Recipe dinner = findRecipeFromID(dm.getDinner().getId(), dinnerCombo);\n dinnerCombo.getSelectionModel().select(dinner);\n }\n }", "private void displayBedrijf(){\n if (this.geselecteerdeStageplaats.getBedrijfID() != null){\n this.jTextFieldBedrijfsnaam.setText(this.geselecteerdeStageplaats.getBedrijfID().getNaam());\n this.jTextFieldContactpersoon.setText(this.geselecteerdeStageplaats.getBedrijfID().getContactNaam());\n this.jTextFieldEmail.setText(this.geselecteerdeStageplaats.getBedrijfID().getContactEmail());\n this.jTextAreaActiviteiten.setText(this.geselecteerdeStageplaats.getBedrijfID().getActiviteiten());\n this.jTextAreaAanwervend.setText(this.geselecteerdeStageplaats.getBedrijfID().getAanwervend());\n \n this.jTextFieldStraat.setText(this.geselecteerdeStageplaats.getBedrijfID().getStraat());\n this.jTextFieldNummer.setText(this.geselecteerdeStageplaats.getBedrijfID().getNummer());\n this.jTextFieldPostcode.setText(this.geselecteerdeStageplaats.getBedrijfID().getPostcode());\n this.jTextFieldStad.setText(this.geselecteerdeStageplaats.getBedrijfID().getStad());\n this.jTextFieldLand.setText(this.geselecteerdeStageplaats.getBedrijfID().getLand());\n }\n }", "private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(String.valueOf(selectedPart.getId()));\n maximumInventory.setText(String.valueOf(selectedPart.getMax()));\n minimumInventory.setText(String.valueOf(selectedPart.getMin()));\n\n if (PassableData.isOutsourced()) {\n Outsourced part = (Outsourced) selectedPart;\n variableTextField.setText(part.getCompanyName());\n outsourced.setSelected(true);\n\n } else if (!PassableData.isOutsourced()) {\n InHouse part = (InHouse) selectedPart;\n variableTextField.setText(String.valueOf(part.getMachineId()));\n inHouse.setSelected(true);\n }\n\n\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 jPanel2 = new javax.swing.JPanel();\n labelguestid = new javax.swing.JLabel();\n NIC_Number = new javax.swing.JLabel();\n labelprice = new javax.swing.JLabel();\n labelroomid = new javax.swing.JLabel();\n labelchecin = new javax.swing.JLabel();\n labelcheckout = new javax.swing.JLabel();\n Text_roomPrice = new javax.swing.JTextField();\n textguestid = new javax.swing.JTextField();\n Text_NewAomunt = new javax.swing.JTextField();\n labeldelete = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n amila = new javax.swing.JTable();\n btn1reload = new javax.swing.JButton();\n labelmodifyroomreservation = new javax.swing.JLabel();\n labelreservationtable = new javax.swing.JLabel();\n labelupdate1 = new javax.swing.JButton();\n btnnewpayment = new javax.swing.JButton();\n Check_Out = new org.jdesktop.swingx.JXDatePicker();\n Check_In = new org.jdesktop.swingx.JXDatePicker();\n labelprice1 = new javax.swing.JLabel();\n Text_OldAmount = new javax.swing.JTextField();\n labelreservartionid1 = new javax.swing.JLabel();\n combo_Reservation = new javax.swing.JComboBox<>();\n btn_search = new javax.swing.JButton();\n labelroomid1 = new javax.swing.JLabel();\n textroomid1 = new javax.swing.JTextField();\n combo_nic = new javax.swing.JComboBox<>();\n labelreservartionid2 = new javax.swing.JLabel();\n Text_PaymentId = new javax.swing.JTextField();\n\n labelguestid.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelguestid.setForeground(new java.awt.Color(102, 102, 255));\n labelguestid.setText(\"Guest Id\");\n\n NIC_Number.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n NIC_Number.setForeground(new java.awt.Color(102, 102, 255));\n NIC_Number.setText(\"NIC_Number\");\n\n labelprice.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelprice.setForeground(new java.awt.Color(102, 102, 255));\n labelprice.setText(\"New Amount\");\n\n labelroomid.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelroomid.setForeground(new java.awt.Color(102, 102, 255));\n labelroomid.setText(\"Room price\");\n\n labelchecin.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelchecin.setForeground(new java.awt.Color(102, 102, 255));\n labelchecin.setText(\"Check_In\");\n\n labelcheckout.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelcheckout.setForeground(new java.awt.Color(102, 102, 255));\n labelcheckout.setText(\"Check_Out\");\n\n Text_roomPrice.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Text_roomPriceActionPerformed(evt);\n }\n });\n\n labeldelete.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labeldelete.setForeground(new java.awt.Color(102, 102, 255));\n labeldelete.setText(\"Delete\");\n\n amila.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"RID\", \"RoomType_Id\", \"Room_Name\", \"Price\"\n }\n ));\n jScrollPane1.setViewportView(amila);\n\n btn1reload.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n btn1reload.setForeground(new java.awt.Color(102, 102, 255));\n btn1reload.setText(\"Reload\");\n btn1reload.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn1reloadActionPerformed(evt);\n }\n });\n\n labelmodifyroomreservation.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n labelmodifyroomreservation.setForeground(new java.awt.Color(255, 102, 102));\n labelmodifyroomreservation.setText(\"Modify Room Reservation\");\n\n labelreservationtable.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelreservationtable.setForeground(new java.awt.Color(0, 153, 153));\n labelreservationtable.setText(\" Room Table\");\n\n labelupdate1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelupdate1.setForeground(new java.awt.Color(102, 102, 255));\n labelupdate1.setText(\"Update\");\n\n btnnewpayment.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n btnnewpayment.setForeground(new java.awt.Color(102, 102, 255));\n btnnewpayment.setText(\"New Payment\");\n btnnewpayment.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnnewpaymentActionPerformed(evt);\n }\n });\n\n labelprice1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelprice1.setForeground(new java.awt.Color(102, 102, 255));\n labelprice1.setText(\"Old Amount\");\n\n labelreservartionid1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelreservartionid1.setForeground(new java.awt.Color(102, 102, 255));\n labelreservartionid1.setText(\"Payment_Id\");\n\n btn_search.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n btn_search.setForeground(new java.awt.Color(102, 102, 255));\n btn_search.setText(\"Search Room\");\n btn_search.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_searchMouseClicked(evt);\n }\n });\n btn_search.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_searchActionPerformed(evt);\n }\n });\n\n labelroomid1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelroomid1.setForeground(new java.awt.Color(102, 102, 255));\n labelroomid1.setText(\"Room Id\");\n\n textroomid1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n textroomid1ActionPerformed(evt);\n }\n });\n\n combo_nic.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n combo_nicItemStateChanged(evt);\n }\n });\n combo_nic.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n combo_nicMouseClicked(evt);\n }\n });\n combo_nic.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n combo_nicActionPerformed(evt);\n }\n });\n\n labelreservartionid2.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelreservartionid2.setForeground(new java.awt.Color(102, 102, 255));\n labelreservartionid2.setText(\"Reservation Id\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(505, 505, 505)\n .addComponent(labelmodifyroomreservation, javax.swing.GroupLayout.PREFERRED_SIZE, 475, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(labelguestid, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelreservartionid1, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelroomid1, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelreservartionid2, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(textguestid, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)\n .addComponent(combo_Reservation, 0, 215, Short.MAX_VALUE))\n .addComponent(Text_PaymentId)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(NIC_Number, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(combo_nic, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(labelprice1, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(labelprice, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Text_OldAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Text_NewAomunt, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Text_roomPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(textroomid1, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(labelroomid, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 261, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(labelchecin, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(Check_In, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(labelcheckout, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(Check_Out, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(labelreservationtable, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_search, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(204, 204, 204)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 752, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(300, 300, 300)\n .addComponent(btn1reload)))))))\n .addContainerGap(70, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(155, 155, 155)\n .addComponent(labelupdate1)\n .addGap(30, 30, 30)\n .addComponent(labeldelete)\n .addGap(18, 18, 18)\n .addComponent(btnnewpayment)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(labelmodifyroomreservation)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(71, 71, 71)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(labelchecin)\n .addComponent(Check_In, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(NIC_Number)\n .addComponent(combo_nic, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(50, 50, 50)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Check_Out, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelcheckout))\n .addGap(114, 114, 114)\n .addComponent(labelreservationtable, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(82, 82, 82)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btn1reload))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(labelreservartionid1, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Text_PaymentId, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(50, 50, 50)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(combo_Reservation, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelreservartionid2, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(50, 50, 50)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(textguestid, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelguestid))\n .addGap(50, 50, 50)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(labelroomid1)\n .addComponent(textroomid1, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(61, 61, 61)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(labelroomid)\n .addComponent(Text_roomPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(69, 69, 69)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(Text_OldAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(82, 82, 82)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Text_NewAomunt, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelprice)))\n .addComponent(labelprice1)))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(236, 236, 236)\n .addComponent(btn_search)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(labelupdate1)\n .addComponent(labeldelete)\n .addComponent(btnnewpayment))\n .addGap(62, 62, 62))\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 .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\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 .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 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 }", "public void update() {\n\t\trl = DBManager.getReservationList();\n\t}", "public void setIdHotel(Integer idHotel) {\r\n this.idHotel = idHotel;\r\n }", "private void refreshDisplayedStageplaats(){\n if (this.geselecteerdeStageplaats != null){\n if (this.geselecteerdeStageplaats.getId() != null){\n this.jLabelID.setText(this.geselecteerdeStageplaats.getId().toString());\n }\n this.jTextFieldTitel.setText(this.geselecteerdeStageplaats.getTitel());\n this.jTextAreaOmschrijving.setText(this.geselecteerdeStageplaats.getOmschrijving());\n this.jSliderAantalPlaatsen.setValue(this.geselecteerdeStageplaats.getAantalPlaatsen());\n this.jTextFieldPeriode.setText(this.geselecteerdeStageplaats.getPeriode());\n this.jTextAreaBegeleiding.setText((this.geselecteerdeStageplaats.getBegeleiding()));\n this.jTextAreaVereisteKennis.setText(this.geselecteerdeStageplaats.getExtraKennisVereist());\n this.jTextAreaVoorzieningen.setText(this.geselecteerdeStageplaats.getVoorzieningen());\n this.jComboBoxSpecialisatie.setSelectedItem(this.geselecteerdeStageplaats.getSitueertID().getSpecialisatieID());\n this.SpecialisatieSitueert = this.dbFacade.getAllSitueertOfSpecialisatieID(this.geselecteerdeStageplaats.getSitueertID().getSpecialisatieID().getId());\n this.jComboBoxSitueert.setModel(new DefaultComboBoxModel(this.SpecialisatieSitueert.toArray()));\n \n this.jComboBoxSitueert.setSelectedItem(this.geselecteerdeStageplaats.getSitueertID());\n \n // Bedrijf\n displayBedrijf();\n \n SimpleDateFormat dateformat = new SimpleDateFormat(\"dd-MM-yyyy '-' HH:mm:ss\");\n this.jLabelAanmaakdatum.setText(dateformat.format(this.geselecteerdeStageplaats.getAanmaakDatum()));\n this.jLabellaatsteWijzing.setText(dateformat.format(this.geselecteerdeStageplaats.getLaatsteWijziging()));\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n guestList = new javax.swing.JList();\n searchLbl = new javax.swing.JLabel();\n searchText = new javax.swing.JTextField();\n addGuestBtn = new javax.swing.JButton();\n removeBtn = new javax.swing.JButton();\n openBtn = new javax.swing.JButton();\n refreshBtn = new javax.swing.JButton();\n reservationsLbl = new javax.swing.JLabel();\n toPayLbl = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n reservationBtn = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n guestList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n guestListValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(guestList);\n\n searchLbl.setText(\"suchen:\");\n\n addGuestBtn.setText(\"neuer Gast\");\n addGuestBtn.setMaximumSize(new java.awt.Dimension(93, 29));\n addGuestBtn.setMinimumSize(new java.awt.Dimension(93, 29));\n addGuestBtn.setPreferredSize(new java.awt.Dimension(93, 29));\n addGuestBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addGuestBtnActionPerformed(evt);\n }\n });\n\n removeBtn.setText(\"löschen\");\n removeBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n removeBtnActionPerformed(evt);\n }\n });\n\n openBtn.setText(\"öffnen\");\n openBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openBtnActionPerformed(evt);\n }\n });\n\n refreshBtn.setText(\"aktualisieren\");\n refreshBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n refreshBtnActionPerformed(evt);\n }\n });\n\n reservationsLbl.setText(\"Anzahl Buchungen:\");\n reservationsLbl.setName(\"\"); // NOI18N\n\n toPayLbl.setText(\"Offener Betrag:\");\n\n jButton1.setText(\"Buchungen anzeigen\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n reservationBtn.setText(\"Reservieren\");\n reservationBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n reservationBtnActionPerformed(evt);\n }\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, false)\n .addComponent(addGuestBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(removeBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(openBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(refreshBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(searchLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(searchText, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 350, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(reservationsLbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(toPayLbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(reservationBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 42, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(searchText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(searchLbl))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 397, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(addGuestBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(refreshBtn)\n .addGap(7, 7, 7)\n .addComponent(openBtn)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(removeBtn))\n .addGroup(layout.createSequentialGroup()\n .addComponent(reservationsLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(toPayLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(reservationBtn)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n\n pack();\n }", "private void createReservations() {\n final String username = extractUsername();\n final EMail email = extractEMail();\n if (!isReserved(username) || !isReserved(email)) {\n signupDelegate.enableNextButton(Boolean.FALSE);\n SwingUtil.setCursor(this, java.awt.Cursor.WAIT_CURSOR);\n UsernameReservation usernameReservation = null;\n EMailReservation emailReservation = null;\n try {\n errorMessageJLabel.setText(getString(\"CheckingUsername\"));\n errorMessageJLabel.paintImmediately(0, 0, errorMessageJLabel\n .getWidth(), errorMessageJLabel.getHeight());\n \n // get username reservation\n usernameReservation = createUsernameReservation(username);\n if (null == usernameReservation) {\n unacceptableUsername = username;\n } else {\n usernameReservations.put(username.toLowerCase(), usernameReservation);\n }\n \n // get email reservation\n emailReservation = createEMailReservation(email);\n if (null == emailReservation) {\n unacceptableEMail = email;\n } else {\n emailReservations.put(email, emailReservation);\n }\n } catch (final OfflineException ox) {\n logger.logError(ox, \"An offline error has occured.\");\n temporaryError = getSharedString(\"ErrorOffline\");\n } catch (final Throwable t) {\n logger.logError(t, \"An unexpected error has occured.\");\n temporaryError = getSharedString(\"ErrorUnexpected\");\n } finally {\n SwingUtil.setCursor(this, null);\n }\n validateInput();\n }\n }", "private void setHotel(Hotel myHotel) {\n\t\tthis.myHotel = myHotel;\n\t}", "protected void showReservations() {\n storageDao.findAllRented()\n .forEach(System.out::println);\n }", "private void chegada() {\n Pessoa pessoa = tablePessoa.getSelectionModel().getSelectedItem();\n if(pessoa==null){\n pessoa=tablePessoa.getItems().get(0);\n \n }\n// if(pessoa!=null){\n Chegada chegada = new Chegada(\n pessoa.getRg(),\n pessoa.getNome(),\n pessoa.getSegundoNome(),\n pessoa.getTelefone(),\n pessoa.getSexo(),\n HoraChegada,\n pessoa.getData()\n \n );\n \n// }\n mainApp.getPersonData2().add(chegada);\n \n }", "Hotel saveHotel(Hotel hotel);", "public void bookFlight(){\n //Steps\n //1 Show the available flights. (at least one seat with 0)\n //2 User select a flight, and the system automatically set the seat with his id. he is not able to select the seat\n //3 User confirm the reservation \n //4 Flight reserved\n \n //1\n //FlightRepository.availableFlights();\n //Scanner input = new Scanner(System.in);\n //String flightNumber = input.nextLine();\n \n //2,3 and 4\n Flight flightObject = FlightRepository.getFlight(this.number);\n if (flightObject == null){\n System.out.println(\"Please select a valid flight number\");\n }\n flightObject.setPassengerSeat(this.PassengerID);\n }", "private void setAll(int bnr){\n BookingManager bm = new BookingManager();\n Booking b = bm.getBooking(bnr);\n name = b.getName();\n hotelName = b.getHotel().getName();\n address = b.getHotel().getAddress();\n nrPeople = b.getRoom().getCount();\n price = b.getRoom().getPrice();\n dateFrom = b.getDateFrom();\n dateTo = b.getDateTo();\n \n \n jName.setText(name);\n jHotelName.setText(hotelName);\n jHotelAddress.setText(\"\" + address);\n jNrPeople.setText(\"\" + nrPeople);\n jPrice.setText(\"\" + price);\n jDateFrom.setText(\"\" + dateFrom);\n jDateTo.setText(\"\" + dateTo);\n }", "public ViewBookings() {\n initComponents();\n showCBooking();\n showBookingH();\n \n }", "public ReservationView(Hotel h, JFrame parent)\n\t{\n\t\tsetSize(600, 600);\n\t\tsetTitle(\"Hotel Reservation System\");\n\t\tsetLayout(new BorderLayout());\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetResizable(false);\n\n\t\tJPanel resViewPanel = new JPanel();\n\t\tresViewPanel.setLayout(new BoxLayout(resViewPanel, BoxLayout.Y_AXIS));\n\n\n\t\tlblName= new JLabel(\"Guest Reservation Menu\");\n\n\t\tJButton btnMake = new JButton(\"Make A Reservation\");\n\t\tbtnMake.setMinimumSize(btnDim);\n\t\tbtnMake.addActionListener(new ActionListener()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\n\t\t\t\tMakeReservationView r;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\th.flushRecentRes();\n\t\t\t\t\tr = new MakeReservationView(h, ReservationView.this);\n\t\t\t\t\tr.setLocation(ReservationView.this.getLocation());\n\t\t\t\t\tr.setVisible(true);\n\t\t\t\t\tReservationView.this.setVisible(false);\n\t\t\t\t}\n\t\t\t\tcatch (ParseException e1) {e1.printStackTrace();}\n\t\t\t}\n\t\t});\n\n\n\t\tJButton btnCancel = new JButton(\"Cancel Reservation\");\n\t\tbtnCancel.setMinimumSize(btnDim);\n\t\tbtnCancel.addActionListener(new ActionListener()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tDeleteReservationView r = new DeleteReservationView(h, ReservationView.this);\n\t\t\t\tr.setLocation(ReservationView.this.getLocation());\n\t\t\t\tr.setVisible(true);\n\t\t\t\tReservationView.this.setVisible(false);\n\t\t\t}\n\t\t});\n\n\t\t//-----------Back Button--------------\n\t\tJButton back = new JButton(\"<\");\n\t\tback.setPreferredSize(btnDim);\n\n\t\tback.addActionListener(new\n\t\t\t\tActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tparent.setLocation(ReservationView.this.getLocation());\n\t\t\t\tparent.setVisible(true);\n\t\t\t\tReservationView.this.dispose();\n\t\t\t}\n\t\t}\n\t\t\t\t);\n\t\t//-----------------------------\n\t\tresViewPanel.add(btnMake); resViewPanel.add(btnCancel);\n\t\tadd(lblName, BorderLayout.NORTH);\n\t\tadd(resViewPanel, BorderLayout.CENTER);\n\t\tadd(back,BorderLayout.SOUTH);\n\n\t}", "@Override\n\tpublic HotelBooking bookRoom(HotelForm hotelForm, Session session) throws HibernateException, Exception{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tHotelBooking hotelBooking = setDAOValues(hotelForm);\n\t\tsession.save(hotelBooking);\n\t\t\n\t\treturn null;\n\t}", "public void gotoReservaOneWay(){\n try {\n FXMLReservaOneWayController verReservaOW = (FXMLReservaOneWayController) replaceSceneContent(\"FXMLReservaOneWay.fxml\");\n verReservaOW.setApp(this);\n verReservaOW.setText(cityO, cityD, depDate);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void gotoReservaRoundTrip(){\n try {\n FXMLReservaRoundTripController verReservaRT = (FXMLReservaRoundTripController) replaceSceneContent(\"FXMLReservaRoundTrip.fxml\");\n verReservaRT.setApp(this);\n verReservaRT.setText(cityO, cityD, depDate, depDate2);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n combo = new javax.swing.JComboBox<>();\n search = new javax.swing.JTextField();\n btn_search = new javax.swing.JButton();\n btn_update = new javax.swing.JButton();\n btn_delete = new javax.swing.JButton();\n btn_Return = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n txt_flight_fare = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txt_seat_no = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n txt_Orgin = new javax.swing.JTextField();\n txt_destination = new javax.swing.JTextField();\n txt_Days = new javax.swing.JTextField();\n txt_months = new javax.swing.JTextField();\n txt_id = new javax.swing.JTextField();\n txt_year = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txt_hours = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txt_minutes = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n table = new javax.swing.JTable();\n help = new javax.swing.JLabel();\n btn_save = new javax.swing.JButton();\n btn_cancel = new javax.swing.JButton();\n jLabel12 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(jTable1);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosed(java.awt.event.WindowEvent evt) {\n formWindowClosed(evt);\n }\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n public void windowDeactivated(java.awt.event.WindowEvent evt) {\n formWindowDeactivated(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Search Option\");\n\n combo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Origin Airport Code\", \"Destination Airport Code\", \"Date\", \"ALL Flight\", \" \" }));\n combo.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n comboItemStateChanged(evt);\n }\n });\n combo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboActionPerformed(evt);\n }\n });\n\n btn_search.setText(\"Search\");\n btn_search.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_searchActionPerformed(evt);\n }\n });\n\n btn_update.setText(\"Update\");\n btn_update.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_updateActionPerformed(evt);\n }\n });\n\n btn_delete.setText(\"Delete\");\n btn_delete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_deleteActionPerformed(evt);\n }\n });\n\n btn_Return.setText(\"Return\");\n btn_Return.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_ReturnActionPerformed(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel8.setText(\"Minutes\");\n\n txt_flight_fare.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel9.setText(\"Seats No:\");\n\n txt_seat_no.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel10.setText(\"Flight Fare:\");\n\n txt_Orgin.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n txt_destination.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n txt_Days.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n txt_months.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n txt_id.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n txt_year.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel2.setText(\"Flight ID\");\n\n txt_hours.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel3.setText(\"Orgin\");\n\n txt_minutes.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel4.setText(\"Destination\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel5.setText(\"Days\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel6.setText(\"Month\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel7.setText(\"Year:\");\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel11.setText(\"Hours:\");\n\n table.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Flight ID\", \"Orgin \", \"Destination\", \"Days\", \"Month\", \"Year\", \"Hours\", \"Minutes\", \"Seat\", \"Fare\"\n }\n ));\n table.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tableMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(table);\n\n help.setText(\"Origin Airport should be consist of three characters\");\n\n btn_save.setText(\"Save\");\n btn_save.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_saveActionPerformed(evt);\n }\n });\n\n btn_cancel.setText(\"Cancel\");\n btn_cancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_cancelActionPerformed(evt);\n }\n });\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel12.setText(\"For FLIGHT\");\n\n jButton1.setText(\"Exit\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(41, 41, 41)\n .addComponent(search, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel12)))\n .addGap(18, 18, 18)\n .addComponent(help, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(btn_Return, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btn_delete, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btn_update, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE)\n .addComponent(btn_search, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_flight_fare, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_seat_no, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_minutes, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_hours, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_year, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_months, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_Days, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_destination, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_Orgin, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_id, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(btn_save, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btn_cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(48, 48, 48))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txt_id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txt_Orgin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(6, 6, 6)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txt_destination, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txt_Days, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txt_months, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txt_year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(txt_hours, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(txt_minutes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(txt_seat_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(txt_flight_fare, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(btn_cancel))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(btn_save))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(help, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel12)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(btn_search)\n .addGap(18, 18, 18)\n .addComponent(btn_update)\n .addGap(18, 18, 18)\n .addComponent(btn_delete)\n .addGap(18, 18, 18)\n .addComponent(btn_Return)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1)))\n .addGap(35, 35, 35)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public frmVerzamelingBeheer() {\n try {\n initComponents();\n \n lblId.setVisible(false);\n\n pnlEdit.setVisible(false);\n\n for (VerzamelingsType type : TypeService.GetAllTypes()) {\n cmbType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n cmbEditType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n }\n\n \n for (Categorie categorie : CategorieService.GetAllCategories()) {\n cmbCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n cmbEditCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n }\n \n //vertaling voor JOptionpane\n UIManager.put(\"OptionPane.cancelButtonText\", \"Annuleren\");\n UIManager.put(\"OptionPane.noButtonText\", \"Nee\");\n UIManager.put(\"OptionPane.okButtonText\", \"Oke\");\n UIManager.put(\"OptionPane.yesButtonText\", \"Ja\");\n \n this.setTitle(\"Verzamelingen beheren - Verzamelingenbeheer\");\n \n ShowEditItems(false);\n RefreshList();\n }\n catch (ExceptionInInitializerError ex)\n {\n JOptionPane.showMessageDialog(null, \"Er kan geen verbinding worden gemaakt met de database (\" + ex.getMessage() + \").\", \"Fout\", ERROR_MESSAGE);\n System.exit(1);\n }\n\n }", "private void addProperty() {\n\n String shortDesc = shortDescriptionView.getText().toString();\n String description = descriptionView.getText().toString();\n String price = priceView.getText().toString();\n String floorArea = floorAreaView.getText().toString();\n String landArea = landAreaView.getText().toString();\n String parking = parkingView.getText().toString();\n viewingTimes = ohDate1.getText().toString() + \" \" + ohStartTime1.getSelectedItem().toString() + \" - \" + ohEndTime1.getSelectedItem().toString();\n address = new StringBuilder(30);\n\n if (!ohDate2.getText().toString().isEmpty() && !ohStartTime2.getSelectedItem().toString().isEmpty() && !ohEndTime2.getSelectedItem().toString().isEmpty()) {\n viewingTimes += \"::::\" + ohDate2.getText().toString() + \" \" + ohStartTime2.getSelectedItem().toString() + \" - \" + ohEndTime2.getSelectedItem().toString();\n }\n if (!ohDate3.getText().toString().isEmpty() && !ohStartTime3.getSelectedItem().toString().isEmpty() && !ohEndTime3.getSelectedItem().toString().isEmpty()) {\n viewingTimes += \"::::\" + ohDate3.getText().toString() + \" \" + ohStartTime3.getSelectedItem().toString() + \" - \" + ohEndTime3.getSelectedItem().toString();\n }\n if (!ohDate4.getText().toString().isEmpty() && !ohStartTime4.getSelectedItem().toString().isEmpty() && !ohEndTime4.getSelectedItem().toString().isEmpty()) {\n viewingTimes += \"::::\" + ohDate4.getText().toString() + \" \" + ohStartTime4.getSelectedItem().toString() + \" - \" + ohEndTime4.getSelectedItem().toString();\n }\n if (!ohDate5.getText().toString().isEmpty() && !ohStartTime5.getSelectedItem().toString().isEmpty() && !ohEndTime5.getSelectedItem().toString().isEmpty()) {\n viewingTimes += \"::::\" + ohDate5.getText().toString() + \" \" + ohStartTime5.getSelectedItem().toString() + \" - \" + ohEndTime5.getSelectedItem().toString();\n }\n\n String suburbValue = suburbSpinner.getSelectedItem().toString();\n String districtValue = districtSpinner.getSelectedItem().toString();\n String regionValue = regionSpinner.getSelectedItem().toString();\n\n if (!unitFlatView.getText().toString().trim().isEmpty())\n address.append(unitFlatView.getText().toString()).append(ApplicationConstants.SPACE_SEPERATOR);\n address.append(streetNumberView.getText().toString()).append(ApplicationConstants.SPACE_SEPERATOR)\n .append(streetNameView.getText().toString()).append(ApplicationConstants.SPACE_SEPERATOR)\n .append(suburbValue).append(ApplicationConstants.SPACE_SEPERATOR)\n .append(districtValue).append(ApplicationConstants.SPACE_SEPERATOR)\n .append(regionValue).append(ApplicationConstants.SPACE_SEPERATOR);\n\n String type = typeSpinner.getSelectedItem().toString();\n String bedrooms = bedroomSpinner.getSelectedItem().toString();\n String bathrooms = bathroomSpinner.getSelectedItem().toString();\n\n String methodOfSale = methodOfSaleSpinner.getSelectedItem().toString();\n String methodOfSaleValue = (methodOfSale == ApplicationConstants.MOS_NEGOTIATION) ? \"\" : methodOfSaleEditText.getText().toString();\n\n int hot = 0;\n\n AddPropertyRequest addPropertyRequest = new AddPropertyRequest();\n addPropertyRequest.setAgentId(userId);\n addPropertyRequest.setShortDescription(shortDesc);\n addPropertyRequest.setDescription(description);\n addPropertyRequest.setPrice(price);\n addPropertyRequest.setFloorArea(floorArea);\n addPropertyRequest.setLandArea(landArea);\n addPropertyRequest.setParking(parking);\n addPropertyRequest.setViewingTime(viewingTimes);\n addPropertyRequest.setAddress(address.toString());\n addPropertyRequest.setType(type);\n addPropertyRequest.setBathrooms(bathrooms);\n addPropertyRequest.setBedrooms(bedrooms);\n addPropertyRequest.setIsHot(hot);\n addPropertyRequest.setMethodOfSale(methodOfSale);\n addPropertyRequest.setMethodOfSaleValue(methodOfSaleValue);\n\n String imageStr = getStringImage();\n addPropertyRequest.setPropertyImage((imageStr != null) ? imageStr : \"\");\n\n if (hazardsList != null) {\n loadHazardsView(addPropertyRequest);\n } else {\n showProgress(ApplicationConstants.DIALOG_HEADER, \"Please wait while we add the property details.\");\n String authToken = ShPrefManager.with(getActivity()).getToken();\n RestClient.getAPI().addProperty(authToken, addPropertyRequest, new RestCallback<ResponseData>() {\n @Override\n public void failure(RestError restError) {\n //hideProgress();\n OpenHomeUtils.showToast(getActivity(), restError.getErrorMessage(), Toast.LENGTH_LONG);\n hideProgress();\n }\n\n @Override\n public void success(ResponseData responseData, Response response) {\n hideProgress();\n Logger.logMessage(\"success()::::responseData.getStatus():: \", responseData.getStatus());\n int heading = R.string.error;\n String message = \"\";\n CustomDialogFragment dialogFragment;\n if (responseData.getStatus().equalsIgnoreCase(getString(R.string.success))) {\n heading = R.string.thank_you;\n message = \"Property added successfully. Open Home timings will be added to your calendar\";\n dialogFragment = CustomDialogFragment.newInstance(heading,\n message, ApplicationConstants.BUTTON_OK, 0);\n try {\n String splitViewingTimes[] = viewingTimes.split(\"::::\");\n for (String viewTime : splitViewingTimes) {\n String date = viewTime.split(\" \")[0];\n String time = viewTime.replace(date, \"\");\n Calendar beginTime = CalendarUtils.getCalendarFromViewingTime(date + \"::::\" + time);\n //startActivity(CalendarUtils.addEventToCalendar(beginTime, beginTime, location.getText().toString()));\n String calID = CalendarUtils.getCalendar(getActivity().getApplicationContext());\n // CalendarUtils.addCalendarEvent(getApplicationContext(), calID, location.getText().toString(), \"Open Home\", beginTime.getTimeInMillis(), beginTime.getTimeInMillis(), 0);\n\n CalendarUtils.addCalendarContractEvents(\"Open Home\", \"Open Home viewing time for the property added by you.\",\n calID, address.toString(), beginTime.getTimeInMillis(), beginTime.getTimeInMillis(), getActivity().getContentResolver());\n\n }\n } catch (Exception e) {\n message = \"Property added successfully. Open Home timings could not be added to your calendar. Please contact administrator if this problem persists.\";\n }\n } else {\n message = \"Error adding property. Please try again after some time.\";\n dialogFragment = CustomDialogFragment.newInstance(heading,\n message, ApplicationConstants.BUTTON_OK, 0);\n }\n dialogFragment.show(getActivity().getFragmentManager(), \"RegSuccessDialogFragment\");\n }\n });\n }\n }", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel getHotelReq(Hotel hotel){com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel hotelReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel();\n\t\t\n\t\t//set the hotelGdsCode\n\t\thotelReq.setGdsHotelCode(hotel.getGdsHotelCode());\n\t\thotelReq.setVendorHotelCode(hotel.getVendorHotelCode());\n\t\thotelReq.setHotelId( new Integer( hotel.getHotelId() ) );\n\t\thotelReq.setHotelCode( hotel.getHotelCode() );\n\t\thotelReq.setHotelChain( hotel.getHotelChain() );\n\t\thotelReq.setHotelName( hotel.getHotelName() );\n\t\thotelReq.setNoOfRooms( new Integer( hotel.getNoOfRooms() ) );\n\t\thotelReq.setAppleRating( hotel.getAppleRating() );\n\t\thotelReq.setHbsiPNRNo(hotel.getHbsiPNR());\n\t\thotelReq.setIsHBSi(hotel.isHBSI());\n\t\tif( hotel.getCheckInDate() != null ){\n\t\t\thotelReq.setCheckInDate( this.getDate( hotel.getCheckInDate() ) );\n\t\t}\n\t\tif( hotel.getCheckOutDate() != null ){\n\t\t\thotelReq.setCheckOutDate( this.getDate( hotel.getCheckOutDate() ) );\n\t\t}\n\t\thotelReq.setMinRate( new Double(hotel.getMinRate()) );\n\t\thotelReq.setCurrency( hotel.getCurrency() );\n\t\thotelReq.setHotelCityCode( hotel.getHotelCityCode() );\n\t\thotelReq.setOriginLocation( hotel.getOriginLocation() );\n\t\thotelReq.setRiskHotel( new Boolean( hotel.isRiskHotel() ) );\n\t\thotelReq.setNoOfNights( hotel.getNoOfNights() );\n\t\thotelReq.setAppleSpecialsAndSavers( new Boolean( hotel.isAppleSpecialsAndSavers() ) ); \n\t\thotelReq.setNoOfRequestedRooms( new Integer( hotel.getNoOfRequestedRooms() ) );\n\t\tif( hotel.getOccupancy() != null ){\n\t\t\thotelReq.setOccupancy( this.getOccupancyReq( hotel.getOccupancy() ) );\n\t\t}\n\t\tif( hotel.getResortArea() != null ){\n\t\t\thotelReq.setResortArea( this.getResortAreaReq( hotel.getResortArea() ) );\n\t\t}\n\t\tif( hotel.getDisplayRoomCategory() != null ){\n\t\t\thotelReq.setDisplayRoomCategory( this.getRoomCategoryReq( hotel.getDisplayRoomCategory() ));\n\t\t}\n\t\tif( (hotel.getSelectedRooms() != null) && (hotel.getSelectedRooms().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getSelectedRooms().size(); i++){\n\t\t\t\thotelReq.getSelectedRooms().add( this.getRoomPriceReq( hotel.getSelectedRooms().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getPreselectedRooms() != null) && (hotel.getPreselectedRooms().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getPreselectedRooms().size(); i++){\n\t\t\t\thotelReq.getPreselectedRooms().add( this.getRoomPriceReq( hotel.getPreselectedRooms().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getRoomCategories() != null) && (hotel.getRoomCategories().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getRoomCategories().size(); i++){\n\t\t\t\thotelReq.getRoomCategories().add( this.getRoomCategoryReq( hotel.getRoomCategories().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getVendorServices() != null) && (hotel.getVendorServices().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getVendorServices().size(); i++){\n\t\t\t\thotelReq.getVendorServices().add( this.getVendorServiceReq( hotel.getVendorServices().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getRequestedDatesForAvailabilities() != null) && (hotel.getRequestedDatesForAvailabilities().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getRequestedDatesForAvailabilities().size(); i++){\n\t\t\t\thotelReq.getRequestedDatesForAvailabilities().add( \n\t\t\t\t\t\tthis.getRequestedDatesForAvailabilityReq( hotel.getRequestedDatesForAvailabilities().get(i) ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (hotel.getVendor() != null) {\n//\t\t\thotelReq.getVendor().setCity(hotel.getVendor().getCity()); \n\t\t\thotelReq.setVendor(this.getVendorReq(hotel.getVendor()));\n\t\t}\n\t\t\n\t\t//setting search criteria\n\t\t\n\t\tif(hotel.getSearchCriteria()!=null)\n\t\t{\n\t\t\thotelReq.setSearchCriteria(this.getSearchCriteriaReq(hotel.getSearchCriteria()));\n\t\t}\n\t\t\n\t\t//Set the Cancellation Policy\n\t\t\n\t\tif(hotel.getCancellationPolicy()!=null)\n\t\t{\n\t\t\thotelReq.getCancellationPolicy().addAll(hotel.getCancellationPolicy());\n\t\t}\n\t\t\n\t\treturn hotelReq;\n\t}", "public void setFields(Viaje travel) {\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n if (travel.getFecha() != null) {\n getDateTxt().setText(df.format(travel.getFecha()));\n getProvidedHourTxt().setText(getUtils().gethhmm(travel.getFecha()));\n }\n if (travel.getIngreso() != null) {\n getTravelValueTxt().setText(travel.getIngreso().toString());\n }\n if (travel.getPagoACamionero() != null) {\n getMoneyforDriverTxt().setText(travel.getPagoACamionero().toString());\n }\n getDistanceTxt().setText(travel.getKms());\n getContainerTxt().setText(travel.getNumeroContenedor());\n getSealTxt().setText(travel.getPrecinto());\n getContainerTypeTxt().setText(travel.getTipoContenedor());\n if (travel.getReferencia() != null) {\n getReferenceTxt().setText(travel.getReferencia());\n }\n if (travel.getBultos() != null) {\n getPackageTxt().setText(travel.getBultos().toString());\n }\n if (travel.getEstadoContenedor() != null && travel.getEstadoContenedor().equals(\"lleno\")) {\n getContainerStateCkb().setSelected(true);\n } else {\n getContainerStateCkb().setSelected(false);\n }\n getCommodityTxt().setText(travel.getMercancia());\n if (travel.getPeso() != null) {\n getWeightTxt().setText(travel.getPeso().toString());\n }\n if (travel.getOrigen() != null) {\n getOriginTxt().setText(travel.getOrigen());\n }\n if (travel.getDestino() != null) {\n getDestinationTxt().setText(travel.getDestino());\n }\n getCollectionPlaceTxt().setText(travel.getLugarRecogida());\n getLoadPlaceTxt().setText(travel.getLugarCarga());\n getCarrierTxt().setText(travel.getCargador());\n SimpleDateFormat hhmmDf = new SimpleDateFormat(\"hh:mm\");\n if (travel.getHoraLlegada() != null) {\n getArriveHourTxt().setText(getUtils().gethhmm(travel.getHoraLlegada()));\n }\n if (travel.getHoraSalida() != null) {\n getExitHourTxt().setText(getUtils().gethhmm(travel.getHoraSalida()));\n }\n getDeliveryPlaceTxt().setText(travel.getLugarEntrega());\n if (travel.getTipoPago() != null) {\n getPaymentTypeTxt().setText(travel.getTipoPago().toString());\n }\n\n getShippingExpensesTxt().setText(travel.getGastosNaviera());\n getCustomsTxt().setText(travel.getAduana());\n getOthersDescriptionTFld().setText(travel.getOtrosGastos());\n getOtherExpensesTxt().setText(travel.getCantidadOtros());\n getShippingTxt().setText(travel.getNaviera());\n getBoatTxt().setText(travel.getBuque());\n getObservationsTxt().setText(travel.getObservaciones());\n\n Transportista driver = travel.getTransportista();\n if (travel.getIva() != null) {\n ObservableList ivaItems = getIvaCb().getItems();\n String iva = \"\";\n if (travel.getIva().equals(\"S\")) {\n iva = \"Abonado por cliente\";\n } else if (travel.getIva().equals(\"N\")) {\n iva = \"No abonado por cliente\";\n }\n for (int i = 0; i < ivaItems.size(); i++) {\n if (iva.equals(ivaItems.get(i))) {\n getIvaCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoCliente() != null) {\n ObservableList clientPaymentItems = getClientPaymentCb().getItems();\n for (int i = 0; i < clientPaymentItems.size(); i++) {\n if (travel.getEstadoCliente().equals(clientPaymentItems.get(i))) {\n getClientPaymentCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoTransportista() != null) {\n ObservableList driverPaymentItemsList = getDriverPaymentCb().getItems();\n for (int i = 0; i < driverPaymentItemsList.size(); i++) {\n if (travel.getEstadoTransportista().equals(driverPaymentItemsList.get(i))) {\n getDriverPaymentCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getCliente() != null) {\n ObservableList clientItems = getClientCb().getItems();\n for (int i = 0; i < clientItems.size(); i++) {\n if (travel.getCliente().getNombre().equals(clientItems.get(i))) {\n getClientCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getTransportista() != null) {\n ObservableList driverItems = getDriverCb().getItems();\n String fullDriverName = travel.getTransportista().getNombre().trim() + \" \" + travel.getTransportista().getApellido1().trim() + \" \" + travel.getTransportista().getApellido2().trim();\n for (int i = 0; i < driverItems.size(); i++) {\n if (fullDriverName.equals(driverItems.get(i))) {\n getDriverCb().getSelectionModel().select(i);\n }\n }\n }\n String travelType = travel.getTipoViaje();\n if (travelType != null) {\n ObservableList travelsTypeItems = getTravelTypeCb().getItems();\n if (travelType.equals(\"T\")) {\n travelType = \"Terrestre\";\n } else if (travel.getTipoViaje().equals(\"EX\")) {\n travelType = \"Exportación\";\n }\n for (int i = 0; i < travelsTypeItems.size(); i++) {\n if (travelType.equals(travelsTypeItems.get(i))) {\n getTravelTypeCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoHacienda() != null) {\n ObservableList treasuryStateItems = getTreasuryStateCb().getItems();\n for (int i = 0; i < treasuryStateItems.size(); i++) {\n if (travel.getEstadoHacienda().equals(treasuryStateItems.get(i))) {\n getTreasuryStateCb().getSelectionModel().select(i);\n }\n }\n if (!travel.getEstadoHacienda().equals(\"Ninguno\")) {\n getTreasuryStateCb().setVisible(true);\n }\n }\n ObservableList dispatcherItems = getDispatcherCb().getItems();\n for (int i = 0; i < dispatcherItems.size(); i++) {\n if (travel.getDespachante() != null && travel.getDespachante().equals(dispatcherItems.get(i))) {\n getDispatcherCb().getSelectionModel().select(i);\n }\n }\n }", "@Override\n public void actionPerformed(NetworkEvent evt) {\n JSONParser jsonp = new JSONParser();\n\n try {\n Map<String, Object> r = jsonp.parseJSON(new CharArrayReader(new String(con.getResponseData()).toCharArray()));\n System.out.println(\"rrrrrrrrrrrrrr\" + r);\n //System.out.println(tasks);\n List<Map<String, Object>> list = (List<Map<String, Object>>) r.get(\"root\");\n for (Map<String, Object> obj : list) {\n Reservation reserv = new Reservation();\n\n float idR = Float.parseFloat(obj.get(\"id_reservation\").toString());\n reserv.setId_reservation((int) idR);\n float idE = Float.parseFloat(obj.get(\"id_even\").toString());\n reserv.setId_even((int) idE);\n\n float idU = Float.parseFloat(obj.get(\"id_client\").toString());\n reserv.setId_client((int) idU);\n\n float idT = Float.parseFloat(obj.get(\"nbre_ticket\").toString());\n\n reserv.setNbre_ticket((int) idT);\n reserv.setDate_reservation((String) obj.get(\"date_reservation\"));\n\n listresrvation.add(reserv);\n\n }\n } catch (IOException ex) {\n }\n\n }", "public void addHotel(int hotelId, List<Hotel_Room_Detail> hotelRoomDetailList){\n\n }", "private void loadData() {\r\n titleField.setText(existingAppointment.getTitle());\r\n descriptionField.setText(existingAppointment.getDescription());\r\n contactField.setText(existingAppointment.getContact());\r\n customerComboBox.setValue(customerList.stream()\r\n .filter(x -> x.getCustomerId() == existingAppointment.getCustomerId())\r\n .findFirst().get());\r\n typeComboBox.setValue(existingAppointment.getType());\r\n locationComboBox.setValue(existingAppointment.getLocation());\r\n startTimeComboBox.setValue(existingAppointment.getStart().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n endTimeComboBox.setValue(existingAppointment.getEnd().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n startDatePicker.setValue(existingAppointment.getStart().toLocalDate());\r\n endDatePicker.setValue(existingAppointment.getEnd().toLocalDate());\r\n }", "private void pokupiIzPoljaIKreirajServisera() {\n\t\tServiser noviServiser;\n\t\tif(izmena == false) {\n\t\t\tString ime = rssv.getTfIme().getText();\n\t\t\tString prezime = rssv.getTfPrezime().getText();\n\t\t\tString JMBG = rssv.getTfJMBG().getText();\n\t\t\tPol pol = rssv.getPolBox().getSelectionModel().getSelectedItem();\n\t\t\tString adresa = rssv.getTfAdresa().getText();\n\t\t\tString brojTelefona = rssv.getTfBrojTelefona().getText();\n\t\t\tString korisnickoIme = rssv.getTfKorisnickoIme().getText();\n\t\t\tString lozinka = rssv.getTfLozinka().getText();\n\t\t\tSpecijalizacija specijalizacija = rssv.getSpecijalizacijaBox().getSelectionModel().getSelectedItem();\n\t\t\t\t\n\t\t\ttry {\n\t\t\t\tdouble plata = Double.valueOf(rssv.getTfPlata().getText());\n\t\t\t\tnoviServiser = new Serviser(ime, prezime, JMBG, pol, adresa, brojTelefona, korisnickoIme, lozinka, specijalizacija, plata);\n\t\t\t\trssv.getTabela().getItems().add(noviServiser);\n\t\t\t\tServiserController.upisiServiseraUFajl(noviServiser);\n\t\t\t\trssv.resetujPolja();\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\trssv.izbaciPorukuOGresci(e.getMessage());\n\t\t\t} catch (Exception e) {\n\t\t\t\trssv.izbaciPorukuOGresci(e.getMessage());\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tString ime = rssv.getTfIme().getText();\n\t\t\tString prezime = rssv.getTfPrezime().getText();\n\t\t\tString JMBG = rssv.getTfJMBG().getText();\n\t\t\tPol pol = rssv.getPolBox().getSelectionModel().getSelectedItem();\n\t\t\tString adresa = rssv.getTfAdresa().getText();\n\t\t\tString brojTelefona = rssv.getTfBrojTelefona().getText();\n\t\t\tString korisnickoIme = rssv.getTfKorisnickoIme().getText();\n\t\t\tString lozinka = rssv.getTfLozinka().getText();\n\t\t\tSpecijalizacija specijalizacija = rssv.getSpecijalizacijaBox().getSelectionModel().getSelectedItem();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tdouble plata = Double.valueOf(rssv.getTfPlata().getText());\n\t\t\t\tnoviServiser = new Serviser(tempServiser.getOznaka(), ime, prezime, JMBG, pol, adresa, brojTelefona, korisnickoIme, lozinka, false, specijalizacija, plata);\n\t\t\t\tServiserController.izbrisiIzUcitanihServiseraSaOznakom(tempServiser.getOznaka());\n\t\t\t\trssv.getTabela().getItems().add(noviServiser);\n\t\t\t\tServiserController.upisiServiseraUFajl(noviServiser);\n\t\t\t\trssv.getTabela().getItems().remove(tempServiser);\n\t\t\t\tServiserController.sacuvajIzmeneUFajl();\n\t\t\t\trssv.resetujPolja();\n\t\t\t\t\n\t\t\t\tizmena = false;\n\t\t\t\ttempServiser = null;\n\t\t\t\t\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void handleBooking() {\n\t\tString customerID;\n\t\tint recNo = table.getSelectedRow();\n\t\tif(recNo == -1){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tcustomerID = JOptionPane.showInputDialog(mainPanel,\n\t\t\t\t\t\"Enter Customer ID (8 Digits)\");\n\t\t\tif (customerID != null) {\t\n\t\t\t\tcontroller.reserveRoom(recNo, customerID);\n\t\n\t\t\t\tupdateTable(nameSearchBar.getText(),\n\t\t\t\t\t\tlocationSearchBar.getText());\n\t\t\t}\n\t\t} catch (final InvalidCustomerIDException icide) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel, \"Invalid format!\");\n\t\t} catch (final BookingServiceException bse) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel, bse.getMessage());\n\t\t} catch (final ServiceUnavailableException sue) {\n\t\t\tJOptionPane.showMessageDialog(null, sue.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public Bebawy_Hotels() \n\t{\n\t\tinitComponent();\n\t\tcreateEvent();\t\n\t}", "public void loadHotels();", "private void initialize() {\r\n\t\tfrmCreateReservation = new JFrame();\r\n\t\tfrmCreateReservation.setTitle(\"Create reservation\");\r\n\t\tfrmCreateReservation.setBounds(100, 100, 598, 441);\r\n\t\tfrmCreateReservation.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmCreateReservation.getContentPane().setLayout(null);\r\n\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBounds(0, 0, 582, 402);\r\n\t\tfrmCreateReservation.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(259, 26, 313, 213);\r\n\t\tpanel.add(scrollPane);\r\n\r\n\t\tlblUserEmail.setBounds(43, 0, 171, 14);\r\n\t\tpanel.add(lblUserEmail);\r\n\r\n\t\tJLabel lblRoomNumber = new JLabel(\"\");\r\n\t\tlblRoomNumber.setBounds(536, 254, 36, 19);\r\n\t\tpanel.add(lblRoomNumber);\r\n\r\n\t\tJLabel lblRn = new JLabel(\"Room number:\");\r\n\t\tlblRn.setBounds(10, 47, 89, 14);\r\n\t\tpanel.add(lblRn);\r\n\r\n\t\tJLabel lblPr = new JLabel(\"Price:\");\r\n\t\tlblPr.setBounds(10, 72, 70, 14);\r\n\t\tpanel.add(lblPr);\r\n\r\n\t\tJLabel lblRT = new JLabel(\"Room type:\");\r\n\t\tlblRT.setBounds(10, 97, 70, 14);\r\n\t\tpanel.add(lblRT);\r\n\r\n\t\tJLabel lblGetRN = new JLabel(\"\");\r\n\t\tlblGetRN.setBounds(99, 47, 100, 14);\r\n\t\tpanel.add(lblGetRN);\r\n\r\n\t\tJLabel lblGetPr = new JLabel(\"\");\r\n\t\tlblGetPr.setBounds(99, 72, 100, 14);\r\n\t\tpanel.add(lblGetPr);\r\n\r\n\t\tJLabel lblGetRT = new JLabel(\"\");\r\n\t\tlblGetRT.setBounds(99, 97, 100, 14);\r\n\t\tpanel.add(lblGetRT);\r\n\r\n\t\tJLabel lblCheckIn = new JLabel(\"Check in:\");\r\n\t\tlblCheckIn.setBounds(10, 122, 70, 14);\r\n\t\tpanel.add(lblCheckIn);\r\n\r\n\t\tJLabel lblCheckOut = new JLabel(\"Check out:\");\r\n\t\tlblCheckOut.setBounds(10, 147, 70, 14);\r\n\t\tpanel.add(lblCheckOut);\r\n\r\n\t\tJDateChooser dateCheckIn = new JDateChooser();\r\n\t\tdateCheckIn.setBounds(99, 122, 100, 20);\r\n\t\tpanel.add(dateCheckIn);\r\n\r\n\t\tJDateChooser dateCheckOut = new JDateChooser();\r\n\t\tdateCheckOut.setBounds(99, 147, 100, 20);\r\n\t\tpanel.add(dateCheckOut);\r\n\r\n\t\tJLabel lblInvalidDate = new JLabel(\"\");\r\n\t\tlblInvalidDate.setForeground(Color.RED);\r\n\t\tlblInvalidDate.setBounds(20, 172, 229, 14);\r\n\t\tpanel.add(lblInvalidDate);\r\n\t\tJScrollPane scrollPaneDates = new JScrollPane();\r\n\t\tscrollPaneDates.setBounds(30, 288, 229, 103);\r\n\t\tpanel.add(scrollPaneDates);\r\n\t\t\r\n\t\ttableDates = new JTable();\r\n//\t\tCreating table by making some specific rows.\r\n\t\tscrollPaneDates.setViewportView(tableDates);\r\n\t\tmodel = new DefaultTableModel();\r\n\t\tObject[] column = { \"Room number\", \"Price\", \"Room type\" };\r\n\t\tmodel.setColumnIdentifiers(column);\r\n\t\tObject[] row = new Object[3];\r\n\t\r\n\t\r\n\t\tmodelDates = new DefaultTableModel();\r\n\t\tObject[] columnDates = { \"CheckIn\" ,\"CheckOut\"};\r\n\t\tmodelDates.setColumnIdentifiers(columnDates);\r\n\t\tObject[] rowDates = new Object[2];\r\n\r\n\t\tJButton btnCreateReservation = new JButton(\"Create reservation\");\r\n\t\tbtnCreateReservation.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n//\t\t\tclearing the table with the reservations for the selected room\t\r\n\t\t\t\tmodelDates.setRowCount(0);\r\n\t\t\t\tif (dateCheckIn.getDate() == null || dateCheckOut.getDate() == null) {\r\n\t\t\t\t\tlblInvalidDate.setForeground(Color.RED);\r\n\t\t\t\t\tlblInvalidDate.setText(\"No date selected!\");\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tlong diffDays = ChronoUnit.DAYS.between(dateCheckIn.getDate().toInstant(),\r\n\t\t\t\t\t\t\tdateCheckOut.getDate().toInstant());\r\n\r\n\t\t\t\t\tint selectedRowIndex = table.getSelectedRow();\r\n\r\n\t\t\t\t\tPeriod pastDate = Period.between(date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate(),\r\n\t\t\t\t\t\t\tdateCheckIn.getDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDate());\r\n\r\n\t\t\t\t\tif (diffDays <= 0 || selectedRowIndex == -1 || pastDate.getDays() < 0) {\r\n\r\n\t\t\t\t\t\tlblInvalidDate.setForeground(Color.RED);\r\n\t\t\t\t\t\tlblInvalidDate.setText(\"Invalid dates or no room selected!\");\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSessionFactory factory = new Configuration().configure(\"hibernate.cfg.xml\")\r\n\t\t\t\t\t\t\t\t.addAnnotatedClass(Customer.class).addAnnotatedClass(Rooms.class)\r\n\t\t\t\t\t\t\t\t.addAnnotatedClass(Reservation.class).addAnnotatedClass(Review.class)\r\n\t\t\t\t\t\t\t\t.buildSessionFactory();\r\n\r\n\t\t\t\t\t\tSession session = factory.getCurrentSession();\r\n\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tsession.beginTransaction();\r\n\t\t\t\t\t\t\tQuery customerQ = session.createQuery(\"from Customer where email=:custEmail\");\r\n\t\t\t\t\t\t\tcustomerQ.setParameter(\"custEmail\", lblUserEmail.getText());\r\n\r\n\t\t\t\t\t\t\tCustomer customer = (Customer) customerQ.getResultList().get(0);\r\n\r\n\t\t\t\t\t\t\tQuery roomQ = session.createQuery(\"from Rooms where roomNumber=:roomNr\");\r\n\t\t\t\t\t\t\troomQ.setParameter(\"roomNr\", lblGetRN.getText());\r\n\t\t\t\t\t\t\tRooms room = (Rooms) roomQ.getResultList().get(0);\r\n\r\n\t\t\t\t\t\t\tQuery resQ = session.createQuery(\"from Reservation where room_id=:roomId\");\r\n\t\t\t\t\t\t\tresQ.setParameter(\"roomId\", room.getId());\r\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\t\t\t\tList<Reservation> resList = resQ.getResultList();\r\n\t\t\t\t\t\t\tint boolRes = 0;\r\n\t\t\t\t\t\t\tfor(int i = 0; i<resList.size();i++) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif((dateCheckIn.getDate().compareTo(resList.get(i).getCheckOut()) <0) && (dateCheckOut.getDate().compareTo(resList.get(i).getCheckIn()) > 0)) {\r\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(btnCreateReservation, \"The room is reserved at this date\");\r\n\t\t\t\t\t\t\t\t\tboolRes = 1;\r\n\t\t\t\t\t\t\t\t\trowDates[0] = resList.get(i).getCheckIn();\r\n\t\t\t\t\t\t\t\t\trowDates[1] = resList.get(i).getCheckOut();\r\n\t\t\t\t\t\t\t\t\tmodelDates.addRow(rowDates);\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\telse {\r\n\t\t\t\t\t\t\t\t\tboolRes= 0;\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttableDates.setModel(modelDates);\r\n\t\t\t\t\t\t\tif(boolRes == 0) {\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tdouble totalPrice = room.getPrice() * diffDays;\r\n\r\n\t\t\t\t\t\t\tjava.sql.Date sqldateCheckIn = new java.sql.Date(dateCheckIn.getDate().getTime());\r\n\t\t\t\t\t\t\tjava.sql.Date sqldateCheckOut = new java.sql.Date(dateCheckOut.getDate().getTime());\r\n\r\n\t\t\t\t\t\t\tReservation reserve = new Reservation(customer, room, sqldateCheckIn, sqldateCheckOut,\r\n\t\t\t\t\t\t\t\t\ttotalPrice);\r\n\r\n\t\t\t\t\t\t\tint answer = JOptionPane.showConfirmDialog(btnCreateReservation,\r\n\t\t\t\t\t\t\t\t\t\"Total price is: \" + totalPrice + \". Are you agree?\", \"Warning\",\r\n\t\t\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t\t\tif (answer == JOptionPane.YES_OPTION) {\r\n\r\n\t\t\t\t\t\t\t\tsession.save(reserve);\r\n\t\t\t\t\t\t\t\tlblInvalidDate.setForeground(Color.GREEN);\r\n\t\t\t\t\t\t\t\tlblInvalidDate.setText(\"Reservation succesfully created!\");\r\n\r\n\t\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\t\t\t\t\tList<Rooms> roomsList = (List<Rooms>) session\r\n\t\t\t\t\t\t\t\t\t\t.createQuery(\"from Rooms\").list();\r\n\t\t\t\t\t\t\t\tmodel = new DefaultTableModel();\r\n\r\n\t\t\t\t\t\t\t\tmodel.setColumnIdentifiers(column);\r\n\r\n\t\t\t\t\t\t\t\tfor (int i = 0; i < roomsList.size(); i++) {\r\n\t\t\t\t\t\t\t\t\trow[0] = roomsList.get(i).getRoomNumber();\r\n\t\t\t\t\t\t\t\t\trow[1] = roomsList.get(i).getPrice();\r\n\t\t\t\t\t\t\t\t\trow[2] = roomsList.get(i).getRoomType();\r\n\t\t\t\t\t\t\t\t\tmodel.addRow(row);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\ttable.setModel(model);\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tsession.getTransaction().commit();\r\n\t\t\t\t\t\t\t}}\r\n\r\n\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\tfactory.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreateReservation.setBounds(43, 197, 182, 23);\r\n\t\tpanel.add(btnCreateReservation);\r\n\t\ttable = new JTable();\r\n\t\ttable.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tDefaultTableModel model = (DefaultTableModel) table.getModel();\r\n\t\t\t\tint selectedRowIndex = table.getSelectedRow();\r\n\t\t\t\tif (selectedRowIndex > -1) {\r\n\t\t\t\t\tlblGetRN.setText(model.getValueAt(selectedRowIndex, 0).toString());\r\n\t\t\t\t\tlblGetPr.setText(model.getValueAt(selectedRowIndex, 1).toString());\r\n\t\t\t\t\tlblGetRT.setText(model.getValueAt(selectedRowIndex, 2).toString());\r\n\t\t\t\t\tlblRoomNumber.setText(model.getValueAt(selectedRowIndex, 0).toString());\r\n\t\t\t\t\tlblInvalidDate.setText(\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tSessionFactory factory = new Configuration().configure(\"hibernate.cfg.xml\").addAnnotatedClass(Rooms.class)\r\n\t\t\t\t.addAnnotatedClass(Review.class).addAnnotatedClass(Customer.class).addAnnotatedClass(Reservation.class)\r\n\t\t\t\t.buildSessionFactory();\r\n\t\tSession session = factory.getCurrentSession();\r\n\r\n\t\ttry {\r\n\t\t\tsession.beginTransaction();\r\n\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tList<Rooms> roomsList = (List<Rooms>) session.createQuery(\"from Rooms\").list();\r\n\r\n\t\t\tfor (int i = 0; i < roomsList.size(); i++) {\r\n\r\n\t\t\t\trow[0] = roomsList.get(i).getRoomNumber();\r\n\t\t\t\trow[1] = roomsList.get(i).getPrice();\r\n\t\t\t\trow[2] = roomsList.get(i).getRoomType();\r\n\r\n\t\t\t\tmodel.addRow(row);\r\n\r\n\t\t\t}\r\n\r\n\t\t\ttable.setModel(model);\r\n\t\t\tsession.getTransaction().commit();\r\n\r\n\t\t} finally {\r\n\r\n\t\t\tfactory.close();\r\n\r\n\t\t}\r\n\r\n\t\ttable.setModel(model);\r\n\r\n\t\tscrollPane.setViewportView(table);\r\n\r\n\t\tJButton btnAddReview = new JButton(\"Write a review for room:\");\r\n\t\tbtnAddReview.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tAddReviewPage addReview = new AddReviewPage();\r\n\r\n\t\t\t\tif (lblGetRN.getText().isEmpty()) {\r\n\r\n\t\t\t\t\tJOptionPane.showMessageDialog(btnAddReview, \"Please select a room!\");\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\taddReview.frmAddReview.setVisible(true);\r\n\t\t\t\t\taddReview.lblRoomNumber.setText(lblGetRN.getText());\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAddReview.setBounds(310, 250, 222, 23);\r\n\t\tpanel.add(btnAddReview);\r\n\r\n\t\tJButton btnReviews = new JButton(\"View reviews for all rooms\");\r\n\r\n\t\tbtnReviews.setBounds(310, 284, 222, 23);\r\n\t\tpanel.add(btnReviews);\r\n\t\tbtnReviews.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tReviewPage review = new ReviewPage();\r\n\t\t\t\treview.frmReviews.setVisible(true);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Hello,\");\r\n\t\tlblNewLabel_1.setBounds(10, 0, 46, 14);\r\n\t\tpanel.add(lblNewLabel_1);\r\n\r\n\t\tJButton btnLogout = new JButton(\"Log out\");\r\n\t\tbtnLogout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmCreateReservation.setVisible(false);\r\n\t\t\t\tLoginPage login = new LoginPage();\r\n\t\t\t\tlogin.frmLogin.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLogout.setBounds(385, 0, 100, 23);\r\n\t\tpanel.add(btnLogout);\r\n\t\t\r\n\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"The following periods are taken:\");\r\n\t\tlblNewLabel.setBounds(20, 267, 194, 14);\r\n\t\tpanel.add(lblNewLabel);\r\n\t\t\r\n\t\tJButton btnViewYourReservation = new JButton(\"View your reservations\");\r\n\t\tbtnViewYourReservation.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tSessionFactory factory = new Configuration().configure(\"hibernate.cfg.xml\")\r\n\t\t\t\t\t\t.addAnnotatedClass(Customer.class).addAnnotatedClass(Rooms.class)\r\n\t\t\t\t\t\t.addAnnotatedClass(Reservation.class).addAnnotatedClass(Review.class)\r\n\t\t\t\t\t\t.buildSessionFactory();\r\n\r\n\t\t\t\tSession session = factory.getCurrentSession();\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsession.beginTransaction();\r\n\t\t\t\t\tQuery customerQ = session.createQuery(\"from Customer where email=:custEmail\");\r\n\t\t\t\t\tcustomerQ.setParameter(\"custEmail\", lblUserEmail.getText());\r\n\r\n\t\t\t\t\tCustomer customer = (Customer) customerQ.getResultList().get(0);\r\n\r\n\t\t\t\t\t\tCustomerReservationsPage customerReservations = new CustomerReservationsPage();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tcustomerReservations.setCustomerId(customer.getId());\r\n\t\t\t\t\t\tcustomerReservations.getReservationInfo();\r\n\t\t\t\t\t\tcustomerReservations.frmReservations.setVisible(true);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsession.getTransaction().commit();\r\n\t\t\t\t\r\n\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tfactory.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnViewYourReservation.setBounds(43, 231, 182, 23);\r\n\t\tpanel.add(btnViewYourReservation);\r\n\t\t\r\n\r\n\r\n\t}", "@FXML\n\tvoid btn_save_click(MouseEvent event) {\n\n\t\tfor (Node n : pnItems.getChildren()) {\n\t\t\tif (n instanceof PlaceofInterestItem) {\n\t\t\t\tPlaceofInterestItem spp = (PlaceofInterestItem) n;\n\t\t\t\tSystem.out.println(spp.getplacetour().getName());\n\t\t\t\tif (spp.getsectime() == 0) {\n\t\t\t\t\tStage s = (Stage) pnItems.getScene().getWindow();\n\t\t\t\t\tnotification.show(\"Please dont select a place with total time of 00:00:00:!\", \"error\", s);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (SelectedCity_ToursPlacesController.selected_tour == null) {\n\t\t\tStage s = (Stage) HomeController.instance.PANE.getScene().getWindow();\n\t\t\tif (getTxt_name().getText().isEmpty()) {\n\t\t\t\tnotification.show(\"Please Type a tour name!\", \"error\", s);\n\t\t\t\treturn;\n\t\t\t} else if (getTxt_desc().getText().isEmpty()) {\n\t\t\t\tnotification.show(\"Please Type a tour description!\", \"error\", s);\n\t\t\t\treturn;\n\t\t\t} else if (pnItems.getChildren().isEmpty()) {\n\t\t\t\tnotification.show(\"Please Fill the tour with at least 1 place of interest!\", \"error\", s);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tArrayList<entities.PlaceOfInterestTour> list_save = new ArrayList<entities.PlaceOfInterestTour>();\n\t\t\tentities.Tour newtour = new entities.Tour(GeneralValues.CITY, getTxt_name().getText(),\n\t\t\t\t\tgetCheckbox_recommended().isSelected(), getTxt_desc().getText());\n\n\t\t\tint index = 1;\n\t\t\tfor (Node sp : getPnItems().getChildren()) {\n\t\t\t\tif (sp instanceof PlaceofInterestItem) {\n\t\t\t\t\tPlaceofInterestItem item = (PlaceofInterestItem) sp;\n\t\t\t\t\titem.getplacetour().setIndex(index); // set index\n\t\t\t\t\titem.getplacetour().setSecTime(item.getsectime()); // set time\n\t\t\t\t\titem.getplacetour().setTour(newtour);\n\t\t\t\t\tlist_save.add(item.getplacetour());\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tclient.requestHandler.Catalog.AddTour(list_save);\n\t\t} else {\n\n\t\t\tif (pnItems.getChildren().isEmpty()) {\n\t\t\t\tStage s = (Stage) HomeController.instance.PANE.getScene().getWindow();\n\t\t\t\tnotification.show(\"Please Fill the tour with at least 1 place of interest!\", \"error\", s);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tArrayList<entities.PlaceOfInterestTour> list_save = new ArrayList<entities.PlaceOfInterestTour>();\n\t\t\tint index = 1;\n\t\t\tfor (Node sp : getPnItems().getChildren()) {\n\t\t\t\tif (sp instanceof PlaceofInterestItem) {\n\t\t\t\t\tPlaceofInterestItem item = (PlaceofInterestItem) sp;\n\t\t\t\t\titem.getplacetour().setIndex(index); // set index\n\t\t\t\t\titem.getplacetour().setSecTime(item.getsectime()); // set time\n\t\t\t\t\titem.getplacetour().setTour(selected_tour);\n\t\t\t\t\tlist_save.add(item.getplacetour());\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tclient.requestHandler.Catalog.UpdateTours_hard(list_save);\n\t\t}\n\n\t}", "private void fillSearchFields() {\n view.setMinPrice(1);\n view.setMaxPrice(10000);\n view.setMinSQM(1);\n view.setMaxSQM(10000);\n view.setBedrooms(1);\n view.setBathrooms(1);\n view.setFloor(1);\n view.setHeating(false);\n view.setLocation(\"Athens\");\n }", "private void initialize() {\r\n\t\tfrmHotelmanagement = new JFrame();\r\n\t\tfrmHotelmanagement.setIconImage(Toolkit.getDefaultToolkit().getImage(\"F:\\\\imagesandicons\\\\hotel.jpg\"));\r\n\t\tfrmHotelmanagement.setTitle(\"HotelManagement\");\r\n\t\tfrmHotelmanagement.getContentPane().setBackground(Color.WHITE);\r\n\t\tfrmHotelmanagement.setBounds(400, 100, 1324, 900);\r\n\t\tfrmHotelmanagement.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmHotelmanagement.getContentPane().setLayout(null);\r\n\t\tfrmHotelmanagement.setVisible(true);\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 25));\r\n\t\ttextField.setColumns(10);\r\n\t\ttextField.setBounds(345, 191, 207, 36);\r\n\t\tfrmHotelmanagement.getContentPane().add(textField);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 25));\r\n\t\ttextField_1.setColumns(10);\r\n\t\ttextField_1.setBounds(345, 305, 207, 36);\r\n\t\tfrmHotelmanagement.getContentPane().add(textField_1);\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 25));\r\n\t\ttextField_2.setColumns(10);\r\n\t\ttextField_2.setBounds(345, 393, 207, 36);\r\n\t\tfrmHotelmanagement.getContentPane().add(textField_2);\r\n\t\t\r\n\t\ttextField_3 = new JTextField();\r\n\t\ttextField_3.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 25));\r\n\t\ttextField_3.setColumns(10);\r\n\t\ttextField_3.setBounds(345, 472, 207, 36);\r\n\t\tfrmHotelmanagement.getContentPane().add(textField_3);\r\n\t\t\r\n\t\ttextField_4 = new JTextField();\r\n\t\ttextField_4.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 25));\r\n\t\ttextField_4.setColumns(10);\r\n\t\ttextField_4.setBounds(345, 558, 207, 36);\r\n\t\tfrmHotelmanagement.getContentPane().add(textField_4);\r\n\t\t\r\n\t\tJButton button = new JButton(\"Search\");\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString sql=\"SELECT * FROM Manager where no=?\";\r\n\t\t\t\ttry {\r\n\t\t\t\t\tps=conn.prepareStatement(sql);\r\n\t\t\t\t\tps.setString(1, textField.getText());\r\n\t\t\t\t\t\r\n\t\t\t\t\trs=ps.executeQuery();\r\n\t\t\t\t\r\n\t\t\tif(rs.next())\r\n\t\t\t{\r\n\t\t\t\tString add1=rs.getString(\"Name\");\r\n\t\t\t\ttextField_1.setText(add1);\r\n\t\t\t\tString add2=rs.getString(\"Age\");\r\n\t\t\t\ttextField_2.setText(add2);\r\n\t\t\t\tString add3=rs.getString(\"Salary\");\r\n\t\t\t\ttextField_3.setText(add3);\r\n\t\t\t\tString add4=rs.getString(\"Tarining\");\r\n\t\t\t\ttextField_4.setText(add4);\r\n\t\t\t}\r\n\t\t\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Incorrect Manager Number\");\r\n\t\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception ae){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,ae);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tfinally {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\trs.close();\r\n\t\t\t\t\t\tps.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcatch(Exception ae){\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(null,\"Sorry For Inconviniecne ,We will look towards it immediately\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tbutton.setForeground(Color.WHITE);\r\n\t\tbutton.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbutton.setBackground(Color.BLACK);\r\n\t\tbutton.setBounds(442, 252, 160, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(button);\r\n\t\t\r\n\t\tJLabel lblManagerNo = new JLabel(\"Manager No\");\r\n\t\tlblManagerNo.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tlblManagerNo.setBounds(117, 191, 179, 30);\r\n\t\tfrmHotelmanagement.getContentPane().add(lblManagerNo);\r\n\t\t\r\n\t\tJLabel label_1 = new JLabel(\"NAME\");\r\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tlabel_1.setBounds(169, 305, 127, 30);\r\n\t\tfrmHotelmanagement.getContentPane().add(label_1);\r\n\t\t\r\n\t\tJLabel lblAge = new JLabel(\"Age\");\r\n\t\tlblAge.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tlblAge.setBounds(169, 393, 127, 30);\r\n\t\tfrmHotelmanagement.getContentPane().add(lblAge);\r\n\t\t\r\n\t\tJLabel lblSalary = new JLabel(\"Salary\");\r\n\t\tlblSalary.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tlblSalary.setBounds(169, 476, 127, 30);\r\n\t\tfrmHotelmanagement.getContentPane().add(lblSalary);\r\n\t\t\r\n\t\tJLabel lblTraining = new JLabel(\"Training\");\r\n\t\tlblTraining.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tlblTraining.setBounds(169, 558, 127, 30);\r\n\t\tfrmHotelmanagement.getContentPane().add(lblTraining);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"\");\r\n\t\tlabel.setIcon(new ImageIcon(\"F:\\\\imagesandicons\\\\hotel-del-luna.jpg\"));\r\n\t\tlabel.setBounds(632, 124, 640, 600);\r\n\t\tfrmHotelmanagement.getContentPane().add(label);\r\n\t\t\r\n\t\tJLabel lblAManagerAlways = new JLabel(\"A Manager Always Takes Good Care Of The Hotel\");\r\n\t\tlblAManagerAlways.setIcon(new ImageIcon(\"F:\\\\imagesandicons\\\\HotelPhoto1.jpg\"));\r\n\t\tlblAManagerAlways.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblAManagerAlways.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 30));\r\n\t\tlblAManagerAlways.setBounds(182, 31, 955, 71);\r\n\t\tfrmHotelmanagement.getContentPane().add(lblAManagerAlways);\r\n\t\t\r\n\t\tJButton btnBack = new JButton(\"Back\");\r\n\t\tbtnBack.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tReception rc=new Reception();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnBack.setForeground(Color.WHITE);\r\n\t\tbtnBack.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnBack.setBackground(Color.BLACK);\r\n\t\tbtnBack.setBounds(442, 634, 160, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnBack);\r\n\t\t\r\n\t\tJLabel label_2 = new JLabel(\"Hotel Del Luna\");\r\n\t\tlabel_2.setIcon(new ImageIcon(\"F:\\\\imagesandicons\\\\hotel.jpg\"));\r\n\t\tlabel_2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlabel_2.setForeground(Color.RED);\r\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 25));\r\n\t\tlabel_2.setBounds(947, 748, 290, 92);\r\n\t\tfrmHotelmanagement.getContentPane().add(label_2);\r\n\t}", "public void displayroomsinfo(boolean reserved , int roomtype){\n String query = \" SELECT Roomno , RoomtypeID , Hotelid\"\n + \" FROM Rooms \"\n + \" WHERE Reserved = ? and RoomtypeID = ? \"; \n String status , Roomtype ;\n Room room ;\n if(reserved == true){status = \"Reserved\" ;}\n else{status = \"Empty\";}\n if(roomtype == 1){\n Roomtype = \"Single Room\" ;\n room = new singleRoom();\n }\n else{\n Roomtype = \"Double Room\";\n room = new doubleRoom();\n }\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n Query.setBoolean(1 ,reserved);\n Query.setInt(2,roomtype);\n ResultSet rs = Query.executeQuery();\n \n List<String> lst = new ArrayList<>() ;\n while(rs.next()){ \n \n String str = \" RoomNo: \" + rs.getInt(\"Roomno\") + \" Status: \"+ status +\" RoomType: \"+ Roomtype + \" Hotel ID: \" + rs.getInt(\"Hotelid\") +\"\\n\"; \n lst.add(str);\n }\n room.setinfo(lst);\n \n \n \n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public DefaultTableModel makeHotellist() {\n\t\tDefaultTableModel tablemodel = new DefaultTableModel(heading, 0);\n\t\t// get data\n\t\tfor (int i = 0; i < AHR.size(); i++) {\n\t\t\tint id = AHR.get(i).getHotelID(); // id\n\t\t\tint star = AHR.get(i).getHotelStar(); // star\n\t\t\tString locality = AHR.get(i).getLocality(); // locality\n\t\t\tString address = AHR.get(i).getAddress(); // address\n\t\t\tint sroom = AHR.get(i).getSingle(); // single room\n\t\t\tint droom = AHR.get(i).getDouble(); // double room\n\t\t\tint qroom = AHR.get(i).getQuad(); // quad room\n\t\t\tint price = countSumPrice(AHR.get(i)); // price\n\t\t\tString go = \"Select\"; // select\n\t\t\tObject[] data = { id, star, locality, address, sroom, droom, qroom, price, go };\n\t\t\ttablemodel.addRow(data);\n\t\t}\n\t\treturn tablemodel;\n\t}", "public void addHospital(Hospital hospital) {\n\t\tlistOfHospitals.add(hospital); // Adds the object of the model \"hospital\" to the list created above\n\t\tString hospitalName = hospital.getHospitalName();\t// Gets the String name from the hospital model\n\t\tLong regionId = hospital.getRegionId(); // Gets the integer value of the region id\n System.out.println(\"regionId from GUI hospital object: \"+regionId);\n\t\t\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t \n session.beginTransaction();\n \n Query regquery = session.createQuery(\"from Region where id= :id\");\n regquery.setLong(\"id\", regionId);\n Region region = (Region) regquery.uniqueResult();\n session.save(new Hospital(hospital.getHospitalName(), region));\n //session.save(hospital);\n session.getTransaction().commit();\n session.close();\n \n\t\t//Connection connection = null;\t// Instantiation of the connection to the database\n\t\t\n\t\t/**\n\t\t * The following contains a set of prepared statements to be prepared to be synchronized to the MySql database.\n\t\t * The prepared statements pull information that was saved to the model via the form submission.\n\t\t */\n /*\n\t\ttry {\n\t\t\tconnection = dataSource.getConnection(); // Connection of the dataSource with the MySql sever\n\t\t\t\n\t\t\tString sql = \"Insert into hospital (id, name, region_id) values(?, ?, ?)\"; // First sql statement that contains the information to query into hospital\n\t\t\tPreparedStatement ps = connection.prepareStatement(sql); // Instantiation of the class \"PreparedStatement\" of how the query statements are prepared to be added to the database and establishment of the sql query\n\t\t\t\n\t\t\tps.setInt(1, this.getMaxHospitalID()+1);\n\t\t\tps.setString(2, hospitalName);\n\t\t\tps.setInt(3, regionId);\n\t\t\t\n\t\t\tps.executeUpdate();\n\t\t\tps.close();\n\t\t} catch (SQLException e) { // Catches SQL exception errors\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\tif (connection != null) { // Closes SQL connection \n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\t*/\n\t\treturn;\n\t}", "private void loadForm() {\n service.getReasons(refusalReasons);\n service.getVacEligibilty(vacElig);\n service.getVacSites(vacSites);\n service.getReactions(vacReactions);\n service.getOverrides(vacOverrides);\n updateComboValues();\n \n selPrv = \"\";\n selLoc = \"\";\n \n //datGiven.setDateConstraint(new SimpleDateConstraint(SimpleDateConstraint.NO_NEGATIVE, DateUtil.addDays(patient.getBirthDate(), -1, true), null, BgoConstants.TX_BAD_DATE_DOB));\n datGiven.setDateConstraint(getConstraintDOBDate());\n datEventDate.setConstraint(getConstraintDOBDate());\n radFacility.setLabel(service.getParam(\"Caption-Facility\", \"&Facility\"));\n if (immunItem != null) {\n \n txtVaccine.setValue(immunItem.getVaccineName());\n txtVaccine.setAttribute(\"ID\", immunItem.getVaccineID());\n txtVaccine.setAttribute(\"DATA\", immunItem.getVaccineID() + U + immunItem.getVaccineName());\n setEventType(immunItem.getEventType());\n \n radRefusal.setDisabled(!radRefusal.isChecked());\n radHistorical.setDisabled(!radHistorical.isChecked());\n radCurrent.setDisabled(!radCurrent.isChecked());\n \n visitIEN = immunItem.getVisitIEN();\n if (immunItem.getProvider() != null) {\n txtProvider.setText(FhirUtil.formatName(immunItem.getProvider().getName()));\n txtProvider.setAttribute(\"ID\", immunItem.getProvider().getId().getIdPart());\n selPrv = immunItem.getProvider().getId().getIdPart() + U + U + immunItem.getProvider().getName();\n }\n switch (immunItem.getEventType()) {\n case REFUSAL:\n ListUtil.selectComboboxItem(cboReason, immunItem.getReason());\n txtComment.setText(immunItem.getComment());\n datEventDate.setValue(immunItem.getDate());\n break;\n case HISTORICAL:\n datEventDate.setValue(immunItem.getDate());\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n txtAdminNote.setText(immunItem.getAdminNotes());\n ZKUtil.disableChildren(fraDate, true);\n ZKUtil.disableChildren(fraHistorical, true);\n default:\n service.getLot(lotNumbers, getVaccineID());\n loadComboValues(cboLot, lotNumbers, comboRenderer);\n loadVaccination();\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n ListUtil.selectComboboxItem(cboLot, immunItem.getLot());\n ListUtil.selectComboboxItem(cboSite, StrUtil.piece(immunItem.getInjSite(), \"~\", 2));\n spnVolume.setText(immunItem.getVolume());\n datGiven.setDate(immunItem.getDate());\n datVIS.setValue(immunItem.isImmunization() ? immunItem.getVISDate() : null);\n ListUtil.selectComboboxItem(cboReaction, immunItem.getReaction());\n ListUtil.selectComboboxData(cboOverride, immunItem.getVacOverride());\n txtAdminNote.setText(immunItem.getAdminNotes());\n cbCounsel.setChecked(immunItem.wasCounseled());\n }\n } else {\n IUser user = UserContext.getActiveUser();\n Practitioner provider = new Practitioner();\n provider.setId(user.getLogicalId());\n provider.setName(FhirUtil.parseName(user.getFullName()));\n txtProvider.setValue(FhirUtil.formatName(provider.getName()));\n txtProvider.setAttribute(\"ID\", VistAUtil.parseIEN(provider)); //provider.getId().getIdPart());\n selPrv = txtProvider.getAttribute(\"ID\") + U + U + txtProvider.getValue();\n Location location = new Location();\n location.setName(\"\");\n location.setId(\"\");\n datGiven.setDate(getBroker().getHostTime());\n onClick$btnVaccine(null);\n \n if (txtVaccine.getValue().isEmpty()) {\n close(true);\n return;\n }\n \n Encounter encounter = EncounterContext.getActiveEncounter();\n if (!EncounterUtil.isPrepared(encounter)) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n if (isCategory(encounter, \"E\")) {\n setEventType(EventType.HISTORICAL);\n Date date = encounter == null ? null : encounter.getPeriod().getStart();\n datEventDate.setValue(DateUtil.stripTime(date == null ? getBroker().getHostTime() : date));\n radCurrent.setDisabled(true);\n txtLocation.setText(user.getSecurityDomain().getName());\n PromptDialog.showInfo(user.getSecurityDomain().getLogicalId());\n txtLocation.setAttribute(\"ID\", user.getSecurityDomain().getLogicalId());\n \n } else {\n if (isVaccineInactive()) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n setEventType(EventType.CURRENT);\n radCurrent.setDisabled(false);\n }\n }\n }\n selectItem(cboReason, NONESEL);\n }\n btnSave.setLabel(immunItem == null ? \"Add\" : \"Save\");\n btnSave.setTooltiptext(immunItem == null ? \"Add record\" : \"Save record\");\n txtVaccine.setFocus(true);\n }", "private void $$$setupUI$$$() {\n SalonReservationForm = new JPanel();\n SalonReservationForm.setLayout(new GridLayoutManager(3, 4, new Insets(10, 10, 10, 10), -1, -1));\n SearchField = new JTextField();\n SalonReservationForm.add(SearchField, new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n SalonReservationForm.add(scrollPane1, new GridConstraints(1, 0, 1, 4, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n SalonsTable = new JTable();\n scrollPane1.setViewportView(SalonsTable);\n editReservationButton = new JButton();\n editReservationButton.setText(\"Edit Reservation\");\n SalonReservationForm.add(editReservationButton, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n newReservationButton = new JButton();\n newReservationButton.setText(\"New Reservation\");\n SalonReservationForm.add(newReservationButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n searchButton = new JButton();\n searchButton.setText(\"Search\");\n SalonReservationForm.add(searchButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n deleteReservationButton = new JButton();\n deleteReservationButton.setText(\"Delete Reservation\");\n SalonReservationForm.add(deleteReservationButton, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n exitButton = new JButton();\n exitButton.setText(\"Exit\");\n SalonReservationForm.add(exitButton, new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public static void main(String[] args){\r\n //Student Name:Chuanxi ZHENG\r\n //Student Number:260760794\r\n //Your code goes here. \r\n System.out.println(\"Please enter the name of your hotel:\");\r\n Scanner in = new Scanner(System.in);\r\n String name = in.nextLine();\r\n Room[] roomArray = new Room[getRandomNumberOfRooms()];\r\n for(int i = 0; i<roomArray.length;i++){\r\n roomArray[i] = new Room(getRandomType());\r\n }\r\n Hotel h = new Hotel(name,roomArray);\r\n System.out.println(\"Welcome! Please choose one of the following options\");\r\n System.out.println(\"1. Make a reservation\");\r\n System.out.println(\"2. Cancel a reservation\");\r\n System.out.println(\"3. See an invoice\");\r\n System.out.println(\"4. See the hotel info\");\r\n System.out.println(\"5. Exit the booking system\");\r\n \r\n Scanner input = new Scanner(System.in);\r\n while(!input.hasNextInt()){\r\n input = new Scanner(System.in);\r\n }\r\n int choice = input.nextInt();\r\n \r\n while(choice!=5){\r\n //make a reservation\r\n if(choice == 1){\r\n System.out.println(\"Please enter your name:\");\r\n input = new Scanner(System.in);\r\n String username = input.nextLine();\r\n System.out.println(\"What type of room would you like to reserve?\");\r\n input = new Scanner(System.in);\r\n String usertype = input.nextLine();\r\n h.createReservation(username,usertype);\r\n }\r\n //cancel a reservation\r\n if(choice == 2){\r\n System.out.println(\"Please enter your name:\");\r\n input = new Scanner(System.in);\r\n String username = input.nextLine();\r\n System.out.println(\"What type of room would you want to cancel?\");\r\n input = new Scanner(System.in);\r\n String usertype = input.nextLine();\r\n h.cancelReservation(username,usertype);\r\n }\r\n //see an invoice\r\n if(choice == 3){\r\n System.out.println(\"Please enter your name:\");\r\n input = new Scanner(System.in);\r\n String username = input.nextLine();\r\n h.printInvoice(username);\r\n }\r\n //see hotel information\r\n if(choice == 4){\r\n System.out.println(h.toString());\r\n }\r\n \r\n System.out.println(\"1. Make a reservation\");\r\n System.out.println(\"2. Cancel a reservation\");\r\n System.out.println(\"3. See an invoice\");\r\n System.out.println(\"4. See the hotel info\");\r\n System.out.println(\"5. Exit the booking system\");\r\n \r\n input = new Scanner(System.in);\r\n while(!input.hasNextInt()){\r\n input = new Scanner(System.in);\r\n }\r\n choice = input.nextInt();\r\n }\r\n \r\n //Exit the booking system\r\n if(choice == 5){\r\n System.out.println(\"It was a pleasure doing business with you!\");\r\n }\r\n }", "private static boolean bookHotel(org.netbeans.j2ee.wsdl.niceview.java.niceview.BookHotelInputType bookHotelReqest) throws BookHotelFault {\n org.netbeans.j2ee.wsdl.niceview.java.niceview.NiceViewService service = new org.netbeans.j2ee.wsdl.niceview.java.niceview.NiceViewService();\n org.netbeans.j2ee.wsdl.niceview.java.niceview.NiceViewPortType port = service.getNiceViewBindingPort();\n return port.bookHotel(bookHotelReqest);\n }", "private void designCompleteSeatMapUi() {\n\n //load NetworkImageView\n loadNetworkImages();\n\n labelsLocalize();\n //passenger design\n designViewForSelectedPassengerList(seatMapData.getPassengerArray());\n\n //cabin design\n designColumnBySeatMarker(seatMapData.getSeatMarkarr(), layout_columnSeatMark);\n\n designSeatByColumn(seatMapData.getSeatdetailarr());\n\n lyt_seat.setVisibility(View.VISIBLE);\n\n setLeftVerticalRow(seatMapData.getSeatdetailarr(), lytLeftVerticalRow, parentViewForRecycler, relative_seatmap_parent);\n\n\n }", "private void BostonHotelActionPerformed(ActionEvent evt) {\n // TODO add your handling code here:\n createConnection();\n try {\n Statement bostonHotelButton = connectionTRA.createStatement();\n ResultSet bostonHotelResult = bostonHotelButton.executeQuery(\"SELECT * FROM Domestic_Hotel WHERE DomesticHotelID = 1\");\n while (bostonHotelResult.next()) {\n String hotelFromQ = bostonHotelResult.getString(\"DomesticHotel\");\n String addressFromQ = bostonHotelResult.getString(\"DomesticHotelAddress\");\n String phoneFromQ = bostonHotelResult.getString(\"DomesticHotelPhone\");\n hotelSummaryEquals(hotelFromQ, addressFromQ, phoneFromQ);\n }\n } catch (SQLException hotE1) {\n hotE1.printStackTrace();\n }\n try {\n connectionTRA.close();\n } catch (SQLException hotE2) {\n hotE2.printStackTrace();\n }\n\n }", "public VendaView(int idVenda) throws SQLException {\n initComponents();\n\n jTextFieldIDFuncionario.setEnabled(false);\n jTextFieldNomeCliente.setEnabled(false);\n jTextFieldNomeFuncionario.setEnabled(false);\n// jTextFieldNotaFiscal.setEnabled(false);\n jTextFieldNumeroParcelas.setEnabled(false);\n jTextFieldValorVenda.setEnabled(false);\n jFormattedTextDataVenda.setEnabled(false);\n jTextFieldIDCliente.setEnabled(false);\n int idVenda1 = idVenda;\n buscarPressedEnter();\n\n if (idVenda != -1) {\n textFieldIDVenda.setText(\"\" + idVenda1);\n\n Connection connection;\n try {\n connection = new ConnectionFactory().getConnection();\n\n VendaDAO vendaDAO = new VendaDAO(connection);\n modeloVenda1 = vendaDAO.buscaPorId(Long.parseLong(String.valueOf(idVenda1)));\n\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ClienteDAO clienteDAO = new ClienteDAO(connection);\n ParcelaDAO parcelasDao = new ParcelaDAO(connection);\n List<ModeloParcela> modeloParcelas = new ArrayList<ModeloParcela>();\n\n if (null == pedidoDAO.buscaPorVenda(Integer.parseInt(String.valueOf(modeloVenda1.getId())))) {\n\n } else {\n modeloPedido1 = pedidoDAO.buscaPorVenda(Integer.parseInt(String.valueOf(modeloVenda1.getId())));\n\n idPedidoClasse = modeloPedido1.getId();\n viewProdutoPedidos = pedidoDAO.buscarPedidoproduto(Integer.parseInt(String.valueOf(idPedidoClasse)));\n modeloParcelas = parcelasDao.listaPorIdVenda(modeloVenda1.getId());\n listarParcelas(modeloParcelas);\n PreencherTabela();\n PreencherTabela2();\n }\n\n FuncionarioDAO funcionarioDAO = new FuncionarioDAO(connection);\n ModeloFuncionario modeloFuncionario = new ModeloFuncionario();\n\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n ModeloCliente modeloCliente = new ModeloCliente();\n modeloFuncionario = funcionarioDAO.buscaPorId(modeloVenda1.getIdfuncionario());\n modeloCliente = clienteDAO.buscaPorId(modeloVenda1.getIdcliente());\n System.out.println(modeloVenda1.getIdcliente());\n jTextFieldIDFuncionario.setText(\"\" + modeloFuncionario.getId());\n jTextFieldNomeFuncionario.setText(modeloFuncionario.getNome());\n jFormattedTextDataVenda.setText(format.format(modeloVenda1.getDataVenda()));\n\n jTextFieldIDCliente.setText(\"\" + modeloCliente.getId());\n jTextFieldNomeCliente.setText(\"\" + modeloCliente.getNome());\n jTextFieldNotaFiscal.setText(modeloVenda1.getNotaFiscal());\n\n jTextFieldValorVenda.setText(\"\" + modeloVenda1.getValorVenda());\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(rootPane, ex);\n Logger.getLogger(VendaView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }", "@GetMapping(\"/trip/{id}/reservation/add\")\n public String showReservationForm(@PathVariable(\"id\") long id, Model model) {\n \n \tReservation reservation = new Reservation();\n \treservation.setAddress(new Address());\n \tTrip trip = tripRepository.findById(id).get();\n model.addAttribute(\"reservation\", reservation);\n model.addAttribute(\"trip\", trip);\n return \"add-reservation\";\n }", "private void EnterChange() {\r\n\r\n //try block to check if the customer enters an except integer for the Time field\r\n try{\r\n // create a reservation\r\n Reservation p1 = new Reservation(textName.getText(), Integer.parseInt(textTime.getText()));\r\n // TODO: add obj to arraylist\r\n _ReservationList.saveData(p1);\r\n\r\n }\r\n catch (Exception e){\r\n Alert alert = new Alert(Alert.AlertType.ERROR, \"Please type an Integer only. For Example, to book for 7:00 p.m, type just 7.\");\r\n alert.showAndWait();\r\n return;\r\n }\r\n }", "CurrentReservation createCurrentReservation();", "public void insertBooking(){\n \n Validator v = new Validator();\n if (createBookingType.getValue() == null)\n {\n \n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Booking Type!\")\n .showInformation();\n \n return;\n \n }\n if (createBookingType.getValue().toString().equals(\"Repair\"))\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Go to Diagnosis and Repair tab for creating Repair Bookings!\")\n .showInformation();\n \n \n if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()),\n parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue()))\n && customerSet)\n \n { \n \n int mID = GLOBAL.getMechanicID();\n \n try {\n mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1));\n } catch (Exception ex) {\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Mechanic!\")\n .showInformation();\n return;\n }\n \n if (mID != GLOBAL.getMechanicID())\n if (!getAuth(mID)) return;\n \n createBookingClass();\n dbH.insertBooking(booking);\n booking.setID(dbH.getLastBookingID());\n appointment = createAppointment(booking);\n closeWindow();\n \n }\n else\n {\n String extra = \"\";\n if (!customerSet) extra = \" Customer and/or Vehicle is not set!\";\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Errors with booking:\"+v.getError()+extra)\n .showInformation();\n }\n \n }", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public FrmDetalles(Reservations res, Main prin) {\n initComponents();\n reser = res;\n princ = prin;\n \n this.setExtendedState(MAXIMIZED_BOTH);\n \n \n \n \n }", "private void initialize(String cityCode, String city) throws ResponseException {\n\t\t//System.out.println(cityCode);\n\t\t/*HotelOffer[] hotel = api.getHotelOffersCity(cityCode);\n\t\tsetHotelOffers(hotel);*/\n\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 336);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(city);\n\t\tlblNewLabel.setFont(new Font(\"Baskerville Old Face\", Font.BOLD | Font.ITALIC, 30));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(27, 11, 380, 44);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJComboBox comboBox = new JComboBox();\n\t\tcomboBox.setBounds(122, 66, 191, 20);\n\t\tframe.getContentPane().add(comboBox);\t\t\n\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(10, 105, 414, 145);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.setText(updateHotelShown(cityCode));\n\t\tJButton btnSiguiente = new JButton(\"View on Earth\");\n\t\tbtnSiguiente.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\thotelOffers[0].getHotel().getLatitude();\n\t\t\t\thotelOffers[0].getHotel().getLongitude();\n\t\t\t\t//hotelOffers[0].getHotel().\n\n\t\t\t\tPath currentRelativePath = Paths.get(\"\");\n\t\t\t\tString s = currentRelativePath.toAbsolutePath().toString();\n\t\t\t\tCreateKMLgeoPath flight = new CreateKMLgeoPath();\n\t\t\t\tflight.writeHotelMap(s, \"ejemploHotel\", hotelOffers[0].getHotel().getLatitude(), hotelOffers[0].getHotel().getLongitude(), msg);\n\t\t\t\t//\t\t\t\tCreateKMLgeoPath flight = new CreateKMLgeoPath();\n\t\t\t\t//\t\t\t\t//flight.writeFile(currentRelativePath, \"ejemplo1\", );\n\t\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnSiguiente.setBounds(325, 263, 99, 23);\n\t\tframe.getContentPane().add(btnSiguiente);\n\t\t\n\t\tJButton button = new JButton(\"Tweet\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tTextOverlay to = new TextOverlay(msg);\n\t\t\t\t\tto.showImage(msg);\n\t\t\t\t\tBoolean success = false;\n\t\t\t\t\twhile(!success) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFile f = new File(to.getImagePath());\n\t\t\t\t\t\t\tConfigurationBuilderTwitter cbt = new ConfigurationBuilderTwitter();\n\t\t\t\t\t\t\tcbt.createTweetWithImage(\"Check out the deal I got for: \" + city , f);\n\t\t\t\t\t\t\tsuccess = true;\n\t\t\t\t\t\t}catch(NullPointerException nep) {\n\t\t\t\t\t\t\tSystem.out.println(\"Retrying\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (TwitterException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbutton.setBounds(27, 261, 99, 23);\n\t\tframe.getContentPane().add(button);\n\t}", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@FXML\n private void bookSeat(MouseEvent e) throws IOException, GeneralSecurityException {\n\n if (Main.getSelectedSeats().size() == 0){\n throwAlert();\n return;\n }\n try {\n datePicker.getValue().equals(null);\n filmDropDownList.getValue().equals(null);\n timeDropDownList.getValue().equals(null);\n if (Main.isEmployee())\n customerDropDownList.getValue().equals(null);\n } catch(NullPointerException ex){ \t\t\n throwAlert();\n return;\n }\n\n Alert alert = new Alert(AlertType.CONFIRMATION, \"Do you want to proceed with the booking?\", ButtonType.YES, ButtonType.NO);\n alert.showAndWait();\n\n if(alert.getResult() == ButtonType.NO) {\n alert.close();\n return;\n }\n else {\n // getting the latest booking id and incrementing by one\n int newBookingId = Main.getBookingList().size() + 1;\n // System.out.println(newBookingId);\n // System.out.println(customerDropDownList.getValue());\n\n for (int i = newBookingId; i < (newBookingId + Main.getSelectedSeats().size()); i++) {\n\n if(Main.isEmployee())\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"username\", Encryption.encrypt(customerDropDownList.getValue()));\n else\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"username\", Encryption.encrypt(Main.getCurrentUser().getUsername()));\n\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"date\", datePicker.getValue().toString());\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"seat\", Main.getSelectedSeats().get(i - newBookingId));\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"time\", timeDropDownList.getValue());\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"film\", filmDropDownList.getValue());\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"status\", \"booked\");\n }\n\n Main.resetBookingList();\n Main.readJSONFile(\"bookingsJSON.txt\");\n\n if (!Main.isEmployee()){\n SceneCreator.launchScene(\"/scenes/BookingSummaryScene.fxml\");\n Main.getStage().centerOnScreen();\n } else {\n Alert alert1 = new Alert(AlertType.INFORMATION, \"You have completed the booking for \" + customerDropDownList.getValue() + \"!\", ButtonType.OK);\n alert1.showAndWait();\n if(alert1.getResult() == ButtonType.OK) {\n alert1.close();\n SceneCreator.launchScene(\"/scenes/ManageBookingsScene.fxml\");\n }\n }\n }\n }", "public void doButtonEinfuegen() {\n\t\tDialogSelectionDjinn dsd = new DialogSelectionDjinn((Frame) this.owner, \"Auswahl Tabellenspalte\",\n\t\t\t\tnew DefaultListViewComponentFactory((allts ? this.tabelle.getDiagramm().getFieldCache()\n\t\t\t\t\t\t: new Vector<Object>(Arrays.asList(this.tabelle.getColumns())))));\n\t\tif (dsd.isSelected()) {\n\t\t\tVector v = dsd.getSelection();\n\t\t\tVector values = new Vector();\n\t\t\tfor (int i = 0, len = v.size(); i < len; i++) {\n\t\t\t\tif (this.getType() == 0) {\n\t\t\t\t\tvalues.addElement(v.elementAt(i));\n\t\t\t\t} else if ((this.getType() == 1) || (this.getType() == 2)) {\n\t\t\t\t\tvalues.addElement(new ToStringContainer((TabellenspaltenModel) v.elementAt(i), this.tabelle));\n\t\t\t\t} else if (this.getType() == 3) {\n\t\t\t\t\tvalues.addElement(Archimedes.Factory.createOrderMember((TabellenspaltenModel) v.elementAt(i)));\n\t\t\t\t} else if (this.getType() == 4) {\n\t\t\t\t\tvalues.addElement(Archimedes.Factory.createSelectionMember((TabellenspaltenModel) v.elementAt(i)));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0, len = values.size(); i < len; i++) {\n\t\t\t\tboolean found = false;\n\t\t\t\tfor (int j = 0, lenj = this.tabellenspalten.size(); j < lenj; j++) {\n\t\t\t\t\tif (this.getType() == 0) {\n\t\t\t\t\t\tTabellenspaltenModel tsm = (TabellenspaltenModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (values.elementAt(i) == tsm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if ((this.getType() == 1) || (this.getType() == 2)) {\n\t\t\t\t\t\tToStringContainer tsc = (ToStringContainer) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((ToStringContainer) values.elementAt(i)).getTabellenspalte() == tsc) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (this.getType() == 3) {\n\t\t\t\t\t\tOrderMemberModel omm = (OrderMemberModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((OrderMemberModel) values.elementAt(i)).getOrderColumn() == omm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (this.getType() == 4) {\n\t\t\t\t\t\tSelectionMemberModel smm = (SelectionMemberModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((SelectionMemberModel) values.elementAt(i)).getColumn() == smm) {\n\t\t\t\t\t\t\tfound = true;\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\tif (!found) {\n\t\t\t\t\tif (this.anzeige.getSelectedRow() >= 0) {\n\t\t\t\t\t\tthis.tabellenspalten.add(this.anzeige.getSelectedRow(), values.get(i));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.tabellenspalten.add(values.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.doRepaint();\n\t\t}\n\t}", "private void renderObjetos()\n {\n for (int i=0;i<NCONSUMIBLES;i++)\n {\n //EDIT:Ruta de Inventario\n Consumible consumible=(Consumible)VenganzaBelial.atributoGestion.getInv().getItems().get(i);\n if(eleccionJugador==i)\n {\n opcionesJugadorTTF.drawString(10,i*20+400,consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\");\n }\n else{\n opcionesJugadorTTF.drawString(10, i * 20 + 400, consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\", notChosen);\n }\n }\n }", "void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }", "public void gestionDeHotel() {\n\t\t\n\t\t/**\n\t\t * A method for the gestion of the hotel\n\t\t */\n\t\t\t\tthis.afficheMenu();\n\t\t\t\tScanner scan = new Scanner(System.in);\n\t\t\t\tString choix = \"\";\n\t\t\t\t\n\t\t\t\twhile( this.isOuvert() ) {\n\t\t\t\t\tString rep = this.optionsManager();\n\t\t\t\t\t\n\t\t\t\t\tif(rep.equals(\"o\")) {\n\t\t\t\t\t\tthis.afficheMenu();\n\t\t\t\t\t}else if(rep.equals(\"q\")) {\n\t\t\t\t\t\tSystem.out.println(\"Au revoire !\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if (rep.equals(\"x\")) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.err.print(\"----------------------------\\nVotre sasie est incorrect! |\\n----------------------------\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (rep.equals(\"f\")){\n\t\t\t\t\t\tString verif = this.reserver();\n\t\t\t\t\t\tif(verif.equals(\"q\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Au revoire !\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tSystem.err.print(verif);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}else if (rep.equals(\"g\")){\n\t\t\t\t\t\tthis.liberateAroom();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(rep);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\twhile(!this.isOuvert()) {\n\t\t\t\t\tString etatDeHotel = this.isOuvert()? \"L'Hôtel est ouvert ! \" : \"L'Hôtel n'est pas ouvert ! \";\t\t\n\t\t\t\t\tString rep = this.optionsManager();\n\t\t\t\t\tif(rep.equals(\"o\")) {\n\t\t\t\t\t\tthis.afficheMenu();\n\t\t\t\t\t}else if(rep.equals(\"\\n\"+etatDeHotel+\"\\n\")){\n\t\t\t\t\t\tSystem.out.print(rep);\n\t\t\t\t\t}\n\t\t\t\t\telse if(rep.equals(\"q\")) {\n\t\t\t\t\t\tSystem.out.println(\"Au revoire !\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if (rep.equals(\"\\n-La commande Q ou Quit sont pour arrêtrer le programe.\\n-Il faut choisir un letter pour les options.\\n-La commande O pour afficher toutes les options possibles! \")) {\n\t\t\t\t\t\tSystem.out.println(rep);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.err.print(\"\\n-------------------------------------------------------------------------\\nDésolé, l'hôtel est fermé!\\nVous pouvez utiliser que l'option |o| et |Q ou Quit|\\n-------------------------------------------------------------------------\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t}", "@FXML\n public void candidatesearch()\n {\n try\n {\n //getting object from hashmap\n Candidate can = (Candidate)allCandidates.get(C_ID.getText());\n //set values to TextFields by object\n C_Name.setText(can.getName());\n C_NIC.setText(can.getNIC());\n C_P_Id.setText(can.getParty_Id());\n C_P_Name.setText(can.getParty_Name());\n C_Address.setText(can.getAddress());\n C_TelNo.setText(can.getTelNo());\n C_Age.setText(String.valueOf(can.getAge()));\n }\n //catch when no result found\n catch(NullPointerException ex)\n {\n Alert a=new Alert(AlertType.WARNING);\n a.setContentText(\"Couldn't Find Any Records !\");\n a.show();\n }\n\n }", "@FXML\n public void updateBreakfast(){\n //get the selection from the listView\n try{\n //get the selected day from the weeklist\n Days selectedDay = weekList.getSelectionModel().getSelectedItem();\n if (breakfastCombo.getSelectionModel().getSelectedItem() != null){\n Recipe newBreakfastRecipe = breakfastCombo.getSelectionModel().getSelectedItem();\n selectedDay.setBreakfast(newBreakfastRecipe);\n }\n } catch (Exception e) {\n System.out.println(\"Nothing selected\");\n e.printStackTrace();\n }\n weekList.refresh();\n //shopping list is now out of sync with the planner\n plannerOutOfSyncWithShoppingList(true);\n saveMealPlanner();\n }", "public j3_Candidate_register_for_officer() {\n initComponents();\n show_candidate();\n }", "public void setItems() {\n if (partSelected instanceof OutSourced) { // determines if part is OutSourced\n outSourcedRbtn.setSelected(true);\n companyNameLbl.setText(\"Company Name\");\n OutSourced item = (OutSourced) partSelected;\n idTxt.setText(Integer.toString(item.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(item.getPartName());\n invTxt.setText(Integer.toString(item.getPartInStock()));\n costTxt.setText(Double.toString(item.getPartPrice()));\n maxTxt.setText(Integer.toString(item.getMax()));\n minTxt.setText(Integer.toString(item.getMin()));\n idTxt.setText(Integer.toString(item.getPartID()));\n companyNameTxt.setText(item.getCompanyName());\n }\n if (partSelected instanceof InHouse) { // determines if part Is InHouse\n inHouseRbtn.setSelected(true);\n companyNameLbl.setText(\"Machine ID\");\n InHouse itemA = (InHouse) partSelected;\n idTxt.setText(Integer.toString(itemA.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(itemA.getPartName());\n invTxt.setText(Integer.toString(itemA.getPartInStock()));\n costTxt.setText(Double.toString(itemA.getPartPrice()));\n maxTxt.setText(Integer.toString(itemA.getMax()));\n minTxt.setText(Integer.toString(itemA.getMin()));\n idTxt.setText(Integer.toString(itemA.getPartID()));\n companyNameTxt.setText(Integer.toString(itemA.getMachineID()));\n\n }\n }", "public void control() {\n\t\tthis.searchListener = new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent actionEvent) {\n\t\t\t\tClientController.this.lastSearch = ClientController.this\n\t\t\t\t\t\t.getSearchText();\n\t\t\t\tClientController.this.clientUI\n\t\t\t\t\t\t.updateTable(ClientController.this\n\t\t\t\t\t\t\t\t.getRecords(ClientController.this.lastSearch));\n\t\t\t}\n\t\t};\n\t\tthis.bookingListener = new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent actionEvent) {\n\t\t\t\tfinal long selectedRecNo = ClientController.this\n\t\t\t\t\t\t.getReserveRecNo();\n\n\t\t\t\tif (selectedRecNo != -1) {\n\t\t\t\t\tfinal String owner = ClientController.this.getCustomerID();\n\n\t\t\t\t\tif (owner != null) {\n\t\t\t\t\t\tClientController.this.bookRoom(selectedRecNo, owner);\n\t\t\t\t\t\tClientController.this.clientUI\n\t\t\t\t\t\t\t\t.updateTable(ClientController.this\n\t\t\t\t\t\t\t\t\t\t.getRecords(ClientController.this.lastSearch));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tthis.clientUI.getSearchButton().addActionListener(this.searchListener);\n\t\tthis.clientUI.getBookingButton()\n\t\t\t\t.addActionListener(this.bookingListener);\n\t}", "private void addLoad() {\n\n\t\ttry {\n\t\t\tString company_name = company_name_txtfield.getText();\n\t\t\tString company_phone = company_phone_txtfield.getText();\n\t\t\tString pickup_name_of_place = pickup_name_of_place_txtfield\n\t\t\t\t\t.getText();\n\t\t\tString pickup_street_address = pickup_street_address_txtfield\n\t\t\t\t\t.getText();\n\t\t\tString pickup_city = pickup_city_txtfield.getText();\n\t\t\tString pickup_state = pickup_state_txtfield.getText();\n\t\t\tString pickup_zip_code = pickup_zipcode_txtfield.getText();\n\t\t\tString delivery_name_of_place = delivery_name_of_place_txtfield\n\t\t\t\t\t.getText();\n\t\t\tString delivery_street_address = delivery_street_address_txtfield\n\t\t\t\t\t.getText();\n\t\t\tString delivery_city = delivery_city_txtfield.getText();\n\t\t\tString delivery_state = delivery_state_txtfield.getText();\n\t\t\tString delivery_zip_code = delivery_zipcode_txtfield.getText();\n\t\t\tString pickup_date = Utils.getDate(pickup_date_field);// pickup_date_field.getDate().toString();\n\t\t\tString delivery_date = Utils.getDate(delivery_date_field);// delivery_date_field.getDate().toString();\n\t\t\tString driver_assigned = driver_assigned_combolist\n\t\t\t\t\t.getSelectedItem().toString();\n\t\t\tString status = status_combolist.getSelectedItem().toString();\n\t\t\tString driver_assigned_id = driver_assigned.split(\"/\")[0];\n\t\t\tString driver_assigned_name = driver_assigned.split(\"/\")[1];\n\n\t\t\tLoadBean bean = new LoadBean();\n\t\t\tbean.setCompany_name(company_name);\n\t\t\tbean.setCompany_phone(company_phone);\n\t\t\tbean.setPickup_name_of_place(pickup_name_of_place);\n\t\t\tbean.setPickup_street_address(pickup_street_address);\n\t\t\tbean.setPickup_state(pickup_state);\n\t\t\tbean.setPickup_city(pickup_city);\n\t\t\tbean.setPickup_zip_code(pickup_zip_code);\n\t\t\tbean.setPickup_date(pickup_date);\n\t\t\tbean.setDelivery_date(delivery_date);\n\t\t\tbean.setDelivery_name_of_place(delivery_name_of_place);\n\t\t\tbean.setDelivery_state(delivery_state);\n\t\t\tbean.setDelivery_street_address(delivery_street_address);\n\t\t\tbean.setDelivery_city(delivery_city);\n\t\t\tbean.setDelivery_zip_code(delivery_zip_code);\n\t\t\tbean.setDriver_assigned_id(driver_assigned_id);\n\t\t\tbean.setDriver_assigned_name(driver_assigned_name);\n\t\t\tbean.setStatus(status);\n\n\t\t\tif (DatabaseManager.getInstance() != null) {\n\t\t\t\tif (DbConnectionManager.getConnection() != null) {\n\t\t\t\t\tboolean flag = DatabaseManager.getInstance().insertLoad(\n\t\t\t\t\t\t\tDbConnectionManager.getConnection(), bean);\n\t\t\t\t\tif (flag) {\n\t\t\t\t\t\tframe.updateLoadList();\n\t\t\t\t\t\tAddLoadInformations.this.dispose();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tUtils.infoBox(\"DB Connection Error\", \"Connection Error\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setHotelId(Integer hotelId) {\r\n this.hotelId = hotelId;\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane4 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel2 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n tabelaReservas = new javax.swing.JTable();\n btnExcluirReserva = new javax.swing.JButton();\n lbMsg1 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jPanel7 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tabelaBuscarReservaHospedes = new javax.swing.JTable();\n btnBuscarHospede = new javax.swing.JButton();\n tfNomeBuscarHospede = new javax.swing.JTextField();\n dataEntradaNoHotel = new com.toedter.calendar.JDateChooser();\n dataPrevistaSaidaDoHotel = new com.toedter.calendar.JDateChooser();\n btnRegistrarEntrada = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jScrollPane5 = new javax.swing.JScrollPane();\n tabelaAcompanhantes = new javax.swing.JTable();\n btnVisualizarAcompanhantes = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jPanel5 = new javax.swing.JPanel();\n jPanel9 = new javax.swing.JPanel();\n jScrollPane6 = new javax.swing.JScrollPane();\n tabelaAdicionarItemConsumo = new javax.swing.JTable();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jScrollPane7 = new javax.swing.JScrollPane();\n tabelaSelecionarAcomodacaoConsumo = new javax.swing.JTable();\n jLabel14 = new javax.swing.JLabel();\n tfQuantidadeConsumida = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n dataConsumo = new com.toedter.calendar.JDateChooser();\n btnAdicionarItemConsumo = new javax.swing.JButton();\n jLabel27 = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jPanel8 = new javax.swing.JPanel();\n jScrollPane8 = new javax.swing.JScrollPane();\n tabelaReservasSaida = new javax.swing.JTable();\n btnSelecionarReservaSaida = new javax.swing.JButton();\n lbMsg4 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jPanel10 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabelaHospedes = new javax.swing.JTable();\n btnAdicionarReserva = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane4.setViewportView(jTable1);\n\n jTabbedPane1.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n\n tabelaReservas.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n tabelaReservas.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane2.setViewportView(tabelaReservas);\n\n btnExcluirReserva.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 20)); // NOI18N\n btnExcluirReserva.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/hotel/imagem/delete.png\"))); // NOI18N\n btnExcluirReserva.setText(\"Excluir Reserva\");\n btnExcluirReserva.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExcluirReservaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(lbMsg1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(36, 36, 36)\n .addComponent(btnExcluirReserva))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 1076, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 421, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(lbMsg1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnExcluirReserva, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel25.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/hotel/imagem/city.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)\n .addComponent(jLabel25)\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Visualizar Reservas\", jPanel2);\n\n tabelaBuscarReservaHospedes.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n tabelaBuscarReservaHospedes.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane3.setViewportView(tabelaBuscarReservaHospedes);\n\n btnBuscarHospede.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 20)); // NOI18N\n btnBuscarHospede.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/hotel/imagem/search.png\"))); // NOI18N\n btnBuscarHospede.setText(\"Buscar\");\n btnBuscarHospede.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarHospedeActionPerformed(evt);\n }\n });\n\n tfNomeBuscarHospede.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n\n btnRegistrarEntrada.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n btnRegistrarEntrada.setText(\"Registrar Entrada\");\n btnRegistrarEntrada.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegistrarEntradaActionPerformed(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n jLabel9.setText(\"Data Prevista Saída\");\n\n jLabel8.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n jLabel8.setText(\"Data Entrada\");\n\n jLabel10.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n jLabel10.setText(\"Buscar Hospede\");\n\n tabelaAcompanhantes.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n tabelaAcompanhantes.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane5.setViewportView(tabelaAcompanhantes);\n\n btnVisualizarAcompanhantes.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n btnVisualizarAcompanhantes.setText(\"Visualizar Acompanhantes\");\n\n jLabel11.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel11.setText(\"Acompanhantes\");\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tfNomeBuscarHospede, javax.swing.GroupLayout.PREFERRED_SIZE, 444, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnBuscarHospede))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addGap(18, 18, 18)\n .addComponent(dataEntradaNoHotel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(50, 50, 50)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(dataPrevistaSaidaDoHotel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 65, Short.MAX_VALUE)\n .addComponent(btnRegistrarEntrada)))))\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 289, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addComponent(btnVisualizarAcompanhantes))\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(tfNomeBuscarHospede, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscarHospede)\n .addComponent(jLabel11))\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(dataEntradaNoHotel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(dataPrevistaSaidaDoHotel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnRegistrarEntrada)\n .addComponent(btnVisualizarAcompanhantes))\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/hotel/imagem/city.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jLabel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jLabel26)\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Gerenciar entradas no Hotel\", jPanel3);\n\n tabelaAdicionarItemConsumo.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n tabelaAdicionarItemConsumo.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane6.setViewportView(tabelaAdicionarItemConsumo);\n\n jLabel12.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n jLabel12.setText(\"Itens de Consumo\");\n\n jLabel13.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n jLabel13.setText(\"Selecione um Quarto\");\n\n tabelaSelecionarAcomodacaoConsumo.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n tabelaSelecionarAcomodacaoConsumo.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane7.setViewportView(tabelaSelecionarAcomodacaoConsumo);\n\n jLabel14.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n jLabel14.setText(\"Quantidade Consumida desse Item\");\n\n tfQuantidadeConsumida.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n\n jLabel15.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n jLabel15.setText(\"Data do Consumo:\");\n\n dataConsumo.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n\n btnAdicionarItemConsumo.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 20)); // NOI18N\n btnAdicionarItemConsumo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/hotel/imagem/add.png\"))); // NOI18N\n btnAdicionarItemConsumo.setText(\"Adicionar Consumo ao Quarto\");\n btnAdicionarItemConsumo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAdicionarItemConsumoActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel12)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addGap(18, 18, 18)\n .addComponent(tfQuantidadeConsumida, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel15)\n .addGap(18, 18, 18)\n .addComponent(dataConsumo, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnAdicionarItemConsumo, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jScrollPane6)\n .addGap(18, 18, 18)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 385, Short.MAX_VALUE)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnAdicionarItemConsumo, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(dataConsumo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(tfQuantidadeConsumida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15))))\n .addContainerGap())\n );\n\n jLabel27.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/hotel/imagem/city.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jLabel27)\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Adicionar Consumo no Quarto\", jPanel5);\n\n tabelaReservasSaida.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n tabelaReservasSaida.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane8.setViewportView(tabelaReservasSaida);\n\n btnSelecionarReservaSaida.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 20)); // NOI18N\n btnSelecionarReservaSaida.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/hotel/imagem/add.png\"))); // NOI18N\n btnSelecionarReservaSaida.setText(\"Adicionar Saída\");\n btnSelecionarReservaSaida.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSelecionarReservaSaidaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(lbMsg4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(btnSelecionarReservaSaida, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane8))\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 401, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnSelecionarReservaSaida, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lbMsg4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n jLabel28.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/hotel/imagem/city.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jLabel28)\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Gerenciar Saídas no Hotel\", jPanel4);\n\n tabelaHospedes.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n tabelaHospedes.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tabelaHospedes);\n\n btnAdicionarReserva.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 20)); // NOI18N\n btnAdicionarReserva.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/hotel/imagem/add.png\"))); // NOI18N\n btnAdicionarReserva.setText(\"Adicionar Reserva\");\n btnAdicionarReserva.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAdicionarReservaActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Hotel Oriental\", 0, 18)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnAdicionarReserva)))\n .addContainerGap())\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 401, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnAdicionarReserva, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/hotel/imagem/city.png\"))); // NOI18N\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 .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jLabel29)\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Cadastrar Reserva\", jPanel1);\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 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 746, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n }", "public void hentTrekk() {\n\n Parti parti = this.fp_liste_parti.getSelectionModel().getSelectedItem();\n\n if (this.partierLastet && parti != null){\n\n valgtParti = fp_liste_parti.getSelectionModel().getSelectedItem();\n\n for(Trekk t: valgtParti.getTrekkListe()) {\n sp_liste_trekk.getItems().add(t);\n }\n\n tab_pane.getSelectionModel().select(tab_sp);\n\n this.initierAnimasjon();\n\n } else {\n\n Sjakkbrett.visFeil(\"Parti ikke valgt\", \"Du har ikke valgt et parti\", \"Vennligst velg et parti!\");\n\n }\n\n this.sp_knapp_forrige_trekk.setDisable(false);\n this.sp_knapp_spill_av_pause.setDisable(false);\n this.sp_knapp_neste_trekk.setDisable(false);\n this.sp_kombo_hastighet.setDisable(false);\n this.sp_knapp_velg_trekk.setDisable(false);\n\n }", "public hesapekrani() {\n initComponents();\n getedits();\n \n \n }", "private void prepareForNewVehicle() {\n\t\tbtnActVehUpdate.setVisibility(View.INVISIBLE);\n\t\tbtnActVehCreate.setVisibility(View.VISIBLE);\n\t\ttxtActVehAutonumberId.setText(getResources().getString(R.string.act_vehicle_id) + \": *\");\n\t\teTxtActVehLicenseplate.setText(\"\");\n\t\tautComplActVehCountry.setText(\"\");\n\t\teTxtActVehNoOfPassengers.setText(\"\");\n\t\tautComplActVehBrand.setText(\"\");\n\t\teTxtActVehVehicleType.setText(\"\");\n\t\tbtnActVehUpdate.setText(CREATE);\n\t\tvh = null;\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_search_hotel);\n\n loadDaftarHotel();\n\n /* binding = DataBindingUtil.setContentView(this,R.layout.activity_search_hotel);\n listHotel = new DaftarHotel().HOTEL;\n adapter = new RvHotelAdapter(this,listHotel);\n binding.setHotelAdapter(adapter);\n gantiPencarian = findViewById(R.id.gntPencarian);\n gantiPencarian.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n startActivity(new Intent(SearchHotel.this, Navbar.class));\n }\n });*/\n\n//\n// ArrayList<Hotel> hotel = new ArrayList<>();\n// hotel.add(new Hotel(R.drawable.horison, \"Horison\", \"Jogja\", \"Rp450.000\"));\n//\n// recyclerView = findViewById(R.id.rvHotel);\n// recyclerView.setHasFixedSize(true);\n// manager = new LinearLayoutManager(this);\n// adapter = new RvHotelAdapter(hotel);\n//\n// recyclerView.setLayoutManager(manager);\n// recyclerView.setAdapter(adapter);\n }", "Reservation createReservation();", "public Hotel getHotel() {\n return hotel;\n }", "public Hotel getHotel() {\n return hotel;\n }" ]
[ "0.69688225", "0.66132003", "0.64528245", "0.642079", "0.6182113", "0.6118532", "0.6118532", "0.60612804", "0.6039803", "0.5964708", "0.582993", "0.58268607", "0.57791376", "0.576258", "0.5728961", "0.5712969", "0.57126296", "0.56795776", "0.567497", "0.5668835", "0.5651419", "0.56439036", "0.56383455", "0.56325525", "0.56214076", "0.56205606", "0.560573", "0.56005275", "0.5588139", "0.55851424", "0.55837786", "0.55787486", "0.55483717", "0.55471253", "0.5538425", "0.55371374", "0.5501713", "0.5501369", "0.5482885", "0.5475783", "0.54717344", "0.5462222", "0.5459561", "0.5458084", "0.54574513", "0.54513466", "0.5447748", "0.544697", "0.5431729", "0.54314405", "0.5430432", "0.5422933", "0.5422525", "0.54184186", "0.5418305", "0.54161245", "0.54076385", "0.53981173", "0.53960323", "0.5384823", "0.53778744", "0.5377061", "0.53761655", "0.5375593", "0.53614765", "0.53544796", "0.535446", "0.53542453", "0.5351639", "0.5349659", "0.5345003", "0.53427464", "0.53422195", "0.5334712", "0.53346264", "0.53329134", "0.53322256", "0.5330937", "0.53233963", "0.5321759", "0.5319673", "0.5316463", "0.5311852", "0.5311065", "0.53100324", "0.53043205", "0.5301295", "0.5295004", "0.5263105", "0.52612066", "0.5260718", "0.52603877", "0.5258835", "0.52567047", "0.52538884", "0.5250908", "0.5249212", "0.5248136", "0.52476114", "0.52476114" ]
0.6835552
1
Read in hotels and reservations from files ///////////////////////////// ///////////////////////////// Reading Info From Hotel.txt// ///////////////////////////// ///////////////////////////// First i surround everything is a try.. catch blocks then in the try block i declare the file input stream then a scanner then in a while loop i check if the file has next line and a user a delimiter "," and it adds it to a new hotel then it adds it to the ArrayList hotels
private void initHotelsAndReservations() { try { FileInputStream fis = new FileInputStream("Hotels.txt"); Scanner fs = new Scanner(fis); while(fs.hasNextLine()) { Scanner is = new Scanner(fs.nextLine()); is.useDelimiter(","); int id = Integer.parseInt(is.next().trim()); String name = is.next().trim(); String address = is.next().trim(); String city = is.next().trim(); String state = is.next().trim(); int pricePerNight = Integer.parseInt(is.next().trim()); h = new Hotel (id, name, address, city, state, pricePerNight); hotels.add(h); } } /** * The catch block checks to make sure that the file is found */ catch( FileNotFoundException fnfe) { System.err.println("File not found!"); } /** * Binding hotel reservations to model/JComboBox */ for(Hotel h1: hotels) hotelsModel.addElement(h1); /** * Binding hotel reservations to model/JList */ Hotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem(); for(Reservation r1 : selectedHotel.getReservations()) reservationsModel.addElement(r1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFile() throws IOException {\r\n File file = new File(\"employee_list.txt\"); //Declaration and initialization of file object\r\n Scanner textFile = new Scanner(file); //Creates Scanner object and parse in the file\r\n\r\n while(textFile.hasNextLine()){ //Stay in a loop until there is no written line in the text file\r\n String line = textFile.nextLine(); //Read line and store in a String variable 'line'\r\n String[] words = line.split(\",\"); //Split the whole line at commas and store those in a simple String array\r\n Employee employee = new Employee(words[0],words[1],words[2]); //Create Employee object\r\n this.listOfEmployees.add(employee); //Add created Employee object to listOfEmployees ArrayList\r\n if(!this.listOfDepartments.contains(words[1])){ //This just adds all the department names to an ArrayList\r\n this.listOfDepartments.add(words[1]);\r\n }\r\n }\r\n }", "public void readFile() \n\t{\n\t\tArrayList<String> tempStations = new ArrayList<>();\n\t\t//create arraylist local variable tempStations which will hold the list of stations temporarily for a specific line to be added to the stations hashmap \n\n\t\tString mtrSystemFile = \"MTRsystem_partial.csv\";\n\t\t//store the csv file name in a string\n\t\tFile file = new File(mtrSystemFile);\n\t\t//create a file object for the MTRSystems csv file\n\n\t\ttry \n\t\t{\n\t\t\tScanner inputStream = new Scanner(file);\n\t\t\t//pass the file through to new scanner object to be scanned\n\n\t\t\twhile (inputStream.hasNext())\n\t\t\t//so long as the scanner object has another token to read from the csv file\n\t\t\t{\n\t\t\t\tString line = inputStream.nextLine();\n\t\t\t\t//store the next line in the string variable\n\t\t\t\tcells = line.split(\",\");\n\t\t\t\t//split each line into cells separated by a comma\n\t\t\t\tint celli = 1;\n\t\t\t\t//assign int index to 1, so that only stations are read excluding line name stored at position 0\n\n\t\t\t\twhile (celli <= cells.length - 1)\n\t\t\t\t//whilst the index is less than or equal the last position of the array\n\t\t\t\t{\n\t\t\t\t\tif (celli == 1 || celli == cells.length - 1)\n\t\t\t\t\t//if the index is at the second position in the array or at the last\n\t\t\t\t\t{\n\t\t\t\t\t\tallTermini.add((cells[celli]));\n\t\t\t\t\t\t//add termini to the ArrayList\n\t\t\t\t\t}\n\t\t\t\t\ttempStations.add(cells[celli]);\n\t\t\t\t\t//add station to the ArrayList\n\t\t\t\t\tcelli++;\n\t\t\t\t}\n\n\t\t\t\taddToStations(cells[0], tempStations);\n\t\t\t\t//add the line name and the list of stations for that line to the hashmap\n\t\t\t\ttempStations.clear();\n\t\t\t\t//Clear the temporary list for the next line\n\n\t\t\t\tcells = null;\n\t\t\t}\n\t\t\tinputStream.close();\n\t\t} catch (FileNotFoundException e) \n\t\t{\n\t\t\tSystem.out.println(\"file not found\");\n\t\t}\n\t}", "public void parseFile(){\n try{\n BufferedReader br = new BufferedReader(new FileReader(\"ElevatorConfig.txt\"));\n \n String fileRead;\n \n totalSimulatedTime = 1000;\n Integer.parseInt(br.readLine());\n simulatedSecondRate = 30;\n Integer.parseInt(br.readLine());\n \n for (int onFloor = 0; onFloor< 5; onFloor++){\n \n fileRead = br.readLine(); \n String[] tokenize = fileRead.split(\";\");\n for (int i = 0; i < tokenize.length; i++){\n String[] floorArrayContent = tokenize[i].split(\" \");\n \n int destinationFloor = Integer.parseInt(floorArrayContent[1]);\n int numPassengers = Integer.parseInt(floorArrayContent[0]);\n int timePeriod = Integer.parseInt(floorArrayContent[2]);\n passengerArrivals.get(onFloor).add(new PassengerArrival(numPassengers, destinationFloor, timePeriod));\n }\n }\n \n br.close();\n \n } catch(FileNotFoundException e){ \n System.out.println(e);\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n\n }", "public void setFlightList(String filePath) throws FileNotFoundException, NoSuchCityException, ParseException {\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 line is empty, break from the loop\n break;\n }\n int i = 0; // to keep track of the iterator's placement in a line\n int n = 0; // to keep track of information in store\n String[] flightInformation = new String[8];\n while (i < line.length()) {\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) { // checks which piece of flight information\n case 1:\n flightInformation[0] = store;\n break;\n case 2:\n flightInformation[1] = store;\n break;\n case 3:\n flightInformation[2] = store;\n break;\n case 4:\n flightInformation[3] = store;\n break;\n case 5:\n flightInformation[4] = store;\n break;\n case 6:\n flightInformation[5] = store;\n break;\n case 7:\n flightInformation[6] = store;\n break;\n case 8:\n flightInformation[7] = store;\n break;\n }\n }\n // convert String to Double\n double costDouble = Double.parseDouble(flightInformation[6]);\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n Calendar departureDateTime = Calendar.getInstance();\n departureDateTime.setTime(df.parse(flightInformation[1]));\n Calendar arrivalDateTime = Calendar.getInstance();\n arrivalDateTime.setTime(df.parse(flightInformation[2]));\n boolean b = false;\n for (Flight f: this.flightList) {\n if (f.getFlightNumber().equals(flightInformation[0])) {\n b = true;\n f.setDepartureDateTime(departureDateTime);\n f.setArrivalDateTime(arrivalDateTime);\n f.setAirline(flightInformation[3]);\n // need to update cityGraph\n f.setOrigin(flightInformation[4]);\n f.setDestination(flightInformation[5]);\n f.setCost(costDouble);\n f.setNumSeats(Integer.parseInt(flightInformation[7]));\n\n }\n }\n if (!b) {\n this.flightList.add(new Flight(flightInformation[0], departureDateTime, arrivalDateTime,\n flightInformation[3], flightInformation[4], flightInformation[5], costDouble, Integer.parseInt(flightInformation[7])));\n flightSystem.getCityGraph().addFlight(new Flight(flightInformation[0], departureDateTime, arrivalDateTime,\n flightInformation[3], flightInformation[4], flightInformation[5], costDouble, Integer.parseInt(flightInformation[7])));\n }\n\n }\n scan.close();\n setChanged();\n notifyObservers(flightList);\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 actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tHotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You selected the \" + selectedHotel.getHotelName());\n\t\t\t\tselectedHotel.getReservations();\n\t\t\t\tlblCheckIn.setVisible(true);\n\t\t\t\tlblInMonth.setVisible(true);\n\t\t\t\ttxtInMonth.setVisible(true);\n\t\t\t\tlblInDay.setVisible(true);\n\t\t\t\ttxtInDay.setVisible(true);\n\t\t\t\tlblCheckout.setVisible(true);\n\t\t\t\tlblOutMonth.setVisible(true);\n\t\t\t\ttxtOutMonth.setVisible(true);\n\t\t\t\tlblOutDay.setVisible(true);\n\t\t\t\ttxtOutDay.setVisible(true);\n\t\t\t\tbtnAdd.setVisible(true);\n\t\t\t\treservationsModel.removeAllElements();\n\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t//Reading Info From Reservation.txt//\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/**\n\t\t\t\t * First i surround everything is a try.. catch blocks \n\t\t\t\t * then in the try block i declare the file input stream\n\t\t\t\t * then a scanner \n\t\t\t\t * then in a while loop i check if the file has next line \n\t\t\t\t * and a user a delimiter \"-\"\n\t\t\t\t * and it adds it to a new reservation\n\t\t\t\t * then it adds it to the ArrayList reservation\n\t\t\t\t * and it also adds it to the hotel object\n\t\t\t\t * then it checks if it can book that hotel\n\t\t\t\t * and if yes it adds it to the ReservationsModel\n\t\t\t\t */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFileInputStream fis = new FileInputStream(\"Reservation.txt\");\n\t\t\t\t\tScanner fscan = new Scanner (fis);\n\t\t\t\t\tint INMonth = 0;\n\t\t\t\t\tint INday = 0;\n\t\t\t\t\tint OUTmonth = 0;\n\t\t\t\t\tint OUTday = 0;\n\t\t\t\t\tlong iD = 0;\n\t\t\t\t\twhile (fscan.hasNextLine())\n\t\t\t\t\t{\n\t\t\t\t\t\tScanner ls = new Scanner (fscan.nextLine());\n\t\t\t\t\t\tls.useDelimiter(\"-\");\n\t\t\t\t\t\tiD = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINMonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tOUTmonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tOUTday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tr = new Reservation (iD,INMonth, INday, OUTmonth, OUTday);\n\t\t\t\t\t\th.addReservation(new Reservation(iD,INMonth, INday, OUTmonth, OUTday));\n\t\t\t\t\t\tHotel hotel = (Hotel) cbHotelsOptions.getSelectedItem();\n\t\t\t\t\t\tlong hotID = hotel.getUniqueId();\n\t\t\t\t\t\tif(iD == hotID)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservationsModel.addElement((new Reservation(iD, INMonth, INday, OUTday)));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * The catch block checks to make sure that the file is found\n\t\t\t\t */\n\t\t\t\tcatch( FileNotFoundException fnfe)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found!\");\n\t\t\t\t}\n\t\t\t}", "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 static void readInputPropertyFile(String fileName, ArrayList<Apartment> apartments, ArrayList<House> houses, ArrayList<Villa> villas) {\n File file = new File(fileName);\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new FileReader(file));\n String tempString = null;\n int line = 1;\n // read one line every time until no text\n while ((tempString = reader.readLine()) != null) {\n // show the line number\n// System.out.println(\"line \" + line + \": \" + tempString);\n String[] line_part = tempString.split(\" \");\n int property_type = Integer.parseInt(line_part[0]);\n line++;\n\n //Initial info for Apartment\n int storey_num = 0, beds = 0;\n\n //Initial info for house\n int storey = 0; double clearing = 0;\n\n //Initial info for villa\n double tax = 0, service = 0;\n\n //Shared Initial info for all\n int number = 0, ID = 0; double cost = 0;\n String name = \"\", address = \"\";\n\n\n //Apartment\n if (property_type == 1)\n {\n number = Integer.parseInt(line_part[1]);\n ID = Integer.parseInt(line_part[2]);\n name = line_part[3];\n address = line_part[4];\n cost = Double.parseDouble(line_part[5]);\n storey_num = Integer.parseInt(line_part[6]);\n beds = Integer.parseInt(line_part[7]);\n apartments.add(new Apartment(number, ID, name, address, cost, storey_num, beds));\n\n }\n\n //House\n else if(property_type == 2)\n {\n number = Integer.parseInt(line_part[1]);\n ID = Integer.parseInt(line_part[2]);\n name = line_part[3];\n address = line_part[4];\n cost = Integer.parseInt(line_part[5]);\n storey = Integer.parseInt(line_part[6]);\n clearing = Double.parseDouble(line_part[7]);\n houses.add(new House(number, ID, name, address, cost, storey, clearing));\n }\n\n else if(property_type == 3)\n {\n number = Integer.parseInt(line_part[1]);\n ID = Integer.parseInt(line_part[2]);\n name = line_part[3];\n address = line_part[4];\n cost = Double.parseDouble(line_part[5]);\n tax = Double.parseDouble(line_part[6]);\n service = Double.parseDouble(line_part[7]);\n villas.add(new Villa(number, ID, name, address, cost, tax, service));\n }\n }\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e1) {\n }\n }\n }\n }", "public void load_from_file() {\r\n // prompting file name from user\r\n System.out.print(\"Enter in FileName:\\n>\");\r\n\r\n // taking user input of file name\r\n String filename = Menu.sc.next();\r\n Scanner input;\r\n\r\n // try to open file, if fails throws exception and returns to main menu\r\n try {\r\n input = new Scanner(new FileReader(filename));\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"Unable to open file!!\");\r\n System.out.println();\r\n return;\r\n }\r\n\r\n int count = 0; // variable to count number of address entry read\r\n\r\n /* reading data until end of file */\r\n while (input.hasNextLine()) {\r\n String firstName = \"\", lastName = \"\", street = \"\", city = \"\", state = \"\", email = \"\", phone = \"\";\r\n int zip = 0;\r\n if (input.hasNextLine())\r\n firstName = input.nextLine();\r\n if (input.hasNextLine())\r\n lastName = input.nextLine();\r\n if (input.hasNextLine())\r\n street = input.nextLine();\r\n if (input.hasNextLine())\r\n city = input.nextLine();\r\n if (input.hasNextLine())\r\n state = input.nextLine();\r\n if (input.hasNextLine())\r\n zip = Integer.parseInt(input.nextLine());\r\n if (input.hasNextLine())\r\n phone = input.nextLine();\r\n if (input.hasNext())\r\n email = input.nextLine();\r\n if (input.hasNext())\r\n input.nextLine();\r\n addressEntryList.add(new AdressEntry(firstName, lastName, street, city, state, zip, phone, email));\r\n count++;\r\n }\r\n\r\n /*\r\n printing number of address entry variables\r\n and printing total number of AddressEntry in the list\r\n */\r\n System.out.println(\"Read in \" + count + \" new Addresses, successfully loaded, currently \"\r\n + addressEntryList.size() + \" Addresses\");\r\n input.close();\r\n System.out.println();\r\n }", "private void populateItems() {\n \t try {\n \t File myObj = new File(\"items.txt\");\n \t Scanner myReader = new Scanner(myObj);\n \t while (myReader.hasNextLine()) {\n\t \t String data = myReader.nextLine();\n\t \t String[] variables = data.split(\",\");\n\t \t int price = (int) Math.floor(Math.random() * 100); \n\t \t \n\t \t itemList += variables[0] + \",\"+ variables[1] +\",\" + \"0\" + \", \"+ \",\"+price + \",\";\n\t \t Item x = new Item(variables[0], 0, \"\", price, variables[1]);\n\t \t items.add(x);\n \t }\n \t myReader.close();\n \t } catch (FileNotFoundException e) {\n \t System.out.println(\"An error occurred.\");\n \t e.printStackTrace();\n \t }\n\t\t\n\t}", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\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} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private void readVenueFile(String path)\n {\n FileIO fileIO = new FileIO();\n fileIO.setFileName(path);\n String fileData = fileIO.readFile();\n String[] data = fileData.split(\"\\\\n\"); // split data by new line character\n for(int i = 0 ; i < data.length ; i++)\n {\n String[] values = data[i].split(\",\"); //split each row by ,\n getVenues().addVenue(values[0], Integer.parseInt(values[1]),Integer.parseInt(values[2]), Double.parseDouble(values[3])); // add a venue to the collection\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 }", "void readFromFile(String file)\n {\n try\n {\n employees.clear();\n FileReader inputFile = new FileReader(fileName);\n BufferedReader input = new BufferedReader(inputFile);\n String line = input.readLine();\n \n while(line != null)\n {\n Employee worker = new Employee();\n StringTokenizer stringParser = new StringTokenizer(line, \",\");\n while(stringParser.hasMoreElements())\n {\n worker.setName(stringParser.nextElement().toString());\n worker.setHours(Integer.parseInt(stringParser.nextElement().toString()));\n worker.setRate(Float.parseFloat(stringParser.nextElement().toString()));\n }\n employees.add(worker);\n line = input.readLine();\n }\n inputFile.close();\n }\n catch(FileNotFoundException e)\n {\n e.getStackTrace();\n }\n catch(IOException e)\n {\n e.getStackTrace();\n }\n }", "public void loadEmployees(String fileName)\r\n\t{\r\n\t\t//try block to attempt to open the file\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//declare local variables for the file name and data fields within the employeelist text file\r\n\t\t\t//these will all be Strings when pulled from the file, and then converted to the proper data type when they are assigned to the Employee objects\r\n\t\t\tString empID = \"\";\r\n\t\t\tString empLastName = \"\";\r\n\t\t\tString empFirstName = \"\";\r\n\t\t\tString empType = \"\";\t\r\n\t\t\tString empSalary = \"\"; //will convert to double\r\n\t\t\t\r\n\t\t\t//scan for file\r\n\t\t\tScanner infile = new Scanner(new FileInputStream(fileName));\r\n\t\t\t\r\n\t\t\t//while loop searching file records\r\n\t\t\twhile(infile.hasNext())\r\n\t\t\t{\r\n\t\t\t\t//split the field into segments with the comma (,) being the delimiter (employee ID, Last Name, First Name, employee type, and employee salary)\r\n\t\t\t\tString line = infile.nextLine();\r\n\t\t\t\tString[] fields = line.split(\",\");\r\n\t\t\t\tempID = fields[0];\r\n\t\t\t\tempLastName = fields[1];\r\n\t\t\t\tempFirstName = fields[2];\r\n\t\t\t\tempType = fields[3];\r\n\t\t\t\tempSalary = fields[4];\r\n\t\t\t\t\r\n\t\t\t\t//create a selection structure that creates the type of employee based on the empType\r\n\t\t\t\tif(empType.equalsIgnoreCase(\"H\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t//create an HourlyEmployee and convert empSalary to a double\r\n\t\t\t\t\tHourlyEmployee hourlyEmp = new HourlyEmployee(empID, empLastName, empFirstName, Double.parseDouble(empSalary));\r\n\t\t\t\t\t\r\n\t\t\t\t\t//add hourlyEmp to the Employee ArrayList empList\r\n\t\t\t\t\tempList.add(hourlyEmp);\r\n\t\t\t\t}//end create hourly employee\r\n\t\t\t\t\r\n\t\t\t\t//else if create an exempt employee for E\r\n\t\t\t\telse if(empType.equalsIgnoreCase(\"E\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t//create an exempt employee (salary) and convert the empSalary to a double\r\n\t\t\t\t\tExemptEmployee salaryEmp = new ExemptEmployee(empID, empLastName, empFirstName, Double.parseDouble(empSalary));\r\n\t\t\t\t\t\r\n\t\t\t\t\t//add salaryEmp to the Employee ArrayList empList\r\n\t\t\t\t\tempList.add(salaryEmp);\r\n\t\t\t\t}//end create exempt (salary) employee\r\n\t\t\t\t\r\n\t\t\t\t//else if create a contractor \r\n\t\t\t\telse if(empType.equalsIgnoreCase(\"C\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t//create a contract employee and convert the empSalary to a double\r\n\t\t\t\t\tContractEmployee contractEmp = new ContractEmployee(empID, empLastName, empFirstName, Double.parseDouble(empSalary));\r\n\t\t\t\t\t\r\n\t\t\t\t\t//add contractEmp to the Employee ArrayList empList\r\n\t\t\t\t\tempList.add(contractEmp);\r\n\t\t\t\t}//end create contractor employee\r\n\t\t\t\t\r\n\t\t\t\t//else if create a day laborer\r\n\t\t\t\telse if(empType.equalsIgnoreCase(\"d\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t//create a day laborer and convert the empSalary to a double\r\n\t\t\t\t\tDayLaborer laborer = new DayLaborer(empID, empLastName, empFirstName, Double.parseDouble(empSalary));\r\n\t\t\t\t\t\r\n\t\t\t\t\t//add laborer to the Employee ArrayList empList\r\n\t\t\t\t\tempList.add(laborer);\r\n\t\t\t\t}//end create day laborer employee\r\n\t\t\t\t\r\n\t\t\t\t//else ignore the employee (looking at you Greyworm!)\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t//save the employee type and id to return as an error\r\n\t\t\t\t\tempTypeError = empType;\r\n\t\t\t\t\tempIDError = empID;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//ignore the employee \r\n\t\t\t\t\tempType = null;\r\n\t\t\t\t}//end ignore X employee\r\n\t\t\t}//end while loop cycling the records in the employeelist\r\n\t\t\t\r\n\t\t\t//close infile when done\r\n\t\t\tinfile.close();\r\n\t\t}//end of try block opening employeelist.txt file\r\n\t\t\r\n\t\t//catch block if file not found\r\n\t\tcatch(IOException ex)\r\n\t\t{\r\n\t\t\t//call ex object and display message\r\n\t\t\tex.printStackTrace();\r\n\t\t}//end of catch for file not found\r\n\t}", "public ArrayList load() {\n File savefile = new File(\"bookings.txt\");\r\n try {\r\n if (savefile.createNewFile()) {\r\n System.out.println(\"Save file doesnt exist, creating...\");\r\n\r\n try {\r\n FileWriter writer = new FileWriter(savefile);\r\n\r\n for (int x = 0; x <= 89; x = x + 1) {\r\n String stringbuild = (x + \",false,none\");\r\n writer.write(stringbuild + \"\\n\");\r\n }\r\n writer.flush();\r\n writer.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n } else {\r\n System.out.println(\"Save file exists. Will load...\");\r\n }\r\n } catch (IOException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n System.out.println(\"Loading Started...\");\r\n\r\n ArrayList Seats = new ArrayList();\r\n ArrayList Seats_Bronze = new ArrayList();\r\n ArrayList Seats_Silver = new ArrayList();\r\n ArrayList Seats_Gold = new ArrayList();\r\n\r\n try {\r\n File file = new File(\"bookings.txt\");\r\n FileReader filereader = new FileReader(file);\r\n BufferedReader bufferedreader = new BufferedReader(filereader);\r\n\r\n String buffer;\r\n while ((buffer = bufferedreader.readLine()) != null) {\r\n String[] buffersplit = buffer.split(\",\", -1);\r\n int index = Integer.parseInt(buffersplit[0]);\r\n if (index < 30) {\r\n //System.out.println(\"Bronze @ \"+index);\r\n\r\n Seat_Bronze bseat_ = new Seat_Bronze();\r\n bseat_.setID(index);\r\n bseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);\r\n Seats_Bronze.add(bseat_);\r\n\r\n } else if (59 >= index && index > 29) {\r\n //System.out.println(\"Silver @ \"+index);\r\n\r\n Seat_Silver sseat_ = new Seat_Silver();\r\n sseat_.setID(index);\r\n sseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);\r\n Seats_Silver.add(sseat_);\r\n\r\n } else {\r\n //System.out.println(\"Gold @\"+index);\r\n\r\n Seat_Gold gseat_ = new Seat_Gold();\r\n gseat_.setID(index);\r\n gseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);\r\n Seats_Gold.add(gseat_);\r\n\r\n }\r\n\r\n }\r\n\r\n Seats.add(Seats_Bronze);\r\n Seats.add(Seats_Silver);\r\n Seats.add(Seats_Gold);\r\n System.out.println(\"Loading Complete.\");\r\n System.out.println(\"Loaded B/S/G: \" + Seats_Bronze.size() + \"/\" + Seats_Silver.size() + \"/\" + Seats_Gold.size());\r\n\r\n return Seats;\r\n\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (IOException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return null;\r\n }", "@Override\n public void loadFoodItems(String filePath) {\n file = new File(filePath);\n \n // Check the file existence\n try {\n scnr = new Scanner(file);\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n System.out.println(\"no such file\");\n }\n \n // Read the file and save the food info to food class\n try {\n while (scnr.hasNextLine()) {\n \t\n // read line by line\n String text = scnr.nextLine().trim();\n \n // if line is not empty\n \n // load the file to memory\n if (!text.isEmpty()) {\n \t\n String[] objects = text.split(\",\");\n \n //skip the data with wrong format\n if(objects.length != 12) continue;\n String id = objects[0];\n String name = objects[1];\n FoodItem food = new FoodItem(id, name);\n for(int i = 0; i < 5; i++) {\n \tfood.addNutrient(nutrition[i], Double.parseDouble(objects[2*(i+1)+1]));\n }\n foodItemList.add(food);\n \n }\n }\n \n // add the food item to nutrition BPTree\n \n Iterator<FoodItem> foodItr = foodItemList.iterator();\n while(foodItr.hasNext()) {\n \tIterator<BPTree<Double, FoodItem>> treeItr = nutriTree.iterator();\n \tFoodItem tempFood = foodItr.next();\n \tint i = 0;\n while(treeItr.hasNext()) {\n \ttreeItr.next().insert(tempFood.getNutrientValue(nutrition[i]), tempFood);\n \ti ++;\n }\n }\n \n \n scnr.close();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"Error in food data processing\");\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 }", "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 static void readFridgeData() throws FileNotFoundException, InvalidDateException,\n InvalidQuantityException, EmptyDescriptionException,\n RepetitiveFoodIdentifierException, InvalidFoodCategoryException, InvalidFoodLocationException {\n File file = new File(DATA_FILE_PATH);\n Scanner scanner = new Scanner(file); // create a Scanner using the File as the source\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n populateFridge(line);\n }\n scanner.close();\n }", "public void readRestaurantDetail (BufferedReader reader) {\n\n\n try {\n // Each line of CSV will be stored in this String\n String line = \"\";\n reader.readLine();\n int id = 0;\n while ((line = reader.readLine()) != null) {\n// count++;\n\n // line will be split by \",\", into an array of String\n String[] eachDetailsOfRestaurant = line.split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n\n // Restaurant object created with the tracking number and name.\n Restaurant restaurant = new Restaurant(eachDetailsOfRestaurant[0], eachDetailsOfRestaurant[1], id);\n\n// Log.e(\"checking..............\", count.toString() + \" \" + restaurant.getName());\n\n // Converting coordinates to double and creating Location object\n for (int i = 0; i < eachDetailsOfRestaurant.length; i++) {\n Log.e(TAG, \"\" + i + \":\" + eachDetailsOfRestaurant[i]);\n }\n Double latitude = Double.parseDouble(eachDetailsOfRestaurant[5]);\n Double longitude = Double.parseDouble(eachDetailsOfRestaurant[6]);\n Location location = new Location(eachDetailsOfRestaurant[2], eachDetailsOfRestaurant[3], latitude, longitude);\n\n // Setting Location of the restaurant and adding to the Arraylist\n restaurant.setLocation(location);\n restaurants.add(restaurant);\n id++;\n }\n Collections.sort(restaurants);\n } catch (IOException e) {\n// e.printStackTrace();\n }\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 }", "void fileReader(String filename) \r\n\t\t{\r\n\r\n\t\ttry (Scanner s = new Scanner(new FileReader(filename))) { \r\n\t\t while (s.hasNext()) { \r\n\t\t \tString name = s.nextLine(); // read name untill space\r\n\t\t \tString str[] = name.split(\",\");\r\n\t\t \tString nam = str[0]; \r\n\t\t \tint number = Integer.parseInt(str[1]); // read number untill space\r\n\t\t this.addContact(nam, number);\r\n\t\t\r\n\t\t }\t\t \r\n\t\t \r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t}", "public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}", "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 }", "public Hotel() throws FileNotFoundException\n {\n data_set = new ArrayList<Room>();\n get_rooms();\n }", "public void loadHours(String fileName)\r\n\t{\r\n\t\t//try block to try and open the file\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//declare local variables that will be assigned to the employee. These will be converted after split. \r\n\t\t\tString empID = \"\";\r\n\t\t\tString dailyHours = \"\";\r\n\t\t\tString day = \"\";\r\n\t\t\t//scan for the file \r\n\t\t\tScanner infile = new Scanner(new FileInputStream(fileName));\r\n\t\t\t\r\n\t\t\t//while loop if there is a next line\r\n\t\t\twhile(infile.hasNext())\r\n\t\t\t{\r\n\t\t\t\t//declare the line that was pulled as a single string \r\n\t\t\t\tString line = infile.nextLine();\r\n\t\t\t\t\r\n\t\t\t\t//break the line up by the delimiter (,)\r\n\t\t\t\tString fields[] = line.split(\",\");\r\n\t\t\t\t\r\n\t\t\t\t//assign the first field to day, 2nd to employeeID, and 3rd to dailyHours\r\n\t\t\t\tday = fields[0];\r\n\t\t\t\tempID = fields[1];\r\n\t\t\t\tdailyHours = fields[2];\r\n\t\t\t\t\r\n\t\t\t\t//cycle the Employee arrayList and see which employee ID matches the added ID\r\n\t\t\t\tfor (Employee employee : empList)\r\n\t\t\t\t{\r\n\t\t\t\t\t//selection structure checking if the empID matches the Employee list ID\r\n\t\t\t\t\tif(employee.getEmpoyeeId().equalsIgnoreCase(empID))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//add the hours to the employee object (convert dailyHours to a Double)\r\n\t\t\t\t\t\temployee.addHours(Double.parseDouble(dailyHours));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//now that the hours have been added to that individual employee, the hours need to be added to the date in the \r\n\t\t\t\t\t\t//DailyHours class by calling findEntryByDate\r\n\t\t\t\t\t\taddToDailyReport(day, Double.parseDouble(dailyHours), employee.getSalary());\r\n\t\t\t\t\t}//end employee ID found\r\n\t\t\t\t\t\r\n\t\t\t\t\t//else not found so set to null\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\temployee = null;\r\n\t\t\t\t\t}//end not found \r\n\t\t\t\t}//end for loop cycling the empList\t\r\n\t\t\t}//end the file has no more lines\r\n\t\t}//end try block\r\n\t\t\r\n\t\t//catch block incase try fails for OPENING THE FILE\r\n\t\tcatch(IOException ex)\r\n\t\t{\r\n\t\t\t//call ex object and display message\r\n\t\t\tex.printStackTrace();\r\n\t\t}//end of catch block\t\r\n\t}", "public DataProcessor(String filename) throws FileNotFoundException{\n\tlst = new ArrayList();\n\tScanner input = new Scanner(new FileReader(filename));\n //skip the first line of the csv file\n\tString escapedLine = input.nextLine();\n \twhile(input.hasNextLine()){\n\t recordCount++;\n\t String line = input.nextLine();\n\t //CORRECTION BLOC to skip quoted commas\n\t if (line.contains(\"\\\"\")){\n\t\tint first= line.indexOf(\"\\\"\");\n\t\twhile(first >0 ){\n\t\t String problem = line.substring(first,line.indexOf(\"\\\"\",first+1)+1);\n\t\t \tint second = line.indexOf(\"\\\"\",first+1);\n\t\t\t//look for comma between quoted\n\t\t\tif(problem.contains(\",\")){\n\t\t\t //replace comma by space not to change string indices\n\t\t\t problem=problem.replace(\",\",\" \");\n\t\t\t line=line.replace(line.substring(first,line.indexOf(\"\\\"\",first+1)+1),problem);\n\t\t\t}\n\t\t\t//look for another quote symbol\n\t\t\tfirst = line.indexOf(\"\\\"\",second+1);\n\t\t}\n\t }\n\t String[] fields = line.split(\",\");\n\t //create Person object to store the suspect's data\n\t Person suspect = new Person(fields[SEX].charAt(0),fields[RACE].charAt(0),Integer.parseInt(fields[DOB]),Integer.parseInt(fields[HEIGHTFT]),fields[EYECOLOR],fields[BUILD].charAt(0));\n\t lst.add(suspect);\n\t}\n\t//close scanner\n\tinput.close();\n }", "private void get_rooms() throws FileNotFoundException\n {\n Scanner room_all = new Scanner(new FileInputStream(db_rooms));\n room_all.nextLine();\n while(room_all.hasNextLine())\n {\n String [] searcher = (room_all.nextLine()).split(\"\\\"\");\n if(!searcher[7].equals(\"empty\"))\n data_set.add(new Room(searcher[3], searcher[5], (searcher[7].equals(\"booked\") ? 1 : 2), Integer.valueOf(searcher[1])));\n else\n data_set.add(new Room(Integer.valueOf(searcher[1])));\n }\n room_all.close();\n }", "private void createLocations(ArrayList<String> locations) {\n for (String line : locations) {\n String[] entry = line.split(\",\");\n for(int i = 0; i < entry.length; i++) {\n Log.i(\"ec\", entry[i]);\n Log.d(\"debugExtra\", entry[i]);\n }\n //Log.i(\"entry length\", Integer.toString(entry.length));\n if (entry.length == 5) {\n locationList.add(new Location(entry[0], Double.parseDouble(entry[1]), Double.parseDouble(entry[2]), entry[3], entry[4]));\n }\n }\n }", "public ArrayList<DeliveryVehicle> getVehiclesFromFile() throws java.io.IOException {\n \n DeliveryVehicleController controller = new DeliveryVehicleController();\n \n //reading the file and adding all lines to the list\n List<String> lines = Files.readAllLines(Paths.get(_filePath));\n String[] lineTokens;\n List<String> fileLines = Files.readAllLines(Paths.get(_filePath));\n\n for(String line : fileLines) {\n lineTokens = line.split(\" \");\n \n //Possible to change if statement case statement instead\n // [0] = Bike Used to check what type (never going to change)\n // [1] = RegNumber\n // [2] = EngineSize\n // [3] = DaysInService\n // [4] = MilesCovered\n // [5] = Deliverys\n\n if (lineTokens[0].equalsIgnoreCase(\"Bike\")){\n // System.out.print(lineTokens[1] + \"THISSHOULD BE REG NUMBER\");\n controller.addBike( lineTokens[1] , Integer.parseInt(lineTokens[2]), Integer.parseInt(lineTokens[3] ), Double.parseDouble(lineTokens[4] ), Integer.parseInt(lineTokens[5]) );\n // return _vehicleList;\n // System.out.print(_vehicleList);\n }\n\n else if (lineTokens[0].equalsIgnoreCase(\"Car\")){\n controller.addCar( lineTokens[1] , Integer.parseInt(lineTokens[2]), Integer.parseInt(lineTokens[3] ), Double.parseDouble(lineTokens[4] ), Integer.parseInt(lineTokens[5]) );\n // return _vehicleList;\n }\n\n else if (lineTokens[0].equalsIgnoreCase(\"Scooter\")){\n // _vehicleList.add(new DeliveryScooter( lineTokens[1] , Integer.parseInt(lineTokens[2]), Integer.parseInt(lineTokens[3] ), Double.parseDouble(lineTokens[4] ), Integer.parseInt(lineTokens[5]) ));\n controller.addScooter( lineTokens[1] , Integer.parseInt(lineTokens[2]), Integer.parseInt(lineTokens[3] ), Double.parseDouble(lineTokens[4] ), Integer.parseInt(lineTokens[5]) );\n // return _vehicleList;\n }\n } \n \n return controller.getVehiclesList();\n \n }", "public static void processDataFile() {\n final String INPUT_FILENAME = \"input/assn6input1.txt\";\n File inputFile = null;\n Scanner inputScanner = null;\n System.out.println(\"Reading data from file: \" + INPUT_FILENAME);\n System.out.println();\n try {\n inputFile = new File(INPUT_FILENAME);\n inputScanner = new Scanner(inputFile);\n } catch(FileNotFoundException e) {\n System.err.println(\"Error opening file \" + INPUT_FILENAME);\n }\n while(inputScanner.hasNext()) {\n String[] dataLine = inputScanner.nextLine().split(\",\");\n // Is the first token \"REALTOR\"?\n if(dataLine[0].toUpperCase().equals(\"REALTOR\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addRealtor(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteRealtor(dataLine[2]);\n }\n else {\n \n }\n }\n // Is the first token \"PROPERTY\"?\n else if(dataLine[0].toUpperCase().equals(\"PROPERTY\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addProperty(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteProperty(Integer.parseInt(dataLine[2]));\n }\n else {\n \n }\n } else {\n // not realtor or property in the first token\n System.out.println(\"\\tNeither realtor, nor property in first\"\n + \" token\");\n }\n }\n inputScanner.close();\n }", "public void loadItems() {\n\t\tArrayList<String> lines = readData();\n\t\tfor (int i = 1; i < lines.size(); i++) {\n\t\t\tString line = lines.get(i);\n\t\t\t\n\t\t\tString[] parts = line.split(\",\");\n\t\t\t\n//\t\t\tSystem.out.println(\"Name: \" + parts[0]);\n//\t\t\tSystem.out.println(\"Amount: \" + parts[1]);\n//\t\t\tSystem.out.println(\"Price: \" + parts[2]);\n//\t\t\tSystem.out.println(\"-------\");\n\t\t\t\n\t\t\tString name = parts[0].trim();\n\t\t\tint amount = Integer.parseInt(parts[1].trim());\n\t\t\tdouble price = Double.parseDouble(parts[2].trim());\n\t\t\t\n\t\t\tItem item = new Item(name, amount, price);\n\t\t\titemsInStock.add(item);\n\t\t}\n\t}", "private ArrayList<Book> readBookCollection() {\n File file = new File(\"books.txt\");\n ArrayList<Book> collection = new ArrayList<Book>();\n try {\n FileReader fileReader = new FileReader(file);\n BufferedReader reader = new BufferedReader(fileReader);\n while (true) {\n String line = reader.readLine();\n if (line == null) break;\n line = line.trim();\n if (line.equals(\"\")) continue; // ignore possible blank lines\n String[] bookInfo = line.split(\" :: \");\n collection.add(new Book(bookInfo[0], bookInfo[1]));\n }\n }\n catch (IOException e) {\n System.out.println(e.getMessage());\n }\n return collection;\n }", "private static ArrayList<ArrayList<Integer>> populateListOfInputs() {\n\t\t\n\t\tArrayList<ArrayList<Integer>> listOflist = new ArrayList<ArrayList<Integer>>();\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(filePath);\n\t\t\tBufferedReader br = new BufferedReader(fr);\t\t\n\t\t\t\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t// Remove all spaces, '[' and ']'\n\t\t\t\tString numbers = line.replace(\" \", \"\");\n\t\t\t\tnumbers = numbers.replace(\"[\", \"\");\n\t\t\t\tnumbers = numbers.replace(\"]\", \"\");\n\t\t\t\t\n\t\t\t\tif(line.equals(\"\")) {\n\t\t\t\t\t//if empty line leave it and continue the loop\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\t\t\n\t\t\t\tString[] individualnums = numbers.split(\",\");\n\t\t\t\tfor (int i = 0; i < individualnums.length; i++) {\t\t\t\t\t\n\t\t\t\t\tlist.add(Integer.parseInt(individualnums[i]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlistOflist.add(list);\t\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listOflist;\n\t}", "public static void readFlightFile(String filepath) throws FileNotFoundException {\r\n Scanner sc = new Scanner(new FileInputStream(filepath));\r\n String[] flightData;\r\n Flight flight;\r\n while (sc.hasNextLine()) {\r\n flightData = sc.nextLine().split(\",\");\r\n // FlightID, DepartureDate/time, ArrivalDate/time, Airline, Origin, Destination, price\r\n try {\r\n\r\n flight = new Flight(flightData[0], flightData[1], flightData[2], flightData[3], \r\n flightData[4], flightData[5], Double.parseDouble(flightData[6]),\r\n Integer.parseInt(flightData[7]));\r\n addFlight(flight);\r\n } catch (NumberFormatException | ParseException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }\r\n sc.close();\r\n }", "private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void buddyMaker(String fileName) throws FileNotFoundException {\n\t\tfinal String DELIMITER = \",\";\n\t\tFile csv = new File(fileName);\n\t\tScanner csvReader = new Scanner(csv);\n\t\tcsvReader.useDelimiter(DELIMITER);\n\t\tbuddies = new ArrayList<Buddy>(); //initializes an arraylist to store all the new buddies\n\t\twhile (csvReader.hasNext()) {\n\t\t\tString name = csvReader.next();\n\t\t\tString about = csvReader.nextLine();\n\t\t\tbuddies.add(new Buddy(name, about));\n\t\t}\n\t\tcsvReader.close();\n\t}", "private void initializeRestaurantList(ArrayList<String> restaurantData) {\n // For each line of csv data, create a restaurant with it and put it in the restaurant list\n for (String dataLine : restaurantData) {\n // Separate the comma-spliced-values\n String[] restaurantValues = dataLine.split(\"\\\\s*,\\\\s*\");\n\n // Remove any quotations from entries\n for (int i = 0; i < restaurantValues.length; i++) {\n String str = restaurantValues[i];\n str = str.replaceAll(\"\\\"\", \"\");\n restaurantValues[i] = str;\n }\n\n // If the current csv row is data (and not the title), then add it to the list\n if (!(restaurantValues[0].equals(\"TRACKINGNUMBER\"))) {\n // Extract the comma-spliced-values into variables\n String trackingNumber = restaurantValues[0];\n String name = restaurantValues[1];\n String address = restaurantValues[2];\n String city = restaurantValues[3];\n String type = restaurantValues[4];\n double latitude = Double.parseDouble(restaurantValues[5]);\n double longitude = Double.parseDouble(restaurantValues[6]);\n\n // Create a restaurant\n Restaurant restaurant = new Restaurant(trackingNumber, name, address, city, type,\n latitude, longitude);\n\n // Store the restaurant inside the list of restaurants\n this.restaurantList.add(restaurant);\n }\n }\n Collections.sort(this.restaurantList);\n }", "public void addShop(String fileName)\r\n {\r\n //read file \r\n try\r\n {\r\n //file reader\r\n FileReader fin = new FileReader(fileName);\r\n //create a new scanner\r\n Scanner graphFile = new Scanner(fin);\r\n\r\n //String variable \r\n String line;\r\n //while the file has next line\r\n while(graphFile.hasNextLine())\r\n {\r\n\r\n //get the next line in the file\r\n line=graphFile.nextLine();\r\n\r\n //create a new StringTokenizer at that line\r\n StringTokenizer st = new StringTokenizer(line);\r\n //read through that line\r\n try\r\n {\r\n //if there is only 1 string in this line\r\n if(st.countTokens()==1)\r\n {\r\n // pick up this String as the number of coffeeshop in total \r\n int numOfShops = Integer.parseInt(st.nextToken());\r\n //continue to next iteration of the loop \r\n continue;\r\n }\r\n\r\n //if more than 1 String in the line\r\n //take the first String and store as the id of coffeeShop\r\n String id = (\"S\"+Integer.parseInt(st.nextToken()));\r\n //take the next String which contains the X coordinate of the coffeeshop\r\n String coordinateX = st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st1 = new StringTokenizer(coordinateX,\"(,\");\r\n //take the first String and store it as the x coordinate of this coffeeshop \r\n int x= Integer.parseInt(st1.nextToken());\r\n //take the next String which contains the Y coordinate of the coffeeshop\r\n String coordinateY = st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st2 = new StringTokenizer(coordinateY,\"):\");\r\n //take the first String and store it as the y coordinate of this coffeeshop \r\n int y= Integer.parseInt(st2.nextToken());\r\n //create a new Queue implement by linkedlist to store the order of the warehouse\r\n Queue<Integer> cargoList= new LinkedList<Integer> ();\r\n //while the line has more Strings inside it \r\n while(st.hasMoreTokens())\r\n {\r\n //take the next String in the line and store it as cargo\r\n String cargo =st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st3 = new StringTokenizer(cargo,\",\");\r\n //take the first String and store it as the order of this coffeeshop \r\n Integer order =Integer.parseInt(st3.nextToken());\r\n\r\n //add the order into the cargo list\r\n cargoList.add(order);\r\n \r\n\r\n }\r\n\r\n //add the coffeeshop into the graph \r\n town.addCoffeeShop(x,y,id, cargoList);\r\n\r\n\r\n\r\n }\r\n //catch exceptions\r\n catch(NumberFormatException e )\r\n { System.err.println( \"Skipping bad line \" + line ); }\r\n\r\n }\r\n\r\n }\r\n //catch exceptions \r\n catch( IOException e )\r\n { System.err.println( e ); }\r\n }", "public List<Event> fillArrayList()\r\n {\r\n List<Event> list1=new ArrayList<>();\r\n FileReader fr=null;\r\n \r\n try{\r\n \r\n fr=new FileReader(\"./event.txt\");\r\n BufferedReader bf=new BufferedReader(fr);\r\n String s;\r\n \r\n while((s=bf.readLine())!=null)\r\n {\r\n Event event=new Event();\r\n String s1[]=new String[7];\r\n for(int i=0;i<s1.length;i++)\r\n {\r\n s1=s.split(\",\");\r\n \r\n event.setId(Integer.parseInt(s1[0]));\r\n \r\n event.setName(s1[1]);\r\n \r\n event.setOrganizer(s1[2]);\r\n \r\n Date date=Date.valueOf(s1[3]);\r\n \r\n event.setDate(date);\r\n \r\n event.setFees(Double.parseDouble(s1[4]));\r\n \r\n } \r\n list1.add(event);\r\n }\r\n \r\n bf.close();\r\n \r\n }catch(Exception e){e.printStackTrace();}\r\n return list1;\r\n\r\n }", "public ArrayList<Double> readFile(String m){\n ArrayList<Double> a = new ArrayList<Double>();\n Scanner r = null;\n try {\n File f = new File(m);\n r = new Scanner(f);\n String scan;\n while(r.hasNextLine()) {\n scan = r.nextLine();\n //System.out.println(scan);\n // look for comma because our price starts after comma\n int commaPosition = scan.indexOf(',');\n //go to next index of the string in one line\n int nextIndex = commaPosition + 1;\n // make a string named price to keep the price from one line\n //substring method takes two parameters- start point and end point(which is integers)\n //price = smaller string = \"2.50\", scan = bigger string = \"bananas,2.50\"\n String price = scan.substring(nextIndex,scan.length());\n double doublePrice = Double.parseDouble(price);\n //System.out.println(doublePrice);\n a.add(doublePrice);\n }\n } catch (FileNotFoundException ex) {\n\n } catch (IOException ex) {\n\n } finally {\n if(r!=null) r.close();\n }\n return a;\n\n }", "public void restoreInfoFromFile(File file) {\n Scanner scanner = null;\n try {\n scanner = new Scanner(file);\n }catch(IOException e){\n e.getStackTrace();\n }\n HashMap<String, ArrayList<Passenger>> pasGroupList = new HashMap<>();\n ArrayList<Passenger> individualList = new ArrayList<Passenger>();\n Passenger pas;\n boolean isGrouped;\n boolean isEconomy;\n String seatPref;\n String name;\n String groupName;\n int seatCol;\n int seatRow;\n\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] info = line.split(\",\");\n name = info[0];\n isEconomy = Boolean.valueOf(info[1]);\n seatRow = Integer.valueOf(info[2]);\n seatCol = Integer.valueOf(info[3]);\n isGrouped = Boolean.valueOf(info[4]);\n if (isGrouped) {\n groupName = info[5];\n pas = new Passenger(name, isEconomy, isGrouped, groupName);\n if (!pasGroupList.containsKey(groupName)) {\n pasGroupList.put(groupName, new ArrayList<Passenger>());\n }\n pasGroupList.get(groupName).add(pas);\n } else {\n seatPref = info[5];\n pas = new Passenger(name, isEconomy, seatPref);\n individualList.add(pas);\n }\n addPasDirectlyToSeat(pas, seatRow, seatCol);\n }\n updateTrackingList(pasGroupList, individualList);\n\n scanner.close();\n }", "public static ArrayList<Chip> ImportarChips() {\n ArrayList<Chip> ArrayChips = new ArrayList<Chip>();\n File f = new File(\"Archivos/chips.txt\");\n ManCliente objManCliente = new ManCliente();\n ImportarCliente objImpCli = new ImportarCliente();\n ArrayList<Cliente> ArrayClientes = new ArrayList<Cliente>();\n String aNumero;\n int aActivo;\n int aSaldo;\n int aMegas;\n String aCedula;\n StringTokenizer st;\n Scanner entrada = null;\n String sCadena;\n try {\n ArrayClientes = objImpCli.ImportarClientes();\n entrada = new Scanner(f);\n while (entrada.hasNext()) {\n sCadena = entrada.nextLine();\n st = new StringTokenizer(sCadena, \",\");\n while (st.hasMoreTokens()) {\n aNumero = st.nextToken();\n aActivo = Integer.parseInt(st.nextToken());\n aSaldo = Integer.parseInt(st.nextToken());\n aMegas = Integer.parseInt(st.nextToken());\n aCedula = st.nextToken();\n\n Chip objTmpChip = new Chip(aNumero, aActivo, aSaldo, aMegas, objManCliente.BuscarCliente(ArrayClientes, aCedula));\n ArrayChips.add(objTmpChip);\n\n }\n }\n } catch (FileNotFoundException e) {\n System.out.println(e.getMessage());\n } finally {\n entrada.close();\n }\n return ArrayChips;\n }", "public void fillFromFile()\n\t{\n\t\tJFileChooser fc = new JFileChooser();\t//creates a new fileChooser object\n\t\tint status = fc.showOpenDialog(null);\t//creates a var to catch the dialog output\n\t\tif(status == JFileChooser.APPROVE_OPTION)\t\n\t\t{\n\t\t\tFile selectedFile = fc.getSelectedFile ( );\n\t\t\tthis.fileName = selectedFile;\n\t\t\tScanner file = null; //scans the file looking for information to load\n\n\t\t\tif(selectedFile.exists())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tfile = new Scanner(fileName); //scans the input file\n\t\t\t\t}\n\t\t\t\tcatch(Exception IOException)\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showConfirmDialog (null, \"Unable to import data from the list\");\n\t\t\t\t\tSystem.exit (-1);\n\t\t\t\t}//if there was an error it will pop up this message\n\t\t\t\t\n\t\t\t\tString str = file.nextLine ( ); //names the line\n\t\t\t\tString [] header = str.split (\"\\\\|\"); //splits the line at the |\n\t\t\t\tsetCourseNumber(header[1]);\n\t\t\t\tsetCourseName(header[0]);\n\t\t\t\tsetInstructor(header[2]);\n\t\t\t\t\n\t\t\t\twhile(file.hasNextLine ( ))\n\t\t\t\t{\n\t\t\t\t\tstr = file.nextLine ( ); //names the line\n\t\t\t\t\tString [] tokens = str.split (\"\\\\|\"); //splits the line at the |\n\t\t\t\t\tStudent p = new Student();\n\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tp.setStrNameLast (String.valueOf (tokens[0]));\n\t\t\t\t\t\tp.setStrNameFirst (String.valueOf (tokens[1]));\n\t\t\t\t\t\tp.setStrMajor (String.valueOf (tokens[2]));\n\t\t\t\t\t\tp.setClassification (tokens[3]);\n\t\t\t\t\t\tp.setiHoursCompleted (new Integer (tokens[4]).intValue ( ));\n\t\t\t\t\t\tp.setfGPA (new Float (tokens[5]).floatValue ( ));\n\t\t\t\t\t\tp.setStrStudentPhoto (String.valueOf (tokens[6]));\n\t\t\t\t\t//creates a person object and then populates it with an array of scanned input values\n\t\t\t\t\t\tclassRoll.add (p);\n\t\t\t\t\t\t}//creates a person object and then populates it with an array of scanned input values\n\t\t\t\t\t\tcatch(Exception IOException)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tIOException.printStackTrace ( );\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog (null, \"Bad input record: '\" + str + \"'\" + IOException.getMessage());\n\t\t\t\t\t\t}//pops up a message if there were any errors reading from the file\n\t\t\t\t}//continues through the file until there are no more lines to scan\n\t\t\tfile.close ( ); //closes the file\n\n\t\t\t\tif(selectedFile.exists ( )==false)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception IOException)\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog (null, \"Bad input record: '\" + selectedFile + \"' \" + IOException.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}//if the user picks a file that does not exist this error message will be caught.\n\t\t\t}\n\t\t}//if the input is good it will load the information from the selected file to and Array List\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.exit (0);\n\t\t\t}\n\t\tthis.saveNeed = true;\n\n\t\t}", "public void readPoemFiles(){\n try (Scanner fileScan = new Scanner(new File(\"poems.txt\"))) {\n //Poems.txt consist of a header (poet and theme) plus verse lines.\n //First loop reads the header and creates object 'PoetAndTheme'.\n while (fileScan.hasNextLine()){\n String themeAndPoet = fileScan.nextLine();\n PoetAndTheme addToList = new PoetAndTheme(themeAndPoet);\n //Second loop reads verse lines and adds them to object 'PoetAndTheme'.\n while(fileScan.hasNextLine()){\n String verseLine = fileScan.nextLine();\n if (verseLine.isEmpty()){\n break;\n }\n addToList.addVerseLine(verseLine);\n }\n poetsAndThemesList.add(addToList);\n }\n \n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "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 }", "public void load(){\n\t\t\tArrayList<String> entries = readEntriesFromFile(FILENAME);\n\t\t\t\n\t\t\tfor(int i = 1; i < entries.size(); i++){\n\t\t\t\tString entry = entries.get(i);\n\t\t\t\tString[] entryParts = entry.split(\",\");\n\t\t\t\tString name = entryParts[0];\n\t\t\t\tString power = entryParts[1];\n\t\t\t\tString gold = entryParts[2];\n\t\t\t\tString xp = entryParts[3];\n\t\t\t\tString location = entryParts[4];\n\t\t\t\tint powerInt = Integer.parseInt(power);\n\t\t\t\tint goldInt = Integer.parseInt(gold);\n\t\t\t\tint XPInt = Integer.parseInt(xp);\n\t\t\t\tRegion regionR = RM.getRegion(location);\n\t\t\t\tTrap trap = new Trap(name, powerInt, goldInt, XPInt, regionR);\n\t\t\t\ttrapList[i-1] = trap;\n\t\t\t}\n\t}", "private void importFile()\n\t{\n\t\tint count = 0;\n\n\t\ttry{\n\t\t\tFileReader readFile = new FileReader(drinkListFile);\n\t\t\tBufferedReader reader = new BufferedReader(readFile);\n\n\t\t\tint i = 0;\n\t\t\timportDrinkList = \"\";\n\t\t\tString drinkListFileLine = reader.readLine();\n\t\t\tdo//this leaves you with a string of the drinkListFile with a space at the end. \n\t\t\t{\n\t\t\t\timportDrinkList += drinkListFileLine + \"\\n\";//adds the line on the txt file to the string\n\t\t\t\tdrinkListFileLine = reader.readLine();//goes to the next line.\n\n\t\t\t\t//keeps track of times through with a null line\n\t\t\t\tif(drinkListFileLine == null) //increments count if there is a space sensed\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(drinkListFileLine != null)//resets count if there is only one space in between drinks\n\t\t\t\t{\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\n\t\t\t\ti++;\n\t\t\t}\n\t\t\twhile(drinkListFileLine!= null && count != 2);\n\t\t\treader.close();\n\n\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.toString();//change this\n\t\t\tJOptionPane.showMessageDialog(null, \"Drink file read error: \" + e.toString());\n\t\t}\n\n\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 BookList(String filename) throws IOException {\r\n bookList = new ArrayList<Book>();\r\n //use Chapter 5 in the book to create a File object and then a Scanner object with the File object.\r\n //Check if the file exists, if not, post a message to the console output.\r\n //Loop through the lines in the file and use a StringTokenizer (chapter 8) to tokenize the string on the comma.\r\n //Create a Book object with the title and price as parameters and add that Book object to the bookList attribute\r\n //in this class\r\n File file = new File(filename);\r\n if (file.exists()){\r\n Scanner fileScan = new Scanner(file);\r\n while(fileScan.hasNext()){\r\n StringTokenizer strTok = new StringTokenizer(fileScan.nextLine(), \",\");\r\n Book book = new Book(strTok.nextToken().trim(), Double.parseDouble(strTok.nextToken().trim()));\r\n bookList.add(book);\r\n }\r\n }else{\r\n System.out.println(\"File not found: \" + filename);\r\n }\r\n\r\n\r\n }", "public List<Country> readCountriesFromCSV(String fileName){\n try {\n Scanner scanner = new Scanner(new File(fileName));\n scanner.useDelimiter(\",\");\n scanner.nextLine();\n while(scanner.hasNextLine()){\n lsta.add(createCountry(scanner.nextLine().split(\",\")));\n// System.out.println(pyr.get_pharaoh()+\"|\"+pyr.get_modern_name()+\"|\"+pyr.get_site()+\"|\"+pyr.get_height()+\"|\");\n }\n scanner.close();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(CityCSVDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return lsta;\n }", "public void loadPlayers(String filename) throws IOException {\r\n //TODO:4\r\n // 1. use try-with-resources syntax to ensure the file is closed\r\n // 2. read the number of players, then read an empty line\r\n // 3. for each player:\r\n // 3.1 read playerName, gold, sciencePoint, productionPoint, numCities and numMinisters separated by blank characters.\r\n // 3.2 create a player of corresponding values\r\n // 3.3 for (int i=1; i<numCities; i++):\r\n // read population, troops, cropYields\r\n // create a corresponding city object and add to the player's city list\r\n // 3.4 for (int i=1; i<numMinisters; i++):\r\n // read type, intelligence, experience, leadership\r\n // use switch-case to create a corresponding minister object and add to the player's minister list\r\n // check for invalid formats and throw custom exceptions.\r\n // (When there is any invalid minister type, throw InvalidMinisterTypeException.\r\n // Only \"WarGeneral\", \"Scientist\" and \"Economist\" are allowed.)\r\n // 3.5 add the player to the ArrayList<Player> players\r\n // Hint: use add() method of ArrayList.\r\n players = new ArrayList<>();\r\n File inputFile = new File(filename);\r\n try(\r\n Scanner reader = new Scanner(inputFile);\r\n ) {\r\n int numOfPlayers = reader.nextInt();\r\n String line = \"\";\r\n for (int i = 0; i < numOfPlayers; i++) {\r\n String name = reader.next();\r\n int gold = reader.nextInt();\r\n int sciencePoint = reader.nextInt();\r\n int productionPoint = reader.nextInt();\r\n Player newPlayer = new Player(name, gold, sciencePoint, productionPoint);\r\n this.players.add(newPlayer);\r\n\r\n int numOfCity = reader.nextInt();\r\n int numOfMin = reader.nextInt();\r\n\r\n for (int j = 0; j < numOfCity; j++) {\r\n int cityID = reader.nextInt();\r\n String cName = reader.next();\r\n int pop = reader.nextInt();\r\n int troops = reader.nextInt();\r\n int cropYields= reader.nextInt();\r\n\r\n City temp = new City(cityID, cName, pop, troops, cropYields);\r\n this.players.get(i).getCities().add(temp);\r\n }\r\n\r\n for (int j = 0; j < numOfMin; j++) {\r\n String mName = reader.next();\r\n int intel = reader.nextInt();\r\n int exp = reader.nextInt();\r\n int lead = reader.nextInt();\r\n\r\n if (mName.equals(\"Scientist\")) {\r\n Scientist temp = new Scientist(intel, exp, lead);\r\n this.players.get(i).getMinisters().add(temp);\r\n }\r\n else if (mName.equals(\"Economist\")) {\r\n Economist temp = new Economist(intel, exp, lead);\r\n this.players.get(i).getMinisters().add(temp);\r\n }\r\n else if (mName.equals(\"WarGeneral\")) {\r\n WarGeneral temp = new WarGeneral(intel, exp, lead);\r\n this.players.get(i).getMinisters().add(temp);\r\n }\r\n else {\r\n throw new InvalidMinisterTypeException(\"Only \\\"WarGeneral\\\", \\\"Scientist\\\" and \\\"Economist\\\" are allowed\");\r\n }\r\n }\r\n }\r\n }\r\n }", "public void readFromFile(String path) {\n try {\n ArrayList<String> list = new ArrayList<>(Files.readAllLines(Paths.get(path)));\n\n for (String info: list) {\n AddressEntry entry = new AddressEntry();\n ArrayList<String> entryList = new ArrayList<>(Arrays.asList(info.split(\",\")));\n entry.setFirstName(entryList.get(0).trim());\n entry.setLastName(entryList.get(1).trim());\n entry.setStreet(entryList.get(2).trim());\n entry.setCity(entryList.get(3).trim());\n entry.setState(entryList.get(4).trim());\n entry.setZip(Integer.parseInt(entryList.get(5).trim()));\n entry.setPhone(entryList.get(6).trim());\n entry.setEmail(entryList.get(7).trim());\n add(entry);\n }\n\n System.out.println(\"Read in \" + list.size() + \" new Addresses. Successfully loaded\");\n System.out.println(\"There are currently \" + addressEntryList.size() + \" Addresses in the Address Book.\");\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }", "private void loadAndProcessInput(){\n transactions_set = new ArrayList<>();\n strItemToInt = new HashMap<>();\n intToStrItem = new HashMap<>();\n \n try{\n BufferedReader br = new BufferedReader(\n new InputStreamReader(\n new FileInputStream(this.inputFilePath)\n ));\n \n String line;\n while((line = br.readLine()) != null){\n String[] tokens = line.split(\" \");\n ArrayList<Integer> itemsId = new ArrayList();\n \n for(String item : tokens){\n if( ! strItemToInt.containsKey(item)){\n strItemToInt.put(item, strItemToInt.size()+1);\n intToStrItem.put(strItemToInt.size(), item);\n }\n itemsId.add(strItemToInt.get(item));\n }\n transactions_set.add(itemsId);\n }\n }\n catch(IOException fnfEx){\n System.err.println(\"Input Error\");\n fnfEx.printStackTrace();\n }\n \n }", "public static ArrayList<Item> readFromFile() {\n\t\t\n\t\tPath writeFile = Paths.get(\"list.txt\");\n\t\tFile file = writeFile.toFile();\n\t\tArrayList<Item> itemList = new ArrayList<Item>();\n\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\t// this is a buffer and the benefit of using this is to is to store a block of\n\t\t\t// memory that\n\t\t\t// we can read data from later -- more efficient than Scanner\n\n\t\t\tBufferedReader reader = new BufferedReader(fr);\n\t\t\t// this is attempting to read the first line from the text document\n\t\t\tString line = \"\";\n\t\t\twhile ((line = reader.readLine()) != null) {\n\n\t\t\t\tString[] stringArray= line.split(\",\");\n\t\t\t\tItem item = new Item(Integer.parseInt(stringArray[0]), stringArray[1], stringArray[2],stringArray[3],Integer.parseInt(stringArray[4]),Double.parseDouble(stringArray[5]) );\n\t\t\t\titemList.add(item);\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"There were no items!\");\n\t\t}\n\t\treturn itemList;\n\t}", "public void addWarehouses(String fileName)\r\n {\r\n //read file \r\n try\r\n {\r\n //file reader\r\n FileReader fin = new FileReader(fileName);\r\n //create a new scanner\r\n Scanner graphFile1 = new Scanner(fin);\r\n\r\n //String variable \r\n String line;\r\n //while the file has next line\r\n while(graphFile1.hasNextLine())\r\n {\r\n //get the next line in the file\r\n line=graphFile1.nextLine();\r\n //create a new StringTokenizer at that line\r\n StringTokenizer st = new StringTokenizer(line);\r\n //read through that line\r\n try\r\n {\r\n //if there is only 1 string in this line\r\n if(st.countTokens()==1)\r\n {\r\n // pick up this String as the number of warehouse in total \r\n int numOfWarehouse = Integer.parseInt(st.nextToken());\r\n //continue to next iteration of the loop \r\n continue;\r\n }\r\n //if more than 1 String in the line\r\n //take the first String and store as the id of warehouse\r\n String id = (\"W\"+Integer.parseInt(st.nextToken()));\r\n //take the next String which contains the X coordinate of the warehouse\r\n String coordinateX = st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st1 = new StringTokenizer(coordinateX,\"(,\");\r\n //take the first String and store it as the x coordinate of this warehouse \r\n int x= Integer.parseInt(st1.nextToken());\r\n\r\n //take the next String which contains the Y coordinate of the warehouse\r\n String coordinateY = st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st2 = new StringTokenizer(coordinateY,\"):\");\r\n //take the first String and store it as the y coordinate of this warehouse \r\n int y= Integer.parseInt(st2.nextToken());\r\n //take the next String which contains number of truck of the warehosue\r\n String Truck =st.nextToken();\r\n //create a new StringTokenizer on this String\r\n StringTokenizer st3 = new StringTokenizer(Truck,\",\");\r\n //take the next String and store it as the number of trucks the warehouse has \r\n int numOfTruck =Integer.parseInt(st3.nextToken());\r\n\r\n //add the warehouse into the graph \r\n town.addWarehouse(x,y,id, numOfTruck);\r\n }\r\n catch(NumberFormatException e )\r\n { System.err.println( \"Skipping bad line \" + line ); }\r\n\r\n }\r\n\r\n }\r\n catch( IOException e )\r\n { System.err.println( e ); }\r\n\r\n \r\n }", "public int makePersonStructures(File inputFile) throws FileNotFoundException{\n\t\tArrayList<String> inputFileLines = new ArrayList<String>();\r\n\t\tScanner lineScanner = new Scanner(inputFile);\r\n\t\twhile(lineScanner.hasNextLine()){\r\n\t\t\tinputFileLines.add(lineScanner.nextLine());\r\n\t\t}\r\n\t\tlineScanner.close();\r\n\t\t\r\n\t\t//Now split those up by commas. \r\n\t\tfor(int i = 0; i < inputFileLines.size(); i++){\r\n\t\t\tScanner currentLineScanner = new Scanner(inputFileLines.get(i));\r\n\t\t\tcurrentLineScanner.useDelimiter(\",\");\r\n\t\t\tString personName = currentLineScanner.next();\r\n\t\t\tPerson toBeAdded = new Person();\r\n\t\t\ttoBeAdded.name = personName; //Put in the name.\r\n\t\t\t//Handle everything past the name:\r\n\t\t\tint numberOfBools = 0; //For making sure the input is formatted correctly.\r\n\t\t\tint numberOfTrues = 0; //For tracking how many available time slots there are for this person.\r\n\t\t\twhile(currentLineScanner.hasNext()){\r\n\t\t\t\tString currBool = currentLineScanner.next();\r\n\t\t\t\tint yesNoResult = yesOrNo(currBool);\r\n\t\t\t\tif(yesNoResult == 1){\r\n\t\t\t\t\ttoBeAdded.availabilityBooleans.add(true);\r\n\t\t\t\t\tnumberOfTrues++;\r\n\t\t\t\t}\r\n\t\t\t\telse if(yesNoResult == 0){\r\n\t\t\t\t\ttoBeAdded.availabilityBooleans.add(false);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcurrentLineScanner.close();\r\n\t\t\t\t\treturn -1; //Since one of the answers wasn't yes or no or whatever.\r\n\t\t\t\t}\r\n\t\t\t\tnumberOfBools++;\t\t\r\n\t\t\t}\r\n\t\t\tif(numberOfBools != toursInTheWeek){\r\n\t\t\t\tcurrentLineScanner.close();\r\n\t\t\t\treturn -2; //Since this person didn't have the right number of answers for availability. \r\n\t\t\t}\r\n\t\t\t//Update the number of available time slots for this person. \r\n\t\t\ttoBeAdded.numOfAvailableSlots = numberOfTrues;\r\n\t\t\tpersonList.add(toBeAdded);\r\n\t\t\tcurrentLineScanner.close();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public void read_file() throws FileNotFoundException, IOException {\n FileReader fw;\r\n BufferedReader rw;\r\n fw = new FileReader(\"dat.txt\");\r\n rw = new BufferedReader(fw);\r\n\r\n String s;\r\n Boy b;\r\n int i, at, intl, bud;\r\n nb = Integer.parseInt(rw.readLine());\r\n for (i = 1; i <= nb; i++) {\r\n s = rw.readLine();\r\n StringTokenizer st = new StringTokenizer(s, \",\");\r\n String name = st.nextToken();\r\n at = Integer.parseInt(st.nextToken());\r\n intl = Integer.parseInt(st.nextToken());\r\n bud = Integer.parseInt(st.nextToken());\r\n String type = st.nextToken();\r\n b = new Boy(name, at, intl, bud, type);\r\n boy_arr.add(b);\r\n }\r\n ng = Integer.parseInt(rw.readLine());\r\n Girl g;\r\n for (i = 1; i <= ng; i++) {\r\n s = rw.readLine();\r\n StringTokenizer st = new StringTokenizer(s, \",\");\r\n String name = st.nextToken();\r\n at = Integer.parseInt(st.nextToken());\r\n intl = Integer.parseInt(st.nextToken());\r\n bud = Integer.parseInt(st.nextToken());\r\n String type = st.nextToken();\r\n g = new Girl(name, at, intl, bud, type);\r\n girl_arr.add(g);\r\n }\r\n fw = new FileReader(\"gift.txt\");\r\n rw = new BufferedReader(fw);\r\n String ty, gid;\r\n int cs, vl,ngg;\r\n ngg = Integer.parseInt(rw.readLine());\r\n for (i = 1; i <= ngg; i++) {\r\n s = rw.readLine();\r\n StringTokenizer st = new StringTokenizer(s, \",\");\r\n gid = st.nextToken();\r\n cs = Integer.parseInt(st.nextToken());\r\n vl = Integer.parseInt(st.nextToken());\r\n ty = st.nextToken();\r\n Gift gf = new Gift(ty, cs, vl, gid);\r\n gift_arr.add(gf);\r\n }\r\n Collections.sort(gift_arr, new Compare());\r\n}", "public void readFiles() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open BufferedReader to open connection to tipslocation URL and read file\n\t\t\tBufferedReader reader1 = new BufferedReader(new InputStreamReader(tipsLocation.openStream()));\n\t\t\t\n\t\t\t// Create local variable to parse through the file\n\t String tip;\n\t \n\t // While there are lines in the file to read, add lines to tips ArrayList\n\t while ((tip = reader1.readLine()) != null) {\n\t tips.add(tip);\n\t }\n\t \n\t // Close the BufferedReader\n\t reader1.close();\n\t \n\t \n\t // Open BufferedReader to open connection to factsLocation URL and read file\n\t BufferedReader reader2 = new BufferedReader(new InputStreamReader(factsLocation.openStream()));\n\t \n\t // Create local variable to parse through the file\n\t String fact;\n\t \n\t // While there are lines in the file to read: parses the int that represents\n\t // the t-cell count that is associated with the line, and add line and int to \n\t // tCellFacts hashmap\n\t while ((fact = reader2.readLine()) != null) {\n\t \t\n\t \tint tCellCount = Integer.parseInt(fact);\n\t \tfact = reader2.readLine();\n\t \t\n\t tCellFacts.put(tCellCount, fact);\n\t }\n\t \n\t // Close the second BufferedReader\n\t reader2.close();\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"Error loading files\"); e.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void parseUserInput(String fileLocation){\n\n\t\t// Initialize instructor list and null string.\n\t\tinstructorList = new ArrayList <Instructor>();\n\t\tString line = null;\n\n\t\t// Open a buffered/file reader to read the input file.\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(System.getProperty(\"user.dir\") + \"/\" + fileLocation));\n\t\t\t// Read to the end of the file\n\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t// Split based on comma in line (CSV file)\n\t\t\t\tString[] dataLine = line.split(\",\");\n\t\t\t\t// # at beginning of line means comment\n\t\t\t\tif(dataLine[0].charAt(0) != '#'){\n\t\t\t\t\t// Add the instructor information to the ArrayList.\n\t\t\t\t\tinstructorList.add(new Instructor(dataLine[0], dataLine[1], dataLine[2], dataLine[3], Integer.parseInt(dataLine[4])));\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close the buffered reader\n\t\t\tbr.close();\n\n\t\t\t// Catch the exceptions and print the corresponding results.\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found. Exiting program.\");\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO Exception. Exiting program.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\n Scanner teamScanner = new Scanner(new File(\"teamInfo.txt\"));\n teamScanner.useDelimiter(\",\");\n ArrayList<Team> teams = new ArrayList<Team>();\n String teamName = teamScanner.next();\n String temp = teamScanner.next();\n double winLoss = Double.parseDouble(temp);\n String temp2 = teamScanner.next();\n double SRS = Double.parseDouble(temp2);\n teams.add(new Team(teamName, winLoss, SRS));\n while (teamScanner.hasNext()) {\n teamName = teamScanner.next();\n temp = teamScanner.next();\n temp2 = teamScanner.next();\n //System.out.println(\"t\" + temp);\n //System.out.println(\"x\" + teamName);\n winLoss = Double.parseDouble(temp);\n SRS = Double.parseDouble(temp2);\n\n\n teams.add(new Team(teamName.substring(2), winLoss, SRS));\n }\n\n // System.out.println(teams.get(0).name);\n //\n\n ArrayList<String> TeamsList = new ArrayList<String>();\n Scanner teamsListScanner = new Scanner(new File(\"competingTeams.txt\"));\n while(teamsListScanner.hasNextLine()){\n TeamsList.add(teamsListScanner.nextLine());\n }\n // System.out.println(TeamsList);\n //String names = teamsListScanner.next();\n//\n // ArrayList<String> competingString = new ArrayList<>();\n ArrayList<Team> competingTeams = new ArrayList<>();\n // System.out.println(teams.get(0).name);\n for (int i = 0; i < TeamsList.size(); i++)\n {\n for(int j = 0; j < teams.size(); j++)\n {\n // System.out.println(TeamsList.get(i));\n // System.out.println(teams.get(j).name);\n if (TeamsList.get(i).equalsIgnoreCase(teams.get(j).name))\n {\n competingTeams.add(teams.get(j));\n break;\n }\n }\n }\n for (int j = 1; j < 7; j++) {\n System.out.println(\"Winning Teams Round \" + j + \":\");\n ArrayList<Team> tempTeams = BracketRunner.RunRound(competingTeams);\n for (int i = 0; i < tempTeams.size(); i++) {\n System.out.println(tempTeams.get(i).name);\n }\n competingTeams = tempTeams;\n System.out.println(tempTeams.size());\n }\n // for (int i = 0; i < teams.size(); i++) {\n // System.out.println(teams.get(i).SRS);\n //}\n //g\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 }", "public void readFile(String file) throws FileNotFoundException {\n\t\tsc = new Scanner(new File(file));\n\t\tString firstLine = sc.nextLine();\n\t\tString [] breakFirstLine = firstLine.split(\" \");\n\t\tvillages = Integer.parseInt(breakFirstLine[0]);\n\t\tlines = Integer.parseInt(breakFirstLine[1]);\n\t\tSystem.out.println(\"villages: \" + villages + \"\\nlines: \" + lines);\n\t\tString line = \"\"; // current line\n\t\twhile(sc.hasNextLine()) { \n\t\t\tline = sc.nextLine();\n\t\t\tSystem.out.println(line);\n\t\t\tString[] breaks = line.split(\" \");\n\t\t\tString city1 = breaks[0];\n\t\t\tString city2 = breaks[1];\n\t\t\tString col = breaks[2];\n\t\t\tcolor = color(col);\n\t\t\tString route = breaks[3];\n\t\t\ttransit = transit(route);\n\t\t\tVillage a = new Village(city1);\n\t\t\tVillage b = new Village(city2);\n\t\t\t\n\t\t\tEdge e = new Edge(a, b, transit, color);\n\t\t\ta.addEdge(e);\n\t\t\tb.addEdge(e);\n\t\t\tg.addEdge(e);\n\t\t\t\n\t\t\tvertices.add(a);\n\t\t\tlast_transit = transit;\n\t\t\tlast_color = color;\n\t\t}\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}", "private static void readInputDataFromCSV(String pathToCSVfile) throws IOException {\n\n // open the file\n BufferedReader reader = new BufferedReader(new FileReader(pathToCSVfile));\n // read line by line\n String line = null;\n Scanner scanner = null;\n int index = 0;\n inputPlayersList = new ArrayList<>();\n\n while ((line = reader.readLine()) != null) {\n Player pl = new Player();\n scanner = new Scanner(line);\n scanner.useDelimiter(\",\");\n while (scanner.hasNext()) {\n String data = scanner.next();\n if (index == 0)\n pl.setLastName(data);\n else if (index == 1)\n pl.setFirstName(data);\n else if (index == 2)\n pl.setCountry(data);\n else if (index == 3)\n pl.setTicketNumber(data);\n else\n System.out.println(\"Incorrect data: \" + data);\n index++;\n }\n index = 0;\n inputPlayersList.add(pl);\n\n }\n //close reader\n reader.close();\n }", "public static void loadArrayList() throws IOException\n\t{\n\t\tString usersXPFile = \"UsersXP.txt\";\n\t\t\n\t\tFile file = new File(usersXPFile);\n\t\t\n\t\tScanner fileReader;\n\t\t\n\t\tif(file.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(file);\n\t\t\twhile(fileReader.hasNext())\n\t\t\t\tuserDetail1.add(userData.addNewuser(fileReader.nextLine().trim()));\n\t\t\tfileReader.close();\n\t\t}\n\t\telse overwriteFile(usersXPFile, \"\");\n\t\t\n\t\t\n\t}", "public void readFile() {\n ArrayList<Movement> onetime = new ArrayList<Movement>(); \n Movement newone = new Movement(); \n String readLine; \n\n File folder = new File(filefolder); \n File[] listOfFiles = folder.listFiles(); \n for (File file : listOfFiles) {\n if (file.isFile()&& file.getName().contains(\"200903\")) {\n try {\n onetime = new ArrayList<Movement>(); \n newone = new Movement(); \n BufferedReader br = new BufferedReader(new FileReader(filefolder+\"\\\\\"+file.getName())); \n readLine = br.readLine (); \n String[] previouline = readLine.split(\",\"); \n int previousint = Integer.parseInt(previouline[7]); \n while ( readLine != null) {\n String[] currentline = readLine.split(\",\"); \n if (Integer.parseInt(currentline[7]) == previousint)\n {\n newone.addRecord(currentline[0], currentline[1], currentline[2], currentline[4], currentline[5], currentline[6]); \n newone.ID = Integer.parseInt(currentline[7]); \n newone.filedate = file.getName();\n } else\n { \n onetime.add(newone); \n newone = new Movement(); \n newone.addRecord(currentline[0], currentline[1], currentline[2], currentline[4], currentline[5], currentline[6]);\n }\n previousint = Integer.parseInt(currentline[7]); \n readLine = br.readLine ();\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n rawdata.add(onetime);\n } \n }\n println(rawdata.size());\n}", "public static void loadcars() {\n Cars xx = new Cars();\n System.out.println(\"Load cars\");\n listcars.clear();\n try {\n File fileload = new File(\"cars.csv\");\n BufferedReader in = new BufferedReader(new FileReader(fileload));\n String st;\n while((st = in.readLine()) != null) {\n String[] strs = st.split(\"[,//;]\");\n addcar(strs[0], strs[1], strs[2],Integer.parseInt(strs[3]));\n }\n in.close();\n System.out.println(\"cars data restored from cars.csv\");\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n\n }", "private void readFile(File fp)throws IOException{\n Scanner in=new Scanner(fp);\n String line,s[];\n while(in.hasNext()){\n line=in.nextLine();\n s=line.split(\"[ ]+\");\n if(s.length<3){\n payroll.addLast(new ObjectListNode(new Employee(s[1],s[0])));\n }\n else{\n payroll.addLast(new ObjectListNode(new Employee(s[1],s[0],s[2].charAt(0),s[4].charAt(0),\n Integer.parseInt(s[3]),Double.parseDouble(s[5]))));\n }\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 }", "public void readUserFile (){\n try {\n FileReader reader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(reader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n Scanner s = new Scanner(line); //use of a scanner to parse the line and assign its tokens to different variables\n//each line corresponds to the values of a User object\n while(s.hasNext()){\n String usrname = s.next();\n String pass = s.next();\n User u = new User(usrname,pass);\n userlist.add(u);//added to the list\n }\n \n }\n reader.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public ArrayList loadItems (String file) {\n ArrayList<Item> itemList = new ArrayList<>();\n\n File itemFile = new File(file);\n\n Scanner scanner = null;\n\n try{\n scanner = new Scanner(itemFile);\n\n } catch (FileNotFoundException e){\n e.printStackTrace();\n }\n\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n String [] oneItem = line.split(\"=\");\n itemList.add(new Item(oneItem[0],Integer.parseInt(oneItem[1])));\n }\n\n\n return itemList;\n }", "public ArrayList<Room> readRoomFile(String path, HashMap<String, Item> itemStringHashMap, ArrayList<Suspect> suspectsArrayList)\n {\n // Create an empty items arrayList to be populated\n ArrayList<Room> roomsArray = new ArrayList<>();\n\n\n try(BufferedReader fileReader = new BufferedReader(new FileReader(path)))\n {\n // Reads file until the reader reaches the end of the file\n while((e = fileReader.readLine()) != null)\n {\n String[] info = e.split(\"/\");\n //Creates a new empty Room, itemArray, and exitArray every loop, and suspectArray that is specific to each room.\n Room r = new Room();\n ArrayList<Item> itemsArray = new ArrayList<>();\n ArrayList<String> exitsArray = new ArrayList<>();\n ArrayList<Suspect> suspectsArray = new ArrayList<>();\n\n // Loop to add items to rooms if item.location == room.getname\n for(Item item : itemStringHashMap.values())\n {\n // If the RoomName(Info[0]) is also the location of the Item Object\n // If they are equal, add the Item to the items in the room array.\n if(info[0].equalsIgnoreCase(item.getRoomLocation()))\n {\n itemsArray.add(item);\n }\n\n }\n\n //Takes the suspectArrayList of ALL suspects, add them to another suspect array specific to the room.\n for(Suspect s : suspectsArrayList)\n {\n // Checks suspect location, with room name to make sure suspects go in the right rooms.\n if(info[0].equalsIgnoreCase(s.getLocation()))\n {\n suspectsArray.add(s);\n }\n }\n\n // 2 Is the index where the room exits start on the file\n for(int i = 2; i < info.length; i++)\n {\n exitsArray.add(info[i]);\n }\n\n // Then construct the Room\n r.setName(info[0]);\n r.setDesc(info[1]);\n r.setContents(itemsArray);\n r.setSuspects(suspectsArray);\n\n //Convert array list to array as that's what is used in Room class\n String[] newArray = new String[exitsArray.size()];\n for(int i = 0; i < exitsArray.size(); i++)\n {\n newArray[i] = exitsArray.get(i);\n }\n r.setExits(newArray);\n\n //If the room is the bedroom, make inaccessible\n if(r.getName().equalsIgnoreCase(\"Bedroom\"))\n r.setType(RoomType.INACCESSIBLE);\n\n //Finally add the Room to an ArrayList of Rooms\n roomsArray.add(r);\n\n // Once the for loop ends, Room and itemsArray get renewed as empty.\n }\n }\n catch(IOException ex)\n {\n System.out.println(\"File not found\");\n }\n\n return roomsArray;\n }", "private void loadInventory(String fileName){\t\t\r\n\t\tList<String> list = new ArrayList<String>();\r\n\r\n\t\ttry (Stream<String> stream = Files.lines(Paths.get(fileName))) {\r\n\t\t\t//Convert it into a List\r\n\t\t\tlist = stream.collect(Collectors.toList());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfor(String itemList : list){\r\n\t\t\tString[] elements = itemList.split(\"--\");\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tswitch(elements[0].toUpperCase()){\r\n\t\t\t\t\tcase \"BURGER\":\r\n\t\t\t\t\t\t\tinventory.add(createBurger(elements));;\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"SALAD\":\r\n\t\t\t\t\t\t\tinventory.add(createSalad(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"BEVERAGE\":\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createBeverage(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"SIDE\":\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createSide(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"DESSERT\":\r\n\t\t\t\t\t\t\tinventory.add(createDessert(elements));;\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "public void read(){\n assert(inputStream.hasNext());\n\n while(inputStream.hasNextLine()){\n String line = inputStream.nextLine();\n String[] fields = line.split(\";\");\n\n //If Line is address line\n if(fields.length >= 4){\n Address adr = new Address(fields[0], fields[1], fields[2], fields[3]);\n if(fields.length == 5){\n parseGroups(fields[4], adr);\n }\n inputAddressList.add(adr);\n }\n\n //If Line is Group Line\n else if(fields.length <=3){\n Group group = new Group(fields[0], Integer.parseInt(fields[1]));\n if(fields.length == 3){\n parseGroups(fields[2], group);\n }\n inputGroupList.add(group);\n }\n }\n compose();\n assert(invariant());\n }", "private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}", "public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }", "private static ArrayList<Glootie> loadAliensFromFile(String pathToCSV) throws Exception{\r\n\t\tArrayList<Glootie> alienArray = new ArrayList<>();\r\n\t\tBufferedReader csvReader = new BufferedReader(new FileReader(pathToCSV));\r\n\t\t//Read and ignore header row:\r\n\t\tString row = csvReader.readLine();\r\n\t\t//Read remain data from CSV file\r\n\t\twhile ((row = csvReader.readLine()) != null) {\r\n\t\t\tString[] data = row.split(\",\");\r\n\t\t\t// Add new Glootie to array\r\n\t\t\talienArray.add(new Glootie(data));\r\n\t\t}\r\n\t\tcsvReader.close();\r\n\r\n\t\treturn alienArray;\r\n\t}", "public static void initializeInventory(File initialInventory,\n CS145LinkedList<BookData> inventory) {\n Scanner input = null;\n\n // Try opening file object for initial listing of inventory\n try {\n input = new Scanner(initialInventory);\n\n // If failure occurs throw exception\n } catch (FileNotFoundException ex) {\n System.out.println(\"Error: File \" + initialInventory.getName()\n + \"not found. Terminating Program.\");\n }\n // Otherwise begin reading file\n while(input.hasNextLine()) {\n\n String line = input.nextLine();\n Scanner lineScanner = new Scanner(line);\n\n // Read lines of txt file as tokes delimited by commas\n lineScanner.useDelimiter(\",\");\n\n // Try reading tokens of lines and save data to BookData Objects\n // of inventory\n try {\n String title = lineScanner.next();\n String ISBN = lineScanner.next();\n double price = lineScanner.nextDouble();\n String format = lineScanner.next();\n int stock = lineScanner.nextInt();\n\n // Create new book object using collected data\n Book aNewBook = new Book(title,ISBN,price,format);\n aNewBook.changeStock(stock);\n\n // Pass created Book object to new BookData object\n inventory.add(new BookData(aNewBook));\n\n // If failure occurs trying to save tokens in given way occurs,\n // throw InputMismatchException\n } catch (InputMismatchException ex) {\n System.out.println(\"Line : \" + line);\n System.out.println(\"Mismatched Token\" + lineScanner.next());\n }\n }\n }", "public void setHotelList(File[] myList, int myNumber, File[] myFolders, int myFolderNumber, ArrayList<Entrance> hotelEntrances){\r\n\t\t\t\tsubfolders = myFolders;\r\n\t\t\t\tfolderNumber = myFolderNumber;\r\n\t\t\t\thotelNumber = myNumber;\r\n\t\t\t\thotelList = null;\r\n\t\t\t\thotelList = new File[hotelNumber];\r\n\t\t\t\thotelList = myList;\r\n\t\t\t\thotels.clear();\r\n\t\t\t\tArrayList<Entrance> thisHotelEntrances = new ArrayList<Entrance>();\r\n\t\t\t\tgameHotelItems.clear();\r\n\t\t\t\tgameHotels.removeAll();\r\n\t\t\t\tfor(int i=0; i<hotelNumber; i++){\r\n\t\t\t\t\tString str = hotelList[i].getName(); \r\n\t List<String> niceList = Arrays.asList(str.split(\"\\\\.\"));\r\n\t for(int j=0; j<hotelEntrances.size(); j++){\r\n\t \tif(((MovementSquare)help_square[hotelEntrances.get(j).getI()][hotelEntrances.get(j).getJ()]).getLeftNeighbour().equals(niceList.get(0))){\r\n\t \t\tthisHotelEntrances.add(hotelEntrances.get(j));\r\n\t \t\tcontinue;\r\n\t \t}\r\n\t \tif(((MovementSquare)help_square[hotelEntrances.get(j).getI()][hotelEntrances.get(j).getJ()]).getRightNeighbour().equals(niceList.get(0))){\r\n\t \t\tthisHotelEntrances.add(hotelEntrances.get(j));\r\n\t \t\tcontinue;\r\n\t \t}\r\n\t \tif(((MovementSquare)help_square[hotelEntrances.get(j).getI()][hotelEntrances.get(j).getJ()]).getUpNeighbour().equals(niceList.get(0))){\r\n\t \t\tthisHotelEntrances.add(hotelEntrances.get(j));\r\n\t \t\tcontinue;\r\n\t \t}\r\n\t \tif(((MovementSquare)help_square[hotelEntrances.get(j).getI()][hotelEntrances.get(j).getJ()]).getDownNeighbour().equals(niceList.get(0))){\r\n\t \t\tthisHotelEntrances.add(hotelEntrances.get(j));\r\n\t \t\tcontinue;\r\n\t \t}\r\n\t }\r\n\t int maxBuildingLevel = findMaxLevel(i);\r\n\t\t\t\t\tHotel newHotel = new Hotel(help_square, niceList.get(0), thisHotelEntrances, maxBuildingLevel);\r\n\t\t\t\t\thotels.add(newHotel);\r\n\t\t\t\t\tsetHotelsPopUp(i);\r\n\t\t\t\t\tthisHotelEntrances.clear();\r\n\t\t\t\t}\r\n\t\t\t}", "public void open(String fileName){\r\n \tString inStr = \"\";\r\n \tString[] parts;\r\n \tString title = \"\";\r\n \tString author = \"\";\r\n \tString year = \"\";\r\n \tString availability = \"\";\r\n \tString type = \"\";\r\n \tString temp = \"\";\r\n \t\r\n \titems.clear();\r\n \t\r\n \ttry{\r\n \t BufferedReader ir = new BufferedReader(new FileReader(fileName + \".txt\"));\r\n \t while((inStr = ir.readLine()) != null){\r\n \t \t\t//First we have to split the string\r\n \t \t\t//at every comma, since the file \r\n \t \t\t//contains a comma seperated list.\r\n\t\tparts = inStr.split(\", \");\r\n\t\tif(parts.length == 1)\r\n\t\t\tcontinue;\r\n\r\n\t\t \r\n\t\tfor(int i = 0; i < parts.length; i++){\r\n\t\t\tString[] pts = parts[i].split(\": \");\r\n\t\t\t\r\n\t\t\t //A switch statement makes it a little\r\n\t\t\t //easier and cleaner when splitting up\r\n\t\t\t //the elements for the second time,\r\n\t\t\t //by the :\r\n\t\t\tswitch(i) {\r\n \t\t\t\tcase 0:\r\n \t\t\t\t\ttitle = pts[1];\r\n\t \t\t\tbreak;\r\n \t\t\t\tcase 1:\r\n \t\t\t\t\ttemp = pts[1];\r\n \t\t\t\tbreak;\r\n\t \t\t\tcase 2:\r\n \t\t\t\t\tavailability = pts[1];\r\n \t\t\t\tbreak;\r\n \t\t\t\tcase 3:\r\n \t\t\t\t\ttype = pts[1];\r\n\t \t\t\tbreak;\r\n \t\t\t}\r\n \t \t}\t\r\n \t \t\r\n \t \t\t//Type and Title are common to all items,\r\n \t \t\t//so we dont have to check the itemType\r\n \t \t\t//before printing this part.\r\n\t\tSystem.out.println(\"Type: \" + type);\t\r\n\t\tSystem.out.println(\"Title: \" + title);\r\n\t\t\r\n\t\t\t//Now we have to check if the type is a book\r\n\t\t\t//or a magazine, since the two will have\r\n\t\t\t//different information attached to them.\r\n \t\tif(type.equalsIgnoreCase(\"BOOK\")) {\r\n\t\t\tSystem.out.println(\"Author: \" + temp);\r\n\t\t\tBook b = new Book(title, temp);\r\n\t\t\tif(availability.equalsIgnoreCase(\"true\"))\r\n\t\t\t\tb.setAvailability(true);\r\n\t\t\telse\r\n\t\t\t\tb.setAvailability(false);\r\n\t\t\titems.add(b);\r\n \t\t} else {\r\n\t\t\tSystem.out.println(\"Year: \" + temp);\r\n\t\t\tMagazine b = new Magazine(title, Integer.parseInt(temp));\r\n\t\t\tSystem.out.println(\"Control: \" + availability);\r\n\t\t\tif(availability.equalsIgnoreCase(\"true\"))\r\n\t\t\t\tb.setAvailability(true);\r\n\t\t\telse\r\n\t\t\t\tb.setAvailability(false);\r\n\t\t\titems.add(b);\r\n \t\t}\r\n \t\t\r\n \t\t\t//Since Availability is also common to all items,\r\n \t\t\t//it can be printed here without testing the\r\n \t\t\t//itemType. \r\n\t\tSystem.out.println(\"Availability: \" + availability);\r\n\t\tSystem.out.println(\"\");\r\n\t }\r\n\r\n ir.close();\t//Close file when done.\r\n \t } catch (FileNotFoundException e) {\r\n System.out.println(\"ERROR: file not found\");\r\n } catch (IOException e) {\r\n System.out.println(\"ERROR: file I/O problem\");\r\n } catch (NullPointerException e){\r\n \tSystem.out.println(\"ERROR: Null Pointer.\");\r\n }\r\n }", "public void readPatientListFromFile()\r\n\t{\n\t\tnextPatientLocation = 0;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Makes file reader objects and passes filename\r\n\t\t\tFileReader fr = new FileReader(patientMasterfile);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\r\n\t\t\t//reads first line and makes a blank patient \r\n\t\t\tString aReadLine = br.readLine();\r\n\t\t\tPatient tempRead = new Patient();\r\n\t\t\t//loops through all lines in the file\r\n\t\t\twhile(aReadLine != null)\r\n\t\t\t{\r\n\t\t\t\t//resets patient to null\r\n\t\t\t\ttempRead = new Patient();\r\n\t\t\t\t//Splits the read in data and assigns that data to the appropriate attribute \r\n\t\t\t\tString[] splitPatientData = aReadLine.split(\"~~\");\r\n\r\n\t\t\t\ttempRead.patientID = splitPatientData[0];\r\n\t\t\t\ttempRead.forename = splitPatientData[1];\r\n\t\t\t\ttempRead.surname = splitPatientData[2];\r\n\t\t\t\ttempRead.username = splitPatientData[3];\r\n\t\t\t\ttempRead.password = splitPatientData[4];\r\n\t\t\t\ttempRead.houseNumber = splitPatientData[5];\r\n\t\t\t\ttempRead.postcode = splitPatientData[6];\r\n\t\t\t\ttempRead.telephoneNumber = splitPatientData[7];\r\n\t\t\t\ttempRead.dob = splitPatientData[8];\r\n\t\t\t\ttempRead.mode = splitPatientData[9];\r\n\t\t\t\t//adds patient to list and gets the next line\r\n\t\t\t\taddPatientToList(tempRead);\r\n\t\t\t\taReadLine = br.readLine();\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t//catches any exceptions trown by reading \r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error reading file, \");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public ArrayList<Location> parseData(BufferedReader reader) throws IOException {\n String line;\n\n reader.readLine();\n while (((line = reader.readLine()) != null)) {\n String[] array = line.split(\",\");\n float latitude = Float.valueOf(array[2]);\n float longitude = Float.valueOf(array[3]);\n// list.add(new Location(array[1], latitude, longitude, array[4], array[5], array[6], array[7], array[8], array[9], array[10]));\n Location newLocation = new Location(array[1], latitude, longitude, array[4], array[5], array[6], array[7], array[8], array[9], array[10]);\n _locations.add(newLocation);\n _nameMap.put(array[1], newLocation);\n }\n return _locations;\n }", "public void readInput(String fileName){\n\n BufferedReader reader;\n try {\n reader = new BufferedReader(new FileReader(fileName));\n String line = reader.readLine(); //read first line\n int numLine =1; //keep track the number of line\n while (line != null) {\n String[] tokens = line.trim().split(\"\\\\s+\"); //split line into token\n if(numLine==1){ //for the first line\n intersection = Integer.parseInt(tokens[0]); //set the number of intersection\n roadways = Integer.parseInt(tokens[1]); // set the number of roadways\n coor = new Coordinates[intersection];\n g = new Graph(intersection);//create a graph\n line = reader.readLine();\n numLine++;\n }\n else if(numLine>1&&numLine<intersection+2){ //for all intersection\n while(numLine>1&&numLine<intersection+2){\n tokens = line.trim().split(\"\\\\s+\");\n coor[Integer.parseInt(tokens[0])] = new Coordinates(Integer.parseInt(tokens[1]),Integer.parseInt(tokens[2])); //add into coor array to keep track the coor of intersection\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine ==intersection+2){ //skip the space line\n line = reader.readLine();\n numLine++;\n while(numLine<roadways+intersection+3){ // for all the roadways, only include the number of roadways mention in the first line\n tokens = line.trim().split(\"\\\\s+\");\n int fst = Integer.parseInt(tokens[0]);\n int snd = Integer.parseInt(tokens[1]);\n g.addEgde(fst,snd,coor[fst].distTo(coor[snd]));\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine >= roadways+intersection+3)\n break;\n }\n reader.close();\n } catch (FileNotFoundException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void fileRead(String fileName) {\n //System.out.println(\"in file read\");\n String typeProduct, idProduct, nameProduct, priceProduct, yearProduct, authorsProduct, publisherProduct, makerProduct;\n\n Scanner inputStream = null;\n try {\n inputStream = new Scanner(new FileInputStream(fileName));\n } catch (FileNotFoundException e) {\n System.out.println(\"the file was not there\");\n }\n String fileLine = null;\n while (inputStream.hasNextLine()) {\n fileLine = inputStream.nextLine();\n //System.out.println(fileLine);\n\n if (fileLine.contains(\"type\") && fileLine.length() != 0) {\n //System.out.println(\"Type statement\");\n typeProduct = fileLine.substring(8, fileLine.length() - 1); //this creates a substring from the file that has the product type. it lets you have the product type without quotes.\n //System.out.println(typeProduct);\n\n //parse productId\n fileLine = inputStream.nextLine();\n idProduct = fileLine.substring(13, fileLine.length() - 1);\n //System.out.println(\"id product\");\n //System.out.println(idProduct);\n\n //now parsing name\n fileLine = inputStream.nextLine();\n //System.out.println(\"now parsing name\");\n nameProduct = fileLine.substring(8, fileLine.length() - 1);\n //System.out.println(\"name Product\");\n //System.out.println(nameProduct);\n\n //now parsing price\n fileLine = inputStream.nextLine();\n priceProduct = fileLine.substring(9, fileLine.length() - 1);\n //System.out.println(priceProduct);\n Double priceProductDouble = 0.0;\n try {\n priceProductDouble = Double.parseDouble(priceProduct);\n } catch (NumberFormatException e) {\n System.out.println(\"invalid price format\");\n }\n //System.out.println(priceProductDouble);\n\n //now parsing year\n fileLine = inputStream.nextLine();\n yearProduct = fileLine.substring(8, fileLine.length() - 1);\n //System.out.println(yearProduct);\n int yearProductInt = 0;\n try {\n yearProductInt = Integer.parseInt(yearProduct);\n } catch (NumberFormatException e) {\n System.out.println(\"invalid year in the file\");\n }\n\n if (typeProduct.equalsIgnoreCase(\"book\")) {\n //System.out.println(\"this is book\");\n\n //now parsing authors\n fileLine = inputStream.nextLine();\n authorsProduct = fileLine.substring(11, fileLine.length() - 1);\n //System.out.println(priceProduct);\n\n //now parsing publlishers\n fileLine = inputStream.nextLine();\n publisherProduct = fileLine.substring(13, fileLine.length() - 1);\n //System.out.println(publisherProduct);\n try{\n Product addProduct = new Book(idProduct, nameProduct, yearProductInt, priceProductDouble, authorsProduct, publisherProduct);\n \n productList.add(addProduct);\n \n nameProduct = nameProduct.toLowerCase();\n \n addToMap(nameProduct);\n \n } catch (Exception error){\n System.out.println(error.getMessage());\n ProductGUI.Display(error.getMessage() + \"\\n\");\n }\n \n\n } else if (typeProduct.equalsIgnoreCase(\"electronics\")) {\n //System.out.println(\"electronic\");\n //now parsing publlishers\n fileLine = inputStream.nextLine();\n makerProduct = fileLine.substring(9, fileLine.length() - 1);\n //System.out.println(makerProduct);\n \n try{\n Product addProduct = new Electronics(idProduct, nameProduct, yearProductInt, priceProductDouble, makerProduct);\n productList.add(addProduct);\n nameProduct = nameProduct.toLowerCase();\n addToMap(nameProduct);\n }catch(Exception error){\n System.out.println(error.getMessage());\n ProductGUI.Display(error.getMessage() + \"\\n\");\n }\n \n }\n\n }\n\n }\n System.out.println(\"Reading File: Successful\");\n }", "public void readDrugs() {\n\t\tBufferedReader br;\n\t\tString s;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(\"drugs.txt\"));\n\n\t\t\twhile ((s = br.readLine()) != null) {\n\t\t\t\tString[] fields = s.split(\", \");\n\n\t\t\t\tString name = fields[0];\n\t\t\t\tString chemName = fields[1];\n\t\t\t\tString ingredients = fields[2];\n\t\t\t\tString manufComp = fields[3]; // manufacturing company\n\t\t\t\tString type = fields[4];\n\t\t\t\tString conditions = fields[5];\n\t\t\t\tString contra = fields[6]; // contraindications\n\t\t\t\tDrugs drug = new Drugs(name, chemName, ingredients, manufComp, type, conditions, contra);\n\t\t\t\tdrugs.add(drug);\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public void data() {\n\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(\"/Users/macbook_user/Desktop/OOP Project/List.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return;\n }\n\n String[] columnName\n = {\"Id\", \"Name\", \"Amount\", \"Shelf#\", \"Position\"};\n int i, index;\n String line;\n try {\n br.readLine();\n while ((line = br.readLine()) != null) {\n index = 0;\n String[] se = line.split(\" \");\n Map<String, Object> item = new HashMap<>();\n for (i = 0; i < se.length; i++) {\n if (\"\".equals(se[i])) {\n continue;\n }\n if (index >= columnName.length) {\n continue;\n }\n item.put(columnName[index], se[i]);\n index++;\n }\n\n //get the amount of the item from the list\n int amount = Integer.parseInt((String) item\n .get(columnName[2]));\n\n // if amount greater than 0, Existence is Y, else N\n if (amount > 0) {\n item.put(\"Existence\", \"Y\");\n } else {\n item.put(\"Existence\", \"N\");\n }\n\n inventory.add(item);// add item to ArrayList\n }\n br.close();\n\n outPutFile();\n } catch (IOException e) {\n }\n\n }", "public static void adminUploadFlight(String filepath) throws FileNotFoundException {\r\n Scanner sc = new Scanner(new FileInputStream(filepath));\r\n String[] flightData;\r\n Flight flight;\r\n while (sc.hasNextLine()) {\r\n flightData = sc.nextLine().split(\",\");\r\n // FlightID, DepartureDate/time, ArrivalDate/time, Airline, Origin, Destination, price\r\n try {\r\n\r\n flight = new Flight(flightData[0], flightData[1], flightData[2], flightData[3],\r\n flightData[4], flightData[5], Double.parseDouble(flightData[6]),\r\n Integer.parseInt(flightData[7]));\r\n\r\n // get the FlightMap\r\n Map<String, Flight> tempFlightMap = getFlightMap();\r\n // if temFlightMap contains the above flight's id then set that flight to this\r\n // new flight.\r\n if (tempFlightMap.containsKey(flight.getFlightNumber())) {\r\n // get the flight that exists and update the flights info as needed\r\n // start at index 1 as the flight number(i.e. id) stays same\r\n // the index matches the constructor of Flight object\r\n tempFlightMap.get(flight.getFlightNumber()).setDepartureTime(flightData[1]);\r\n tempFlightMap.get(flight.getFlightNumber()).setArrivalTime(flightData[2]);\r\n tempFlightMap.get(flight.getFlightNumber()).setAirline(flightData[3]);\r\n tempFlightMap.get(flight.getFlightNumber()).setOrigin(flightData[4]);\r\n tempFlightMap.get(flight.getFlightNumber()).setDestination(flightData[5]);\r\n tempFlightMap.get(flight.getFlightNumber()).setPrice(Double.parseDouble(flightData[6]));\r\n tempFlightMap.get(flight.getFlightNumber()).setNumSeats(Integer.parseInt(flightData[7]));\r\n } else { // else since the new flight doesn't exist just add it to the FlightMap\r\n addFlight(flight);\r\n }\r\n } catch (NumberFormatException | ParseException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }\r\n sc.close();\r\n }", "public void readFile() throws NumberFormatException,FileNotFoundException {\n Scanner scanStar, scanMessier, scanPlanet;\n String raw_data;\n String[] values;\n Set<String> identifyName = new HashSet<>();\n // Create scanner to scan file\n scanStar = new Scanner(new File(filename[0]));\n scanMessier = new Scanner(new File(filename[1]));\n scanPlanet = new Scanner(new File(filename[2]));\n\n // Read data about Star and store\n Star star;\n while (scanStar.hasNext()){\n raw_data = scanStar.nextLine();\n values = processData(raw_data, 1);\n // Check whether there is the same object or the data is wrong\n if (values.length != 7 || identifyName.contains(values[0])){\n System.out.println(\"There are some mistakes in Star file\");\n System.exit(1);\n }\n star = new Star();\n star.setNumber(values[0]);\n star.setRa(Double.parseDouble(values[1]));\n star.setDecl(Double.parseDouble(values[2]));\n star.setMagn(Double.parseDouble(values[3]));\n star.setDistance(Double.parseDouble(values[4]));\n star.setType(values[5]);\n star.setConstellation(values[6]);\n // Add object to collection\n aos.add(star);\n identifyName.add(star.getNumber());\n }\n scanStar.close();\n\n // Read data about Messier and store\n Messier messier;\n while (scanMessier.hasNext()){\n raw_data = scanMessier.nextLine();\n values = processData(raw_data, 1);\n if (values.length < 6 || identifyName.contains('M' + values[0])){\n System.out.println(\"There are some mistakes in Messier file\");\n System.exit(1);\n }\n messier = new Messier();\n messier.setNumber(\"M\" + values[0]);\n messier.setRa(Double.parseDouble(values[1]));\n messier.setDecl(Double.parseDouble(values[2]));\n messier.setMagn(Double.parseDouble(values[3]));\n messier.setDistance(Double.parseDouble(values[4]));\n messier.setConstellation(values[5]);\n if (values.length == 7){\n messier.setDescription(values[6]);\n }else {\n messier.setDescription(\"-\");\n }\n // Add object to collection\n aos.add(messier);\n identifyName.add(messier.getNumber());\n }\n scanMessier.close();\n\n // Read data about Planet and store\n Planet planet;\n while (scanPlanet.hasNext()){\n raw_data = scanPlanet.nextLine();\n values = processData(raw_data, 0);\n if (values.length != 6 || identifyName.contains(values[0])){\n System.out.println(\"There are some mistakes in Planet file\");\n System.exit(1);\n }\n planet = new Planet();\n planet.setName(values[0]);\n planet.setRa(Double.parseDouble(values[1]));\n planet.setDecl(Double.parseDouble(values[2]));\n planet.setMagn(Double.parseDouble(values[3]));\n planet.setDistance(Double.parseDouble(values[4]));\n planet.setAlbedo(Double.parseDouble(values[5]));\n // Add object to collection\n aos.add(planet);\n identifyName.add(planet.getName());\n }\n scanPlanet.close();\n }", "private void loadPlanets(Scanner sc){\n\t\twhile(sc.hasNextLine()){\n\t\t\tString line = sc.nextLine();\n\t\t\tString [] split = line.split(\",\");\n\t\t\t\n\t\t\ttry{\n\t\t\t\tdouble x = Double.parseDouble(split[1]);\n\t\t\t\tdouble y = Double.parseDouble(split[2]);\n\t\t\t\tint population = Integer.parseInt(split[3]);\n\t\t\t\tgalaxy.put(split[0], new Planet(split[0], x, y, population));\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(\"Data can't be loaded\");\n\t\t\t}\n\t\t}\n\t}", "private void loadNeighbours(String file){\n\t\tString neighbour = null;\n\t\ttry{\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tScanner sc = new Scanner(br);\n\t\t\t\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\tString planetName = sc.nextLine();\n\t\t\t\tneighbour = sc.nextLine();\n\t\n\t\t\t\twhile(!(neighbour.equals(\"#\"))){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tString split [] = neighbour.split(\",\");\n\t\t\t\t\t\tasignNeighbours(split, planetName);\n\t\t\t\t\t\t\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Data can't be loaded\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\tneighbour = sc.nextLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\tsc.close();\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"File not found: SpaceProgramNeghbours.txt\");\n\t\t}\n\t}", "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 static void openF(){\n Scanner in = new Scanner(System.in);\n \n String Name;\n\tString Code;\n\tString Capital;\n\tlong Population;\n\tlong GDP;\n\tString HappinessRank;\n int GDPperCapita;\n \n \n Country country;\n \n \n Scanner stream;\n \n File file = new File(fName);\n \n if(!file.exists()){\n System.out.println(\"File does not exist.\");\n }\n else\n\n \n try{\n stream = new Scanner(file);\n stream.nextLine();\n stream.useDelimiter(\",|\\\\n\");\n \n while(stream.hasNext()){\n Name = stream.next();\n Code = stream.next();\n Capital = stream.next();\n Population = Long.parseLong(stream.next());\n GDP = new BigDecimal(stream.next()).longValue();\n HappinessRank = NumberFormat.getIntegerInstance(Locale.US).format(stream.nextInt());\n GDPperCapita = (int) (GDP/ Population);\n \n \n \n country = new Country (Name, Code, Capital, Population, GDP, HappinessRank, GDPperCapita);\n \n \n \n \n \n if(country.getGDPperCapita()< 1000)\n POOR.insert(country);\n \n \n else if(country.getGDPperCapita() >= 1000 && country.getGDPperCapita() < 5000)\n FAIR.insert(country);\n \n \n else if(country.getGDPperCapita() >= 5000 && country.getGDPperCapita() < 20000)\n GOOD.insert(country);\n \n \n else if(country.getGDPperCapita() >= 20000 && country.getGDPperCapita() < 50000)\n VGOOD.insert(country);\n \n \n else \n EXCELLENT.insert(country);\n \n \n \n \n } stream.close();\n System.out.println(\"\");\n \n }\n \n catch(IOException e){\n e.printStackTrace();\n } \n \n }", "private void importarDatos() {\r\n // Cabecera\r\n System.out.println(\"Importación de Datos\");\r\n System.out.println(\"====================\");\r\n\r\n // Acceso al Fichero\r\n try (\r\n FileReader fr = new FileReader(DEF_NOMBRE_FICHERO);\r\n BufferedReader br = new BufferedReader(fr)) {\r\n // Colección Auxiliar\r\n final List<Item> AUX = new ArrayList<>();\r\n\r\n // Bucle de Lectura\r\n boolean lecturaOK = true;\r\n do {\r\n // Lectura Linea Actual\r\n String linea = br.readLine();\r\n\r\n // Procesar Lectura\r\n if (linea != null) {\r\n // String > Array\r\n String[] items = linea.split(REG_CSV_LECT);\r\n\r\n // Campo 0 - id ( int )\r\n int id = Integer.parseInt(items[DEF_INDICE_ID]);\r\n\r\n // Campo 1 - nombre ( String )\r\n String nombre = items[DEF_INDICE_NOMBRE].trim();\r\n\r\n // Campo 2 - precio ( double )\r\n double precio = Double.parseDouble(items[DEF_INDICE_PRECIO].trim());\r\n\r\n // Campo 3 - color ( Color )\r\n Color color = UtilesGraficos.generarColor(items[DEF_INDICE_COLOR].trim());\r\n\r\n // Generar Nuevo Item\r\n Item item = new Item(id, nombre, precio, color);\r\n\r\n // Item > Carrito\r\n AUX.add(item);\r\n// System.out.println(\"Importado: \" + item);\r\n } else {\r\n lecturaOK = false;\r\n }\r\n } while (lecturaOK);\r\n\r\n // Vaciar Carrito\r\n CARRITO.clear();\r\n\r\n // AUX > CARRITO\r\n CARRITO.addAll(AUX);\r\n\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"Datos importados correctamente\");\r\n } catch (NumberFormatException | NullPointerException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Formato de datos incorrecto\");\r\n\r\n // Vaciado Carrito\r\n CARRITO.clear();\r\n } catch (IOException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Acceso al fichero\");\r\n }\r\n }", "public void readFromFile() {\n //reading text from file\n\n try {\n Scanner scanner = new Scanner(openFileInput(\"myTextFile.txt\"));\n\n while(scanner.hasNextLine()){\n\n String line = scanner.nextLine();\n\n String[] lines = line.split(\"\\t\");\n\n System.out.println(lines[0] + \" \" + lines[1]);\n\n toDoBean newTask = new toDoBean(lines[0], lines[1], 0);\n // System.out.println(line);\n sendList.add(newTask);\n\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void readListFromFile() {\n // clear existing list\n if (listArr == null || listArr.size() > 0) {\n listArr = new ArrayList<>();\n }\n\n try {\n Scanner scan = new Scanner(openFileInput(LIST_FILENAME));\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n listArr.add(line);\n }\n\n if (listAdapter != null) {\n listAdapter.notifyDataSetChanged();\n }\n\n } catch (IOException ioe) {\n Log.e(\"ReadListFromFile\", ioe.toString());\n }\n\n }", "public void readFromRestaurantFile()\r\n {\r\n try(ObjectInputStream fromRestaurantFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/restaurant.dta\")))\r\n {\r\n restaurant = (Restaurant) fromRestaurantFile.readObject();\r\n }\r\n catch(ClassNotFoundException cnfe)\r\n {\r\n restaurant = new Restaurant();\r\n JOptionPane.showMessageDialog(null, \"Fant ikke definisjon av mat og \"\r\n + \"drikke objektene.\\nOppretter tomt \"\r\n + \"menyregister.\\n\" + cnfe.getMessage(), \r\n \"Feilmelding\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n restaurant = new Restaurant();\r\n JOptionPane.showMessageDialog(null, \"Finner ikke angitt fil.\\n\"\r\n + \"Oppretter tomt menyregister.\\n\" \r\n + fnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(IOException ioe)\r\n\t{\r\n restaurant = new Restaurant();\r\n JOptionPane.showMessageDialog(null, \"Fikk ikke lest fra filen.\\n\"\r\n + \"Oppretter tomt menyregister.\\n\"\r\n + ioe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n }", "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<Player> importPlayerData() {\n \n try {\n //Try to access player.csv in the given directory\n\t\t\tFile file = new File(\"data\\\\player.csv\");\n Scanner fileIn = new Scanner(file);\n \n fileIn.skip(\"userName,fullName,password,gold,exp,noOfLand\");\n \n\t\t\t//Use comma as delimiter in extracting various player info\n\t\t\tfileIn.useDelimiter(\",|\\r\\n|\\n\");\n \n while (fileIn.hasNext()) {\n String userName = fileIn.next().trim();\n String fullName = fileIn.next().trim();\n String password = fileIn.next().trim();\n int gold = fileIn.nextInt();\n int exp = fileIn.nextInt();\n\t\t\t\tint noOfLand = fileIn.nextInt();\n\t\t\t\t\n\t\t\t\t//Create new players based on extracted info\n Player player = new Player(userName, fullName, password, gold, exp, noOfLand);\n\t\t\t\t\n\t\t\t\t//Add players to playerList\n playerList.add(player);\n }\n \n }\n \n catch (IOException e) {\n //Specify the location of IOException\n\t\t\te.printStackTrace();\n }\n\t\t\n\t\treturn playerList;\n\t}" ]
[ "0.7026311", "0.6635398", "0.65339583", "0.6498729", "0.64491934", "0.63483876", "0.6342134", "0.6335108", "0.63272756", "0.6299369", "0.62832147", "0.62414336", "0.62261766", "0.6208646", "0.6191184", "0.6151695", "0.6132338", "0.6106547", "0.61042607", "0.60937184", "0.6076456", "0.60762805", "0.6067898", "0.6058618", "0.6044961", "0.6032378", "0.60181916", "0.6013014", "0.5994323", "0.5992508", "0.59534323", "0.59525067", "0.59499735", "0.5948594", "0.59395844", "0.5936371", "0.59188586", "0.59165823", "0.5902824", "0.58798736", "0.5869299", "0.5858197", "0.5848214", "0.5847511", "0.5837157", "0.5832546", "0.5827269", "0.5817358", "0.58128166", "0.58120733", "0.5809685", "0.58035105", "0.5798613", "0.5797128", "0.57942396", "0.5776101", "0.5772316", "0.57653505", "0.5764034", "0.5758563", "0.5758141", "0.5741552", "0.5741243", "0.57375455", "0.57357484", "0.57282495", "0.57239765", "0.5721219", "0.57176447", "0.5703574", "0.56963557", "0.56891537", "0.56867623", "0.5685945", "0.56758094", "0.56607056", "0.5653542", "0.56458116", "0.5645447", "0.56385154", "0.56363887", "0.56357694", "0.56351876", "0.5630686", "0.5606012", "0.56045216", "0.56011224", "0.5595268", "0.5586639", "0.5572992", "0.55709404", "0.55677503", "0.5567003", "0.55459213", "0.5545293", "0.55429196", "0.5533529", "0.55245334", "0.55063224", "0.549876" ]
0.6959296
1
Get whether this button is pressed
@Override public boolean get() { return this.joystick.getPOV() == this.angle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isButtonPressed() {\n return button.isPressed();\n }", "public boolean isPressed() {\n\t\treturn get();\n\t}", "public boolean isButtonPressed(int playerNum) {\r\n return button.pressed;\r\n }", "public boolean getButtonPressed(Button button) {\n return getButtonPressed(button.getNumber());\n }", "public boolean isButton() {\n return this.type == Type.BUTTON;\n }", "boolean getButtonRelease(Buttons but);", "public boolean getClicked(){\n return this.isPressed;\n }", "public boolean pressed() {\n return pressed;\n }", "public boolean getAButton() {\n\t\treturn getRawButton(A_Button);\n\t}", "public boolean wasButtonJustPressed(int playerNum) {\r\n if (button.clicked) {\r\n button.clicked = false;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean getButton(Button button) {\n return getButton(button.getNumber());\n }", "public boolean getAButton() {\n\t\treturn getRawButton(A_BUTTON);\n\t}", "public boolean isClicked() { return clicked; }", "public boolean getButton(XboxController.Button inputButton) {\n\t\treturn this.getRawButton(inputButton.value);\n\t}", "public boolean get() {\n\t\t\tint i = 0; \n\t\t\twhile(i < buttons.length) {\n\t\t\t\tif (!buttons[i].get()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean getBButton() {\n\t\treturn getRawButton(B_Button);\n\t}", "public boolean getIsOperator_GearStartSequence_BtnJustPressed()\n\t{\n\t\treturn super.getIsOperatorBlueBtnXJustPressed();\n\t}", "public boolean isPressed(int b) {\n if (b >= 0 && b < buttonPressed.length) {\n return buttonPressed[b] && !buttonLastPressed[b];\n } else {\n return false;\n }\n }", "public boolean buttonPressed(Button button) {\n return (!buttonsPressed.get(button.getId()) && joystick.getRawButton(button.getId()));\n }", "public boolean isClicked() {\n\t\treturn clicked;\n\t}", "public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}", "public boolean getButtonHeld(Button button) {\n return getButtonHeld(button.getNumber());\n }", "@SuppressWarnings(\"unused\")\n\tprivate boolean wasAnyButtonPressed() {\n\t\tfor (ArcadeButton button : buttons) {\n\t\t\tif (button.getPressCounter() > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean getPilotButton(int button) {\n return pilot.getRawButton(button);\n }", "public boolean getBButton() {\n\t\treturn getRawButton(B_BUTTON);\n\t}", "public boolean getRocketBoxButton(int button) {\n return rocketBox.getRawButton(button);\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\n return okClicked;\n }", "public boolean isOkClicked() {\n return okClicked;\n }", "protected abstract boolean up(int button);", "public boolean getIsClick() {return isClick;}", "public boolean hasButton(String key) {\n return !getGUIButtons(key).isEmpty();\n }", "public boolean getIsOperator_FuelInfeed_BtnPressed()\n\t{\n\t\treturn super.getIsOperatorLeftBumperBtnPressed();\n\t}", "private boolean isPressed(KeyCode key) {\n \t\n return keys.getOrDefault(key, false);\n }", "public boolean getButtonReleased(Button button) {\n return getButtonReleased(button);\n }", "public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\tif(GameMouse.getInstance().getY() < y || GameMouse.getInstance().getY() > y + height) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\treturn GameMouse.getInstance().isClicked(GameMouse.LEFT_BUTTON);\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButtons.get(cursor.controller), ControllerButtons.A)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n\n// Otherwise, if the cursor is using a keyboard and the select button is pressed, return true\n } else {\n if (Gdx.input.isKeyJustPressed(Keys.MENU_SELECT)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n }\n }\n// If none of these events occur, return false\n return false;\n }", "public boolean wasJustPressed() {\n\t\treturn (mNow && (!mLast));\n\t}", "private boolean isPressed(KeyCode key) {\n\t\treturn keys.getOrDefault(key, false);\n\t}", "public boolean isOkClicked() {\r\n\t\treturn okClicked;\r\n\t}", "public boolean isDown() {\n return pm.pen.hasPressedButtons();\n }", "public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "protected boolean hasPositiveButton() {\n return false;\n }", "boolean hasAction();", "boolean hasAction();", "public boolean isMouseClicked() {\n\t\treturn input.isMouseClicked();\n\t}", "boolean hasCurrentAction();", "public boolean getCopilotButton(int button) {\n return copilot.getRawButton(button);\n }", "public boolean isCancelled()\n\t{\n\t\treturn _buttonHit;\n\t}", "public boolean getXButton() {\n\t\treturn getRawButton(X_Button);\n\t}", "public static boolean getButton(int index) {\n\t\treturn SmartDashboard.getBoolean(\"DB/Button \" + index, false);\n\t}", "boolean hasClickView();", "public boolean getYButton() {\n\t\treturn getRawButton(Y_Button);\n\t}", "public boolean isSwitchPressed() {\n\t\treturn !lightSwitch.get();\n\t}", "public boolean isCardClicked(){\n\t\treturn cardClicked;\n\t}", "public boolean getActionJustPressed(String name) {\n synchronized(actions) {\n InputAction action = actions.get(name);\n return action != null && action.getJustPressed(this);\n }\n }", "boolean isShutterPressed();", "@Override\n\tpublic boolean takeControl() {\n\t\tir.fetchSample(irSample, 0);\n\t\treturn isPressed() == true;\n\t}", "public boolean isKeyAvailable(String key) {\n return guiButtons.containsKey(key);\n }", "@Override\n\tpublic boolean takeControl() {\n\t\treturn (touch_r.isPressed() || touch_l.isPressed());\n\t}", "public boolean getXButton() {\n\t\treturn getRawButton(X_BUTTON);\n\t}", "public boolean isSearchButtonActivated() {\n\t\tboolean result;\n\t\tlog.debug(\"Getting window handles\");\n\t\tArrayList<String> tabs1 = new ArrayList<String>(\n\t\t\t\tdriver.getWindowHandles());\n\t\tlog.debug(\"Clicking on search button\");\n\t\tdriver.findElement(search_button).click();\n\t\tlog.debug(\"Getting window handles\");\n\t\tArrayList<String> tabs2 = new ArrayList<String>(\n\t\t\t\tdriver.getWindowHandles());\n\t\tif (tabs1.size() == tabs2.size())\n\t\t\tresult = false;\n\t\telse\n\t\t\tresult = true;\n\t\tlogger.log(Status.INFO, \"Search button is activated: \" + result);\n\t\tlog.info(\"Search button is activated: \" + result);\n\t\treturn result;\n\t}", "protected abstract boolean down(int button);", "public boolean isMouseButtonDown(int keyCode) {\n\t\treturn input.isMouseButtonDown(keyCode);\n\t}", "public boolean ButtonStatusToRoundTrip(){\n\n wait.until(ExpectedConditions.elementSelectionStateToBe(roundTripButton,false));\n roundTripButton.click();\n System.out.println(\"Round Trip button is clicked\");\n do {\n return true;\n }\n while (roundTripButton.isSelected());\n\n\n }", "@Override\n\tpublic boolean activate() {\n\t\tfinal Component CANCEL_BUTTON = CONSTS.CANCEL_BUTTON;\n\t\treturn ctx.backpack.select().id(CONSTS.fletching.getId()).count() >= 1\n\t\t\t\t&& !CANCEL_BUTTON.valid() \n\t\t\t\t&& !CANCEL_BUTTON.visible();\n\t}", "@Override\r\n\tpublic int buttonPressed() {\n\t\tif ( state == 0)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Total Button Pressed\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}", "public boolean getYButton() {\n\t\treturn getRawButton(Y_BUTTON);\n\t}", "public boolean isSelected_click_Digital_coupons_button(){\r\n\t\tif(click_Digital_coupons_button.isSelected()) { return true; } else { return false;} \r\n\t}", "public boolean getSquareButton() {\n\t\treturn getRawButton(SQUARE_BUTTON);\n\t}", "public boolean canProceedWithTapAction() {\n return ClickDelayHelper.canProceedWithTapAction();\n }", "public boolean isSelected_click_ActivateCoupon_Button(){\r\n\t\tif(click_ActivateCoupon_Button.isSelected()) { return true; } else { return false;} \r\n\t}", "public boolean isMouseClicked(){\n\t\treturn mouseClick;\n\t}", "public boolean isSelected_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isSelected()) { return true; } else { return false;} \r\n\t}", "public boolean isTriggered ( @NotNull final KeyEvent event )\n {\n return areControlsTriggered ( event ) && isKeyTriggered ( event );\n }", "@OnlyIn(Dist.CLIENT)\n\tprivate boolean isPressing(int key){\n\t\tlong window = Minecraft.getInstance().getMainWindow().getHandle();\n\t\treturn GLFW.glfwGetKey(window, key) == GLFW.GLFW_PRESS;\n\t}", "boolean hasActionCommand();", "public abstract boolean nextOrFinishPressed();", "public boolean didUserClick(){\n return userClick;\n }", "@Override\n public boolean isPressed(Action query) {\n for (InputEventTranslator t : translators) {\n if (t.isPressed(query))\n return true;\n }\n\n return false;\n }", "public boolean isEnabled_click_Digital_coupons_button(){\r\n\t\tif(click_Digital_coupons_button.isEnabled()) { return true; } else { return false;} \r\n\t}", "public boolean getRawButton(int i) throws Exception{\n \ti-=1;\n \tif (i >= 0 && i < buttonCount)return (buttonState & (1 << i))!=0;\n \tthrow new Exception(String.format(\"Button %d does not exist\", i));\n }", "public void onButtonAPressed();", "public boolean isEnabled_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isEnabled()) { return true; } else { return false;} \r\n\t}", "public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean isUserChoice() {\n return ACTION_UserChoice.equals(getAction());\n }", "public boolean raceSelected(){\n\t\tif(btnDwarf.isEnabled() && btnElf.isEnabled() && btnHuman.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean isReleased(int b) {\n if (b >= 0 && b < buttonPressed.length) {\n return !buttonPressed[b] && buttonLastPressed[b];\n } else {\n return false;\n }\n }", "public boolean getLeftJoystickClick() {\n\t\treturn getRawButton(LEFT_JOYSTICK_CLICK);\n\t}", "public abstract boolean onButtonClick(Player player, int button);", "void buttonPressed(ButtonType type);", "private boolean isActionDown(MotionEvent event){\n\n return event.getAction() == MotionEvent.ACTION_DOWN;\n }", "public boolean isMarked(Button button)\n {\n return selectedPos.contains(button.getTransitionName()); //Check if button id is in list\n }" ]
[ "0.83150715", "0.8298217", "0.78876257", "0.78834563", "0.78819346", "0.76897085", "0.7584066", "0.75697005", "0.7499335", "0.74981683", "0.7427523", "0.7425547", "0.7270631", "0.72540694", "0.72506434", "0.72439355", "0.72385067", "0.7227129", "0.7201596", "0.71975756", "0.7170186", "0.71233374", "0.7096189", "0.70907766", "0.70761013", "0.70710146", "0.70679307", "0.70679307", "0.70679307", "0.70679307", "0.7059285", "0.7059285", "0.70166904", "0.7011402", "0.6997484", "0.69924504", "0.69860774", "0.6976351", "0.69314176", "0.6929517", "0.6929517", "0.6929517", "0.6929517", "0.6929517", "0.68980867", "0.6883649", "0.6878235", "0.6869547", "0.68184197", "0.679901", "0.67626816", "0.67212605", "0.67212605", "0.67212003", "0.6716786", "0.6703147", "0.6695254", "0.66773474", "0.6675596", "0.66709226", "0.665107", "0.6630245", "0.66274714", "0.662105", "0.6604315", "0.6586014", "0.65842247", "0.6576109", "0.6551986", "0.6551612", "0.6548175", "0.65216744", "0.64878577", "0.64711565", "0.64685833", "0.64584136", "0.6457643", "0.64487183", "0.64321136", "0.64133984", "0.6404482", "0.6397928", "0.6395118", "0.63864356", "0.63781744", "0.63583475", "0.6349408", "0.6330831", "0.6322396", "0.63181555", "0.6314097", "0.63134676", "0.6281442", "0.62788105", "0.6238182", "0.62380296", "0.62247217", "0.62231964", "0.62077874", "0.6194811", "0.61659163" ]
0.0
-1
Parse the table name which can he the following form: tableName: just take it as it is tableName(col1,col2...): column names are stored in the columns collection
static public final String getTableName(String tableParam, Collection<String> columns) { Pattern p = Pattern.compile("(.*)\\((.*)\\)"); Matcher m = p.matcher(tableParam); if( m.find() && m.groupCount() == 2 ) { String[] cols = m.group(2).split("[,;\\s]"); if( columns != null) { for( String c: cols ) columns.add(c); } return m.group(1); } else { return tableParam; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String extractTableName() {\n\t\treturn fromElement.getQueryable().getTableName();\n\t}", "String tableName2Name(String name);", "public abstract String [] getColumnNames(String tableName);", "private static String parseTname(String sql) {\r\n\t\tString ret = \"\";\r\n\t\t// String[] ret = str.split(\"name |field |grade \");\r\n\r\n\t\tchar ch;\r\n\t\tString word = \"\";\r\n\t\tint control = 0;\r\n\r\n\t\tfor (int x = 0; x < sql.length(); x++) {\r\n\t\t\tch = sql.charAt(x);\r\n\t\t\t// word = word + ch;\r\n\r\n\t\t\tif (control == 1) {\r\n\t\t\t\tif (ch == '(' || ch == ' ') {\r\n\t\t\t\t\tcontrol++;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tret = ret + ch;\r\n\t\t\t\t}\r\n\t\t\t} else if (control == 0 && word.equals(\"TABLE\")) {\r\n\t\t\t\tcontrol++;\r\n\t\t\t} else if (ch == ' ') {\r\n\t\t\t\tword = \"\";\r\n\t\t\t} else {\r\n\t\t\t\tword = word + ch;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn (ret);\r\n\t}", "public static String get_Table_Name(String titleStr)\n\t{\n\t\tif(!titleStr.toLowerCase().contains(\"table\"))\n\t\t{\n\t\t\tthrow_Wrong_Format_Exception(titleStr);\n\t\t}\n\t\ttitleStr = titleStr.replaceAll(\"\\\\s+\", \" \");\n\t\ttitleStr = titleStr.replaceAll(\"`\", \"\");\n\t\tString[] subStrs = titleStr.split(\"\\\\s\"); // \\\\s is space\n\t\tif(subStrs.length == 0)\n\t\t{\n\t\t\tthrow_Wrong_Format_Exception(titleStr);\n\t\t}\n\t\treturn subStrs[subStrs.length - 1];\n\t}", "public R2dbcMessageHandlerSpec tableNameExpression(String tableNameExpression) {\n\t\treturn tableNameExpression(PARSER.parseExpression(tableNameExpression));\n\t}", "String getTableName(String name);", "@Override\r\n\tpublic String getTableName(String[] sql) {\n\t\treturn sql[2];\r\n\t}", "private String getNormalisedTableName(String tableName) {\n\t\treturn tableName.toLowerCase();\n\t}", "private List<Table> getTableFromStringTableName(String tableName) throws HyracksDataException {\n\n // Get all the tables\n if (generateAllTables) {\n // Remove the DBGEN_VERSION table and all children tables, parent tables will generate them\n return Table.getBaseTables().stream()\n .filter(table -> !table.equals(Table.DBGEN_VERSION) && !table.isChild())\n .collect(Collectors.toList());\n }\n\n // Search for the table\n List<Table> matchedTables = Table.getBaseTables().stream()\n .filter(table -> tableName.equalsIgnoreCase(table.getName())).collect(Collectors.toList());\n\n // Ensure the table was found\n if (matchedTables.isEmpty()) {\n throw new RuntimeDataException(ErrorCode.TPCDS_INVALID_TABLE_NAME, getFunctionIdentifier().getName(),\n tableName);\n }\n\n return matchedTables;\n }", "public String getTableNameString() {\n return tableName;\n }", "String getTableName();", "private TableInfo[] getTableInfo (String sql)\n\t{\n\t\tArrayList<TableInfo> list = new ArrayList<TableInfo>();\n\t\t//\tremove ()\n\t\tif (sql.startsWith(\"(\") && sql.endsWith(\")\"))\n\t\t\tsql = sql.substring(1,sql.length()-1);\n\t\t\t\n\t\tint fromIndex = sql.indexOf(FROM);\n\t\tif (fromIndex != sql.lastIndexOf(FROM))\n\t\t\tlog.log(Level.SEVERE, \"getTableInfo - More than one FROM clause - \" + sql);\n\t\twhile (fromIndex != -1)\n\t\t{\n\t\t\tString from = sql.substring(fromIndex+FROM_LENGTH);\n\t\t\tint index = from.lastIndexOf(WHERE);\t//\tend at where\n\t\t\tif (index != -1)\n\t\t\t\tfrom = from.substring(0, index);\n\t\t\tfrom = Util.replace(from, \" AS \", \" \");\n\t\t\tfrom = Util.replace(from, \" as \", \" \");\n\t\t\tfrom = Util.replace(from, \" INNER JOIN \", \", \");\n\t\t\tfrom = Util.replace(from, \" LEFT OUTER JOIN \", \", \");\n\t\t\tfrom = Util.replace(from, \" RIGHT OUTER JOIN \", \", \");\n\t\t\tfrom = Util.replace(from, \" FULL JOIN \", \", \");\n\t\t\t//\tRemove ON clause - assumes that there is no IN () in the clause\n\t\t\tindex = from.indexOf(ON);\n\t\t\twhile (index != -1)\n\t\t\t{\n\t\t\t\tint indexClose = from.indexOf(')');\t\t//\tdoes not catch \"IN (1,2)\" in ON\n\t\t\t\tint indexNextOn = from.indexOf(ON, index+4);\n\t\t\t\tif (indexNextOn != -1)\n\t\t\t\t\tindexClose = from.lastIndexOf(')', indexNextOn);\n\t\t\t\tif (indexClose != -1)\n\t\t\t\t\tfrom = from.substring(0, index) + from.substring(indexClose+1);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlog.log(Level.SEVERE, \"parse - could not remove ON \" + from);\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\n\t\t\t\tindex = from.indexOf(ON);\n\t\t\t}\n\t\t\t\n//\t\t\tlog.fine(\"getTableInfo - \" + from);\n\t\t\tStringTokenizer tableST = new StringTokenizer (from, \",\");\n\t\t\twhile (tableST.hasMoreTokens())\n\t\t\t{\n\t\t\t\tString tableString = tableST.nextToken().trim();\n\t\t\t\tStringTokenizer synST = new StringTokenizer (tableString, \" \");\n\t\t\t\tTableInfo tableInfo = null;\n\t\t\t\tif (synST.countTokens() > 1)\n\t\t\t\t\ttableInfo = new TableInfo(synST.nextToken(), synST.nextToken());\n\t\t\t\telse\n\t\t\t\t\ttableInfo = new TableInfo(tableString);\n//\t\t\t\tlog.fine(\"getTableInfo -- \" + tableInfo);\n\t\t\t\tlist.add(tableInfo);\n\t\t\t}\n\t\t\t//\n\t\t\tsql = sql.substring(0, fromIndex);\n\t\t\tfromIndex = sql.lastIndexOf(FROM);\n\t\t}\n\t\tTableInfo[] retValue = new TableInfo[list.size()];\n\t\tlist.toArray(retValue);\n\t\treturn retValue;\n\t}", "public void setTableName(String tmp) {\n this.tableName = tmp;\n }", "SqlTables(String tableName){\n\t\t\t this.tableName = tableName; \n\t\t}", "public void setTableName(String tableName) {\r\n\t\tthis.tableName = tableName;\r\n\t}", "public void setTableName(String tableName) {\r\n\t\tthis.tableName = tableName;\r\n\t}", "public void setTablename(String tablename) {\n this.tablename = tablename == null ? null : tablename.trim();\n }", "public void setTableName(String tableName) {\n this.tableName = tableName;\n }", "public void setTableName(String tableName) {\n this.tableName = tableName;\n }", "public void setTableName(String tableName) {\n this.tableName = tableName;\n }", "public String getTablename() {\n return tablename;\n }", "public static void parseQueryString(String queryString) {\n Pattern pattern = Pattern.compile(\".+\\\\bfrom\\\\b\\\\s+(\\\\w+)\");\n Matcher matcher = pattern.matcher(queryString);\n if(matcher.find()){\n \t//System.out.println(\"got it\");\n \tString tableName = matcher.group(1);\n \t//System.out.println(\"Table Name\"+tableName);\n \tString fileName = \"data/user_data/\"+tableName+\".tbl\";\n \tUserDataHandler table = new UserDataHandler(fileName);;\n table.displayTable(fileName, tableName);\n }\n }", "protected TableName getTableNameFromAnnotation(Class<?> beanClass) {\n final Table table = AnnotationUtil.typeGet(beanClass, Table.class);\n if (table != null && !isEmpty(table.name())) {\n // Note: empty catalog and schema are converted to null\n // Only need to convert quoted identifiers from annotations\n return new TableName(quoteIdentifiers(table.catalog()), quoteIdentifiers(table.schema()), quoteIdentifiers(table.name()));\n }\n // No annotation\n return null;\n }", "public TableDefinition(String tableName) {\n this.tableName = tableName;\n }", "@Override\n protected String getColNamesQuery(String tableName) {\n return \"SELECT t.* FROM \" + escapeTableName(tableName) + \" AS t LIMIT 1\";\n }", "public static void parseCreateString(String createTableString) {\n //System.out.println(\"Parsing the string:\\\"\" + createTableString + \"\\\"\");\n ArrayList<String> createTableTokens = new ArrayList<String>(Arrays.asList(createTableString.split(\" \")));\n\n /* Define table file name */\n String tableFileName = createTableTokens.get(2) + \".tbl\";\n String tableName = createTableTokens.get(2);\n //System.out.println(\"tableName:\"+tableName);\n //System.out.println(\"tableFileName:\"+tableFileName);\n \n //parse column fields into map\n String column = createTableString.substring(createTableString.indexOf(\"(\")+1,createTableString.indexOf(\")\"));\n //System.out.println(\"column:\"+column);\n ArrayList<String> columnTokens = new ArrayList<String>(Arrays.asList((column.trim()).split(\",\")));\n for(int i=0; i<columnTokens.size(); i++){\n \tint size = (((columnTokens.get(i)).trim()).split(\"\\\\s+\")).length;\n \t//System.out.println(\"size:\"+size);\n \tif(i==0){\n \t\tcolumnDataMap.put((((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[0],\"INT\");\n \t\tcolumnIsNullableMap.put((((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[0],\"NO\");\n \t}\n \telse if(i>0)\n \t{\n \t\tcolumnDataMap.put((((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[0],(((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[1]);\n \t\tif(size>2){\n \t\t\tcolumnIsNullableMap.put((((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[0],\"NO\");\n \t\t}\n \t\telse if (size==2){\n \t\t\tcolumnIsNullableMap.put((((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[0],\"YES\");\n \t\t}\n \t}\n \telse\n \t\tSystem.out.println(\"Given command is not correct\");\n }\n /*\n Iterator entries = columnDataMap.entrySet().iterator();\n while (entries.hasNext()) {\n Map.Entry entry = (Map.Entry) entries.next();\n String key = (String)entry.getKey();\n String value = (String)entry.getValue();\n System.out.println(\"Key = \" + key + \", Value = \" + value);\n }*/\n UserDataHandler table = new UserDataHandler(tableName);\n table.createTable(columnDataMap,columnIsNullableMap);\n }", "private String matchTable(Uri uri) {\n int code = sUriMatcher.match(uri);\n switch (code) {\n case KEYWORDS:\n return ArgotRecord.TABLE_NAME;\n default:\n throw new IllegalArgumentException(\"UnKnown uri = \" + uri);\n }\n }", "public static String getActualTableName(String utableName)\n {\n String tn = (DBFactory.TableNameMap != null)? DBFactory.TableNameMap.get(utableName) : null;\n return (tn != null)? tn : utableName;\n }", "public void setTableName(String name) {\n this.tableName = name;\n }", "public void setTableName(final String tableName) {\r\n\t\tthis.tableName = tableName;\r\n\t}", "@NotNull\n public String normalizeTableNames(@NotNull String sql) {\n return CommonUtils.normalizeTableNames(sql, databaseConfiguration.getSchema());\n }", "void gen_table_names(Connection c, PreparedStatement pst ) throws ClassNotFoundException, SQLException\n\t{\n\t String lambda_term_query = \"select subgoal_names from view2subgoals where view = '\"+ name +\"'\";\n\n\t\t\n\t pst = c.prepareStatement(lambda_term_query);\n\t \n\t ResultSet rs = pst.executeQuery();\n\t \n\t if(!rs.wasNull())\n\t {\n\t \twhile(rs.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(rs.getString(1));\n\t\t }\n\t }\n\t \n\t else\n\t {\n\t \tlambda_term_query = \"select subgoal from web_view_table where renamed_view = '\"+ name +\"'\";\n\n\t\t\t\n\t\t pst = c.prepareStatement(lambda_term_query);\n\t\t \n\t\t ResultSet r = pst.executeQuery();\n\n\t\t while(r.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(r.getString(1));\n\t\t }\n\t }\n\t \n\t \n\t \n\n\t}", "public String escapeTableName(String tableName) {\n return tableName;\n }", "public DatabaseTable(String tableName) {\n this.tableName = tableName;\n }", "public String getName(){\n\t\t\treturn tableName;\n\t\t}", "public String getTableName() \n\t{\n\t return tableName ;\n\t}", "@Override\n\tpublic String getTableName() { \n\t\treturn tableName;\n\t}", "private void calcTableList() throws SQLException {\n tableList = new TableList(session);\n SQLTokenizer[] tzs = tableListTokens.parse(SQLTokenizer.COMMA);\n for(int i = 0; tzs != null && i < tzs.length; i++) {\n if(tzs[i].countTokens() == 0) throw new SQLException(\"Syntax error\");\n String correlation = null;\n String table = tzs[i].getToken(0);\n int n = 1;\n if(tzs[i].getType(1) == Keyword.AS) {\n n++;\n }\n correlation = tzs[i].getToken(n);\n tableList.addTable(table, correlation);\n }\n }", "public String getTableName() {\n return tableName;\n }", "public String getTableName() {\n return tableName;\n }", "String loadTable(String name) {\n\n\n String l;\n String[] line;\n String[] colNames;\n String[] colTypes;\n String[] values;\n\n\n try {\n\n if (tables.get(name) != null) {\n tables.remove(name);\n }\n FileReader fr = new FileReader(name + \".tbl\");\n BufferedReader bf = new BufferedReader(fr);\n\n\n if ((l = bf.readLine()) != null) {\n line = l.split(\"\\\\s*(,|\\\\s)\\\\s*\");\n } else {\n return \"ERROR: Empty Table\";\n }\n colNames = new String[line.length / 2];\n colTypes = new String[line.length / 2];\n\n int j = 0, k = 0;\n\n for (int i = 0; i < line.length; i += 1) {\n if (i % 2 == 0) {\n colNames[j] = line[i];\n j += 1;\n } else {\n colTypes[k] = line[i];\n k += 1;\n }\n\n }\n\n Table t = new Table(name, colNames, colTypes);\n tables.put(name, t);\n\n while ((l = bf.readLine()) != null) {\n values = l.split(\"\\\\s*(,)\\\\s*\");\n t.insertLastRow(values);\n }\n\n bf.close();\n return \"\";\n\n } catch (NullPointerException e) {\n return \"ERROR: \" + e;\n } catch (ArrayIndexOutOfBoundsException e) {\n return \"ERROR: \" + e;\n } catch (NumberFormatException e) {\n return \"ERROR: \" + e;\n } catch (IllegalArgumentException e) {\n return \"ERROR: \" + e;\n } catch (IOException e) {\n return \"ERROR: \" + e;\n } \n }", "String pvTableName();", "private void createGetTableName(){\n //---------------------------------------------------------------------------\n buffer.append(\" /**\\n\");\n buffer.append(\" * <code>getTableName</code>\\n\");\n buffer.append(\" * <p>\\n\");\n buffer.append(\" * This method return the current tablename.\\n\");\n buffer.append(\" * </p>\\n\");\n buffer.append(\" * @author Booker Northington II\\n\");\n buffer.append(\" * @version 1.0\\n\");\n buffer.append(\" * @since 1.3\\n\");\n buffer.append(\" * @return tableName <code>String</code> the name \");\n buffer.append(\"of this table.\\n\");\n buffer.append(\" */\\n\");\n buffer.append(spacer);\n buffer.append(\" public String getTableName(){\\n\");\n buffer.append(spacer);\n buffer.append(\" return tableName;\\n\");\n buffer.append(\" }//getTableName() ENDS\\n\\n\");\n }", "public String getTableName() {\r\n\t\treturn tableName;\r\n\t}", "public String getTableName() {\n return tableName; \n }", "public String getTableName() {\n return tableName;\n }", "public String getTableName() {\n return tableName;\n }", "@Override\n protected String getTableNameForMetadata(String tableName) {\n return (tableName == null) ? IdentifierUtil.PERCENT :\n getTableNameForMetadata(DBIdentifier.newTable(tableName));\n }", "@Basic( optional = false )\r\n\t@Column( name = \"table_name\", nullable = false, length = 50 )\r\n\tpublic String getTableName() {\r\n\t\treturn this.tableName;\r\n\t\t\r\n\t}", "private static String[] parseColumnNames(String columnInfo) {\n\t\tString both[] = columnInfo.split(\",\");\n\t\tString names[] = new String[both.length];\n\t\tfor ( int i = 0; i < names.length; i++ ) {\n\t\t\tString combo[] = both[i].split(\":\");\n\t\t\tnames[i] = combo[0];\n\t\t}\n\t\treturn names;\n\t}", "@Override\n protected ASTNode getTargetTableNode(ASTNode tree) {\n ASTNode tabName = (ASTNode)tree.getChild(0);\n assert tabName.getToken().getType() == HiveParser.TOK_TABNAME :\n \"Expected tablename as first child of \" + operation + \" but found \" + tabName.getName();\n return tabName;\n }", "public String getTableName() {\n return this.tableName;\n }", "public void validate_table_names(WebElement element , String class_name , String table_element)\n\t{\n\t\t//XLS data.\n\t\tString ui_col_names = element.getText();\n\t\tlogger.info(\"Actual table columns from UI: \"+ui_col_names);\n\t\t//UI Element data.\n\t\tString xls_table_name = ExcelCache.getExpectedData(class_name , table_element);\n\t\tlogger.info(\"Expected table columns from excel: \"+xls_table_name);\n\t\t//Comparing String.\n\t\tVerify.verifyEquals(ui_col_names, xls_table_name , \"Table Names are different\");\n\t}", "protected String getMonarchTableName(Table tbl) {\n // 1. If region name property is not provided use hive's table name.\n // 2. Use '_'(underscore) instead of '.'(dot) since gemfire\n // does not allow querying when region name contain dot.\n String tableName = tbl.getParameters().get(MonarchUtils.REGION);\n if (tableName == null) {\n tableName = tbl.getDbName() + \"_\" + tbl.getTableName();\n }\n return tableName;\n }", "public void extractTableNames(ResultSet rs) {\n\t\ttry {\n\t\t\tif(rs.first())\n\t\t\t\tfor(rs.first(); !rs.isAfterLast(); rs.next()) \n\t\t\t\t\t_tables.add(rs.getString(1));\n\t\t} catch (SQLException e) { _error = true; }\n\t}", "public static HashMap<String, ArrayList<String>> parseCreateString(String createTableString, boolean metadata) throws FileNotFoundException {\n\n /*\n CREATE TABLE CUSTOMERS( ID INT PRIMARY KEY,NAME TEXT NOT NULL,AGE INT);\n */\n\n System.out.println(\"STUB: Calling your method to create a table\");\n System.out.println(\"Parsing the string:\\\"\" + createTableString + \"\\\"\");\n createTableString = createTableString.toLowerCase();\n String tablename = createTableString.substring(0, createTableString.indexOf(\"(\")).split(\" \")[2].trim();\n String tablenamefile = tablename + \".tbl\";\n Table newTable = new Table(tablenamefile, Constant.leafNodeType);\n HashMap<String, ArrayList<String>> columndata = new HashMap<>();\n TreeMap<Integer, String> columnOrdinalPosition = new TreeMap<>();\n int record_length = 0;\n Matcher m = Pattern.compile(\"\\\\((.*?)\\\\)\").matcher(createTableString);\n while (m.find()) {\n String cols = m.group(1);\n String singlecol[] = cols.split(\",\");\n ArrayList<String> colname;\n int ordinalPosition = 1;\n for (int i = singlecol.length - 1; i >= 0; i--) {\n\n\n colname = new ArrayList<>();\n singlecol[i] = singlecol[i].trim();\n String colNameType[] = singlecol[i].split(\" \");\n colNameType = removeWhiteSpacesInArray(colNameType);\n //columntype\n colname.add(0, colNameType[1]);\n\n columnTypeHelper.setProperties(tablename.concat(\".\").concat(colNameType[0]), colNameType[1]);\n record_length = record_length + RecordFormat.getRecordFormat(colNameType[1]);\n colname.add(1, \"yes\");\n //ordinaltype\n colname.add(2, String.valueOf(++ordinalPosition));\n columnOrdinalPosition.put(ordinalPosition, tablename.concat(\".\").concat(colNameType[0]));\n if (colNameType.length == 4) {\n if (colNameType[2].equals(\"primary\")) {\n colname.set(1, \"pri\");\n colname.set(2, String.valueOf(1));\n columnOrdinalPosition.remove(ordinalPosition);\n columnOrdinalPosition.put(1, tablename.concat(\".\").concat(colNameType[0]));\n --ordinalPosition;\n } else\n colname.set(1, \"no\");\n columnNotNullHelper.setProperties(tablename.concat(\".\").concat(colNameType[0]), \"NOT NULL\");\n }\n columndata.put(colNameType[0], colname);\n }\n\n }\n\n Iterator it = columnOrdinalPosition.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pair = (Map.Entry) it.next();\n columnOrdinalHelper.setProperties(String.valueOf(pair.getValue()), String.valueOf(pair.getKey()));\n }\n recordLengthHelper.setProperties(tablename.concat(\".\").concat(Constant.recordLength), String.valueOf(record_length));\n recordLengthHelper.setProperties(tablename.concat(\".\").concat(Constant.numberOfColumns), String.valueOf(columnOrdinalPosition.size()));\n if (!metadata) {\n updateTablesTable(tablename, record_length);\n updateColumnsTable(tablename, columndata);\n }\n return columndata;\n\n }", "public String getTableName() {\n return this.tableName;\n }", "public String getTableName() {\n return this.tableName;\n }", "@Override\n\tpublic String getTableName(int col) throws SQLException {\n\n\t\tif (col <= width && col >= 1) {\n\n\t\t\tcol--;\n\n\t\t\treturn this.tableName;\n\n\t\t} else\n\t\t\tthrow new SQLException(\"column requested out of table bounds\");\n\n\t}", "public String tableName() {\n if ( tableName != null ) {\n return tableName;\n }\n\n TableName annotation = this.entityType().getAnnotation( TableName.class );\n if ( annotation != null ) {\n tableName = annotation.value();\n } else {\n tableName = entityType().getSimpleName().toLowerCase() + 's';\n }\n return tableName;\n }", "public String getName() {\n return tableName;\n }", "public TableName name();", "@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}", "public List<String> getTableNames() throws IOException {\n List<String> tableList = new ArrayList<String>();\n TableName[] tableNames = hBaseAdmin.listTableNames();\n for (TableName tableName : tableNames) {\n //if (pattern.matcher(tableName.toString()).find()) {\n tableList.add(tableName.toString());\n //}\n }\n return tableList;\n }", "public String getTableName(Class<?> aClass) {\n\t\tString result = aClass.getSimpleName();\n\t\tif (this.hasAnnotation(aClass, Table.class)) {\n\t\t\tTable anno = (Table) this.getAnnotation(aClass, Table.class);\n\t\t\tif (anno.name() != null && !anno.name().isEmpty())\n\t\t\t\tresult = anno.name();\n\t\t}\n\t\treturn result;\n\t}", "public String getTableName() {\n if (tableName == null) {\n tableName = Strings.tableize(ActiveRecords.findActiveRecordBaseName(getClass()));\n }\n return tableName;\n }", "@Deprecated\n public String[] getTableNames(String regex) throws IOException {\n return getTableNames(Pattern.compile(regex));\n }", "String getTempTableName(String name);", "public TapTable findOneTable(String tableName);", "String jobTableName();", "private String getTableName() {\n return this.tableName;\n }", "protected String getTableName()\n {\n return immutableGetTableName();\n }", "private String getTableName(org.hibernate.mapping.Table table) {\n return m_dbSpecificMappingInfo.getTruncateInfo().truncateTableName(table.getName().toLowerCase());\n }", "public String composeTableNamesQuery() {\n\t\treturn String.format(\"show tables;\");\n\t}", "public String getTableName() {\n return (String) getAttributeInternal(TABLENAME);\n }", "public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );", "public abstract String getDatabaseTableName(String entityName);", "public void setTableName(String newVal) {\n if ((newVal != null && this.tableName != null && (newVal.compareTo(this.tableName) == 0)) || \n (newVal == null && this.tableName == null && tableName_is_initialized)) {\n return; \n } \n this.tableName = newVal; \n\n tableName_is_modified = true; \n tableName_is_initialized = true; \n }", "@VisibleForTesting\n protected String getFullTableName(String stageName) {\n String fullTableName = stageToFullTableNameMap.get(stageName);\n\n if (fullTableName == null) {\n throw new SQLEngineException(String.format(\"Unable to determine full table name for stage '%s'\", stageName));\n }\n\n return fullTableName;\n }", "public String table() {\n return tableName;\n }", "public String table() {\n return tableName;\n }", "public static Table buildTableFromCSV(String filePath,String tableName){\n\t\treturn new Table(tableName);\n\t}", "public final void tablename() throws RecognitionException {\r\n Token a=null;\r\n\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:206:3: ( ( schema dot )? (a= IDENT ) )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:206:5: ( schema dot )? (a= IDENT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:206:5: ( schema dot )?\r\n int alt57=2;\r\n int LA57_0 = input.LA(1);\r\n\r\n if ( (LA57_0==SCHEMA) ) {\r\n alt57=1;\r\n }\r\n switch (alt57) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:206:6: schema dot\r\n {\r\n pushFollow(FOLLOW_schema_in_tablename1250);\r\n schema();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_dot_in_tablename1252);\r\n dot();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:206:18: (a= IDENT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:206:19: a= IDENT\r\n {\r\n a=(Token)match(input,IDENT,FOLLOW_IDENT_in_tablename1258); \r\n tableName(a);\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "private static String getTableName(String baseName, boolean isCommunity, boolean isCollection, boolean isDistinct,\n boolean isMap) {\n // isDistinct is meaningless in relation to isCommunity and isCollection\n // so we bounce that back first, ignoring other arguments\n if (isDistinct) {\n return baseName + \"_dis\";\n }\n\n // isCommunity and isCollection are mutually exclusive\n if (isCommunity) {\n baseName = baseName + \"_com\";\n } else if (isCollection) {\n baseName = baseName + \"_col\";\n }\n\n // isMap is additive to isCommunity and isCollection\n if (isMap) {\n baseName = baseName + \"_dmap\";\n }\n\n return baseName;\n }", "public final String getTableName() {\n\t\treturn wTableName;\n\t}", "@Override\n\tpublic String getTableName(int arg0) throws SQLException {\n\t\treturn tMeta[0].tableName();\n\t}", "@Override\n public TableName getTableName(Class<?> beanClass) {\n while (true) {\n\n TableName tableName = getTableNameFromAnnotation(beanClass);\n if (tableName == null) {\n Class<?> supCls = beanClass.getSuperclass();\n if (hasInheritance(supCls)) {\n // get the table as per inherited class in case there\n // is not a table annotation in the inheritance hierarchy\n beanClass = supCls;\n continue;\n }\n\n tableName = getTableNameByConvention(beanClass);\n }\n\n // Use naming convention for catalog or schema,\n // if not set in the annotation.\n String catalog = tableName.getCatalog();\n if (isEmpty(catalog)) {\n catalog = getCatalog();\n }\n String schema = tableName.getSchema();\n if (isEmpty(schema)) {\n schema = getSchema();\n }\n return new TableName(catalog, schema, tableName.getName());\n }\n }", "public void setTableName(String value) {\n setAttributeInternal(TABLENAME, value);\n }", "public void testOneTable() {\n\n String\tsql\t= \"SELECT AD_Table_ID, TableName FROM AD_Table WHERE IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table|0]\", fixture.toString());\n }", "public R2dbcMessageHandlerSpec tableNameExpression(Expression tableNameExpression) {\n\t\tthis.reactiveMessageHandler.setTableNameExpression(tableNameExpression);\n\t\treturn this;\n\t}", "protected final String immutableGetTableName()\n {\n return m__strTableName;\n }", "public void testOneTableSyn() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName FROM AD_Table t WHERE t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t|0]\", fixture.toString());\n }", "public static void dropTable(String dropTableString) {\n System.out.println(\"STUB: Calling parseQueryString(String s) to process queries\");\n System.out.println(\"Parsing the string:\\\"\" + dropTableString + \"\\\"\");\n String dropTableName = dropTableString.replaceAll(\".* \", \"\").concat(\".tbl\");\n System.out.println(\"TableName : \" + dropTableName);\n try {\n Table table = new Table(dropTableName);\n table.page.close();\n File file = new File(dropTableName);\n// table.page.setLength(0);\n //TODO : update tables table and columnstable and property files\n\n if (file.exists())\n file.delete();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void setTableName(final String tableName)\n {\n immutableSetTableName(tableName);\n }", "public static TableId parse(String str) {\n return parse(str, true);\n }", "private String getTableName(Class<?> clz) {\n\t\tif (clz.isAnnotationPresent(TableName.class)) {\n\t\t\treturn ((TableName) clz.getAnnotation(TableName.class)).value();\n\t\t}\n\t\treturn clz.getSimpleName();\n\t}", "public String[][] loadTable(String tableName) {\n\t\treturn adapter.getTableContent(tableName);\n\t}", "public static String get_Table_Title_String(String schemaStr)\n\t{\n\t\tint endIndex = schemaStr.indexOf(\"(\");\n\t\treturn schemaStr.substring(0, endIndex).replaceAll(\"'\", \"\");\n\t}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}" ]
[ "0.691299", "0.6721295", "0.66231185", "0.64934355", "0.6406622", "0.636443", "0.6343525", "0.62547123", "0.6212013", "0.6185904", "0.6160776", "0.6149219", "0.61306363", "0.6055343", "0.6001065", "0.59726304", "0.59726304", "0.59682614", "0.5967546", "0.5967546", "0.5967546", "0.59662974", "0.59591776", "0.595076", "0.59269595", "0.59226644", "0.58742136", "0.5870182", "0.58675104", "0.58673394", "0.58632314", "0.58446413", "0.5833428", "0.58303386", "0.5798542", "0.5790978", "0.5790864", "0.5779717", "0.5774623", "0.57375693", "0.57375693", "0.5733968", "0.5722285", "0.571739", "0.5715399", "0.5699232", "0.56910163", "0.56910163", "0.56863135", "0.56779325", "0.56705976", "0.56664884", "0.565674", "0.5645675", "0.5642523", "0.56356204", "0.56342673", "0.5633067", "0.5633067", "0.5630429", "0.561803", "0.560994", "0.560015", "0.55790323", "0.5578289", "0.5576452", "0.5574913", "0.5553515", "0.5545603", "0.55369586", "0.5535589", "0.5526928", "0.5522209", "0.5500953", "0.5498473", "0.54853946", "0.54791737", "0.54778576", "0.54671043", "0.5462762", "0.5460637", "0.5460637", "0.54429656", "0.54387474", "0.54336184", "0.54316145", "0.54267395", "0.5400223", "0.53958285", "0.5386127", "0.5382707", "0.53670615", "0.5351691", "0.53441906", "0.5341023", "0.5337994", "0.53304493", "0.5327758", "0.5319855", "0.531009" ]
0.67876863
1
devuelve la cantidad de elementos en la lista
public int getCantidad() { return cantidad; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getNumberOfElement();", "public int getNumberOfElements();", "public Long getElementCount();", "public int size() {\n return elements.size();\n }", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public abstract Integer getNumberOfElements();", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "long getNombreElements();", "public int size() {\r\n\t\treturn elements.size();\r\n\t}", "static int getCapacity(List al) throws Exception {\n Field field = ArrayList.class.getDeclaredField(\"elementData\");\n field.setAccessible(true);\n return ((Object[]) field.get(al)).length;\n }", "public int getNumOfElements() {\n return numOfElements;\n }", "int getTotalElements();", "public int size() {\n\n return elements.size();\n }", "public int size() {\n\t\treturn elements.size();\n\t}", "int getListCount();", "int getNumItems();", "public int size() {\n\t\tint numElements = 0;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (list[i] != null) {\n\t\t\t\tnumElements++;\n\t\t\t}\n\t\t}\n\t\treturn numElements;\n\t}", "@Override\n public int size() {//por Niveles\n if (this.esArbolVacio()) {\n return 0; //Arbol Vacio\n }\n int cantidadDeNodos = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(raiz);\n while (!colaDeNodos.isEmpty()) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n cantidadDeNodos++;\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n }\n return cantidadDeNodos; //Lista con los datos(En el orden de este recorrido)\n }", "public int getCouts(){\r\n\t\treturn listeEleves.size();\r\n\t}", "public int size() {\r\n\t\treturn elements;\r\n\t}", "public static int numElements() {\n return values().length;\n }", "public int getNumElements()\n {\n return numElements;\n }", "int getItemsCount();", "int getItemsCount();", "private int kiemtrasopt (List list){\n int dem = list.size();\n return dem;\n }", "public int size() {\n\t\treturn elements;\n\t}", "public int size() {\n return elements;\n }", "public int getNumElements() {\n return theMap.size();\n }", "public int size() {\n\t\treturn this.elements.size();\n\t}", "public int size() {\n return numOfElements;\n }", "public int getNumElements() {\n return numElements;\n }", "public int getNumElements() {\n return numElements;\n }", "@Override\n public int getItemCount() { //PARA QUE FUNCIONE TIENE QUE TENER CUANTOS ELEMNTOS TIENE\n\n return values.size();\n }", "public int getNrOfElements() {\n return this.nrOfElements;\n }", "public int size(){\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "private int numeroCuentas() {\r\n\t\tint cuentasCreadas = 0;\r\n\t\tfor (Cuenta cuenta : this.cuentas) {\r\n\t\t\tif (cuenta != null) {\r\n\t\t\t\tcuentasCreadas++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cuentasCreadas;\r\n\t}", "public int size()\n\t{\n\t\treturn m_elements.size();\n\t}", "public int size(){\n return list.size();\n }", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "@Override\n public int getNumSubElements()\n {\n return 0;\n }", "public int size(){\n\n \treturn list.size();\n\n }", "public int getNumElements() {\n\t\treturn numElements;\n\t}", "@Override\n\tpublic int contar() {\n\t\treturn comision.size();\n\t}", "public int listSize(){\r\n return counter;\r\n }", "public int ListLength(){\n int j = 0;\n // Get index of the first element with value\n int i = StaticLinkList[MAXSIZE-1].cur;\n while (i!=0)\n {\n i = StaticLinkList[i].cur;\n j++;\n }\n return j;\n }", "public int getsize() {\r\n\t\treturn listaReservas.size();\r\n\t}", "public int count() {\n\t\tint q = 0;\n\t\tfor(int i = 0; i < list.length; i++) if (list[i] != null) q++;\n\t\treturn q;\n\t\t\n\t}", "public int numberOfItems()\n {\n return dessertList.size();\n }", "public int getListSize() {\n return getRootNode().getItems().size();\n }", "public int size() {\r\n assert numElements >= 0 : numElements;\r\n assert numElements <= capacity : numElements;\r\n assert numElements >= elementsByFitness.size() : numElements;\r\n return numElements;\r\n }", "public int getUnitCount() {\n return _elements.length;\n }", "public int getSize() \r\n {\r\n return list.size();\r\n }", "public int obtenerNumeroSolicitudes(){\n return listaSolicitudes.size();\n }", "public void mostrarNumeroTareasPendientes(){\n System.out.println(tareas.size());\n }", "public int size() {\n return lists.getSize();\n }", "private int size() {\n\t\treturn cerraduras.size();\n\t}", "public int size(){\n\t\tListMapEntry temp = first;\n\t\tint c=0;\n\t\twhile(temp!=null){\n\t\t\tc++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\treturn c;\n\t}", "public int size() {\n return adminList.size() + ipList.size() + tpList.size() + topicList.size();\n }", "@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}", "@Override\n\tpublic int size() {\n\t\t\n\t\treturn list.size();\n\t}", "public int sizeOf() {\n BookList target = this;\n int count = 0;\n if (isEmpty()){\n count= 0;\n }\n else if (!isEmpty()){\n count = 1;\n while (target.next != null){\n target = target.next;\n if(target.next == null){\n }\n \n ++count;\n }\n \n }\n\t\treturn count;\n\t}", "public int getSize() {\n return list.size();\n }", "@Override\n\tpublic int getSize() {\n\t\treturn listaConsultatii.size();\n\t}", "public Integer cantidadCompras(){\n\t\t// Implementar\n\t\treturn this.compras.size();\n\t}", "@Override\n public int size() {\n return list.size();\n }", "int getChildCount();", "public int size()\r\n {\r\n return nItems;\r\n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn App.getInstance().getSettlements().size();\n\t\t}", "public int getSize() {\r\n return list.getItemCount();\r\n }", "public int darCantidadSalones()\n {\n return salones.size( );\n }", "public int cantidadGastos() {\n\t\treturn this.devolverTodosGastos().size();\n\t}", "public int elements() {\n\t\treturn elements;\n\n\t}", "public int getNumElementsRemoved() {\n return elementsRemoved;\n }", "public int getCount() {\n\t\t\treturn list.size();\r\n\t\t}", "public int size() {\n\t return list.size();\n }", "@Override\n public int[] getNumNondefaultElements() {\n return base.getNumNondefaultElements();\n }", "public int obtenerNumeroFacturas(){\n return historialFacturas.size();\n }", "public int cantidadDispositivos() {\n return dispositivos.size();\n }", "public int size()\n {\n return list.size();\n }", "public int getChildCount();", "public Integer cantidadPersonasEnMicro(){\r\n return pasajeros.size();\r\n }", "public int size() {\n return tempoList.size();\n }", "public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}", "public int size() {\n return list.size();\n }", "public int size() {\n return nItems;\n }", "public int size() {\n return list.size();\n }", "public int getSize () {\n return this.list.size();\n }", "public int getListCount() {\n return list_.size();\n }", "public int size(){\n return items.size();\n }", "public int nbElements() {\n return nbAssoc;\n }", "public static int numElements_entries_id() {\n return 11;\n }", "@Override\n\tpublic int getSize()\n\t{\n\t\treturn list.size();\n\t}", "public int size(){\n\t\t\r\n\t\treturn N;\r\n\t}", "public int sizeOfList(){\n return tasks.size();\n }", "public long getNumElementsToRemove() {\n return elementsToRemove;\n }", "public int getSize() {\n\t\t\treturn lists.size();\r\n\t\t}", "public int size(){\n\t\treturn howMany; \n\t}", "public int size(){\n return numItems;\n }", "public int size() {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\treturn numElements;\n\t}", "public int size(){\r\n\t\treturn N;\r\n\t}" ]
[ "0.7292925", "0.7260101", "0.7042937", "0.7000772", "0.69847304", "0.6965977", "0.69372106", "0.691021", "0.6899657", "0.6897895", "0.68674546", "0.6838985", "0.68330723", "0.68230325", "0.68200326", "0.6818791", "0.6798364", "0.6766697", "0.67451346", "0.6709435", "0.66947335", "0.6689567", "0.66794235", "0.66794235", "0.6667761", "0.6656027", "0.66550124", "0.6647113", "0.6625418", "0.6608769", "0.65860075", "0.65860075", "0.6582891", "0.6544876", "0.6538893", "0.6538893", "0.65283203", "0.6526945", "0.65227085", "0.6513997", "0.6510922", "0.6500487", "0.6487381", "0.6486922", "0.64829606", "0.64645684", "0.6463205", "0.6460934", "0.64507747", "0.6442604", "0.6439269", "0.642982", "0.64216256", "0.6420898", "0.642041", "0.6410437", "0.6402638", "0.640033", "0.6398971", "0.63969254", "0.63924855", "0.63908964", "0.63782054", "0.63728684", "0.6369325", "0.63670516", "0.6365858", "0.63632673", "0.6360425", "0.63592964", "0.63574046", "0.63449377", "0.6330169", "0.63264847", "0.63221747", "0.6322162", "0.63121015", "0.6307913", "0.6302679", "0.6301895", "0.62991214", "0.6298184", "0.62978375", "0.6295464", "0.6295433", "0.62876046", "0.6285472", "0.62817925", "0.6279748", "0.62786436", "0.6276729", "0.6276377", "0.62719804", "0.6271529", "0.6271254", "0.62694335", "0.62640834", "0.6258938", "0.62544715", "0.62445986", "0.624" ]
0.0
-1
regresa el dato del primer elemento
public E primero() { if(estaVacia()) { return null; } return primero.getDato(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "public int eliminardelfinal(){\n int elemento=fin.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n fin=fin.anterior;\n fin.siguiente=null;}\n return elemento;\n }", "public void recorrer(){\r\n \r\n NodoJugador temporal = primero;\r\n while(temporal != null){\r\n System.out.println(temporal.getDato());\r\n temporal = temporal.getSiguiente();\r\n \r\n }\r\n \r\n }", "public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}", "public HTMLInputElement getElementFechaModificacion() { return this.$element_FechaModificacion; }", "public HTMLInputElement getElementFechaModificacion() { return this.$element_FechaModificacion; }", "public HTMLElement getElementFechaModificacionEd() { return this.$element_FechaModificacionEd; }", "public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }", "public Date getDataModifica() {\n\t\treturn dataModifica;\n\t}", "public void eliminarElemento(T dato) {\n\t\tNodeTabla<K, T> nodo = primerElemento;\n\n\t\t// itera los elementos hasta que se acaben o encuentre el elemento\n\t\twhile (nodo != null && !nodo.getElemento().equals(dato)) {\n\t\t\tnodo = nodo.getSiguiente();\n\t\t}\n\n\t\t// se encontro el nodo?\n\t\tif (nodo != null) {\n\t\t\tif (nodo != primerElemento) {\n\t\t\t\t// borra el nodo de la existencia\n\t\t\t\tnodo.getAnterior().setSiguiente(nodo.getSiguiente());\n\t\t\t\tnodo.getSiguiente().setAnterior(nodo.getAnterior());\n\t\t\t} else {\n\t\t\t\tprimerElemento = primerElemento.getSiguiente();\n\t\t\t}\n\t\t\t// baja en uno el tamano\n\t\t\ttamano--;\n\n\t\t} else {\n\t\t\t// Bruh, no esta el nodo\n\t\t\tSystem.out.println(\"No se encontro el elemento a eliminar.\");\n\t\t}\n\n\t}", "public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }", "public void actualizarPodio() {\r\n\t\tordenarXPuntaje();\r\n\t\tint tam = datos.size();\r\n\t\traizPodio = datos.get(tam-1);\r\n\t\traizPodio.setIzq(datos.get(tam-2));\r\n\t\traizPodio.setDer(datos.get(tam-3));\r\n\t}", "public HTMLElement getElementFechaInsercionEd() { return this.$element_FechaInsercionEd; }", "private void reinit() {\n this.nodo1Sel = new Nodo1();\n this.objNodo1 = new Nodo1();\n this.objNodo1Buscar = new Nodo1();\n this.lstNodo1 = new ArrayList<Nodo1>();\n this.lstNodoB = new ArrayList<Nodo1>();\n this.lstNodoBuscar = new ArrayList<Nodo1>();\n this.estadoSel = -1;\n this.estadoSel1 = -1;\n this.comando1 = \"rman\";\n this.comando2 = \"rmaf\";\n this.comando5 = \"uuyy\";\n //this.cargarNodo1();\n this.obtenerNodo1DadoFecha();\n this.graficar();\n\n //fecha1 = sdf.format(date1);\n }", "public void setDato(int dato) {\r\n this.dato = dato;\r\n }", "private void remplirMaterielData() {\n\t}", "public int getDato() {\r\n return dato;\r\n }", "public void addend(int dato) {\n //agrega nuevo nodo \n NodoEnteroSimple nodo = new NodoEnteroSimple();\n\n nodo.setValor(dato);\n\n if (vacia()) {\n\n head = nodo;\n } else {\n //un temporal de la lista \n NodoEnteroSimple temp = head;\n\n while (temp.getSiguiente() != null) {\n temp = temp.getSiguiente();\n\n }\n temp.getSiguiente();\n }\n size++;\n }", "public void setDataModifica(Date dataModifica) {\n\t\tthis.dataModifica = dataModifica;\n\t}", "public void setDataCreazione(Date dataCreazione) {\n\t\tthis.dataCreazione = dataCreazione;\n\t}", "private void remplirPrestaraireData() {\n\t}", "public void agregarElemento(K llave, T dato) {\n\n\t\tif (primerElemento == null) {\n\t\t\tNodeTabla<K, T> nodo = new NodeTabla<K, T>(llave, dato, null);\n\t\t\t// agrega el nodo como ultimo y primer elemento\n\t\t\tprimerElemento = nodo;\n\t\t\tultimoElemento = nodo;\n\t\t} else {\n\t\t\t// pone el elemento al final de la fila\n\t\t\tultimoElemento = new NodeTabla<K, T>(llave, dato, ultimoElemento);\n\t\t}\n\n\t\t// incrementa el tamano\n\t\ttamano++;\n\t}", "public HTMLInputElement getElementFechaInsercion() { return this.$element_FechaInsercion; }", "public HTMLInputElement getElementFechaInsercion() { return this.$element_FechaInsercion; }", "private void muestraPersona(JSONArray genero) {\n\tJSONArray a = (JSONArray) genero.get(0);\n\t// txtId.setText(Long.toString( (Long) a.get(0)) );\n\t//txtBuscar.setText((String) a.get(1));\n\t// textFecha.setText((String) a.get(2));\n\t// textUsu.setText((String) a.get(4));\n\tcodTemporal = a.get(0).toString();\n\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "public void resetIdentificadorODE()\r\n {\r\n this.identificadorODE = null;\r\n }", "public void resetIdentificadorODE()\r\n {\r\n this.identificadorODE = null;\r\n }", "public void AgregarDeMayorAMenor(int el) throws Exception{\n if(repetido(el)){\n throw new Exception(\"El dato ya existe en la lista!!!\");\n }else{\n /*\n Crear un nodo para el nuevo dato.\n Si la lista esta vacía, o el valor del primer elemento de la lista \n es mayor que el nuevo, insertar el nuevo nodo en la primera posición \n de la lista y modificar la cabecera respectivamente.\n \n */\n NodoDoble newNode = new NodoDoble(el);\n if (estVacia() || inicio.GetDato() == el) {\n newNode.SetSiguiente(inicio);\n inicio = newNode;\n } else {\n /* \n Si no se cumple el caso anterior, buscar el lugar adecuado \n para la inserción: recorrer la lista conservando el nodo actual. \n Inicializar nodo actual con el valor de primera posición, \n y avanzar mientras el siguiente nodo no sea nulo y el dato \n que contiene la siguiente posición sea mayor o igual que \n el dato a insertar.\n */\n NodoDoble current = inicio;//\n while (current.GetSiguiente() != null\n && current.siguiente.GetDato() >= el) {\n current = current.GetSiguiente();\n }\n /*\n Con esto se señala al nodo adecuado, \n a continuación insertar el nuevo nodo a continuación de él.\n */\n newNode.SetSiguiente(current.GetSiguiente());\n current.SetSiguiente(newNode);\n }\n } \n }", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "private void setTipo() {\n if (getNumElementos() <= 0) {\n restartCelda();\n } else if (getNumElementos() > 1) { // Queda más de un elemento\n this.setTipoCelda(Juego.TVARIOS);\n } else { // Si queda solo un tipo de elemento, miramos si es un CR, edificio o un personaje\n if (this.contRecurso != null) {\n this.setTipoCelda(this.contRecurso.getTipo());\n } else if (this.edificio != null) {\n this.setTipoCelda(this.edificio.getTipo());\n } else if (!this.getPersonajes().isEmpty()) {\n this.setTipoCelda(this.getPersonajes().get(0).getTipo());\n }\n }\n }", "private Date getDataInizio() {\n return (Date)this.getCampo(DialogoStatistiche.nomeDataIni).getValore();\n }", "public T getDato() {\n\t\treturn dato;\n\t}", "public Date getDataCreazione() {\n\t\treturn dataCreazione;\n\t}", "public void dataPadrao() {\n Calendar c = Calendar.getInstance();\n SimpleDateFormat s = new SimpleDateFormat(\"dd/MM/yyyy\");\n String dataAtual = s.format(c.getTime());\n c.add(c.MONTH, 1);\n String dataAtualMaisUm = s.format(c.getTime());\n dataInicial.setText(dataAtual);\n dataFinal.setText(dataAtualMaisUm);\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "public void ustawDate(Date data) {\n\t\tcalendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(data);\r\n\t\tthis.rok = calendar.get(Calendar.YEAR);\r\n\t\tthis.miesiac = calendar.get(Calendar.MONTH);\r\n\t\tif ((this.rok % 4 == 0 && this.rok % 100 != 0) || this.rok % 400 == 0) {\r\n\t\t\tmiesiace[1] = 29;\r\n\t\t} else {\r\n\t\t\tmiesiace[1] = 28;\r\n\t\t}\r\n\r\n\t\twypelnijTabele();\r\n\t}", "@Override\n public DAttributeDatetime getAttFechaPago() { return moAttFechaPago; }", "public T darElemento(){\r\n\t\treturn elemento;\r\n\t}", "private void fechaActual() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat sm = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\t// Formateo de Fecha para mostrar en la vista - (String)\r\n\t\tsetFechaCreacion(sm.format(date.getTime()));\r\n\t\t// Formateo de Fecha campo db - (Date)\r\n\t\ttry {\r\n\t\t\tnewEntidad.setFechaCreacion(sm.parse(getFechaCreacion()));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t;\r\n\t}", "Object firstData() {\n\t\t// por defecto enviamos null\n\t\treturn null;\n\t}", "public Date getDatumOpladen() {\n if (datumOpladen != null) {\n return (Date) datumOpladen.clone();\n }\n return null;\n }", "public int getDtRegistro() {\n return dtRegistro;\n }", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "public void inserirFinal(int elemento) {\n No novo = new No(elemento, null);\n No temp = ini;\n\n if (eVazia()) {\n ini = novo;\n } else {\n //Percorrer até chegar no ultimo Nó\n while (temp.getProximo() != null) {\n temp = temp.getProximo();\n }\n temp.setProximo(novo);\n }\n\n }", "public void insertar(String dato){\r\n \r\n if(estaVacia()){\r\n \r\n primero = new NodoJugador(dato);\r\n }else{\r\n NodoJugador temporal = primero;\r\n while(temporal.getSiguiente()!=null){\r\n temporal = temporal.getSiguiente();\r\n }\r\n \r\n temporal.setSiguiente(new NodoJugador(dato));\r\n }\r\n }", "public Date getDataInizio() {\n return (Date)this.getCampo(nomeDataIni).getValore();\n }", "public void setDataNascimentoFromSQL(Date dataNascimento) {\r\n\r\n\t\t// montando a data atrav�s do Calendar\r\n\t\tCalendar data = Calendar.getInstance();\r\n\t\tdata.setTime(dataNascimento);\r\n\t\tthis.dataNascimento = data;\r\n\r\n\t}", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "public void setDtRegistro(int dtRegistro) {\n this.dtRegistro = dtRegistro;\n }", "public void insereInicio(String elemento) {\n No novoNo = new No(elemento, ini);\n ini = novoNo;\n }", "public void setData (Date date) {\r\n\t\tthis.data=date;\r\n\t\t\r\n\t}", "public void LimpiarJTablaPorFecha()\n {\n for(int i=modeloPorFecha.getRowCount()-1;i>=0;i--)\n {\n modeloPorFecha.removeRow(i); \n }\n }", "@Override\n\tpublic DatosNit obtenerDatos(DatosNit datos) {\n\t\tnit = datos.getNit();\n\t\treturn null;\n\t}", "private void btnSortArrivalDateActionPerformed(java.awt.event.ActionEvent evt) {\n Arbol miArbol = new Arbol();\n root = null;\n txaMostrar.setText(\"\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date llegada = null;\n \n for (int i = 0; i < princ.getsArreglo().length; i++) {\n System.out.println(\"i = \" + i);\n if (princ.getsArreglo()[i][6] != null) {\n try {\n llegada = sdf.parse(princ.getsArreglo()[i][6] + \"03-00-00\");\n } catch (ParseException ex) {\n Logger.getLogger(FrmDetalles.class.getName()).log(Level.SEVERE, null, ex);\n }\n agregarNodo(new NodoArbol(llegada));\n }\n }\n imprimeInOrder();\n \n \n }", "public Trimestre(){\n id_trimestre=0;\n numero=0;\n debut_trimestre= new Date(2012,8,12);\n fin_trimestre=new Date(2013,1,13);\n id_anneeScolaire=0;\n }", "public void setId(Date dataInicialCota) {\n\t\tif(dataInicialCota != null){\n\t\t\tthis.dataInicialCota = new Date(dataInicialCota.getTime());\n\t\t} else{\n\t\t\tthis.dataInicialCota = null;\n\t\t}\n\t}", "public Date getDataCancellazione() {\n\t\treturn dataCancellazione;\n\t}", "public void agregarinicio(int el){\n if(!estavacia()){\n fin=new nododoble(el, inicio,null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new nododoble(el);\n }}", "Lista_Simple datos(File tipo1) {\n \n SAXBuilder builder = new SAXBuilder();\n try {\n \n \n \n\n \n //Se obtiene la lista de hijos de la raiz 'tables'\n Document document = builder.build(tipo1);\n Element rootNode = document.getRootElement(); \n // JOptionPane.showMessageDialog(null,\" e1: \"+(rootNode.getChildText(\"dimension\"))); \n tam= Integer.parseInt(rootNode.getChildText(\"dimension\"));\n Element dobles = rootNode.getChild(\"dobles\");\n \n List list = dobles.getChildren(\"casilla\");\n for ( int i = 0; i < list.size(); i++ )\n {\n Element tabla = (Element) list.get(i);\n d1.enlistar(tabla.getChildTextTrim(\"x\"));\n \n d1.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n \n \n Element triples = rootNode.getChild(\"triples\");\n \n List listt = triples.getChildren(\"casilla\");\n for ( int i = 0; i < listt.size(); i++ )\n {\n Element tabla = (Element) listt.get(i);\n d2.enlistar(tabla.getChildTextTrim(\"x\"));\n d2.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n Element dicc = rootNode.getChild(\"diccionario\");\n List dic = dicc.getChildren();\n\n for ( int i = 0; i < dic.size(); i++ )\n {\n Element tabla = (Element) dic.get(i);\n //JOptionPane.showMessageDialog(null,\"\"+tabla.getText().toString());\n d.enlistar(tabla.getText().toString());\n \n \n \n } \n \n }catch (JDOMException | IOException | NumberFormatException | HeadlessException e){\n JOptionPane.showMessageDialog(null,\" error de archivo\");\n }\n return d;\n \n}", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public HTMLElement getElementValorEd() { return this.$element_ValorEd; }", "public abstract void setFecha_inicio(java.lang.String newFecha_inicio);", "private Nodo cambiar (Nodo aux) {\n\t\tNodo n = aux;\r\n\t\tNodo m = aux.getHijoIzq(); \r\n\t\twhile (m.getHijoDer() != null) {//el while sirve para recorrer el lado derecho para encotrar el dato mayor. \r\n\t\t\tn = m; // se guarda el nodo.\r\n\t\t\tm = m.getHijoDer();\r\n\t\t}\r\n\t\taux.setDato(m.getDato()); // se establece el dato del nodo mayor para que de ese nodo se hagan los cambios. \r\n\t\tif(n == aux) { // Si el nodo igual a aux entonces el dato y nodo que se van a eliminar por lo tanto se hacen los comabios. \r\n\t\t\tn.setHijoIzq(m.getHijoIzq());\r\n\t\t}else {\r\n\t\t\tn.setHijoDer(m.getHijoIzq());\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "public void setDataConsegna(Date dataConsegna) {\n\t\t\tthis.dataConsegna = dataConsegna;\n\t\t}", "@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void setDatumOpladen(Date datumOpladen) {\n this.datumOpladen = null;\n if (datumOpladen != null) {\n this.datumOpladen = (Date) datumOpladen.clone();\n }\n }", "public void setDataUltimoVencimento(java.util.Calendar dataUltimoVencimento) {\n this.dataUltimoVencimento = dataUltimoVencimento;\n }", "public void agregarAlFinal(int el){\n if(!estVacia()){\n fin=new NodoDoble(el,null,fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public Nodo() {\r\n this.dato = null;\r\n this.siguiente = null;\r\n }", "public void trierListeCrudDateCroissante(){\r\n\t\tint i,j;\r\n\t\tObject [] tmp = new Object [6];\r\n\t\t\r\n\t\tif (listeRdvCrud.size()>1){\r\n\t\t\tfor (i = 0; i< listeRdvCrud.size(); i++){\r\n\t\t\t\tfor (j = 0; j< listeRdvCrud.size(); j++){\r\n\t\t\t\t\ttmp = listeRdvCrud.get(i);\r\n\t\t\t\t\tif(compareDate(listeRdvCrud.get(j)[0].toString(),listeRdvCrud.get(j)[1].toString(),\r\n\t\t\t\t\ttmp[0].toString(),tmp[1].toString()) > 0){\r\n\t\t\t\t\t\tlisteRdvCrud.set(i, listeRdvCrud.get(j));\r\n\t\t\t\t\t\tlisteRdvCrud.set(j, tmp);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void insereFinal(String elemento) {\n No novoNo = new No(elemento, null);\n No temp = ini;\n \n //Caso a lista esteja vazia\n if (temp == null){\n ini = novoNo;\n } else {\n //Caminha ate o ultimo No, dentre todos os nos dessa listaa\n while (temp.getProx() != null) {\n temp = temp.getProx();\n }\n\n //Se chegou ate o ultimo no, adicionar o elemento desejado\n temp.setProx(novoNo);\n }\n }", "public Elemento getElemento (String nombre) {\n Elemento tmp = null;\n if (porNombre.containsKey(nombre)) {\n tmp=porNombre.remove(nombre);\n addPeso(-tmp.getPeso());\n }\n return tmp;\n }", "@Override\n public Object getModifiedElement()\n {\n return null;\n }", "public void tukarData() {\n this.temp = this.data1;\n this.data1 = this.data2;\n this.data2 = this.temp;\n }", "public void setTipoFecha(int tipoFecha)\n {\n tipFecha=tipoFecha;\n }", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public void setdat()\n {\n }", "public void setDataCancellazione(Date dataCancellazione) {\n\t\tthis.dataCancellazione = dataCancellazione;\n\t}", "private void populatePreviousODOReading() {\n\n fuelViewModel.getAllFuel()\n .observe(getActivity(), new Observer<List<Fuel>>() {\n @Override\n public void onChanged(List<Fuel> fuels) {\n\n // if list is not empty\n if (!fuels.isEmpty()){\n\n Log.d(TAG, \"onChanged: fuels.size() = \" + fuels.size());\n\n // fuels.size()-1 displayed last item in the list, so I tested and found that 0 item is the first item\n Fuel mostRecentFuel = fuels.get(0); // most recent item is zero item on the list means first item\n Log.d(TAG, \"onChanged: mostRecentFuel.getFuelID() = \" + mostRecentFuel.getFuelID());\n\n lastODOreading = mostRecentFuel.getCurrentKm();\n tin_startingKm.setText(String.valueOf(lastODOreading));\n\n }\n\n\n }\n });\n\n }", "public E ultimo() {\n\t\tif(estaVacia()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn ultimo.getDato();\n\t}", "public Object getData() {\n\t\t\treturn null;// this.element;\n\t\t}", "private void presionoBotonIngresarDato(View v){\n ViewHolder viewHolder = (ViewHolder) v.getTag();\n if(viewHolder==null)\n Log.i(\"Tag: \", \"Es null\");\n else {\n if(\"\".equals(viewHolder.dato.getText().toString())) {\n Log.i(\"Tag: \",\"Está vacío\");\n Toast.makeText(contexto, \"Ingrese un dato\", Toast.LENGTH_LONG).show();\n }\n else{\n String medicion = viewHolder.medicion.getText().toString();\n\n //Se quitan las tíldes para evitar problemas en las tablas\n if (medicion.equals(\"Líquidos\")) {\n medicion = \"Liquidos\";\n }\n if (medicion.equals(\"Número de glóbulos rojos\")) {\n medicion = \"Numero globulos rojos\";\n }\n if (medicion.equals(\"Número de reticulocitos\")) {\n medicion = \"Numero de reticulocitos\";\n }\n if (medicion.equals(\"Número Plaquetas\")) {\n medicion = \"Numero Plaquetas\";\n }\n if (medicion.equals(\"Número Hemoglobina\")) {\n medicion = \"Numero Hemoglobina\";\n }\n if (medicion.equals(\"Número Hematocrito\")) {\n medicion = \"Numero Hematocrito\";\n }\n\n double valor = Double.parseDouble(viewHolder.dato.getText().toString());\n\n Log.i(\"Tag: \", medicion);//obtener el editText del ViewHolder\n Log.i(\"Tag: \", valor + \"\");//obtener el editText del ViewHolder\n Log.i(\"Tag: \", Funciones.getFechaString());//obtener el editText del ViewHolder\n\n Paciente.getInstance().insertarYpostFisiologicos(Funciones.getFechaString(), medicion, valor);\n\n Toast.makeText(contexto, \"Se ingresó el Dato\", Toast.LENGTH_LONG).show();\n viewHolder.dato.setText(\"\");\n viewHolder.dato.clearFocus();\n\n //fisiologicos.remove(viewHolder.fisiologico);\n //notifyDataSetChanged();\n }\n\n }\n }", "public T getElementoCima(){\r\n\t\r\n\t\treturn this.num.get(this.num.size()-1);\r\n\t}", "public void limpiar(){\n\t\tfCargaI=new Date();\n\t\tfCargaF=new Date();\n\t\tlistaMarcacion=null;\n\t\tlistaMarcacionPDF=null;\n\t}", "public java.util.Calendar getDataUltimoVencimento() {\n return dataUltimoVencimento;\n }", "public void setFechaInicio(Timestamp fechaInicio) {\n this.fechaInicio = fechaInicio;\n }", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public HTMLTableElement getElementDetalle() { return this.$element_Detalle; }", "public Date getDataConsegna() {\n\t\t\treturn dataConsegna;\n\t\t}", "public Date getDataPreventivo() {\n return dataPreventivo;\n }", "private void initializeData() {\n ListaOfertas.removeAll(ListaOfertas);\n for(Articulo listaJuegos: ArticuloRepository.getListArticulo()){\n if(listaJuegos.getOferta().contains(\"S\")){\n listaJuegos.setValorDescuento(String.valueOf(listaJuegos.getPrecioArticulo()-(listaJuegos.getPrecioArticulo()*listaJuegos.getPorcentajeDescuento()/100)));\n ListaOfertas.add(listaJuegos);\n }\n\n }\n }", "public Datum() {\n this.tag = 1;\n this.monat = 1;\n this.jahr = 1;\n }", "public void setFecha(Fecha fecha) {\r\n this.fecha = fecha;\r\n }", "public ElementoCache(Object o, int i, String tipo) {\r\n\t\t\tthis.o= new ArrayList<Object>();\r\n\t\t\tthis.o.add(o);\r\n\t\t\tthis.i=i;\r\n\t\t\tthis.tipo = tipo;\r\n\t\t}", "private void recogerDatos() {\n\t\ttry {\n\t\t\tusuSelecc.setId(etId.getText().toString());\n\t\t\tusuSelecc.setName(etNombre.getText().toString());\n\t\t\tusuSelecc.setFirstName(etPApellido.getText().toString());\n\t\t\tusuSelecc.setLastName(etSApellido.getText().toString());\n\t\t\tusuSelecc.setEmail(etCorreo.getText().toString());\n\t\t\tusuSelecc.setCustomFields(etAuth.getText().toString());\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n\t\t\tmostrarException(e.getMessage());\n\t\t}\n\t}" ]
[ "0.65881264", "0.6323082", "0.6130719", "0.6012609", "0.596589", "0.5935445", "0.5935445", "0.5923636", "0.5899738", "0.58601075", "0.57839686", "0.5750136", "0.57408625", "0.5729014", "0.5718516", "0.5718009", "0.57133776", "0.5700739", "0.56932247", "0.56758267", "0.56466836", "0.56220925", "0.5581652", "0.5567656", "0.5567656", "0.55648834", "0.55611104", "0.55611104", "0.5559284", "0.5542136", "0.5534739", "0.55226696", "0.55221516", "0.55164176", "0.5474761", "0.5474381", "0.547251", "0.5452824", "0.54372144", "0.54368615", "0.54048306", "0.5401323", "0.53952557", "0.53948575", "0.53775114", "0.53711164", "0.53490084", "0.5342505", "0.53362167", "0.5331379", "0.53223425", "0.5321441", "0.5318735", "0.5313601", "0.53085834", "0.5301873", "0.52974087", "0.5291982", "0.52856797", "0.5284175", "0.5279633", "0.52760494", "0.5274095", "0.52738935", "0.52723444", "0.5270984", "0.52672714", "0.5248907", "0.5248676", "0.5247732", "0.5238729", "0.52321076", "0.522931", "0.5228504", "0.52272755", "0.522573", "0.52223396", "0.5222187", "0.5222012", "0.52195907", "0.521781", "0.5215462", "0.5205094", "0.5202699", "0.51998734", "0.5197817", "0.5192569", "0.5191223", "0.51905286", "0.5182381", "0.518203", "0.5177321", "0.5177321", "0.5176453", "0.5175075", "0.5163477", "0.5162672", "0.51546884", "0.5138915", "0.51355827", "0.5134683" ]
0.0
-1
inserta al inicio de la lista
public void insertarInicio(E dato) { primero=new Nodo<E>(dato,primero); if (estaVacia()) { ultimo=primero; } cantidad++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "public void insertar(Trabajo t){\r\n\t\tif(!estaLlena()){\r\n\t\t\tultimo = siguiente(ultimo);\r\n\t\t\telementos[ultimo] = t;\r\n\t\t}\r\n\t}", "public void insert(List<T> entity) throws NoSQLException;", "private void insertar(ArrayList<Estado> hijos) {\r\n\t\tfor (Estado p : hijos) { // Añado hijos a nodos abiertos\r\n\t\t\tabiertos.add(p);\r\n\t\t\tif (abiertos.size() > estados_abiertos)\r\n\t\t\t\testados_abiertos = abiertos.size(); // Variable para contar el numero maximo de estados abiertos\r\n\t\t}\r\n\t}", "public void AddReliquias(){\n DLList reliquias = new DLList();\n reliquias.insertarInicio(NombreReliquia); \n }", "public void inserirLigas() throws SQLException {\n observableListLigas = FXCollections.observableArrayList(ligas);\n selecionarLiga.setItems(observableListLigas);\n \n }", "public void processInsertar() {\n }", "public void createDespesaDetalhe(ArrayList<PagamentoDespesasDetalhe> listaDespesasInseridas, int idDespesa) throws Exception {\n\r\n for(int i=0; i < listaDespesasInseridas.size(); i++){\r\n \r\n open(); //abre conexão com o banco de dados\r\n\r\n //define comando para o banco de dados\r\n stmt = con.prepareStatement(\"INSERT INTO pagamentoDespesasDetalhe(valor, dataPagamento, status, idDespesas, idFormaPagamento) VALUES (?,?,?,?,?)\");\r\n\r\n //atribui os valores das marcações do comando acima \r\n stmt.setFloat(1, listaDespesasInseridas.get(i).getValor());\r\n stmt.setString(2, listaDespesasInseridas.get(i).getDataPagamento());\r\n stmt.setInt(3, listaDespesasInseridas.get(i).getStatus());\r\n stmt.setInt(4, idDespesa);\r\n stmt.setInt(5, listaDespesasInseridas.get(i).getIdFormaPagamento());\r\n\r\n stmt.execute();//executa insert no banco de dados\r\n\r\n close();//fecha conexão com o banco de dados\r\n \r\n } \r\n\r\n }", "@Override\n\tpublic void insert(Unidade obj) {\n\n\t}", "public static void inserir(Estoque estoque){\r\n lerXml();//le o XML e preenche a lista de estoque\r\n //pega o ultimo estoque cadastrado\r\n int ultimaPosicao = lista.size()-1;\r\n if(ultimaPosicao >= 0){ //se a lista não estiver vazia\r\n Estoque ultimoEstoque = lista.get(ultimaPosicao);\r\n estoque.setNumCompra(ultimoEstoque.getNumCompra()+1);\r\n }else{\r\n // se não tem niguem na lista, o ncompra é 1\r\n estoque.setNumCompra(1);\r\n }\r\n lista.add(estoque);//adiciona um estoque pro final da lista\r\n salvarXml();//atualiza o XML com o que tem na lista\r\n \r\n \r\n \r\n }", "public void insertar(String dato){\r\n \r\n if(estaVacia()){\r\n \r\n primero = new NodoJugador(dato);\r\n }else{\r\n NodoJugador temporal = primero;\r\n while(temporal.getSiguiente()!=null){\r\n temporal = temporal.getSiguiente();\r\n }\r\n \r\n temporal.setSiguiente(new NodoJugador(dato));\r\n }\r\n }", "public void insert()\n\t{\n\t}", "@Override\n\t\tpublic void insertar() {\n\t\t\tutilitario.getTablaisFocus().insertar();\n\n\t\t}", "private void insertData() {\n compra = factory.manufacturePojo(CompraVentaEntity.class);\n compra.setId(1L);\n compra.setQuejasReclamos(new ArrayList<>());\n em.persist(compra);\n\n for (int i = 0; i < 3; i++) {\n QuejasReclamosEntity entity = factory.manufacturePojo(QuejasReclamosEntity.class);\n entity.setCompraVenta(compra);\n em.persist(entity);\n data.add(entity);\n compra.getQuejasReclamos().add(entity);\n }\n }", "public void inserir(Comentario c);", "public void insert(List<Event> eventsList);", "public void insertDoctors(List<Doctor> drlist);", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "public void inserir(ContaBancaria contaBancaria) {\n\t\tcontas.add(contaBancaria);\n\n\t}", "public void insert(Object item);", "@Override\r\n public void insert(List<DetalleCotizacion> listdetc, long idco) {\n Connection c =null;\r\n PreparedStatement ps= null;\r\n ResultSet rs= null;\r\n \r\n try{\r\n\tc = Conexion.Connect();\r\n \r\n for (DetalleCotizacion detc : listdetc){\r\n ps = c.prepareStatement(\"SELECT * from sp_insertdetallecotizacion(?,?,?,?,?)\");\r\n ps.setLong(1,idco);\r\n ps.setLong(2, detc.getIdmaq());\r\n ps.setInt(3, detc.getCantidad());\r\n ps.setInt(4,detc.getDias());\r\n ps.setBigDecimal(5, new BigDecimal(detc.getValordia()));\r\n rs=ps.executeQuery();\r\n \r\n }\r\n \r\n \r\n \r\n// \r\n// while (rs.next()){\r\n// id= rs.getLong(\"vid\");\r\n// }\r\n//\t\r\n } catch(Exception e)\r\n {\r\n JOptionPane.showMessageDialog(null, e.getMessage());\r\n }finally{\r\n if (c != null){\r\n try {\r\n c.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(DAODetalleCotizacion.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if(ps!= null){\r\n try {\r\n ps.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(DAODetalleCotizacion.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if(rs != null){\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(DAODetalleCotizacion.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n } \r\n }", "public boolean ListInsert(int i,T e){\n int j,k,l;\n // k is the index of the last element\n k = MAXSIZE-1;\n if(i<0||i>ListLength())\n return false;\n // Get index of free element\n j = Malloc_SSL();\n // If malloc success\n if(j!=0)\n {\n StaticLinkList[j].data = e;\n // Find the element,who is in front of the ith element\n for (l = 0; l < i; l++)\n k = StaticLinkList[k].cur;\n // s->next = p->next\n StaticLinkList[j].cur = StaticLinkList[k].cur;\n // p->next = s\n StaticLinkList[k].cur = j;\n return true;\n }\n return false;\n }", "int insertBatch(List<Basicinfo> list);", "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 }", "public void insert(E item) {\n // FILL IN\n }", "@Override\n\tpublic <T> void insertMany(List<T> list) throws Exception {\n\t\t\n\t}", "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "@Override\r\n\tpublic void insertar() {\n\t\ttab_nivel_funcion_programa.insertar();\r\n\t\t\t\r\n\t\t\r\n\t}", "public void insert(Service servico){\n Database.servico.add(servico);\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(Conge conge) ;", "private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }", "@Override\r\n\tpublic void insertar() {\n\t\ttab_cuenta.eliminar();\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void inserOrder(Good_ordVO good_ordVO, List<PointgoodsVO> list) {\n\t\t\r\n\t}", "int insertSelective(Movimiento record);", "@Override\n\t\tpublic void insert() {\n\t\t\tSystem.out.println(\"새로운 등록\");\n\t\t}", "void insert(int index, T value) throws ListException;", "void insertOrUpdate(StockList stockList) throws Exception;", "int insert(VoteList record);", "int insertSelective(Tipologia record);", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }", "public void insertar(int dato) {\n if (estaLlena()){ // si la pila esta lllena (,etodo en linea 43)\r\n incrementarArreglo(); //incrementamos su capacidad\r\n }\r\n array[++top] = dato; //e insertamos el dato\r\n }", "int insertSelective(ParUsuarios record);", "int insert(Tipologia record);", "@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}", "@Override\n\tpublic WriteResult insertNewDocCollection(List<Object> lista) {\n\t\treturn null;\n\t}", "public void insertOrderedItems(TireList orderedItems){\n for(int i=0; i<orderedItems.listSize(); i++){\n int temp = Integer.parseInt(orderedItems.getTire(i).getStock()) - orderedItems.getTire(i).getQuantity();\n orderedItems.getTire(i).setStock(temp + \"\");\n orderedItems.getTire(i).updateTire();\n sql=\"Insert into OrderedItems (OrderID, TireID, Quantity) VALUES ('\"+newID+\"','\"+orderedItems.getTire(i).getStockID()+\"',\"+orderedItems.getTire(i).getQuantity()+\")\";\n db.insertDB(sql); \n }\n }", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n CarritoDeComprasEntity entity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n if (i == 0 ){\r\n entity.setUsuario(dataUsuario.get(0));\r\n }\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "public static void insert(ArrayList<Integer> list, int x)\n{\n // Your code here\n list.add(x);\n}", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "public long insert(EvaluetingListDO evaluetingList) throws DataAccessException;", "public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }", "private void insertOrUpdateItem(){\n Toaster toaster = new Toaster(getContext());\n DBManager dbManager = new DBManager(getContext());\n if((Afegir.getText() == getText(R.string.actualitza) && updateItem(dbManager)) ||\n (Afegir.getText() == getText(R.string.afegir) && insertItem(dbManager))){\n\n ((MainActivity) getActivity()).swapFrameLayoutVisibility(true);\n ((MainActivity) getActivity()).refreshListView();\n toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.commit_insert).toString(), null);\n reset(true);\n }\n\n else toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.reboke_action).toString(), getContext().getDrawable(R.drawable.ic_error_vector));\n }", "@Override\n\tpublic boolean doInsertList(List<SysUser> b) throws Exception {\n\t\treturn false;\n\t}", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ServicioEntity entity = factory.manufacturePojo(ServicioEntity.class);\n em.persist(entity);\n dataServicio.add(entity);\n }\n for (int i = 0; i < 3; i++) {\n QuejaEntity entity = factory.manufacturePojo(QuejaEntity.class);\n if (i == 0) {\n entity.setServicio(dataServicio.get(0));\n }\n em.persist(entity);\n data.add(entity);\n }\n }", "@Override\n\tpublic void insert(User entity) {\n\t\tuserlist.put(String.valueOf(entity.getDni()), entity);\n\t}", "@Override\n\tpublic void preInsert() {\n\n\t}", "private void insertData() {\n\n for (int i = 0; i < 3; i++) {\n ProveedorEntity proveedor = factory.manufacturePojo(ProveedorEntity.class);\n BonoEntity entity = factory.manufacturePojo(BonoEntity.class);\n int noOfDays = 8;\n Date dateOfOrder = new Date();\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(dateOfOrder);\n calendar.add(Calendar.DAY_OF_YEAR, noOfDays);\n Date date = calendar.getTime();\n entity.setExpira(date);\n noOfDays = 1;\n calendar = Calendar.getInstance();\n calendar.setTime(dateOfOrder);\n calendar.add(Calendar.DAY_OF_YEAR, noOfDays);\n date = calendar.getTime();\n entity.setAplicaDesde(date);\n entity.setProveedor(proveedor);\n em.persist(entity);\n ArrayList lista=new ArrayList<>();\n lista.add(entity);\n proveedor.setBonos(lista);\n em.persist(proveedor);\n pData.add(proveedor);\n data.add(entity); \n }\n }", "int insertSelective(Prueba record);", "@Override\r\n\tpublic void insert(List<Student> list, Scanner sc) {\n\t\tStudent s=new Student();\r\n\t\tSystem.out.println(\"增加学生比如:张三,男,19,北京\");\r\n\t\tString str=sc.next();\r\n\t\tString[] arr=str.split(\",\");\r\n\t\ts.setName(arr[0]);\r\n\t\ts.setSex(arr[1].charAt(0));\r\n\t\ts.setAge(Integer.parseInt(arr[2]));\r\n\t\ts.setAddress(arr[3]);\t\t\t\r\n\t\tlist.add(s);\r\n\t\tSystem.out.println(\"添加完成!\");\t\r\n\t\t\r\n\t}", "@Override\n public void run() {\n if (list != null) {\n for (int i = 0; i < list.size(); i++) {\n System.out.println(\" shuzi:\" + list.get(i));\n map.put(\" insert into testName (id,name) values('\" + list.get(i) + \"','\" + list.get(i) + \"')\", \"INSERT\");\n }\n }\n// mVDate.clear();\n// mVDate.add(map);\n// PubSubmit tSubmit = new PubSubmit();\n// tSubmit.submitData(mVDate, \"\");\n }", "public void insertarCargo() {\n ContentValues values = new ContentValues();\n for (int i = 0; i <= 3; i++) {\n values.put(\"NOMBRE_CARGO\", \"nombre \" + i);\n values.put(\"DESCRIPCION_CARGO\", \"Descripcion \" + i);\n db.insert(\"CARGO\", null, values);\n }\n }", "@Insert\n void insertAll(List<User> users);", "@Test\n public void insertarAerolineaEnArrayList() {\n int tamanio = AerolineasControlador.listaAerolineas.size();\n Aerolinea aerolinea = new Aerolinea(\"47FS\",\"Air Europa\",\"70\",\"MAdrid\",\"4672339U\");\n AerolineasControlador.listaAerolineas.add(aerolinea);\n assertEquals(tamanio + 1,AerolineasControlador.listaAerolineas.size());\n }", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\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 insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }", "public Etudiant insert(Etudiant obj) {\n\t\treturn null;\n\t}", "int insert(ParUsuarios record);", "public void insert(ArrayList<T> contactArrayList) throws DaoException;", "public static void inserir(Venda venda)\r\n throws Exception {\r\n venda.setId(totalVenda++);\r\n listaVenda.add(venda);\r\n }", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "public void insertarArista(int i, int j) {\n insertarArista(i, j, 1);\n /*if (!existeArista(i, j)) { \n elArray[i].insertar(new Adyacente(j, 1)); \n numA++; \n }*/\n }", "@Test\n public void insert() throws InterruptedException {\n List<PromotionVoucherInfoDTO> list = generatorProm(10);\n List<List<PromotionVoucherInfoDTO>> lists = cutList(list, 10);\n Long startTime = System.currentTimeMillis();\n\n ThreadPoolUtil instance = ThreadPoolUtil.getInstance();\n CountDownLatch countDownLatch = new CountDownLatch(lists.size());\n for (int i = 0; i < lists.size(); i++) {\n instance.execute(new executeInsert(lists, i, countDownLatch, instance));\n }\n countDownLatch.await();\n Long endTime = System.currentTimeMillis();\n System.out.println(\"插入数据用时:\" + (endTime - startTime));\n\n }", "public Integer inserir(String tabela, ArrayList<String> campos, ArrayList<String> valores);", "public void insertar(int x, String nombre) {\n \tNodo nuevo;\n nuevo = new Nodo();\n nuevo.edad = x;\n nuevo.nombre = nombre;\n //Validar si la lista esta vacia\n if (raiz==null)\n {\n nuevo.sig = null;\n raiz = nuevo;\n }\n else\n {\n nuevo.sig = raiz;\n raiz = nuevo;\n }\n }", "@Override\n public void insert(E newItem) {\n if (list.size()==0)\n list.add(newItem);\n else\n {\n ListIterator<E> itList = list.listIterator();\n boolean isAdded=false;\n while (itList.hasNext())\n {\n int status=newItem.toString().compareTo(itList.next().toString());\n if(status==0)\n {\n itList.add(newItem);\n isAdded=true;\n }\n else if(status<0)\n {\n if (itList.hasPrevious())\n itList.previous();\n itList.add(newItem);\n isAdded=true;\n break;\n }\n }\n if (!isAdded)\n {\n list.add(newItem);\n }\n }\n\n }", "int insertSelective(VoteList record);", "public void insertToCarrito(String user, int cant, Producto prod) {\n NodoAvl tmp = root;\n while (tmp != null && !tmp.username.equals(user)) {\n if (user.compareTo(tmp.username) < 0) {\n tmp = tmp.izq;\n } else {\n tmp = tmp.der;\n }\n }\n if (tmp != null && user.equals(tmp.username)) {\n if(tmp.carrito != null)\n tmp.carrito.insertTail(user, cant, prod);\n else{\n Lista ls = new Lista();\n ls.insertTail(user, cant, prod);\n tmp.carrito = ls;\n }\n Log.logger.info(\" Agregado a usuario :\" + user);\n } else {\n Log.logger.warn(\"Usuario no encontrado \" + user);\n }\n \n }", "@Insert(onConflict = OnConflictStrategy.IGNORE)\n void insert(DataTugas dataTugas);", "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 }", "int insert(Movimiento record);", "@Override\n\tpublic int insert(Utente input) throws Exception {\n\t\treturn 0;\n\t}", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "@Override\n\tpublic void insertList(Map<String, Object> map) {\n\t\tapprovalDao.insertList(map);\n\t}", "public void add(List<InstituicaoEnsino> list)\r\n\t\t\tthrows InsertException, EntityNotFoundException {\r\n\t\tfor (InstituicaoEnsino inst : list) {\r\n\t\t\tif (get(inst) == null) {\r\n\t\t\t\tadd(inst);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void insereFim(TinfoTransicao item) {\t\t\n\t\tTnodoTransicao novo = new TnodoTransicao(item);\n\t\tnovo.proximo = this.ultimo.proximo;\n\t\tthis.ultimo.proximo = novo;\n\t\tthis.ultimo = novo;\t\n\t}", "public void insertFoodItem(FoodItem f){\n int flag = 0;\n\t\tfor(int i=0; i<fooditem.length; i++){\n\n\t\t\tif (fooditem[i]!= null) {\n\t\t\t\tif (fooditem[i].getFid().equals(f.getFid())) {\n\t\t\t\t\tSystem.out.println(\"Opps! The Food ID already exists!\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(fooditem[i] == null){\n\t\t\t\tfooditem[i] = f;\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag == 1)\n\t\t{\n\t\t\tSystem.out.println(\"Food Dish Inserted\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Can Not Insert\");\n\t\t}\n\n }", "private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"Mozzarella\", 10,30);\n ingdao.insert(ing);\n\n // Salads, Desserts, Main course, Drinks\n pos = new Position(\"Pizza\");\n posdao.insert(pos);\n\n course = new Course(\"Salads\", \"Greek\", \"Cucumber\", \"Tomato\", \"Feta\");\n coursedao.insert(course);\n\n ing = new Ingredient(\"-\", 0,0);\n ingdao.insert(ing);\n */\n }", "private void inserirQuests(){\n try {\n methods.InsereQuestsOnBD();\n //Toast.makeText(this,\"Inseridos dados com sucesso\",Toast.LENGTH_LONG).show();\n\n }\n catch (SQLException ex){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Erro\");\n dlg.setMessage(ex.getMessage());\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n }\n }", "@Override\n\tpublic <S extends Basket> List<S> insert(Iterable<S> arg0) {\n\t\treturn null;\n\t}", "@Override\n public SqlDatabaseTable insertIntoTable(SqlDatabaseTable table, List<String> row) {\n executeSql(getInsertSql(table, Collections.singletonList(row)));\n return table;\n }", "public static void insertarDatos(ArrayList<Producto> lista_productos) {\n\t\tfor (Producto producto : lista_productos) {\r\n\t\t\tDocument doc = new Document();\r\n\t\t\tdoc.put(\"nombre\", producto.getNombre());\r\n\t\t\tdoc.put(\"descripcion\", producto.getDescripcion());\r\n\t\t\tdoc.put(\"precio\", producto.getPrecio());\r\n\t\t\tcoleccion.insertOne(doc);\r\n\t\t}\r\n\t}", "public boolean inputdata(AddData list) {\n ContentValues values = new ContentValues();\n values.put(kolom_1, list.getTodo());\n values.put(kolom_2, list.getDesc());\n values.put(kolom_3, list.getPrior());\n long hasil = db.insert(nama_tabel, null, values);\n //kondisi\n if (hasil==-1) {\n return false;\n }else {\n return true;\n }\n }", "@Override\n public void insert(J34SiscomexPaises j34SiscomexPaises) {\n super.doInsert(j34SiscomexPaises);\n }", "public void insert(T o);", "public void insert(int element) {\r\n\t\tint i = 0;\r\n\t\twhile (list[i] != -1)\r\n\t\t\ti++;\r\n\t\tlist[i] = element;\r\n\t\tinsertionSort(list);\r\n\t\tcurrentPosition = i;\r\n\t}", "private void uploadToDb(final List<DBCardIngredient> list){\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n uploading = true;\n viewModel.insertIngredients(list, new TaskListener() {\n @Override\n public void onTaskCompleted(Object o) {\n viewModel.getAllIngredients().observe(getViewLifecycleOwner(),uploadObserver());\n }\n });\n }\n }).start();\n }" ]
[ "0.73231316", "0.6988118", "0.69602704", "0.6902788", "0.6752543", "0.6743956", "0.67059076", "0.66921103", "0.6674249", "0.666139", "0.66418624", "0.6638714", "0.65998554", "0.65984446", "0.6584536", "0.6560325", "0.6556003", "0.65505147", "0.65142065", "0.6509174", "0.64951676", "0.6455227", "0.64548904", "0.64472675", "0.6446343", "0.64173573", "0.64124954", "0.6411388", "0.6405795", "0.6388846", "0.63858837", "0.6360439", "0.6346456", "0.6329853", "0.63260025", "0.63201874", "0.6317971", "0.63102174", "0.6303466", "0.62816286", "0.628044", "0.6278209", "0.62618583", "0.6261779", "0.62581956", "0.6230645", "0.62295413", "0.62222785", "0.6213929", "0.62114453", "0.6209898", "0.62034595", "0.6200581", "0.62004644", "0.61967", "0.6187293", "0.61861885", "0.61843103", "0.61825126", "0.6180204", "0.6171116", "0.61619407", "0.61502564", "0.61408937", "0.61405766", "0.6135832", "0.6121089", "0.6120907", "0.6113613", "0.61117625", "0.6110789", "0.6100448", "0.60969806", "0.609437", "0.6089403", "0.60879016", "0.60817647", "0.6080476", "0.60729545", "0.60722524", "0.6071656", "0.6070606", "0.6068857", "0.6067455", "0.605767", "0.60505474", "0.6048674", "0.6045626", "0.6036138", "0.6034633", "0.6032118", "0.60308397", "0.6016454", "0.6008724", "0.60011154", "0.59948635", "0.5993951", "0.5989361", "0.5986466", "0.59808046" ]
0.6522219
18
regresa el ultimo elemento
public E ultimo() { if(estaVacia()) { return null; } return ultimo.getDato(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actualizarValor() {\n\t\tif (valor!=null && valor < getCantElementos()-1){\n\t\t\tvalor++;\n\t\t}\n\t\telse {\n\t\t\tvalor = 0;\n\t\t}\t\t\n\t}", "public void inserirFinal(int elemento) {\n No novo = new No(elemento, null);\n No temp = ini;\n\n if (eVazia()) {\n ini = novo;\n } else {\n //Percorrer até chegar no ultimo Nó\n while (temp.getProximo() != null) {\n temp = temp.getProximo();\n }\n temp.setProximo(novo);\n }\n\n }", "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "public T getElementoCima(){\r\n\t\r\n\t\treturn this.num.get(this.num.size()-1);\r\n\t}", "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n ElementoLista elementoTemporarioAnteriorAtual = this.primeiro;\n ElementoLista elementoTemporarioAtual = this.primeiro.irParaProximo();\n for (int i = 1; i < totalElementos(); i++) {\n elementoTemporarioAnteriorAtual = elementoTemporarioAtual;\n elementoTemporarioAtual = elementoTemporarioAtual.irParaProximo();\n }\n\n this.ultimo = elementoTemporarioAnteriorAtual;\n this.ultimo.definirProximo(null);\n this.total--;\n }\n //this.ultimo = this.ultimo.irParaAnterior();\n //this.ultimo.definirProximo(null);\n }", "public void removerInicio() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n this.primeiro = this.primeiro.irParaProximo();\n this.total--;\n break;\n }\n }", "long getNombreElements();", "public int eliminardelfinal(){\n int elemento=fin.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n fin=fin.anterior;\n fin.siguiente=null;}\n return elemento;\n }", "public int EliminarNodo() {\r\n int auxiliar = UltimoValorIngresado.informacion;\r\n UltimoValorIngresado = UltimoValorIngresado.siguiente;\r\n tamaño--;\r\n return auxiliar;\r\n }", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}", "public void insereFinal(String elemento) {\n No novoNo = new No(elemento, null);\n No temp = ini;\n \n //Caso a lista esteja vazia\n if (temp == null){\n ini = novoNo;\n } else {\n //Caminha ate o ultimo No, dentre todos os nos dessa listaa\n while (temp.getProx() != null) {\n temp = temp.getProx();\n }\n\n //Se chegou ate o ultimo no, adicionar o elemento desejado\n temp.setProx(novoNo);\n }\n }", "public int hapus() {\r\n return elemen[--ukuran];\r\n }", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "public void agregarAlFinal(int el){\n if(!estVacia()){\n fin=new NodoDoble(el,null,fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public void agregaralfinal(int el){\n if(!estavacia()){\n fin=new nododoble(el, null, fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new nododoble(el);\n }}", "public Object quitar() {\r\n if (primero == null)\r\n return null;\r\n Object o = primero.elem;\r\n primero = primero.Next;\r\n tamaño--;\r\n return o;\r\n }", "public Contenedor getContenedorMaximo()\n {\n Contenedor maxCont = null;\n int maxPeso ;\n\n maxPeso = 0;\n\n for (Contenedor c : this.losContenedores){\n if (c.peso > maxPeso)\n {\n maxPeso = c.peso;\n maxCont = c;\n }\n }\n\n return maxCont;\n }", "public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public HTMLElement getElementNroRegistros() { return this.$element_NroRegistros; }", "public void agregarinicio(int el){\n if(!estavacia()){\n fin=new nododoble(el, inicio,null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new nododoble(el);\n }}", "public void moverElementoAnterior() {\n\t\tif(indiceElementoMenuActual>0) {\n\t\t\tindiceElementoMenuActual--;\n\t\t}\n\t\tsetElementoMenuActual();\n\t}", "public void generarNumeroFacura(){\n try{\n FacturaDao facturaDao = new FacturaDaoImp();\n //Comprobamos si hay registros en la tabla Factura de la BD\n this.numeroFactura = facturaDao.numeroRegistrosFactura();\n \n //Si no hay registros hacemos el numero de factura igual a 1\n if(numeroFactura <= 0 || numeroFactura == null){\n numeroFactura = Long.valueOf(\"1\");\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }else{\n //Recuperamos el ultimo registro que existe en la tabla Factura\n Factura factura = facturaDao.getMaxNumeroFactura();\n //Le pasamos a la variable local el numero de factura incrementado en 1\n this.numeroFactura = Long.valueOf(factura.getNumeroFactura() + 1);\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }\n \n \n }catch(Exception e){\n e.printStackTrace();\n }\n \n }", "public void ordenarXPuntajeInsercion() {\r\n\t\tfor (int i = 1; i < datos.size(); i++) {\r\n\t\t\tfor (int j = i; j>0 && ( datos.get(j-1).getPuntaje() > datos.get(j).getPuntaje()); j--) {\r\n\t\t\t\tJugador temp = datos.get(j);\r\n\t\t\t\tdatos.set(j, datos.get(j-1));\r\n\t\t\t\tdatos.set(j-1, temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Nodo_Bodega ultimaAgregada(){\n return Nodo_bodega_final;\n }", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "public int MostrarUltimoValorIngresado() {\r\n return UltimoValorIngresado.informacion;\r\n }", "public void Nouvelleligne() {\n int maxEleve = retourneMaxNumber() + 1;\n try {\n Connector1.statement.executeUpdate(\"Insert INTO eleve(id_el) VALUES (\" + maxEleve + \")\");\n Object[] val = {maxEleve, \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};\n effaceTable(jTable2, mode);\n mode.addRow(val);\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n\n }\n\n }", "public void addPrimero(Object obj) {\n if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj\n cabeza = new Nodo(obj);\n } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza\n Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal\n Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado\n nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza\n cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo\n }\n size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar\n }", "private void setTipo() {\n if (getNumElementos() <= 0) {\n restartCelda();\n } else if (getNumElementos() > 1) { // Queda más de un elemento\n this.setTipoCelda(Juego.TVARIOS);\n } else { // Si queda solo un tipo de elemento, miramos si es un CR, edificio o un personaje\n if (this.contRecurso != null) {\n this.setTipoCelda(this.contRecurso.getTipo());\n } else if (this.edificio != null) {\n this.setTipoCelda(this.edificio.getTipo());\n } else if (!this.getPersonajes().isEmpty()) {\n this.setTipoCelda(this.getPersonajes().get(0).getTipo());\n }\n }\n }", "public Agnello prelevaMontone() {\n\t\tfor (int i=0; i<pecore.size(); i++)\n\t\t\tif ((pecore.get(i) instanceof PecoraAdulta)\n\t\t\t\t\t&& (((PecoraAdulta) pecore.get(i)).isMaschio())) {\n\t\t\t\tnumMontoni--;\n\t\t\t\treturn pecore.remove(i);\n\t\t\t}\n\t\treturn null;\n\t}", "public int pedirElemento(){\n int opcion = -1;\n\n do {\n Lib.limpiarPantalla();\n System.out.println(\"Cual elemento quieres alquilar?\");\n System.out.println(\"1. Nueva pelicula\");\n System.out.println(\"2. Nuevo Videojuego\");\n System.out.println(\"0. Cancelar\\n\");\n System.out.println(\"Elija una opción: \");\n try {\n opcion = Integer.parseInt(Lib.lector.nextLine());\n if (opcion < 0 || opcion > 2) {\n System.out.println(\"Elija una opción del menú [0-2]\");\n Lib.pausa();\n }\n } catch (NumberFormatException nfe) {\n System.out.println(\"Solo números por favor\");\n Lib.pausa();\n }\n } while (opcion < 0 || opcion > 2);\n return opcion;\n\n }", "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 Elemento getElemento (String nombre) {\n Elemento tmp = null;\n if (porNombre.containsKey(nombre)) {\n tmp=porNombre.remove(nombre);\n addPeso(-tmp.getPeso());\n }\n return tmp;\n }", "public int altura() {\n if (this.elemento == null) {\n return 0;\n } else {\n return altura(this);\n }\n\n }", "public void agregarAlFinal(T v){\n\t\tNodo<T> nuevo = new Nodo<T>();\r\n\t\tnuevo.setInfo(v);\r\n\t\tnuevo.setRef(null);\r\n\t\t\r\n\t\t//si la lista aun no tiene elementos\r\n\t\tif(p == null){\r\n\t\t\t//el nuevo nodo sera el primero\r\n\t\t\tp=nuevo;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//retorno la lista hasta que aux apunte al ultimo nodo\r\n\t\tNodo<T> aux;\r\n\t\tfor(aux=p; aux.getRef() != null; aux=aux.getRef()){\r\n\t\t\t//enlazo el nuevo nodo como el siguiente del ultimo\r\n\t\t\taux.setRef(nuevo);\r\n\t\t}\r\n\t\t\r\n\t}", "public void descontarUnidad() {\r\n\t\tcantidad--;\r\n\t}", "public void AgregarDeMayorAMenor(int el) throws Exception{\n if(repetido(el)){\n throw new Exception(\"El dato ya existe en la lista!!!\");\n }else{\n /*\n Crear un nodo para el nuevo dato.\n Si la lista esta vacía, o el valor del primer elemento de la lista \n es mayor que el nuevo, insertar el nuevo nodo en la primera posición \n de la lista y modificar la cabecera respectivamente.\n \n */\n NodoDoble newNode = new NodoDoble(el);\n if (estVacia() || inicio.GetDato() == el) {\n newNode.SetSiguiente(inicio);\n inicio = newNode;\n } else {\n /* \n Si no se cumple el caso anterior, buscar el lugar adecuado \n para la inserción: recorrer la lista conservando el nodo actual. \n Inicializar nodo actual con el valor de primera posición, \n y avanzar mientras el siguiente nodo no sea nulo y el dato \n que contiene la siguiente posición sea mayor o igual que \n el dato a insertar.\n */\n NodoDoble current = inicio;//\n while (current.GetSiguiente() != null\n && current.siguiente.GetDato() >= el) {\n current = current.GetSiguiente();\n }\n /*\n Con esto se señala al nodo adecuado, \n a continuación insertar el nuevo nodo a continuación de él.\n */\n newNode.SetSiguiente(current.GetSiguiente());\n current.SetSiguiente(newNode);\n }\n } \n }", "public int getNUMARGEO() {\n return numargeo;\n }", "long buscarUltimo();", "public StringDt getMaxElement() { \n\t\tif (myMax == null) {\n\t\t\tmyMax = new StringDt();\n\t\t}\n\t\treturn myMax;\n\t}", "public void agregarElemento(K llave, T dato) {\n\n\t\tif (primerElemento == null) {\n\t\t\tNodeTabla<K, T> nodo = new NodeTabla<K, T>(llave, dato, null);\n\t\t\t// agrega el nodo como ultimo y primer elemento\n\t\t\tprimerElemento = nodo;\n\t\t\tultimoElemento = nodo;\n\t\t} else {\n\t\t\t// pone el elemento al final de la fila\n\t\t\tultimoElemento = new NodeTabla<K, T>(llave, dato, ultimoElemento);\n\t\t}\n\n\t\t// incrementa el tamano\n\t\ttamano++;\n\t}", "public void agregarAlFinal(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario recorre la lista hasta llegar al ultimo nodo\r\n //y agrega el nuevo.\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al ultimo nodo.\r\n while(aux.getSiguiente() != null){\r\n aux = aux.getSiguiente();\r\n }\r\n // Agrega el nuevo nodo al final de la lista.\r\n aux.setSiguiente(nuevo);\r\n }\r\n // Incrementa el contador de tamaño de la lista\r\n tamanio++;\r\n }", "public void ordenarXNombreInsercion() {\r\n\t\tfor (int i = 1; i < datos.size(); i++) {\r\n\t\t\tfor (int j = i; j>0 && ( (datos.get(j-1).compare(datos.get(j-1), datos.get(j)))==(1) ); j--) {\r\n\t\t\t\tJugador temp = datos.get(j);\r\n\t\t\t\tdatos.set(j, datos.get(j-1));\r\n\t\t\t\tdatos.set(j-1, temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public T fjern(){\n Node temp = hode.neste;\n temp.neste.forrige = hode;\n hode.neste = temp.neste;\n elementer--;\n return temp.element;\n }", "public void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,gameMemoriaUno.getNumeros(),gameMemoriaUno.getAciertosTotales(),gameMemoriaUno.getFallosTotales(),gameMemoriaUno.getNumEcxluidosList(),gameMemoriaUno.getNumeroPregunta());\n\n }else {\n\n\n gameMemoriaUno.addNumerosSet(numeroSeleccionado);\n for (int i = 1; i < 6; i++) {\n //obtiene numeros del costalito menos el numero seleccionado\n number = gameMemoriaUno.getNumeroArreglo();\n //agrego numeros\n gameMemoriaUno.addNumerosSet(number);\n }\n\n Iterator<Integer> iter = gameMemoriaUno.getNumerosSet().iterator();\n\n int contadorNumeros=0;\n while (iter.hasNext()) {\n int valor=iter.next().intValue();\n lista.add(valor);\n if(gameMemoriaUno.getDificultad()==contadorNumeros){\n gameMemoriaUno.setNumerosElejidos(new int[valor]);\n }\n\n contadorNumeros+=1;\n }\n Collections.shuffle(lista, new Random());\n Collections.shuffle(lista, new Random());\n\n\n\n }\n\n\n }", "public TumpukanInteger(int kapasitas){\r\n elemen = new int[kapasitas];\r\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}", "protected int getElementSize () {\n return 1;\n }", "public int rekisteroi() {\r\n alId = seuraavaNro;\r\n seuraavaNro++;\r\n\r\n return seuraavaNro;\r\n }", "public void agregar(T elemento) {\n\t\tNode <T> agrega= new Node<T>(elemento);\n\t\tNode <T> actual=null;\n\t\tNode <T> anterior = null;\n\t\tactual=primero;\n\t\tboolean agregado=false;\n\t\tif ( numeroElementos==0) {\n\t\t\tprimero = agrega;\n\t\t\tultimo=primero;\n\t\t}\n\t\telse if ( agrega.darElemento().compareTo(ultimo.darElemento())<=0) \n\t\t{\n\t\t\tultimo.asignarSiguiente(agrega);\n\t\t\tultimo=agrega;\n\t\t}\n\t\telse if(agrega.darElemento().compareTo(primero.darElemento())>=0) {\n\t\t\tagrega.asignarSiguiente(primero);\n\t\t\tprimero=agrega;\n\t\t\t}\n\t\telse {\n\t\t\twhile (!agregado) {\n\n\t\t\t\tif (agrega.darElemento().compareTo(actual.darElemento())<0) {\n\t\t\t\t\tanterior= actual;\n\t\t\t\t\tactual=actual.darSiguiente();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse { \n\t\t\t\t\tanterior.asignarSiguiente(agrega);\n\t\t\t\t\tagrega.asignarSiguiente(actual);\n\t\t\t\t\t\tagregado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnumeroElementos++;\n\t}", "private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }", "public void llenarComboUltimoGrado() {\t\n \t\tString respuesta = negocio.llenarComboUltimoGrado(\"\");\n \t\tSystem.out.println(respuesta);\t\n \t}", "@Override\n\tpublic int sacameVida(ElementoFuente a) {\n\t\treturn 10;\n\t}", "public int storrelse(){\n return elementer;\n }", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "public E removeMin() {\n // TODO: YOUR CODE HERE\n E min = getElement(1);\n swap(1, size());\n setElement(size(), null);\n bubbleDown(1);\n size -= 1;\n return min;\n }", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "public void ponerMaximoTiempo() {\n this.timeFi = Long.parseLong(\"2000000000000\");\n }", "@Override\n\tpublic int getNextOperacionDetalle() {\n\t\treturn 0;\n\t}", "public IntegerDt getMaxLengthElement() { \n\t\tif (myMaxLength == null) {\n\t\t\tmyMaxLength = new IntegerDt();\n\t\t}\n\t\treturn myMaxLength;\n\t}", "public void moverElementoSiguiente() {\n\t\tif(elementosMenu!=null && indiceElementoMenuActual< elementosMenu.size()-1) {\n\t\t\tindiceElementoMenuActual++;\n\t\t}\n\t\tsetElementoMenuActual();\n\t}", "private void restaApostado() {\n\t\tif(apostado.get() >= 1.0) apostado.set(apostado.get() -1.0);\n\t\t\tdiruField.setText(String.format(\"%.2f\", apostado.get()));\n\t\t\tactualizaPremio();\n\t\t\t\n\t}", "public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }", "public HTMLElement getElementValorEd() { return this.$element_ValorEd; }", "public int forma()\n {\n return Elemento.CUADRADA;\n }", "public void setValor(Integer valor) {\n\t\tif (valor!=null && valor < this.getCantElementos()) {\n\t\t\tthis.valor = valor;\n\t\t\tthis.entidadGrafica.actualizarImagen(this.valor);\n\t\t}else {\n\t\t\tthis.valor = null;\n\t\t}\n\t}", "private static void atualizaContadorCodigos(ArrayList<Produto> produto) {\n int contadorAtual = produto.size() + 1;\n Produto.setContador(contadorAtual);\n }", "public void addElemento (Elemento obj) {\n if (obj.getPeso() > getPesoLibre() || porNombre.containsKey(obj.getNombre())) {\n System.out.println(nombre +\": No se puede agregar \" + obj.getNombre());\n }\n else {\n porNombre.put(obj.getNombre(), obj);\n addPeso(obj.getPeso());\n }\n }", "public static int retourneMaxNumber() {\n int tmp = 0;\n try {\n String requete = \"SELECT Max(eleve.id_el) AS Maxeleve FROM eleve\";\n ResultSet rs = Connector1.statement.executeQuery(requete);\n while (rs.next()) {\n tmp = rs.getInt(1);\n\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n }\n return tmp;\n }", "public int getPuntajeMaximo() {\n\t\ttry {\r\n\t\t\treturn juego.getPuntajeMaximo();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public T darElemento(){\r\n\t\treturn elemento;\r\n\t}", "public void ordenarXNombreSeleccion() {\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).compare(datos.get(j), menor))==(-1)) {\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 int sacameVida(ElementoPiedra a) {\n\t\treturn 20;\n\t}", "public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}", "private int proximo_sequencia(int atual){\n if (atual + Utils.tamanho_util_pacote > Utils.numero_max_seq) return (atual + Utils.tamanho_util_pacote) - Utils.numero_max_seq;\n else return atual + Utils.tamanho_util_pacote;\n\n }", "public Nodo<Elemento> getProximo() {\n\t\treturn proximo;\n\t}", "public Oferta ValorMaximoXItem1(Integer item_id) throws Exception {\r\n\t\tOferta o = null;\r\n\t\tSystem.out.println(item_id);\r\n\t\tResultSet consulta = conDao\r\n\t\t\t\t.consultaSQL(\"select o.ofer_id as id, o.pos_id as post, o.item_id as item, o.ofer_valor_oferta as valormaximo, \"\r\n\t\t\t\t\t\t+ \"o.ofer_fecha_oferta as fechaofer FROM sub_ofertas o WHERE o.ofer_fecha_oferta=(SELECT MIN(p.ofer_fecha_oferta) \"\r\n\t\t\t\t\t\t+ \"FROM sub_ofertas p where p.item_id = \"\r\n\t\t\t\t\t\t+ item_id\r\n\t\t\t\t\t\t+ \" \"\r\n\t\t\t\t\t\t+ \"and p.ofer_valor_oferta= (SELECT MAX(q.ofer_valor_oferta) FROM sub_ofertas q))\");\r\n\t\tif (consulta != null) {\r\n\t\t\tconsulta.next();\r\n\t\t\to = new Oferta();\r\n\t\t\tSystem.out.println(\"entra a la consulta\");\r\n\t\t\to.setOferId(Integer.parseInt(consulta.getString(\"id\")));\r\n\t\t\to.setSubPostulante(consulta.getString(\"post\"));\r\n\t\t\to.setSubItem(Integer.parseInt(consulta.getString(\"item\")));\r\n\t\t\to.setOferValorOferta(new BigDecimal(consulta\r\n\t\t\t\t\t.getString(\"valormaximo\")));\r\n\t\t\to.setOferFechaOferta(new Timestamp(Funciones.stringToDate(\r\n\t\t\t\t\tconsulta.getString(\"fechaofer\")).getTime()));\r\n\t\t}\r\n\t\treturn o;\r\n\t}", "public void limpiarcarrito() {\r\n setTotal(0);//C.P.M limpiamos el total\r\n vista.jTtotal.setText(\"0.00\");//C.P.M limpiamos la caja de texto con el formato adecuado\r\n int x = vista.Tlista.getRowCount() - 1;//C.P.M inicializamos una variable con el numero de columnas\r\n {\r\n try {\r\n DefaultTableModel temp = (DefaultTableModel) vista.Tlista.getModel();//C.P.M obtenemos el modelo actual de la tabla\r\n while (x >= 0) {//C.P.M la recorremos\r\n temp.removeRow(x);//C.P.M vamos removiendo las filas de la tabla\r\n x--;//C.P.M y segimos disminuyendo para eliminar la siguiente \r\n }\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al limpiar la venta\");\r\n }\r\n }\r\n }", "public void ordenarXPuntajeBurbuja() {\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 (\t(datos.get(j).getPuntaje()) > (datos.get(j+1).getPuntaje())\t) {\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}", "public int compterAnimaux(){\r\n\t\treturn noms.size();\r\n\t}", "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 pop() {\n if (cabeza!= null) {\n //SI CABEZA.SIGUENTE ES DISTINTO A NULO\n if (cabeza.siguiente==null) {\n //CABEZA SERA NULO\n cabeza=null; \n //SE IRAN RESTANDO LOS NODOS\n longitud--;\n } else {\n //DE LO CONTRARIO EL PUNTERO SERA IGUAL A CABEZA\n Nodo puntero=cabeza;\n //MIENTRTAS EL PUNTERO SEA DISITINTO A NULO \n while (puntero.siguiente.siguiente!=null) { \n //PUNTYERO SERA IGUAL A LA DIRECCION DEL SIGUIENTE NODO\n puntero=puntero.siguiente;\n }\n puntero.siguiente=null;\n longitud--;\n }\n }\n }", "public void agregaElemento(Integer valor,T elemento) {\n\t\tthis.coleccion.put(valor,elemento);\n\t}", "int getMindestvertragslaufzeit();", "public int rekisteroi() {\n this.tunnusNro = seuraavaNro;\n Tuote.seuraavaNro++;\n return tunnusNro;\n }", "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 List<Requisicion> getNumeroRequisicion() throws Exception{\n List<Requisicion> requisiciones = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null;\n\n Connection miConexionNum = null;\n Statement miStatementNum = null;\n ResultSet miResultsetNum = null;\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n miConexionNum = origenDatos.getConexion();\n \n //SQL que recupera el ultimo valor\n String consultaReqS = \"select max(numreq) from requisicion\";\n miStatementNum = miConexionNum.createStatement();\n miResultsetNum = miStatementNum.executeQuery(consultaReqS);\n int numeroRequisicion = 0;\n while(miResultsetNum.next()){\n //La columna MAX(REQ) es creada por la consulta de consultaReS\n numeroRequisicion = miResultsetNum.getInt(\"MAX(NUMREQ)\");\n }\n\n String miSql = \"select * from requisicion r where r.numreq = '\"+numeroRequisicion+\"'\";\n miStatement = miConexion.createStatement();\n\n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSql);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\") + 1;\n \n Requisicion temporal = new Requisicion(numReq);\n requisiciones.add(temporal);\n }\n \n return requisiciones;\n\n }", "public void UltimoRegistro(PDetalle pdetalle) throws Exception {\n String sql = \"SELECT \\n\"\n + \"\tCODPRES,\\n\"\n + \"\tCANTFAL,\\n\"\n + \"\tFSALPRES \\n\"\n + \"FROM PRESTAMO\\n\"\n + \"\tWHERE CODPRES = (SELECT MAX(CODPRES) FROM PRESTAMO)\";\n try {\n Statement st = this.conectar().createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n pdetalle.setCODPRESD(rs.getInt(\"CODPRES\"));\n pdetalle.setCANTDET(rs.getString(\"CANTFAL\"));\n pdetalle.setFECHENT(rs.getString(\"FSALPRES\"));\n }\n rs.close();\n st.close();\n } catch (Exception e) {\n System.out.println(\"Error al traer código de prestamo\");\n }\n\n }", "@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}", "public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\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}", "public int getLargeur() {\r\n return largeur;\r\n }", "public Agnello prelevaAgnello() {\n\t\tfor (int i=0; i<pecore.size(); i++)\n\t\t\tif (!(pecore.get(i) instanceof PecoraAdulta)\n\t\t\t\t\t&& !(pecore.get(i) instanceof PecoraNera)) {\n\t\t\t\tnumeroAgelli--;\n\t\t\t\treturn pecore.remove(i);\n\t\t\t}\n\t\treturn null;\n\t}", "public void cargarNotas() {\n\n notas.add(null);\n notas.add(null);\n notas.add(null);\n\n int nota, cont = 0;\n for (int i = 0; i <= 2; i++) {\n\n System.out.println(\"Indique nota \" + (i + 1));\n nota = leer.nextInt();\n notas.set(cont, nota);\n cont++;\n\n }\n\n cont = 0;\n\n }", "public void incrementarArreglo() {\n int tamanio_actual = top + 1; // variable tamaño actual le asignamos el valor de la cima + 1\r\n int[] new_array = new int[tamanio_actual * 2]; // al nuevo arreglo le asignamos el tamaño actual multiplicado por 2\r\n for(int i=0; i<tamanio_actual; i++){ \r\n new_array[i] = array[i]; // ciclo para ir asignando los valores existentes al nuevo arreglo\r\n }\r\n array = new_array; //referenciamos al nuevo arreglo\r\n capacidad = new_array.length; // variable capacidad le damos el valor de la longitud del nuevo arreglo\r\n }", "@Override\n public int compareTo(MensagemEleicao o) {\n int i = relogio.compareTo(o.relogio);\n if(i==0){ //se a comparação do relogio for igual\n if(id<o.getId()){ //usa o id maior como criterio de decisão;\n return -1;\n }\n return 1;\n }\n return i;\n }", "static Nodo ExtraerMin(ArrayList<Nodo> cola, Double[] Costo){\n Double Min = 9999999999999999.9;\n int MinElem = -1;\n /*Se busca el Vertice con Costo minimo en el arreglo Costo*/\n for(int i=0; i<cola.size(); i++){\n if(Costo[cola.get(i).getId()]<Min){\n Min = Costo[i];\n MinElem = i;\n }\n }\n /*Guardamos el Vertice Minimo en R y luego lo eliminamos de la cola*/\n Nodo R = cola.get(MinElem);\n cola.remove(MinElem);\n return R;\n\n }", "public Cafetera(int maximo) {\n\t\t super();\n\t\t this._capacidadMaxima=maximo;\n\t\t this.cantidadActual=maximo;\n\t }" ]
[ "0.6802893", "0.67358255", "0.6732503", "0.6511731", "0.6463458", "0.6457903", "0.6311506", "0.62621903", "0.6257364", "0.61585563", "0.60913295", "0.6076582", "0.6038607", "0.60301554", "0.60064197", "0.59769857", "0.5974213", "0.5961702", "0.5898435", "0.58744866", "0.58592176", "0.58357066", "0.5819824", "0.5797342", "0.5794855", "0.57822794", "0.5771025", "0.576407", "0.5715822", "0.5713759", "0.5682579", "0.56784403", "0.5633334", "0.56316847", "0.56290823", "0.56204486", "0.5620152", "0.55999243", "0.55944216", "0.55587965", "0.5554378", "0.5553517", "0.5548869", "0.55424905", "0.55415386", "0.5538696", "0.5525674", "0.5517819", "0.55064183", "0.55014366", "0.54987097", "0.54943717", "0.5492996", "0.54923105", "0.5490001", "0.5489965", "0.5486057", "0.5483151", "0.5482751", "0.54795873", "0.5474056", "0.54604214", "0.5450842", "0.5448631", "0.54384714", "0.54340833", "0.5409591", "0.5401323", "0.53927654", "0.5388585", "0.53823495", "0.53807235", "0.537624", "0.5367906", "0.5361299", "0.53594005", "0.53541785", "0.53525186", "0.5351429", "0.5349567", "0.534393", "0.5342782", "0.534155", "0.53407395", "0.5313697", "0.53069013", "0.53017557", "0.5298072", "0.5297123", "0.5292752", "0.52896565", "0.52812254", "0.5274621", "0.5270389", "0.52683496", "0.52604645", "0.5260293", "0.5256933", "0.52540225", "0.5250323" ]
0.5974955
16
find all "real" minigames
@Override protected void onCreate(final Bundle pSavedInstanceState) { for (MinigameIdentifier id : MinigameIdentifier.values()) { if (id != MinigameIdentifier.POINTS && id != MinigameIdentifier.RANDOM_MINIGAME) mMinigames.add(id); } super.onCreate(pSavedInstanceState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonFinder whereNameStartsWith(String prefix);", "private String shortPrefix(String name) {\r\n StringBuilder b = new StringBuilder();\r\n String[] splits = name.split(\"_\");\r\n for (int i = 0; i < splits.length; ++i) {\r\n if (splits[i].length() > 0) {\r\n b.append(splits[i].charAt(0));\r\n }\r\n }\r\n if (b.length() < 3) {\r\n b.append(Integer.toString(name.length() % 10));\r\n }\r\n return b.toString().toLowerCase();\r\n }", "String getInitials();", "public String[] findFirstPrefixPairMatches(String unitNameWithPrefix, boolean constrainBasedOnValidUnitNames) {\n Collection<String[]> prefixMatches = findPrefixPairMatches(unitNameWithPrefix, constrainBasedOnValidUnitNames, true);\n if(!prefixMatches.isEmpty()){\n return prefixMatches.iterator().next();\n }\n return NO_PREFIX_MATCH_ARRAY;\n }", "protected String freshLocalName(String hint) {\n if (hint == null || hint.equals(\"\")) {\n hint = \"$local\";\n }\n String fresh;\n if (!takenLocalNames.contains(hint)) {\n fresh = hint;\n } else {\n for (int i = 1; ; i++) {\n fresh = hint + Integer.toString(i);\n if (!takenLocalNames.contains(fresh)) {\n break;\n }\n }\n }\n takenLocalNames.add(fresh);\n return fresh;\n }", "PersonFinder whereFirstNameStartsWith(String prefix);", "public List<int[]> prefixMatches(int minMatchLength) {\r\n List<int[]> matches = new ArrayList<int[]>();\r\n for (int i = 0; i < mSuffixArray.length; ) {\r\n int j = suffixesMatchTo(i,minMatchLength);\r\n if (i + 1 != j) {\r\n matches.add(new int[] { i, j });\r\n i = j;\r\n } else {\r\n ++i;\r\n }\r\n }\r\n return matches;\r\n }", "private boolean containsWildcard(final String min) {\n return min.contains(\"*\")\r\n || min.contains(\"+\")\r\n || min.contains(\"%\")\r\n || min.contains(\"_\");\r\n }", "private Collection<String[]> findPrefixPairMatches(String unitNameWithPrefix, boolean constrainBasedOnValidUnitNames, boolean onlyFirstMatch) {\n Collection<String[]> prefixMatches = new ArrayList<>();\n\n String[] prefixMatchByValue = findPrefixMatchByValue(unitNameWithPrefix, constrainBasedOnValidUnitNames);\n if(prefixMatchByValue != NO_PREFIX_MATCH_ARRAY)\n prefixMatches.add(prefixMatchByValue);\n\n prefixMatches.addAll(findPrefixMatchesByName(unitNameWithPrefix, constrainBasedOnValidUnitNames, onlyFirstMatch));\n\n for(String[] prefixMatch:prefixMatches)\n setProperlyOrderedPrefixNamePairs(prefixMatch);\n\n return prefixMatches;\n }", "public static Set<String> getFullLocaleNameSet(String bundlePrefix, ClassLoader loader)\n/* */ {\n/* 416 */ return getAvailEntry(bundlePrefix, loader).getFullLocaleNameSet();\n/* */ }", "String lookupMashFromName(String name);", "public void testBug631Prefixes() {\n // Set the prefix length large enough so that we ensure prefixes are\n // appropriately tested\n final String[] prototypeNames = {\n \"__proto__\", \"constructor\", \"eval\", \"prototype\", \"toString\",\n \"toSource\", \"unwatch\", \"valueOf\",};\n\n for (int i = 0; i < prototypeNames.length; i++) {\n final String name = prototypeNames[i] + \"AAAAAAAAAAAAAAAAAAAA\";\n final PrefixTree tree = new PrefixTree(prototypeNames[i].length());\n\n assertFalse(\"Incorrectly found \" + name, tree.contains(name));\n\n assertTrue(\"First add() didn't return true: \" + name, tree.add(name));\n assertFalse(\"Second add() of duplicate entry didn't return false: \"\n + name, tree.add(name));\n\n assertTrue(\"contains() didn't find added word: \" + name,\n tree.contains(name));\n\n testSizeByIterator(tree);\n assertTrue(\"PrefixTree doesn't contain the desired word\",\n 1 == tree.size());\n }\n }", "List<String> findMountPointsStartingWith(String urlPrefix);", "public String getGoodWordStartingWith(String s) {\n Random random = new Random();\n String x = s;\n TrieNode temp = searchNode(s);\n if (temp == null){\n return \"noWord\";\n }\n // get a random word\n ArrayList<String> charsNoWord = new ArrayList<>();\n ArrayList<String> charsWord = new ArrayList<>();\n String c;\n\n while (true){\n charsNoWord.clear();\n charsWord.clear();\n for (String ch: temp.children.keySet()){\n if (temp.children.get(ch).isWord){\n charsWord.add(ch);\n } else {\n charsNoWord.add(ch);\n }\n }\n System.out.println(\"------>\"+charsNoWord+\" \"+charsWord);\n if (charsNoWord.size() == 0){\n if(charsWord.size() == 0){\n return \"sameAsPrefix\";\n }\n s += charsWord.get( random.nextInt(charsWord.size()) );\n break;\n } else {\n c = charsNoWord.get( random.nextInt(charsNoWord.size()) );\n s += c;\n temp = temp.children.get(c);\n }\n }\n if(x.equals(s)){\n return \"sameAsPrefix\";\n }else{\n return s;\n }\n }", "public static Set<String> getFullLocaleNameSet()\n/* */ {\n/* 406 */ return getFullLocaleNameSet(\"com/ibm/icu/impl/data/icudt48b\", ICU_DATA_CLASS_LOADER);\n/* */ }", "public List<String> getAllWordsStartingWith(String prefix) {\n prefix = prefix.toUpperCase();\n TrieNode node = root;\n List<String> li = new ArrayList<>();\n for (int i = 0; i < prefix.length(); i++) {\n char ch = prefix.charAt(i);\n if (node.get(ch) == null) {\n return li;\n }\n node = node.get(ch);\n }\n\n dfs(node, li, prefix);\n return li;\n }", "public String getAllMinionNames() throws SQLException {\n PreparedStatement selectAllMinionNamesStmt = this.connection.prepareStatement(Queries.SELECT_ALL_MINION_NAMES);\n ResultSet resultSetWithMinionNames = selectAllMinionNamesStmt.executeQuery();\n\n List<String> minionNamesInOriginalOrder = new ArrayList<>();\n\n while (resultSetWithMinionNames.next()) {\n minionNamesInOriginalOrder.add(this.getResultForOneRecord(resultSetWithMinionNames).toString());\n }\n\n StringBuilder outputMinionNames = new StringBuilder();\n\n //If the records count is even\n if (minionNamesInOriginalOrder.size() % 2 == 0) {\n for (int i = 0; i < minionNamesInOriginalOrder.size() / 2; i++) {\n outputMinionNames.append(minionNamesInOriginalOrder.get(i)).append(System.lineSeparator());\n outputMinionNames.append(minionNamesInOriginalOrder.get(minionNamesInOriginalOrder.size() - 1 - i));\n if (i < minionNamesInOriginalOrder.size() / 2 - 1) {\n outputMinionNames.append(System.lineSeparator());\n }\n }\n } else { //If it is odd\n for (int i = 0; i <= minionNamesInOriginalOrder.size() / 2; i++) {\n //This is the middle record in the minion table, if the count is odd.\n if (i == minionNamesInOriginalOrder.size() / 2) {\n outputMinionNames.append(minionNamesInOriginalOrder.get(i));\n } else {\n outputMinionNames.append(minionNamesInOriginalOrder.get(i)).append(System.lineSeparator());\n outputMinionNames.append(minionNamesInOriginalOrder.get(minionNamesInOriginalOrder.size() - 1 - i)).append(System.lineSeparator());\n }\n }\n }\n\n return outputMinionNames.toString();\n }", "Collection<String> names();", "public List<? extends Name> getNames(String arg0) {\n\t\treturn null;\n\t}", "String getSynonyms();", "List<String> getAllNamesTrunc(int maxLength);", "static void getMidWidNames() throws IOException {\n\t\tHashMap<String, String[]> mid2other = new HashMap<String, String[]>();\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2wid);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tif (mid2other.containsKey(l[0])) {\r\n\t\t\t\t\tString[] s = mid2other.get(l[0]);\r\n\t\t\t\t\ts[1] = s[1] + \"::\" + l[1];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tString[] s = new String[5];\r\n\t\t\t\t\ts[0] = l[0] + \"\";\r\n\t\t\t\t\ts[1] = l[1] + \"\";\r\n\t\t\t\t\ts[2] = \"\";\r\n\t\t\t\t\ts[3] = \"\";\r\n\t\t\t\t\ts[4] = \"\";\r\n\t\t\t\t\tmid2other.put(l[0], s);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load notable type\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2notabletype);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tString mid = l[0];\r\n\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\tif (s[2].equals(\"\")) {\r\n\t\t\t\t\t\ts[2] = l[1];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ts[2] = s[2] + \"::\" + l[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load names & alias\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbdump_2_len4);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\t// set name\r\n\t\t\t\tif (l[1].equals(\"/type/object/name\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[3].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[3] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[3] = s[3] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (l[1].equals(\"/common/topic/alias\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//write\r\n\t\t{\r\n\t\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_midWidTypeNameAlias);\r\n\t\t\tfor (Entry<String, String[]> e : mid2other.entrySet()) {\r\n\t\t\t\tdw.write(e.getValue());\r\n\t\t\t}\r\n\t\t\tdw.close();\r\n\t\t}\r\n\t}", "private void populatePrefixMappings(OntModel model) {\n\t\tMap<String, String> pm = model.getNsPrefixMap();\n\t\tneededPrefixesForQueries = new String[pm.keySet().size()];\n\t\tint i=0;\n\t\tfor(String key:pm.keySet())\n\t\t{\n\t\t\tneededPrefixesForQueries[i] = key + \": <\" + pm.get(key) + \">\";\n\t\t\ti++;\n\t\t}\n\t}", "Iterable<String> getRegisteredNames();", "@Override\n\tpublic List<String> findFirstNames() {\n\t\treturn userDao.findFirstNames(true);\n\t}", "SimpleString getPrefix(SimpleString address);", "public List<? extends Name> getAllNames() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Member> findMemberFirstname(String memberFirstname) {\n\t\treturn null;\n\t}", "public static Set<String> getPrefixes(int minimumLength, String blockingKey, boolean strict_minimum) {\r\n final Set<String> prefixes = new HashSet<>();\r\n if (blockingKey.length() < minimumLength && !strict_minimum) {\r\n prefixes.add(blockingKey);\r\n } else {\r\n for (int i = minimumLength; i < blockingKey.length() + 1; i++) {\r\n prefixes.add(blockingKey.substring(0, i));\r\n }\r\n }\r\n return prefixes;\r\n }", "public Collection<String[]> findAllPrefixPairMatches(String unitNameWithPrefix, boolean constrainBasedOnValidUnitNames) {\n return findPrefixPairMatches(unitNameWithPrefix, constrainBasedOnValidUnitNames, false);\n }", "public static Function<CharSequence, CharSequence> findPrefixes(CharSequence... prefixen) {\n return MatchWords.findPrefixes(prefixen);\n }", "public static void checkPrefix(Token t) {\r\n\t\tIterator<String> it = WordLists.lastNamePrefixes().iterator();\r\n\t\t\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tString prefix = it.next();\r\n\t\t\t\r\n\t\t\tif(t.getName().contains(prefix)) {\r\n\t\t\t\tt.getFeatures().setPrefix(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "private void initLocalAndPrefix(){\n\t\tint indexTwoDot = name.indexOf(\":\");\n\t\tif(indexTwoDot != -1){\n\t\t\tprefix = name.substring(0,indexTwoDot);\n\t\t\tlocalName = name.substring(indexTwoDot+1,name.length());\n\t\t}\n\t\telse {\n\t\t\tprefix = \"\";\n\t\t\tlocalName = name;\n\t\t}\n\t}", "public boolean startsWith(String prefix) {\n char [] words=prefix.toCharArray();\n CharTree t=root;\n for (char c : words) {\n t=t.next[c-97];\n if(t==null)return false;\n }\n return true;\n }", "String getPrefix();", "String getPrefix();", "String getPrefix();", "String getPrefix();", "public void test_selectList_prefixSearch_Tx() throws Exception {\n // ## Arrange ##\n final String prefix = \"S\";\n\n // ## Act ##\n final List<Member> memberList = jdbcManager.from(Member.class).where(\"memberName like ?\", prefix + \"%\")\n .orderBy(\"birthdate desc, memberId asc\").getResultList();\n\n // Assert ##\n assertNotNull(memberList);\n assertNotSame(0, memberList.size());\n for (Member member : memberList) {\n log(member.toString());\n assertTrue(member.memberName.startsWith(prefix));\n }\n }", "protected char[] indexEntryPrefix() {\n\tif (this.simpleName == null) // Optimization, eg. type reference is 'org.eclipse.jdt.core.*'\n\t\treturn indexEntryPrefix(REF, this.segments[this.currentSegment]);\n\n\treturn indexEntryPrefix(this.currentTag, this.simpleName);\n}", "public static void main(String[] args) {\n\t\tString input = \"the quick brown fox jumped over the lazy dog\";\n\t\tSystem.out.println(Arrays.toString(tokenize(input)));\n\t\t\n\t\tSystem.out.println(detectPrefix(\"quick\"));\n\t\tSystem.out.println(detectPrefix(\"one\"));\n\t\tSystem.out.println(detectPrefix(\"brown\"));\n\t\t\n\t}", "java.util.List<java.lang.String>\n getBiasPrefixMatchList();", "public static void main(String[] args) {\n\r\n\t\tArrays.asList(\"Fred\", \"jim\", \"Sheila\")\r\n\t\t.stream()\r\n\t\t.peek(System.out::println)\r\n\t\t.allMatch(s -> s.startsWith(\"F\")); // fred jim\r\n\t}", "public abstract List<String> scanAllClassNames();", "public static Set<String> getAvailableLocaleNameSet(String bundlePrefix, ClassLoader loader)\n/* */ {\n/* 398 */ return getAvailEntry(bundlePrefix, loader).getLocaleNameSet();\n/* */ }", "public List<String> autocomplete(String prefix) {\r\n\r\n ArrayList<String> result = new ArrayList<String>();\r\n result.add(\"England\");\r\n result.add(\"France\");\r\n result.add(\"Germany\");\r\n result.add(\"Italy\");\r\n result.add(\"Spain\");\r\n\r\n return result;\r\n }", "private String[] getnames(String name) {\n\t\tString tt[]={name};\n\t\t//tt[0]=name;\n\t\tList<Integer> imp=new ArrayList<Integer>();\n int temp=0;\n\t\ttemp=name.length();\n char ch[]=name.toCharArray();\n for(int i=0;i<temp;i++){\n \tif(ch[i]==' ')\n \t{imp.add(i);\n \t//System.out.println(i);\n \t}\n\n }\n int h=0;\n int nxt;\n\n Iterator<Integer> iterator = imp.iterator();\n int i=0;\n while(iterator.hasNext())\n { nxt=iterator.next();\n\n // System.out.println(haha);\n tt[i]=name.substring(h,nxt);\n i++;\n h=nxt+1;\n }\n\n\t\t\n\t\treturn tt;\n\t}", "Set<String> getGameShortcodes();", "@Test\n\tpublic void simpleNameNormalizationTest() {\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"MacMillan, Don\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Jana, DK\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"A. Kruger\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Peter axyz ac\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Peter Ãac\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Gestionnaire HAL-SU\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Christophe Penkerc'h\"));\n\t\t\n\t\tSet<String> wrongNameTokens = new HashSet<String>(2);\n\t\twrongNameTokens.add(\"phd\");\n\t\twrongNameTokens.add(\"professor\");\n\t\twrongNameTokens.add(\"of\");\n\t\twrongNameTokens.add(\"nutrition\");\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleNameByWrongNameTokens(\"A. Kruger PhD, Professor Of Nutrition\",\n\t\t\t\twrongNameTokens));\n\t}", "private String findFrom(String from) {\n\t\tPattern UNIT = Pattern.compile(\"^\\\\w+.\\\\w+(?=\\\\ )\"); // Match two words\n\t\tMatcher m = UNIT.matcher(from);\n\t\twhile (m.find()) {\n\t\t\tfrom = m.group(0);\n\t\t}\n\t\treturn from;\n\t}", "Set<String> getRangeLocalNames();", "public static String replaceNonmolSuffixes(String name){\r\n\t\tString[] nomSuffixes = {\"sp.\",\" sp\", \"spp.\",\" spp\",\" gen\",\"gen.\",\" nov\",\"nov.\",\" sp.nov\",\"sp.nov.\"};\r\n\t\tname = name.trim();\r\n\t\tfor(String suff: nomSuffixes){\r\n\t\t\tif(name.endsWith(suff)){\r\n\t\t\t\treturn name.replace(suff, \"\").trim();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "private List<String> getNames(String tag) {\n List<String> names = new ArrayList<>();\n for (Map.Entry<String, Object> item : input.entrySet()) {\n if (item.getKey().startsWith(tag)) {\n names.add((String) item.getValue());\n }\n }\n return names;\n }", "@Override\n\tpublic List<User> getFirstNamesLike(String username) {\n\t\tQuery query = entityManager.createNativeQuery(\"SELECT em.* FROM spring_data_jpa_example.username as em \" +\n \"WHERE em.username LIKE ?\", User.class);\n query.setParameter(1, username + \"%\");\n return query.getResultList();\n\t}", "protected boolean containsName(String full, String prefixes) {\n String[] prefixArray = StringUtils.split(prefixes, \",\");\n for (String prefix : prefixArray) {\n if (StringUtils.startsWith(full, StringUtils.trimToEmpty(prefix))) {\n return true;\n }\n }\n return false;\n }", "private void calcNames() {\n final AddressBook addressBook = platform.getAddressBook();\n numColumns = addressBook.getSize();\n if (numColumns != numMembers) {\n numMembers = numColumns;\n names = new String[numColumns];\n for (int i = 0; i < numColumns; i++) {\n final NodeId nodeId = addressBook.getNodeId(i);\n names[i] = addressBook.getAddress(nodeId).getNickname();\n }\n }\n }", "public boolean startsWith(String prefix) {\n char[] chs = prefix.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n return false;\n }\n cur = cur.map[ind];\n }\n return true;\n }", "public abstract String getPrefix();", "public abstract String[] names() throws TrippiException;", "Collection<String> getMappingPrefixes();", "public Map<CharSequence, CharSequence> getReplacableNames();", "public List<String> findBroadSynonyms(String gene){\n\t\t\n\t\treturn findSynonyms(gene, \"broad\");\n\t}", "static String m33125a(String name) {\n StringBuilder fieldNameBuilder = new StringBuilder();\n int index = 0;\n char firstCharacter = name.charAt(0);\n int length = name.length();\n while (index < length - 1 && !Character.isLetter(firstCharacter)) {\n fieldNameBuilder.append(firstCharacter);\n index++;\n firstCharacter = name.charAt(index);\n }\n if (Character.isUpperCase(firstCharacter)) {\n return name;\n }\n fieldNameBuilder.append(m33124a(Character.toUpperCase(firstCharacter), name, index + 1));\n return fieldNameBuilder.toString();\n }", "public void testNodesWithNames() {\n\t\tString[] grp1 = new String[] {\"Paucituberculata\", \"Microbiotheria\", \"Dasyuromorphia\", \"Peramelemorphia\", \"Didelphimorphia\"};\n\t\tString[] grp2 = new String[] {\"Omma jurassicum\", \"Omma sagitta\", \"Omma rutherfordi\"};\n\t\tString[] grp3 = new String[] {\"Meru phyllisae\", \"Haliplidae\", \"Gyrinidae\"};\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp1)), new Long(15994));\n\t\t//Paucituberculata Microbiotheria Dasyuromorphia Peramelemorphia Didelphimorphia 15994\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp2)), new Long(9042));\n\t\t//Omma jurassicum Omma sagitta Omma rutherfordi 9042\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp3)), new Long(8875));\n\t\t//Meru phyllisae Haliplidae Gyrinidae 8875\n\t}", "public Set<String> hyponyms(String word) {\n Set<Integer> synIDs = new TreeSet<Integer>();\n Set<Integer> synKeys = synsetMap.keySet();\n for (Integer id : synKeys) {\n if (synsetMap.get(id).contains(word)) {\n synIDs.add(id);\n }\n }\n Set<Integer> hypIDs = GraphHelper.descendants(g, synIDs);\n Set<String> result = new TreeSet<String>();\n\n for (Integer i : hypIDs) {\n ArrayList<String> al = synsetMap.get(i);\n result.addAll(al);\n }\n return result;\n }", "public List<String> getAutoComplete(String prefix) {\r\n List<String> words = dict.getAutoComplete(prefix); //get list of words from prefix\r\n System.out.println();\r\n System.out.println(\"Autocomplete words : \");\r\n for (String s : words) {\r\n System.out.println(s);\r\n }\r\n return words;\r\n }", "private final Set<String> m1026d() {\n HashSet hashSet = new HashSet();\n Bundle e = m1027e();\n if (e != null) {\n String string = e.getString(\"com.android.dynamic.apk.fused.modules\");\n if (string == null || string.isEmpty()) {\n f978a.mo34139a(\"App has no fused modules.\", new Object[0]);\n } else {\n Collections.addAll(hashSet, string.split(\",\", -1));\n hashSet.remove(\"\");\n hashSet.remove(\"base\");\n }\n }\n if (Build.VERSION.SDK_INT >= 21) {\n String[] strArr = null;\n try {\n PackageInfo packageInfo = this.f979b.getPackageManager().getPackageInfo(this.f980c, 0);\n if (packageInfo != null) {\n strArr = packageInfo.splitNames;\n }\n } catch (PackageManager.NameNotFoundException unused) {\n f978a.mo34143d(\"App is not found in PackageManager\", new Object[0]);\n }\n if (strArr != null) {\n f978a.mo34139a(\"Adding splits from package manager: %s\", Arrays.toString(strArr));\n Collections.addAll(hashSet, strArr);\n } else {\n f978a.mo34139a(\"No splits are found or app cannot be found in package manager.\", new Object[0]);\n }\n C2074n a = C2075o.m1022a();\n if (a != null) {\n hashSet.addAll(a.mo34289a());\n }\n }\n return hashSet;\n }", "public Set<Sportive> filterByFirstName(String st){\n Iterable<Sportive> materials = repo.findAll();\n return StreamSupport.stream(materials.spliterator(), false).filter(sportive -> sportive.getFirstName().contains(st)).collect(Collectors.toSet());\n }", "static void getFullsetMid2Name() throws IOException {\n\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_mid2namesfullset);\r\n\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbdump_2_len4);\r\n\t\tString[] l;\r\n\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t// set name\r\n\t\t\tif (l[1].equals(\"/type/object/name\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\tString mid = l[0];\r\n\t\t\t\tString name = l[3];\r\n\t\t\t\tdw.write(mid, name, \"name\");\r\n\t\t\t}\r\n\t\t\tif (l[1].equals(\"/common/topic/alias\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\tString mid = l[0];\r\n\t\t\t\tString name = l[3];\r\n\t\t\t\tdw.write(mid, name, \"alias\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tdw.close();\r\n\t}", "boolean isPrefix(String potentialPrefix);", "public String mangle(String sName);", "String[] getInternalNetworkPrefix();", "String lookupNameFromMash(final String mash);", "Set<String> getNames();", "public static String[] getCommonNodeNames(String[] shortNames, IArchetypeService service) {\r\n return getCommonNodeNames(shortNames, null, service);\r\n }", "public boolean startsWith(String prefix) {\n int length = prefix.length();\n if(length == 0){\n return false;\n }\n\n char[] chars = prefix.toCharArray();\n\n Map<Character,Node> map = this.root.map;\n // 需要保证word的结尾是endfr\n for(int i = 0;i < length;i++){\n if(!map.containsKey(chars[i])) {\n return false;\n }\n\n map = map.get(chars[i]).map;\n }\n return true;\n }", "public static String[] getCommonNodeNames(String shortNames, IArchetypeService service) {\r\n return getCommonNodeNames(shortNames, null, service);\r\n }", "private TrieNode searchPrefix(String word) {\n\t\tTrieNode node = root;\n\t\tfor (char c: word.toCharArray()) {\n\t\t\tif (node.containsKey(c)) {\n\t\t\t\tnode = node.get(c);\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}", "public boolean unitNameHasPrefix(String unitNameWithPrefix, boolean constrainBasedOnValidUnitNames){\n return findFirstPrefixPairMatches(unitNameWithPrefix, constrainBasedOnValidUnitNames) != NO_PREFIX_MATCH_ARRAY;\n }", "public List<String> findNarrowSynonyms(String gene){\n\t\t\n\t\treturn findSynonyms(gene, \"narrow\");\n\t}", "public String bestMatch(String prefix) {\n\t\tif(prefix != null){\n\t\t\tfor(int i = 0; i < data.getRawList().size();i++){\n\t\t\t\tif(data.getRawList().get(i).getWord().startsWith(prefix)){\n\t\t\t\t\treturn data.getRawList().get(i).getWord();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public List<String> getPatternNames() {\n List<String> nameList = new LinkedList<String>();\r\n for(Pattern pattern : patterns) {\r\n nameList.add(pattern.getName());\r\n }\r\n Collections.sort(nameList, new Comparator<String>() {\r\n public int compare(String name1, String name2) {\r\n return name1.compareToIgnoreCase(name2);\r\n }\r\n });\r\n return nameList;\r\n }", "public Term[] allMatches(String prefix) {\r\n if (prefix == null) {\r\n throw new java.lang.NullPointerException();\r\n }\r\n Term temporary = new Term(prefix, 0);\r\n \r\n int x = BinarySearchDeluxe.firstIndexOf(queries, temporary, Term.byPrefixOrder(prefix.length()));\r\n int y = BinarySearchDeluxe.lastIndexOf(queries, temporary, Term.byPrefixOrder(prefix.length()));\r\n \r\n if (x == -1 || y == -1) {\r\n throw new java.lang.NullPointerException();\r\n }\r\n Term[] matches = new Term[y - x + 1];\r\n matches = Arrays.copyOfRange(queries, x, y);\r\n Arrays.sort(matches, Term.byReverseWeightOrder());\r\n return matches;\r\n }", "protected Collection<String> getInitialObjectNames() {\r\n \t\tif (initialObjectNames == null) {\r\n \t\t\tinitialObjectNames = new ArrayList<String>();\r\n \t\t\tfor (EClassifier eClassifier : reqif10Package.getEClassifiers()) {\r\n \t\t\t\tif (eClassifier instanceof EClass) {\r\n \t\t\t\t\tEClass eClass = (EClass)eClassifier;\r\n \t\t\t\t\tif (!eClass.isAbstract()) {\r\n \t\t\t\t\t\tinitialObjectNames.add(eClass.getName());\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tCollections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());\r\n \t\t}\r\n \t\treturn initialObjectNames;\r\n \t}", "public List<String> findExactSynonyms(String gene){\n\t\t\n\t\treturn findSynonyms(gene, \"exact\");\n\t}", "public String getAnyWordStartingWith(String s) {\n TrieNode temp = searchNode(s);\n if (temp == null){\n return \"noWord\";\n }\n while (!temp.isWord){\n for (String c: temp.children.keySet()){\n temp = temp.children.get(c);\n s += c;\n break;\n }\n }\n return s;\n }", "public String getPrefix();", "public String getPrefix();", "public StringList lookupNames(String name) throws UnknownHostException\n {\n StringList names=new StringList(); \n \n // cached lookup \n InetAddress[] addres = lookup(name); \n \n for (InetAddress addr:addres)\n {\n // only add unique hostnames\n names.add(addr.getHostName(),true); // getHostName()); \n }\n \n return names; \n }", "public boolean startsWith(String word) {\n\t\tTrieNode temp = root;\n\t\tint c;\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tc = word.charAt(i) - 'a';\n\t\t\tif (temp.childrens[c] == null)\n\t\t\t\treturn false;\n\n\t\t\ttemp = temp.childrens[c];\n\t\t}\n\n\t\treturn true;\n\t}", "private Set<String> getPostScriptNames(String postScriptName) {\n/* 179 */ Set<String> names = new HashSet<String>();\n/* */ \n/* */ \n/* 182 */ names.add(postScriptName);\n/* */ \n/* */ \n/* 185 */ names.add(postScriptName.replaceAll(\"-\", \"\"));\n/* */ \n/* 187 */ return names;\n/* */ }", "@Test\n public void testGetAllAtomMapping() throws InvalidSmilesException {\n System.out.println(\"getAllAtomMapping\");\n SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());\n IAtomContainer target = sp.parseSmiles(\"C\\\\C=C/Nc1cccc(c1)N(O)\\\\C=C\\\\C\\\\C=C\\\\C=C/C\");\n IAtomContainer query = sp.parseSmiles(\"Nc1ccccc1\");\n\n VF2lib smsd1 = new VF2lib();\n smsd1.set(query, target);\n smsd1.searchMCS(true);\n assertNotNull(smsd1.getFirstMapping());\n\n assertEquals(4, smsd1.getAllAtomMapping().size());\n }", "void getProcNamesWithPrefix(Future<Set<String>> procNames, String baseDir, String appId, String clusterId, String procPrefix);", "public static List<String> parseMangledNestings(String s) {\n\t\tList<String> results = new ArrayList<>();\n\t\tMatcher m = MANGLED_NESTING_REGEX.matcher(s);\n\t\tif (!m.matches()) {\n\t\t\treturn results;\n\t\t}\n\t\ts = m.group(2);\n\n\t\tint cp = 0;\n\t\twhile (cp < s.length()) {\n\t\t\tint start = cp;\n\t\t\twhile (Character.isDigit(s.charAt(cp)) && cp < s.length()) {\n\t\t\t\tcp++;\n\t\t\t}\n\t\t\tif (start == cp) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint len = Integer.parseInt(s.substring(start, cp));\n\t\t\tif (cp + len <= s.length()) {\n\t\t\t\tString name = s.substring(cp, cp + len);\n\t\t\t\tresults.add(name);\n\t\t\t}\n\t\t\tcp += len;\n\t\t}\n\t\treturn results;\n\t}", "private String findMin(Map<String, Node> nodeList)\n\t{\n\t\tint min = Integer.MAX_VALUE;\n\t\tString sommet = null;\n\t\t\n\t\tfor (String nodeName : nodeList.keySet()) {\n\t\t\tint distance = nodeList.get(nodeName).getDistanceFromOrigin();\n\n\t\t\tif(min > distance) {\n\t\t\t\tmin = distance;\n\t\t\t\tsommet = nodeName;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sommet;\n\t}", "public Set<String> regexFindKeys(String regex);", "private List<String> findSynonyms(String gene,String scope){\n\t\t\n\t\tList<String> li = new ArrayList<String> ();\n\t\t\n\t\tif (this.termSet.contains(gene)){\n\t\t\tfor (String str:this.synonymDictionary.get(gene).get(scope)){\n\t\t\t\tli.add(str);\n\t\t\t};\n\t\t}\n\t\treturn li;\n\t\n\t}", "public boolean isCompanyShortNameTaken(String shortName);", "private void filterStudents() {\n Scanner sc = new Scanner(System.in);\n System.out.print(\"The string with which you want the student first name to start: \");\n String anAwesomeString = sc.next();\n\n System.out.println(\"Filtered students (the ones whose first name start with \" + anAwesomeString + \"):\");\n Set<Student> students = ctrl.filterStudentsByFirstName(anAwesomeString);\n if (students.isEmpty())\n System.out.println(\"There isnt't any student whose name starts with the given string!\");\n else\n students.forEach(System.out::println);\n }", "private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public boolean startsWith(String word) {\n TrieNode tn = root;\n int len = word.length();\n for(int i=0; i<len; i++){\n char c = word.charAt(i);\n TrieNode temp = tn.hm.get(c);\n if(temp == null) return false;\n tn = temp;\n }\n return true;\n }" ]
[ "0.5538939", "0.53674334", "0.5355112", "0.532589", "0.5188138", "0.5180593", "0.5177712", "0.51666015", "0.51629", "0.51573676", "0.513258", "0.50945973", "0.506409", "0.503693", "0.5008781", "0.50073147", "0.49860016", "0.49752945", "0.4970524", "0.49697784", "0.49525857", "0.49474835", "0.49460092", "0.4943304", "0.49379036", "0.49323338", "0.49253458", "0.49042147", "0.49005783", "0.48999742", "0.48997843", "0.4892547", "0.48882857", "0.4862299", "0.48564145", "0.48564145", "0.48564145", "0.48564145", "0.4854165", "0.48259017", "0.48218694", "0.48169836", "0.4812112", "0.48092523", "0.4801266", "0.47978675", "0.477794", "0.47760767", "0.4774773", "0.4769284", "0.4766503", "0.4765493", "0.476161", "0.47597733", "0.47574258", "0.47514978", "0.4742948", "0.47400835", "0.47377044", "0.47150072", "0.4713439", "0.47082853", "0.47073475", "0.46992183", "0.46927866", "0.46889082", "0.46859393", "0.46857888", "0.46813288", "0.46765742", "0.46761975", "0.46744743", "0.46704644", "0.46655765", "0.46636838", "0.4663489", "0.46570528", "0.46513575", "0.4648712", "0.4645253", "0.46439105", "0.46406618", "0.46325135", "0.46302676", "0.4626706", "0.46229264", "0.4621877", "0.4621877", "0.46142966", "0.46080875", "0.46051618", "0.46016267", "0.45988154", "0.45932278", "0.45903075", "0.4585141", "0.45831493", "0.4582274", "0.45751432", "0.45743865", "0.45728567" ]
0.0
-1
DO THE UPDATE NOW//
private void updateUserInfo(final String username, String em, String status) { FirebaseDatabase.getInstance().getReference().child("Users").addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { Log.d(TAG, "onDataChange: " + dataSnapshot); for (DataSnapshot snapshot : dataSnapshot.getChildren()) { } } @Override public void onCancelled(DatabaseError databaseError) { } }); progressDialog.setMessage("Please wait while your your profile gets updated"); progressDialog.show(); final Map<String, Object> userMap = new HashMap<>(); userMap.put("name", Handy.getTrimmedName(username)); userMap.put("email", em); userMap.put("status", status); Map map = new HashMap(); Double v = points + 0.25; map.put("points", v); map.put("fitnessPoint", Handy.fitnessPoint(v)); userPoints.setValue(map); databaseReference.updateChildren(userMap).addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { if (task.isSuccessful()) { userSearchNode.updateChildren(userMap); UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder() .setDisplayName(Handy.getTrimmedName(username)) .build(); user.updateProfile(profileUpdates).addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { progressDialog.dismiss(); Log.d(TAG, "onComplete: Updated success"); Toast.makeText(EditProfileActivity.this, "Information has been updated successfully", Toast.LENGTH_SHORT).show(); finish(); } }); } else { progressDialog.hide(); Toast.makeText(EditProfileActivity.this, "Sorry could not update your profile Info", Toast.LENGTH_SHORT).show(); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doUpdate(long now) {\n eyeCandy.update();\n }", "public void update() {}", "public void update(){}", "public void update(){}", "public void update() {\n\t\t\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void willbeUpdated() {\n\t\t\n\t}", "boolean update();", "public void update(){\n \t//NOOP\n }", "public void update() {\r\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "public void update(){\r\n\t\t\r\n\t}", "public void update() ;", "public void update() {\n }", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "void executeUpdate();", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "public void executeUpdate();", "@Override\r\n\tpublic void update() {\r\n\t}", "void updateIfNeeded()\n throws Exception;", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "public void update() {\n\t\tupdate(1);\n\t}", "boolean needUpdate();", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "public void requestUpdate(){\n shouldUpdate = true;\n }", "public void update() {\n \t\tissueHandler.checkAllIssues();\n \t\tlastUpdate = System.currentTimeMillis();\n \t}", "@Override\n\tpublic void update() { }", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "public void update() {\n\n }", "public void update() {\n\n }", "public void checkForUpdate();", "public void update(){\r\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void update() {\n\t\tmLast = mNow;\n\t\tmNow = get();\n\t}", "@Override\r\n\tpublic int update() throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\n public void update() {\n this.blnDoUpdate.set(true);\n }", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public final void update(){\n if(waitingToExecute){\n execute();\n waitingToExecute = false;\n }\n }", "@Override\n public void update() {\n }", "@Override\n public void update() {\n \n }", "public void update(){\n }", "Update createUpdate();", "private void updateDB() {\n }", "public void makeUpdate()\n {\n this.mustUpdate = true;\n }", "public void update()\n\t{\n\t\tsuper.update();\n\t}", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "protected abstract void update();", "protected abstract void update();", "protected abstract void update();", "@Override\n public void update()\n {\n\n }", "@Override\n public void update() {\n\n }", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "long getUpdated();", "Motivo update(Motivo update);", "@Override\r\n\tpublic boolean update(Moteur obj) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean doUpdate(SysUser b) throws Exception {\n\t\treturn false;\n\t}", "@Override\n\tprotected void doUpdate(Session session) {\n\n\t}", "public void attemptToUpdate();", "@Override\n public void update() {\n }" ]
[ "0.7462956", "0.74536484", "0.7428581", "0.7428581", "0.7382799", "0.73813915", "0.73813915", "0.73813915", "0.73813915", "0.73164755", "0.730834", "0.72798634", "0.7268808", "0.72126216", "0.72126216", "0.71972764", "0.71972764", "0.71972764", "0.71972764", "0.71972764", "0.7161819", "0.7161819", "0.7161819", "0.7140211", "0.71243876", "0.7115976", "0.7111552", "0.7111552", "0.7073535", "0.7067393", "0.70578873", "0.70578873", "0.7043082", "0.70415854", "0.7041325", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.70138043", "0.7012735", "0.700488", "0.700488", "0.70010036", "0.7000999", "0.69873357", "0.6971223", "0.6971223", "0.6971223", "0.69687694", "0.6968738", "0.6968738", "0.6968738", "0.6968738", "0.6968738", "0.6968738", "0.6968738", "0.6968738", "0.6968738", "0.6968738", "0.69656795", "0.69656795", "0.6913123", "0.69056034", "0.68977016", "0.6866771", "0.68579787", "0.6848295", "0.6827025", "0.6827025", "0.6827025", "0.6827025", "0.6827025", "0.6827025", "0.6827025", "0.6810859", "0.6810087", "0.67926663", "0.6791357", "0.6788059", "0.6773946", "0.6769669", "0.6760575", "0.6745889", "0.6745016", "0.6745016", "0.6735116", "0.67103386", "0.66933805", "0.66696", "0.66696", "0.66696", "0.6642855", "0.66340727", "0.6621261", "0.662126", "0.6619551", "0.6616587", "0.66123706" ]
0.0
-1
verifiy all the permissions passed to the array
public void verifyPermissions(String[] permissions) { Log.d(TAG, "verifyPermissions: verifying permissions."); ActivityCompat.requestPermissions( EditProfileActivity.this, permissions, VERIFY_PERMISSIONS_REQUEST ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPermissions(boolean [] permissions)\n\t{\n\t\tthis.permissions = permissions;\n\t}", "private boolean checkPermissionsArray(String[] permissions)\n {\n Log.d(TAG,\"checkPErmissionsArray\");\n for(int i=0;i<permissions.length;i++)\n {\n String check=permissions[i];\n if(checkPermissions(check))\n {\n return false;\n }\n }\n return true;\n }", "public boolean [] getPermissions()\n\t{\n\t\treturn this.permissions;\n\t}", "void mo26168a(Activity activity, String[] strArr, IPermissionCallback nVar);", "private String[] getManifestPermissions(Activity paramActivity) {\n }", "public boolean hasAllPermissions(Context paramContext, String[] paramArrayOfString) {\n }", "public Permission[] getPermissionsField() {\n\treturn super.getPermissions(null);\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "public void updatePermissions(IPermission[] permissions) throws AuthorizationException;", "public void setPermissions(List<Permission> permissions)\r\n/* */ {\r\n/* 235 */ this.permissions = permissions;\r\n/* */ }", "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "@TargetApi(23)\r\n public void requestPermission() {\r\n ArrayList<String> arrayList;\r\n String[] strArr = this.mPermissions;\r\n for (String str : strArr) {\r\n if (this.mActivity.checkCallingOrSelfPermission(str) != 0) {\r\n if (shouldShowRequestPermissionRationale(str) || !PermissionUtils.isNeverShowEnabled(PermissionUtils.getRequestCode(str))) {\r\n if (this.normalPermissions == null) {\r\n this.normalPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.normalPermissions;\r\n } else {\r\n if (this.settingsPermissions == null) {\r\n this.settingsPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.settingsPermissions;\r\n }\r\n arrayList.add(str);\r\n }\r\n }\r\n Log.d(TAG, \"requestPermission() settingsPermissions:\" + this.settingsPermissions);\r\n Log.d(TAG, \"requestPermission() normalPermissions:\" + this.normalPermissions);\r\n ArrayList<String> arrayList2 = this.normalPermissions;\r\n if (arrayList2 == null || arrayList2.size() <= 0) {\r\n ArrayList<String> arrayList3 = this.settingsPermissions;\r\n if (arrayList3 == null || arrayList3.size() <= 0) {\r\n IGrantedTask iGrantedTask = this.mTask;\r\n if (iGrantedTask != null) {\r\n iGrantedTask.doTask();\r\n }\r\n } else {\r\n Activity activity = this.mActivity;\r\n PermissionUtils.showPermissionSettingsDialog(activity, activity.getResources().getString(R.string.app_name), this.settingsPermissions, true);\r\n this.settingsPermissions = null;\r\n }\r\n finishFragment();\r\n return;\r\n }\r\n requestPermissions((String[]) this.normalPermissions.toArray(new String[this.normalPermissions.size()]), 5003);\r\n this.normalPermissions = null;\r\n }", "private void checkPermissions() {\n final ArrayList<String> missedPermissions = new ArrayList<>();\n\n for (final String permission : PERMISSIONS_REQUIRED) {\n if (ActivityCompat.checkSelfPermission(this, permission) != PackageManager.PERMISSION_GRANTED) {\n missedPermissions.add(permission);\n }\n }\n\n if (!missedPermissions.isEmpty()) {\n final String[] permissions = new String[missedPermissions.size()];\n missedPermissions.toArray(permissions);\n\n ActivityCompat.requestPermissions(this, permissions, PERMISSION_REQUEST_CODE);\n }\n }", "private static List<String> m1850a(Context context, String[] strArr) {\n ArrayList arrayList = new ArrayList();\n for (String str : strArr) {\n if (f2395f >= 23) {\n if (ContextCompat.checkSelfPermission(context, str) == 0) {\n }\n } else if (PermissionChecker.checkSelfPermission(context, str) == 0) {\n }\n arrayList.add(str);\n }\n return arrayList;\n }", "@Override\r\n\tpublic List<Permission> getAllPermissions() {\n\t\treturn null;\r\n\t}", "public void requestAllManifestPermissionsIfNecessary(Activity paramActivity, PermissionsResultAction paramPermissionsResultAction) {\n }", "protected String[] getRequiredPermissions() {\n return REQUIRED_PERMISSIONS;\n }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "@Override\n public void clearPermissions() {\n permissions.clear();\n }", "List<Permission> getPermissions();", "@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n }", "void askForPermissions();", "private ArrayList findUnAskedPermissions(ArrayList wanted) {\n ArrayList result = new ArrayList();\n for (Object perm : wanted) {\n if (!hasPermission((String) perm)) {\n result.add(perm);\n }\n }\n return result;\n }", "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "public TPermissionMode getUserPermissionArray() {\n\n\t\treturn otherPermission;\n\t}", "public void addPermissions(IPermission[] permissions) throws AuthorizationException;", "public boolean checkPermissionsArray(String[] permissions) {\r\n Log.d(TAG, \"checkPermissionsArray: checking permissions array.\");\r\n\r\n for (int i = 0; i < permissions.length; i++) {\r\n String check = permissions[i];\r\n if (!checkPermissions(check)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Override\n\t\tfinal public FREObject call(FREContext context, FREObject[] args) {\n\t\t\ttry {\n\t\t\t\tif (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP_MR1) {\n\t\t\t\t\tActivity act = context.getActivity();\n\t\t\t\t\tact.overridePendingTransition(0,0);\n\t\t\t\t\t\n\t\t\t\t\tfinal FREArray array = (FREArray) args[0];\n\t\t\t\t\tfinal int lng = (int) array.getLength();\n\t\t\t\t final String[] permissions = new String[(int) array.getLength()];\n\t\t\t\t \n\t\t\t\t for (int i = 0; i < lng; i += 1) {\n\t\t\t\t \tString permission = array.getObjectAt(i).getAsString();\n\t\t\t\t \tif(permission != null) permissions[i] = permission;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t if(PermissionsExtension.VERBOSE > 0) Log.d(PermissionsExtension.TAG, \"Checking permissions: \"+ permissions);\n\t\t\t\t \n\t\t\t\t\tfinal Intent intent = new Intent(act, PermissionsRequestActivity.class);\n\t\t\t\t\tintent.putExtra(\"permissions\", permissions);\n\t\t\t\t\tact.startActivity(intent);\n\t\t\t\t\t\n\t\t\t\t\tact.overridePendingTransition(0,0);\n\t\t\t\t\t\n\t\t\t\t\treturn FREObject.newObject(true); //true means that we should wait for callback on AS3 side\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn FREObject.newObject(false); //false means that we can continue without waiting for callback\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "@NonNull\n public abstract String[] getRequiredAndroidPermissions();", "public void onResume() {\n List<String> a2;\n try {\n super.onResume();\n if (Build.VERSION.SDK_INT >= 23 && this.a) {\n String[] strArr = this.needPermissions;\n try {\n if (Build.VERSION.SDK_INT >= 23 && getApplicationInfo().targetSdkVersion >= 23 && (a2 = a(strArr)) != null && a2.size() > 0) {\n try {\n getClass().getMethod(\"requestPermissions\", String[].class, Integer.TYPE).invoke(this, (String[]) a2.toArray(new String[a2.size()]), 0);\n } catch (Throwable th) {\n }\n }\n } catch (Throwable th2) {\n th2.printStackTrace();\n }\n }\n } catch (Throwable th3) {\n th3.printStackTrace();\n }\n }", "public void verifyAppPermissions() {\n boolean hasAll = true;\n mHasBluetoothPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH) == PackageManager.PERMISSION_GRANTED;\n mHasBluetoothAdminPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_ADMIN) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n if (!hasAll) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n this,\n APP_PERMISSIONS,\n REQUEST_PERMISSIONS\n );\n }\n }", "@Override\r\n protected List<PermissionsDiff> processPermissionDiffs(\r\n PermissionElement[] oldPermissions, PermissionElement[] newPermissions) {\n return null;\r\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "public Permission[] getPermissions(Object proxy) {\n storedProxy = proxy;\n if (getPermissionsTrap != null) {\n throw getPermissionsTrap;\n }\n\treturn super.getPermissions(proxy);\n }", "public Enumeration permissions();", "private void checkPermissions() {\n List<String> permissions = new ArrayList<>();\n String message = \"osmdroid permissions:\";\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n message += \"\\nLocation to show user location.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n message += \"\\nStorage access to store map tiles.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.READ_PHONE_STATE);\n message += \"\\n access to read phone state.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECEIVE_SMS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.RECEIVE_SMS);\n message += \"\\n access to receive sms.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.GET_ACCOUNTS);\n message += \"\\n access to read sms.\";\n //requestReadPhoneStatePermission();\n }\n if (!permissions.isEmpty()) {\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n String[] params = permissions.toArray(new String[permissions.size()]);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(params, REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n } // else: We already have permissions, so handle as normal\n }", "private void RequestMultiplePermission()\n {\n /**\n * Creating String Array with Permissions.\n */\n ActivityCompat.requestPermissions(FamilyMemberActivity.this, new String[]\n {\n CAMERA,\n WRITE_EXTERNAL_STORAGE,\n READ_EXTERNAL_STORAGE\n }, PERMISSION_REQUEST_CODE);\n\n }", "private void RequestMultiplePermission() {\n // Creating String Array with Permissions.\n ActivityCompat.requestPermissions(SplashActivity.this, new String[]\n {\n INTERNET,\n ACCESS_NETWORK_STATE,\n WRITE_EXTERNAL_STORAGE,\n READ_EXTERNAL_STORAGE,\n ACCESS_COARSE_LOCATION,\n ACCESS_FINE_LOCATION,\n VIBRATE\n// CALL_PHONE,\n// SEND_SMS\n }, RequestPermissionCode);\n\n }", "private Boolean checkRuntimePermission() {\n List<String> permissionsNeeded = new ArrayList<String>();\n\n final List<String> permissionsList = new ArrayList<String>();\n if (!addPermission(permissionsList, Manifest.permission.READ_EXTERNAL_STORAGE))\n permissionsNeeded.add(\"Storage\");\n if (!addPermission(permissionsList, Manifest.permission.CAMERA))\n permissionsNeeded.add(\"Camera\");\n /* if (!addPermission(permissionsList, Manifest.permission.WRITE_CONTACTS))\n permissionsNeeded.add(\"Write Contacts\");*/\n\n if (permissionsList.size() > 0) {\n if (permissionsNeeded.size() > 0) {\n // Need Rationale\n String message = \"You need to grant access to \" + permissionsNeeded.get(0);\n for (int i = 1; i < permissionsNeeded.size(); i++)\n message = message + \", \" + permissionsNeeded.get(i);\n showMessageOKCancel(message,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n }\n });\n return false;\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n return false;\n }\n return true;\n }", "List<String> getAvailablePermissions() throws GWTJahiaServiceException;", "abstract public void getPermission();", "public org.dcache.srm.v2_2.TPermissionReturn[] getPermissionArray() {\n return permissionArray;\n }", "@Override\n public void onAction(List<String> permissions) {\n Log.e(TAG, \"permission success\");\n callback.onSuccess(permissions);\n\n }", "protected static int[] convertPermission(String jivePermission, boolean isGlobalPermission) {\r\n \r\n //TODO Igor: check again all permission conversions here\r\n if ( (jivePermission==null) || (jivePermission.equalsIgnoreCase(\"NONE\")) ) {\r\n return new int[] {MVNForumPermission.PERMISSION_NO_PERMISSIONS};\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"SYSTEM_ADMIN\")) {\r\n if (isGlobalPermission) {\r\n return new int[] {MVNForumPermission.PERMISSION_SYSTEM_ADMIN};\r\n } else {\r\n return EMPTY_PERMISSION;\r\n }\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"CATEGORY_ADMIN\")) {\r\n if (isGlobalPermission) {\r\n // presently mvnForum does not support permission PERMISSION_CATEGORY_ADMIN and PERMISSION_CATEGORY_MODERATOR\r\n return new int[] {/*MVNForumPermission.PERMISSION_CATEGORY_ADMIN,\r\n MVNForumPermission.PERMISSION_CATEGORY_MODERATOR,*/\r\n MVNForumPermission.PERMISSION_ADD_CATEGORY,\r\n MVNForumPermission.PERMISSION_EDIT_CATEGORY,\r\n MVNForumPermission.PERMISSION_DELETE_CATEGORY};\r\n } else {\r\n return EMPTY_PERMISSION;\r\n }\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"FORUM_ADMIN\")) {\r\n // note that PERMISSION_FORUM_ADMIN is a combined permission so it includes other permission\r\n return new int[] {MVNForumPermission.PERMISSION_FORUM_ADMIN/*,\r\n MVNForumPermission.PERMISSION_FORUM_MODERATOR,\r\n MVNForumPermission.PERMISSION_ADD_FORUM,\r\n MVNForumPermission.PERMISSION_EDIT_FORUM,\r\n MVNForumPermission.PERMISSION_DELETE_FORUM*/};\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"GROUP_ADMIN\")) {\r\n if (isGlobalPermission) {\r\n return new int[] {MVNForumPermission.PERMISSION_GROUP_ADMIN,\r\n MVNForumPermission.PERMISSION_GROUP_MODERATOR};\r\n } else {\r\n return EMPTY_PERMISSION;\r\n }\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"USER_ADMIN\")) {\r\n if (isGlobalPermission) {\r\n return new int[] {MVNForumPermission.PERMISSION_USER_ADMIN,\r\n MVNForumPermission.PERMISSION_USER_MODERATOR};\r\n } else {\r\n return EMPTY_PERMISSION;\r\n }\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"MODERATOR\")) {\r\n if (isGlobalPermission) {\r\n return new int[] {MVNForumPermission.PERMISSION_CATEGORY_MODERATOR,\r\n MVNForumPermission.PERMISSION_FORUM_MODERATOR,\r\n MVNForumPermission.PERMISSION_GROUP_MODERATOR,\r\n MVNForumPermission.PERMISSION_USER_MODERATOR};\r\n } else {\r\n return new int[] {MVNForumPermission.PERMISSION_FORUM_MODERATOR};\r\n }\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"MODERATE_THREADS\")) {\r\n return new int[] {MVNForumPermission.PERMISSION_READ_POST,\r\n MVNForumPermission.PERMISSION_ADD_POST,\r\n MVNForumPermission.PERMISSION_EDIT_POST,\r\n MVNForumPermission.PERMISSION_DELETE_POST,\r\n MVNForumPermission.PERMISSION_ADD_THREAD};\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"CREATE_THREAD\")) {\r\n return new int[] {MVNForumPermission.PERMISSION_ADD_THREAD};\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"MODERATE_MESSAGES\")) {\r\n return new int[] {MVNForumPermission.PERMISSION_READ_POST,\r\n MVNForumPermission.PERMISSION_ADD_POST,\r\n MVNForumPermission.PERMISSION_EDIT_POST,\r\n MVNForumPermission.PERMISSION_DELETE_POST};\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"CREATE_MESSAGE\")) {\r\n return new int[] {MVNForumPermission.PERMISSION_ADD_POST};\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"CREATE_ATTACHMENT\")) {\r\n return new int[] {MVNForumPermission.PERMISSION_ADD_ATTACHMENT};\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"READ_FORUM\")) {\r\n return new int[] {MVNForumPermission.PERMISSION_READ_POST};\r\n \r\n } else if (jivePermission.equalsIgnoreCase(\"READ\")) {\r\n return new int[] {MVNForumPermission.PERMISSION_READ_POST};\r\n \r\n } else {\r\n // TODO minhnn: I think we should show warning here, even could throw AssertionError\r\n return new int[] {MVNForumPermission.PERMISSION_NO_PERMISSIONS};\r\n }\r\n }", "public List<Permission> getPermissionsPending(User user) throws UserManagementException;", "public void removePermissions(IPermission[] permissions) throws AuthorizationException;", "protected Integer[] getPermissionsForUser(int profile){\n ArrayList<Integer> returnable = new ArrayList<>();\n for(Integer apps : profiles.get(profile).keySet()){\n for(Integer objects : profiles.get(profile).get(apps).keySet()){\n returnable.addAll(profiles.get(profile).get(apps).get(objects).stream().collect(Collectors.toList()));\n }\n }\n return returnable.toArray(new Integer[returnable.size()]);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n for (int i = 0; i < grantResults.length; i++) {\n Log.d(\"onReqPermissionsResult\", \"grantResults[\" + i + \"]= \" + grantResults[i] + \" , Granted = \" + PackageManager.PERMISSION_GRANTED);\n }\n\n }", "protected PermissionCollection getPermissions(CodeSource paramCodeSource) {\n/* 397 */ PermissionCollection permissionCollection = super.getPermissions(paramCodeSource);\n/* 398 */ permissionCollection.add(new AllPermission());\n/* 399 */ return permissionCollection;\n/* */ }", "public void setPermissions(Set<Permission> permissions) {\n this.permissions = permissions;\n }", "@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n Log.e(\"TAG\",\"It's allow permiision\");\n// if (isCamera) {\n// dispatchTakePictureIntent();\n//// dispatchTakePictureIntentdealer();\n// } else {\n// dispatchGalleryIntent();\n// }\n }else {\n if (isCamera) {\n dispatchTakePictureIntent();\n } else {\n dispatchGalleryIntent();\n }\n }\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n //showSettingsDialog();\n }\n }", "@Override\n public Set<String> getPermissions(Class<? extends AeroCommandBase<?>> command) {\n return permissions.get(command);\n }", "public interface Permissions {\n\n int PERMISSION_CODE_CALL_PHONE=0;\n String [] PERMISSIONS={android.Manifest.permission.CALL_PHONE};\n}", "public List<Permission> getPermissions()\r\n/* */ {\r\n/* 228 */ return this.permissions;\r\n/* */ }", "private void dynamicPermission() {\n if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {\n Log.i(\"MainActivity\", \"android sdk <= 28 Q\");\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n String[] strings =\n {Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION};\n ActivityCompat.requestPermissions(this, strings, 1);\n }\n } else {\n // Dynamically apply for required permissions if the API level is greater than 28. The android.permission.ACCESS_BACKGROUND_LOCATION permission is required.\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n \"android.permission.ACCESS_BACKGROUND_LOCATION\") != PackageManager.PERMISSION_GRANTED) {\n String[] strings = {android.Manifest.permission.ACCESS_FINE_LOCATION,\n android.Manifest.permission.ACCESS_COARSE_LOCATION,\n \"android.permission.ACCESS_BACKGROUND_LOCATION\"};\n ActivityCompat.requestPermissions(this, strings, 2);\n }\n }\n }", "private void initializePermissionsMap() {\n }", "public List<Permission> getPermissions(User user) throws UserManagementException;", "private List<Permission> convertPermission(int value) {\n\n List<Permission> permissions = new ArrayList<Permission>();\n\n final int CHMOD = 1;\n final int WRITE = 2;\n final int READ = 4;\n final int ALL = 7;\n\n if (value == ALL) {\n permissions.add(Permission.READ);\n permissions.add(Permission.WRITE);\n permissions.add(Permission.CHANGE_PERMISSION);\n return permissions;\n }\n\n if ((value & CHMOD) == CHMOD) {\n permissions.add(Permission.CHANGE_PERMISSION);\n }\n if ((value & READ) == READ) {\n permissions.add(Permission.READ);\n }\n if ((value & WRITE) == WRITE) {\n permissions.add(Permission.WRITE);\n }\n\n return permissions;\n }", "public boolean validatePermissions()\r\n\t{\n\t\treturn true;\r\n\t}", "public List<String> getPermissions() {\n AppMethodBeat.m2504i(92672);\n List permissions = this.properties.getPermissions();\n AppMethodBeat.m2505o(92672);\n return permissions;\n }", "public java.util.List<org.eclipse.stardust.engine.api.runtime.Permission>\n getPermissions()\n throws org.eclipse.stardust.common.error.WorkflowException;", "private void getPermissions(){\n // Check READ storage permission\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n Log.i(\"STORAGE PERMISSION\", \"request READ_EXTERNAL_STORAGE\");\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n REQUEST_READ_EXTERNAL_STORAGE);\n } else {\n Log.i(\"STORAGE PERMISSION\", \"READ_EXTERNAL_STORAGE already granted\");\n read_external_storage_granted = true;\n }\n\n // Check WRITE storage permission\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n Log.i(\"STORAGE PERMISSION\", \"request WRITE_EXTERNAL_STORAGE\");\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_WRITE_EXTERNAL_STORAGE);\n } else {\n Log.i(\"STORAGE PERMISSION\", \"WRITE_EXTERNAL_STORAGE already granted\");\n write_external_storage_granted = true;\n }\n\n // Check camera permission\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED){\n Log.i(\"CAMERA PERMISSION\", \"request CAMERA permission\");\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CAMERA},\n REQUEST_CAMERA);\n } else {\n Log.i(\"CAMERA PERMISSION\", \"CAMERA permission already granted\");\n camera_permission_granted = true;\n }\n\n }", "boolean isHasPermissions();", "private List<String> preparePermissionArrayList(String userSharedPermissionsArr[]) {\n\t\tList<String> preparePermissionArrayList = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < userSharedPermissionsArr.length; i++) {\n\t\t\tpreparePermissionArrayList.add(userSharedPermissionsArr[i]);\n\t\t}\n\t\treturn preparePermissionArrayList;\n\t}", "private void checkAndRequestPermissions() {\n missingPermission = new ArrayList<>();\n // Check for permissions\n for (String eachPermission : REQUIRED_PERMISSION_LIST) {\n if (ContextCompat.checkSelfPermission(this, eachPermission) != PackageManager.PERMISSION_GRANTED) {\n missingPermission.add(eachPermission);\n }\n }\n // Request for missing permissions\n if (missingPermission.isEmpty()) {\n DroneModel.getInstance(this).setDjiProductStateCallBack(this);\n DroneModel.getInstance(this).startSDKRegistration();\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n missingPermission.toArray(new String[missingPermission.size()]),\n REQUEST_PERMISSION_CODE);\n }\n }", "public static TypePermission[] getDefaultPermissions() {\n return PERMISSIONS.clone();\n }", "public @NonNull List<String> getNewPermissions() {\n return mSplitPermissionInfoParcelable.getNewPermissions();\n }", "boolean ignoresPermission();", "public ArrayList<Permission> getPermissions()\r\n {\r\n return this.securityInfo.getPermissions();\r\n }", "public void requestPermissions(ArrayList<String> needPermissions) {\n\n String packageName = getApplicationContext().getPackageName();\n Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse(\"package:\" + packageName) );\n startActivityForResult(intent, REQ_CODE_REQUEST_SETTING);\n }", "public void checkPermissions(){\n //Check if some of the core permissions are not already granted\n if ((ContextCompat.checkSelfPermission(LoginActivity.this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.CAMERA)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.WRITE_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED)) {\n Toast.makeText(this, \"Some permissions are not granted. Please enable them.\", Toast.LENGTH_SHORT).show();\n\n //If so, request the activation of this permissions\n ActivityCompat.requestPermissions(LoginActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n else{\n //Permissions already granted\n }\n }", "public void recalculatePermissions ( ) {\n\t\texecute ( handle -> handle.recalculatePermissions ( ) );\n\t}", "void requestNeededPermissions(int requestCode);", "public void setPermissionArray(org.dcache.srm.v2_2.TPermissionReturn[] permissionArray) {\n this.permissionArray = permissionArray;\n }", "public List<Permission> getPermissions(T object, User user);", "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n //Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n // showSettingsDialog();\n }\n }", "int getPermissionsCount();", "@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n showSettingsDialog();\n }\n }", "java.util.List<java.lang.String>\n getPermissionsList();", "private List<Integer> preparePermissionArrayListWithIntegerAsMask(String[] permissionArr) {\n\t\tList<Integer> preparePermissionArrayList = new ArrayList<Integer>();\n\n\t\tfor (int i = 0; i < permissionArr.length; i++) {\n\t\t\tpreparePermissionArrayList.add(Integer.valueOf(permissionArr[i]));\n\t\t}\n\t\treturn preparePermissionArrayList;\n\n\t}", "protected void setPermissions(){\n //Set permissions\n //READ_PHONE_STATE\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED\n ) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.RECORD_AUDIO)) {\n //Show an explanation to the user *asynchronously* -- don't block\n //this thread waiting for the user's response! After the user\n //sees the explanation, request the permission again.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA,Manifest.permission.READ_PHONE_STATE},\n GET_PERMISSION);\n } else {\n //No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA,Manifest.permission.READ_PHONE_STATE},\n GET_PERMISSION);\n\n //MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n //app-defined int constant. The callback method gets the\n //result of the request.\n }\n }\n }", "public List<String> getUserPermissions(String login) throws IOException;", "@Test\n public void listAppPermissionsTest() throws ApiException {\n String appId = null;\n String filter = null;\n String naked = null;\n Long limit = null;\n Long offset = null;\n // List<Permission> response = api.listAppPermissions(appId, filter, naked, limit, offset);\n\n // TODO: test validations\n }", "public Permissions[] getPermissionsNeeded(ContainerRequestContext context) throws Exception {\n Secured auth = resourceInfo.getResourceMethod().getAnnotation(Secured.class);\n\n // If there's no authentication required on method level, check class level.\n if (auth == null) {\n auth = resourceInfo.getResourceClass().getAnnotation(Secured.class);\n }\n\n // Else, there's no permission required, thus we chan continue;\n if (auth == null) {\n log.log(Level.INFO, \"AUTHENTICATION: Method: \" + context.getMethod() + \", no permission required\");\n return new Permissions[0];\n }\n\n return auth.value();\n }", "@Override\r\n\tpublic int updPermission(Permission perms) {\n\t\treturn 0;\r\n\t}", "private void RequestMultiplePermission() {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]\n {\n READ_EXTERNAL_STORAGE,\n WRITE_EXTERNAL_STORAGE,\n }, 999);\n\n }", "@Override\n public void checkPermission(final Permission permission) {\n List<Class> stack = Arrays.asList(getClassContext());\n\n // if no blacklisted classes are in the stack (or not recursive)\n if (stack.subList(1, stack.size()).contains(getClass()) || Collections.disjoint(stack, classBlacklist)) {\n // allow everything\n return;\n }\n // if null/custom and blacklisted classes present, something tried to access this class\n if (permission == null || permission instanceof StudentTesterAccessPermission) {\n throw new SecurityException(\"Security check failed.\");\n }\n // else iterate over all active policies and call their respective methods\n PermissionContext pc = new PermissionContext(stack, permission, instance);\n for (var policy : policies) {\n try {\n policy.getConsumer().accept(pc);\n } catch (SecurityException e) {\n triggered = true;\n // Illegal attempt caught, log an error or do smth\n LOG.severe(String.format(\"Illegal attempt caught: %s\", permission.toString()));\n throw e;\n }\n\n }\n }", "public List<String> getPermissions() {\n return this.permissions;\n }", "@JsonIgnore\n\tpublic Set<ConqueryPermission> copyPermissions(){\n\t\treturn new HashSet<ConqueryPermission>(permissions);\n\t}", "public static boolean verifyPermissions(int[] grantResults) {\n if(grantResults.length < 1){\n return false;\n }\n\n // Verify that each required permission has been granted, otherwise return false.\n for (int result : grantResults) {\n if (result != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "@Override\n public List<PermissionSubject> getPermissionCheckSubjects() {\n List<PermissionSubject> permissionList = new ArrayList<PermissionSubject>();\n permissions permission = getParameters().getPermission();\n permissionList.add(new PermissionSubject(permission.getObjectId(),\n permission.getObjectType(),\n getActionType().getActionGroup()));\n return permissionList;\n }", "public void hasPermissions(String[] permissions) {\r\n\r\n\t\t// user has no permissions\r\n\t\tif (user.getUserPermissions() == null || user.getUserPermissions().size() < 1) {\r\n\t\t\tthrow new PermissionException(NO_PERMISSION);\r\n\t\t}\r\n\r\n\t\t// user has no permissions\r\n\t\tif (permissions == null || permissions.length < 1) {\r\n\t\t\tthrow new PermissionException(NO_PERMISSION);\r\n\t\t}\r\n\t\t\r\n\t\t// check the permissions\r\n\t\tif (!doHasPermissions(permissions)) {\r\n\t\t\t// user does not have the permission requested\r\n\t\t\tthrow new PermissionException(NO_PERMISSION);\r\n\t\t}\r\n\t\t\r\n\t}", "public void doPermissions(RunData data, Context context)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState(((JetspeedRunData)data).getJs_peid());\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\t// should we save here?\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, new TreeSet());\n\n\t\t// get the current home collection id and the related site\n\t\tString collectionId = (String) state.getAttribute (STATE_HOME_COLLECTION_ID);\n\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(collectionId));\n\t\tString siteRef = SiteService.siteReference(ref.getContext());\n\n\t\t// setup for editing the permissions of the site for this tool, using the roles of this site, too\n\t\tstate.setAttribute(PermissionsHelper.TARGET_REF, siteRef);\n\n\t\t// ... with this description\n\t\tstate.setAttribute(PermissionsHelper.DESCRIPTION, rb.getString(\"setpermis1\")\n\t\t\t\t+ SiteService.getSiteDisplay(ref.getContext()));\n\n\t\t// ... showing only locks that are prpefixed with this\n\t\tstate.setAttribute(PermissionsHelper.PREFIX, \"content.\");\n\n\t\t// get into helper mode with this helper tool\n\t\tstartHelper(data.getRequest(), \"sakai.permissions.helper\");\n\n\t}", "private void getPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }", "@Override\r\n public void onPermissionsGranted(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }", "private PermissionHelper() {}", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }" ]
[ "0.6910693", "0.67951703", "0.6688689", "0.66479063", "0.6623621", "0.6584666", "0.6577468", "0.6559019", "0.6556607", "0.6527759", "0.6417462", "0.64075637", "0.6370197", "0.6335982", "0.6335068", "0.63173735", "0.63173366", "0.63152784", "0.6304896", "0.6271961", "0.626656", "0.62248164", "0.61802393", "0.6143812", "0.61416", "0.61374027", "0.611203", "0.6101888", "0.60968006", "0.6092804", "0.60847205", "0.6077148", "0.6063399", "0.60623217", "0.60358727", "0.60177845", "0.60156983", "0.60019517", "0.59970164", "0.5997013", "0.5986557", "0.59514993", "0.59367067", "0.5931231", "0.5902132", "0.5894806", "0.58881855", "0.5871568", "0.586308", "0.58621895", "0.58582926", "0.58449805", "0.58441913", "0.5843448", "0.5839088", "0.58323383", "0.58314496", "0.58224523", "0.5819995", "0.5806313", "0.58029866", "0.57955784", "0.5786675", "0.5784101", "0.5783879", "0.57788724", "0.5777552", "0.57760423", "0.5770995", "0.5766999", "0.57541776", "0.5752738", "0.5743852", "0.5737739", "0.5737533", "0.5736648", "0.5736648", "0.57270616", "0.57259893", "0.5720202", "0.57194364", "0.5710061", "0.57064337", "0.57025045", "0.5669287", "0.56680226", "0.5667529", "0.56641203", "0.56638503", "0.5660429", "0.56589735", "0.5646414", "0.56445485", "0.5643903", "0.5626485", "0.5619545", "0.56179124", "0.560774", "0.55936456", "0.5583389" ]
0.63365114
13
Check an array of permissions
public boolean checkPermissionsArray(String[] permissions) { Log.d(TAG, "checkPermissionsArray: checking permissions array."); for (int i = 0; i < permissions.length; i++) { String check = permissions[i]; if (!checkPermissions(check)) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkPermissionsArray(String[] permissions)\n {\n Log.d(TAG,\"checkPErmissionsArray\");\n for(int i=0;i<permissions.length;i++)\n {\n String check=permissions[i];\n if(checkPermissions(check))\n {\n return false;\n }\n }\n return true;\n }", "boolean isHasPermissions();", "public boolean hasAllPermissions(Context paramContext, String[] paramArrayOfString) {\n }", "private Boolean checkRuntimePermission() {\n List<String> permissionsNeeded = new ArrayList<String>();\n\n final List<String> permissionsList = new ArrayList<String>();\n if (!addPermission(permissionsList, Manifest.permission.READ_EXTERNAL_STORAGE))\n permissionsNeeded.add(\"Storage\");\n if (!addPermission(permissionsList, Manifest.permission.CAMERA))\n permissionsNeeded.add(\"Camera\");\n /* if (!addPermission(permissionsList, Manifest.permission.WRITE_CONTACTS))\n permissionsNeeded.add(\"Write Contacts\");*/\n\n if (permissionsList.size() > 0) {\n if (permissionsNeeded.size() > 0) {\n // Need Rationale\n String message = \"You need to grant access to \" + permissionsNeeded.get(0);\n for (int i = 1; i < permissionsNeeded.size(); i++)\n message = message + \", \" + permissionsNeeded.get(i);\n showMessageOKCancel(message,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n }\n });\n return false;\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n return false;\n }\n return true;\n }", "public boolean checkPermissions(String... permissions) {\n if (permissions != null) {\n for (String permission : permissions) {\n if (ActivityCompat.checkSelfPermission(this, permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n }\n return true;\n }", "public Map<String, Boolean> hasPermission(String login, List<String> permissions);", "public void verifyPermissions(String[] permissions) {\r\n Log.d(TAG, \"verifyPermissions: verifying permissions.\");\r\n\r\n ActivityCompat.requestPermissions(\r\n EditProfileActivity.this,\r\n permissions,\r\n VERIFY_PERMISSIONS_REQUEST\r\n );\r\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "public static boolean verifyPermissions(int[] grantResults) {\n if(grantResults.length < 1){\n return false;\n }\n\n // Verify that each required permission has been granted, otherwise return false.\n for (int result : grantResults) {\n if (result != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}", "public boolean checkPermission(Permission permission);", "public void checkIfProgramsAccesible(List<String> programList);", "private boolean checkAndRequestPermissions() {\n List<String> listPermissionsNeeded = new ArrayList<>();\n for (String pem : appPermissions){\n if (ContextCompat.checkSelfPermission(this, pem) != PackageManager.PERMISSION_GRANTED){\n listPermissionsNeeded.add(pem);\n }\n }\n\n //ask for non-granted permissions\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), PERMISSION_REQUEST_CODE);\n return false;\n }\n return true;\n }", "private static boolean hasPermissions(Context context, String... permissions) {\n for (String permission : permissions) {\n if (ContextCompat.checkSelfPermission(context, permission)\n != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "public void setPermissions(boolean [] permissions)\n\t{\n\t\tthis.permissions = permissions;\n\t}", "public void verifyAppPermissions() {\n boolean hasAll = true;\n mHasBluetoothPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH) == PackageManager.PERMISSION_GRANTED;\n mHasBluetoothAdminPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_ADMIN) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n if (!hasAll) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n this,\n APP_PERMISSIONS,\n REQUEST_PERMISSIONS\n );\n }\n }", "private void checkPermissions() {\n List<String> permissions = new ArrayList<>();\n String message = \"osmdroid permissions:\";\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n message += \"\\nLocation to show user location.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n message += \"\\nStorage access to store map tiles.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.READ_PHONE_STATE);\n message += \"\\n access to read phone state.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECEIVE_SMS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.RECEIVE_SMS);\n message += \"\\n access to receive sms.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.GET_ACCOUNTS);\n message += \"\\n access to read sms.\";\n //requestReadPhoneStatePermission();\n }\n if (!permissions.isEmpty()) {\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n String[] params = permissions.toArray(new String[permissions.size()]);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(params, REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n } // else: We already have permissions, so handle as normal\n }", "private boolean checkPermissions(Activity activity) {\n String[] permissions = getRequiredAndroidPermissions();\n return handler.areAllPermissionsGranted(activity, permissions);\n }", "private void checkPermissions() {\n final ArrayList<String> missedPermissions = new ArrayList<>();\n\n for (final String permission : PERMISSIONS_REQUIRED) {\n if (ActivityCompat.checkSelfPermission(this, permission) != PackageManager.PERMISSION_GRANTED) {\n missedPermissions.add(permission);\n }\n }\n\n if (!missedPermissions.isEmpty()) {\n final String[] permissions = new String[missedPermissions.size()];\n missedPermissions.toArray(permissions);\n\n ActivityCompat.requestPermissions(this, permissions, PERMISSION_REQUEST_CODE);\n }\n }", "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "public void hasPermissions(String[] permissions) {\r\n\r\n\t\t// user has no permissions\r\n\t\tif (user.getUserPermissions() == null || user.getUserPermissions().size() < 1) {\r\n\t\t\tthrow new PermissionException(NO_PERMISSION);\r\n\t\t}\r\n\r\n\t\t// user has no permissions\r\n\t\tif (permissions == null || permissions.length < 1) {\r\n\t\t\tthrow new PermissionException(NO_PERMISSION);\r\n\t\t}\r\n\t\t\r\n\t\t// check the permissions\r\n\t\tif (!doHasPermissions(permissions)) {\r\n\t\t\t// user does not have the permission requested\r\n\t\t\tthrow new PermissionException(NO_PERMISSION);\r\n\t\t}\r\n\t\t\r\n\t}", "public void checkPermissions(){\n //Check if some of the core permissions are not already granted\n if ((ContextCompat.checkSelfPermission(LoginActivity.this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.CAMERA)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.WRITE_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED)) {\n Toast.makeText(this, \"Some permissions are not granted. Please enable them.\", Toast.LENGTH_SHORT).show();\n\n //If so, request the activation of this permissions\n ActivityCompat.requestPermissions(LoginActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n else{\n //Permissions already granted\n }\n }", "public boolean validatePermissions()\r\n\t{\n\t\treturn true;\r\n\t}", "private void checkIfPermissionGranted(List<String> requiredPermissions, String permissionToCheck){\n if (ActivityCompat.checkSelfPermission(activity, permissionToCheck)\n != PackageManager.PERMISSION_GRANTED) {\n requiredPermissions.add(permissionToCheck);\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n private boolean arePermissionsEnabled(){\n for(String permission : mPermissions){\n if(checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED)\n return false;\n }\n return true;\n }", "public boolean [] getPermissions()\n\t{\n\t\treturn this.permissions;\n\t}", "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "private boolean checkAndRequestPermissions() {\n\n List<String> listPermissionsNeeded = new ArrayList<>();\n /*if (camera != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(android.Manifest.permission.CAMERA);\n }\n\n if (wstorage != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\n }\n\n if (rstorage != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);\n }\n if (rphoneState != PackageManager.PERMISSION_GRANTED)\n {\n listPermissionsNeeded.add(Manifest.permission.READ_PHONE_STATE);\n }*/\n\n// if(cLocation != PackageManager.PERMISSION_GRANTED){\n// listPermissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);\n// }\n//\n// if(fLocation != PackageManager.PERMISSION_GRANTED){\n// listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);\n// }\n\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray\n (new String[listPermissionsNeeded.size()]), REQUEST_ID_MULTIPLE_PERMISSIONS);\n return false;\n }\n success();\n return true;\n }", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }", "private boolean isSubsetOf(List<String> permissions2,\n\t\t\tList<String> permissions3) {\n\t\treturn false;\n\t}", "private boolean checkPermission() {\r\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), READ_CONTACTS);\r\n int result1 = ContextCompat.checkSelfPermission(getApplicationContext(), CAMERA);\r\n int result2 = ContextCompat.checkSelfPermission(getApplicationContext(), ACCESS_FINE_LOCATION);\r\n int result3 = ContextCompat.checkSelfPermission(getApplicationContext(), READ_EXTERNAL_STORAGE);\r\n int result4 = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE);\r\n int result5 = ContextCompat.checkSelfPermission(getApplicationContext(), READ_PHONE_STATE);\r\n int result6 = ContextCompat.checkSelfPermission(getApplicationContext(), RECORD_AUDIO);\r\n int result7 = ContextCompat.checkSelfPermission(getApplicationContext(), SEND_SMS);\r\n //int result8 = ContextCompat.checkSelfPermission(getApplicationContext(), BLUETOOTH);\r\n\r\n return result == PackageManager.PERMISSION_GRANTED && result1 == PackageManager.PERMISSION_GRANTED && result2 == PackageManager.PERMISSION_GRANTED &&\r\n result3 == PackageManager.PERMISSION_GRANTED && result4 == PackageManager.PERMISSION_GRANTED && result5 == PackageManager.PERMISSION_GRANTED &&\r\n result6 == PackageManager.PERMISSION_GRANTED && result7 == PackageManager.PERMISSION_GRANTED/*&& result8== PackageManager.PERMISSION_GRANTED*/;\r\n }", "private boolean validateAccess(String permission) {\n\t\tif (\"READ\".equalsIgnoreCase(permission)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean checkPermissionFromDevice(int permissions) {\n\n switch (permissions) {\n case RECORD_AUDIO_PERMISSION_CODE: {\n // int variables will be 0 if permissions are not granted already\n int write_external_storage_result =\n ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n int record_audio_result =\n ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO);\n\n // returns true if both permissions are already granted\n return write_external_storage_result == PackageManager.PERMISSION_GRANTED &&\n record_audio_result == PackageManager.PERMISSION_GRANTED;\n }\n default:\n return false;\n }\n }", "public boolean checkPermissions(String permission) {\r\n Log.d(TAG, \"checkPermissions: checking permission: \" + permission);\r\n\r\n int permissionRequest = ActivityCompat.checkSelfPermission(EditProfileActivity.this, permission);\r\n\r\n if (permissionRequest != PackageManager.PERMISSION_GRANTED) {\r\n Log.d(TAG, \"checkPermissions: \\n Permission was not granted for: \" + permission);\r\n Toast.makeText(this, \"Permissions not granted to access camera,\\n\" +\r\n \"please give permissions to GetAplot\", Toast.LENGTH_SHORT).show();\r\n return false;\r\n } else {\r\n Log.d(TAG, \"checkPermissions: \\n Permission was granted for: \" + permission);\r\n return true;\r\n }\r\n }", "boolean allGranted(String roles);", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "List<String> getAvailablePermissions() throws GWTJahiaServiceException;", "private boolean checkDeviceSettings()\n {\n List<String> listPermissionNeeded= new ArrayList<>();\n boolean ret = true;\n for(String perm : permission)\n {\n if(ContextCompat.checkSelfPermission(this,perm)!= PackageManager.PERMISSION_GRANTED)\n listPermissionNeeded.add(perm);\n }\n if(!listPermissionNeeded.isEmpty())\n {\n ActivityCompat.requestPermissions(this,listPermissionNeeded.toArray(new String[listPermissionNeeded.size()]),REQUEST_PERMISSION);\n ret = false;\n }\n\n return ret;\n }", "public boolean checkPermissions(String check)\n {\n Log.d(TAG,\"check single PErmission\");\n int permissionRequest= ActivityCompat.checkSelfPermission(UploadActivity.this,check);\n if(permissionRequest!= PackageManager.PERMISSION_GRANTED)\n {\n Log.d(TAG,\"check PErmission\\nPermission was not granted for:\"+check);\n return false;\n }\n else\n {\n Log.d(TAG,\"check PErmission\\nPermission was granted for:\"+check);\n return true;\n }\n\n }", "public static boolean m45181a() {\n Context b = m45183b();\n if (b != null) {\n try {\n PackageManager packageManager = b.getPackageManager();\n if (packageManager == null) {\n return true;\n }\n String[] strArr = packageManager.getPackageInfo(b.getPackageName(), 4096).requestedPermissions;\n if (strArr == null) {\n return false;\n }\n String[] strArr2 = f31382a;\n for (String str : strArr2) {\n boolean a = m45182a(strArr, str);\n f31383b.put(str, Boolean.valueOf(a));\n if (!a) {\n TLogger.m45340ee(\"PermissionChecker\", \"The required permission of <\" + str + \"> does not found!\");\n return false;\n }\n }\n return true;\n } catch (Throwable th) {\n TLogger.m45339e(\"PermissionChecker\", \"check required permissins exception.\", th);\n return false;\n }\n } else {\n throw new IllegalArgumentException(\"The context parameter can not be null!\");\n }\n }", "@Test\n\tpublic void testCheckPermissions_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@NonNull\n public abstract String[] getRequiredAndroidPermissions();", "public void updatePermissions(IPermission[] permissions) throws AuthorizationException;", "public boolean checkPerms()\n {\n boolean perms = hasPerms();\n if (!perms) {\n ActivityCompat.requestPermissions(\n itsActivity, new String[] { itsPerm }, itsPermsRequestCode);\n }\n return perms;\n }", "@Override\r\n\tpublic void checkPermission(String absPath, String actions)\r\n\t\t\tthrows AccessControlException, RepositoryException {\n\t\t\r\n\t}", "@Test\n\tpublic void testCheckPermissions_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = null;\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "boolean anyGranted(String roles);", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "@Test\n\tpublic void testIsPermittedAll_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }", "public void checkpermission()\n {\n permissionUtils.check_permission(permissions,\"Need GPS permission for getting your location\",1);\n }", "private boolean checkPermissions() {\n int permissionState1 = ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION);\n\n int permissionState2 = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION);\n return permissionState1 == PackageManager.PERMISSION_GRANTED && permissionState2 == PackageManager.PERMISSION_GRANTED;\n }", "void askForPermissions();", "private static List<String> m1850a(Context context, String[] strArr) {\n ArrayList arrayList = new ArrayList();\n for (String str : strArr) {\n if (f2395f >= 23) {\n if (ContextCompat.checkSelfPermission(context, str) == 0) {\n }\n } else if (PermissionChecker.checkSelfPermission(context, str) == 0) {\n }\n arrayList.add(str);\n }\n return arrayList;\n }", "public Boolean isPermissions() {\n return (Boolean) get(\"permissions\");\n }", "@Test\n\tpublic void testIsPermittedAll_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public List<String> getUserPermissions(String login) throws IOException;", "public boolean hasPermissions(Set<Permission> p) {\n if (p.isEmpty()) {\n return true;\n }\n return hasPermissionsFor(request, subject, p);\n }", "@Test\n\tpublic void testIsPermittedAll_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public boolean hasRights(Right... permissions) {\n if (rights != null) {\n for (Right permission : permissions) {\n if (!rights.contains(permission)) {\n return false;\n }\n }\n\n return true;\n }\n\n return false;\n }", "private boolean checkAndRequestPermissions() {\n int locationPermission = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n List<String> listPermissionsNeeded = new ArrayList<>();\n if (locationPermission != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);\n }\n// if (permissionSendMessage != PackageManager.PERMISSION_GRANTED) {\n// listPermissionsNeeded.add(Manifest.permission.SEND_SMS);\n// }\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), REQUEST_ID_MULTIPLE_PERMISSIONS);\n return false;\n }\n return true;\n }", "@Test\n\tpublic void testCheckPermissions_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "static boolean checkPermissionAllowed(Context context, String permission) {\n if (android.os.Build.VERSION.SDK_INT >= 23) {\n boolean hasPermission = false;\n try {\n // Invoke checkSelfPermission method from Android 6 (API 23 and UP)\n java.lang.reflect.Method methodCheckPermission = Activity.class.getMethod(\"checkSelfPermission\", java.lang.String.class);\n Object resultObj = methodCheckPermission.invoke(context, permission);\n int result = Integer.parseInt(resultObj.toString());\n hasPermission = (result == PackageManager.PERMISSION_GRANTED);\n } catch (Exception ex) {\n\n }\n\n return hasPermission;\n } else {\n return true;\n }\n }", "@Test\n\tpublic void testCheckPermissions_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "List<Permission> getPermissions();", "public Enumeration permissions();", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "public void addPermissions(IPermission[] permissions) throws AuthorizationException;", "@TargetApi(23)\r\n public void requestPermission() {\r\n ArrayList<String> arrayList;\r\n String[] strArr = this.mPermissions;\r\n for (String str : strArr) {\r\n if (this.mActivity.checkCallingOrSelfPermission(str) != 0) {\r\n if (shouldShowRequestPermissionRationale(str) || !PermissionUtils.isNeverShowEnabled(PermissionUtils.getRequestCode(str))) {\r\n if (this.normalPermissions == null) {\r\n this.normalPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.normalPermissions;\r\n } else {\r\n if (this.settingsPermissions == null) {\r\n this.settingsPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.settingsPermissions;\r\n }\r\n arrayList.add(str);\r\n }\r\n }\r\n Log.d(TAG, \"requestPermission() settingsPermissions:\" + this.settingsPermissions);\r\n Log.d(TAG, \"requestPermission() normalPermissions:\" + this.normalPermissions);\r\n ArrayList<String> arrayList2 = this.normalPermissions;\r\n if (arrayList2 == null || arrayList2.size() <= 0) {\r\n ArrayList<String> arrayList3 = this.settingsPermissions;\r\n if (arrayList3 == null || arrayList3.size() <= 0) {\r\n IGrantedTask iGrantedTask = this.mTask;\r\n if (iGrantedTask != null) {\r\n iGrantedTask.doTask();\r\n }\r\n } else {\r\n Activity activity = this.mActivity;\r\n PermissionUtils.showPermissionSettingsDialog(activity, activity.getResources().getString(R.string.app_name), this.settingsPermissions, true);\r\n this.settingsPermissions = null;\r\n }\r\n finishFragment();\r\n return;\r\n }\r\n requestPermissions((String[]) this.normalPermissions.toArray(new String[this.normalPermissions.size()]), 5003);\r\n this.normalPermissions = null;\r\n }", "public boolean checkServerPermission(String player, String permission) {\n\t\tswitch(permission) {\r\n\t\t\tcase \"join\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[0])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"invite\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[1])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"kick\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[2])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"kick-other\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[3])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"leave\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[4])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"create\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[5])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"disband\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[6])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"disband-other\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[7])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"info\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[8])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"info-general\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[9])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"info-other\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[10])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"promote\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[11])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"promote-other\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[12])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"use\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[13])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\t\t\r\n\t\t}\r\n\t\treturn false;\t\t\r\n\t}", "@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n showSettingsDialog();\n }\n }", "@Test\n\tpublic void testIsPermitted_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = null;\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private boolean checkPermissions() {\n if (!read_external_storage_granted ||\n !write_external_storage_granted ||\n !write_external_storage_granted) {\n Toast.makeText(getApplicationContext(), \"Die App braucht Zugang zur Kamera und zum Speicher.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "private String[] getManifestPermissions(Activity paramActivity) {\n }", "@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n }", "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "public static boolean hasPermissions(Context context, String... permissions) {\n for (String permission : permissions) {\n if (PermissionChecker.checkSelfPermission(context, permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n //Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n // showSettingsDialog();\n }\n }", "@Test\n\tpublic void testIsPermitted_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private static boolean testGetAllowedValues(boolean a[]) {\r\n return a[0] && a[1] && a[2] && a[3] && !a[4] && a[5] && a[6] && a[7] && !a[8];\r\n }", "@Test(expected = org.jsecurity.authz.AuthorizationException.class)\n\tpublic void testCheckPermissions_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testCheckExistsPermission() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"OPEN_OFFICE\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission));\n Permission permission2 = permissionManager.getPermissionInstance(\"CLOSE_OFFICE\");\n assertFalse(permissionManager.checkExists(permission2));\n }", "@Test\n\tpublic void testIsPermittedAll_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = null;\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Override\r\n\tpublic boolean hasPermission(String absPath, String actions)\r\n\t\t\tthrows RepositoryException {\n\t\treturn false;\r\n\t}", "private void checkPermission(User user, List sourceList, List targetList)\n throws AccessDeniedException\n {\n logger.debug(\"+\");\n if (isMove) {\n if (!SecurityGuard.canManage(user, sourceList.getContainerId()) ||\n !SecurityGuard.canContribute(user, targetList.getContainerId()))\n throw new AccessDeniedException(\"Forbidden\");\n }\n else {\n if (!SecurityGuard.canView(user, sourceList.getContainerId()) ||\n !SecurityGuard.canContribute(user, targetList.getContainerId()))\n throw new AccessDeniedException(\"Forbidden\");\n }\n logger.debug(\"-\");\n }", "private void checkPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED){\n\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE,\n Manifest.permission.READ_EXTERNAL_STORAGE,\n Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA}, 56);\n }\n }", "private void checkAndRequestPermissions() {\n missingPermission = new ArrayList<>();\n // Check for permissions\n for (String eachPermission : REQUIRED_PERMISSION_LIST) {\n if (ContextCompat.checkSelfPermission(this, eachPermission) != PackageManager.PERMISSION_GRANTED) {\n missingPermission.add(eachPermission);\n }\n }\n // Request for missing permissions\n if (missingPermission.isEmpty()) {\n DroneModel.getInstance(this).setDjiProductStateCallBack(this);\n DroneModel.getInstance(this).startSDKRegistration();\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n missingPermission.toArray(new String[missingPermission.size()]),\n REQUEST_PERMISSION_CODE);\n }\n }", "public boolean checkPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n new AlertDialog.Builder(this)\n .setTitle(\"TITLE\")\n .setMessage(\"TEXT\")\n .setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Prompt the user once explanation has been shown\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }\n })\n .create()\n .show();\n\n\n } else {\n // No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }\n return false;\n } else {\n return true;\n }\n }", "@Test\n public void listAppPermissionsTest() throws ApiException {\n String appId = null;\n String filter = null;\n String naked = null;\n Long limit = null;\n Long offset = null;\n // List<Permission> response = api.listAppPermissions(appId, filter, naked, limit, offset);\n\n // TODO: test validations\n }", "@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n Log.e(\"TAG\",\"It's allow permiision\");\n// if (isCamera) {\n// dispatchTakePictureIntent();\n//// dispatchTakePictureIntentdealer();\n// } else {\n// dispatchGalleryIntent();\n// }\n }else {\n if (isCamera) {\n dispatchTakePictureIntent();\n } else {\n dispatchGalleryIntent();\n }\n }\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n //showSettingsDialog();\n }\n }", "@Test\n\tpublic void testIsPermitted_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void checkpermission() {\n permissionUtils = new PermissionUtils(context, this);\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n permissions.add(Manifest.permission.ACCESS_COARSE_LOCATION);\n permissionUtils.check_permission(permissions, \"Need GPS permission for getting your location\", LOCATION_REQUEST_CODE);\n }", "private void RequestMultiplePermission()\n {\n /**\n * Creating String Array with Permissions.\n */\n ActivityCompat.requestPermissions(FamilyMemberActivity.this, new String[]\n {\n CAMERA,\n WRITE_EXTERNAL_STORAGE,\n READ_EXTERNAL_STORAGE\n }, PERMISSION_REQUEST_CODE);\n\n }", "@Override\n public void checkPermission(final Permission permission) {\n List<Class> stack = Arrays.asList(getClassContext());\n\n // if no blacklisted classes are in the stack (or not recursive)\n if (stack.subList(1, stack.size()).contains(getClass()) || Collections.disjoint(stack, classBlacklist)) {\n // allow everything\n return;\n }\n // if null/custom and blacklisted classes present, something tried to access this class\n if (permission == null || permission instanceof StudentTesterAccessPermission) {\n throw new SecurityException(\"Security check failed.\");\n }\n // else iterate over all active policies and call their respective methods\n PermissionContext pc = new PermissionContext(stack, permission, instance);\n for (var policy : policies) {\n try {\n policy.getConsumer().accept(pc);\n } catch (SecurityException e) {\n triggered = true;\n // Illegal attempt caught, log an error or do smth\n LOG.severe(String.format(\"Illegal attempt caught: %s\", permission.toString()));\n throw e;\n }\n\n }\n }", "public void setPermissions(List<Permission> permissions)\r\n/* */ {\r\n/* 235 */ this.permissions = permissions;\r\n/* */ }", "@Test\n\tpublic void testGetPermissions_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\n\t\tSet<Permission> result = fixture.getPermissions();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public boolean hasPerms()\n {\n return ContextCompat.checkSelfPermission(itsActivity, itsPerm) ==\n PackageManager.PERMISSION_GRANTED;\n }", "protected String[] getRequiredPermissions() {\n return REQUIRED_PERMISSIONS;\n }", "boolean check(Permission permission, Surrogate surrogate, boolean permissionRequired) throws T2DBException;" ]
[ "0.82088804", "0.7044827", "0.6961034", "0.69425094", "0.685435", "0.6836897", "0.67645276", "0.6738829", "0.6731678", "0.66898316", "0.6668582", "0.6518037", "0.647985", "0.64737076", "0.64636916", "0.64478743", "0.64376515", "0.6397534", "0.63816166", "0.63698065", "0.6360774", "0.63591504", "0.63477796", "0.6331889", "0.6321333", "0.63008595", "0.62918407", "0.6283391", "0.62815654", "0.6242623", "0.6210579", "0.62084776", "0.61938065", "0.6173078", "0.61506826", "0.6131736", "0.6119758", "0.610985", "0.6109267", "0.60984385", "0.6094691", "0.6059434", "0.6046934", "0.6032237", "0.6026537", "0.60239524", "0.59994245", "0.59986347", "0.5993794", "0.5993312", "0.59898967", "0.5981905", "0.59761125", "0.5972591", "0.59721446", "0.59690183", "0.5966543", "0.5958554", "0.59503084", "0.5948227", "0.5935329", "0.5931422", "0.59207207", "0.59133303", "0.59133214", "0.5907095", "0.5902359", "0.58979845", "0.58705467", "0.58666676", "0.5865129", "0.5863446", "0.58618367", "0.58574986", "0.58469564", "0.5840615", "0.58381397", "0.5827892", "0.58263004", "0.5803953", "0.5802812", "0.5785309", "0.57799697", "0.57709306", "0.57620937", "0.57553405", "0.5749616", "0.57381713", "0.57218444", "0.57202005", "0.57141906", "0.5710266", "0.570859", "0.5698247", "0.56973284", "0.5695033", "0.56797343", "0.56778926", "0.5669365", "0.56641495" ]
0.7736363
1
Check a single permission is it has been verified
public boolean checkPermissions(String permission) { Log.d(TAG, "checkPermissions: checking permission: " + permission); int permissionRequest = ActivityCompat.checkSelfPermission(EditProfileActivity.this, permission); if (permissionRequest != PackageManager.PERMISSION_GRANTED) { Log.d(TAG, "checkPermissions: \n Permission was not granted for: " + permission); Toast.makeText(this, "Permissions not granted to access camera,\n" + "please give permissions to GetAplot", Toast.LENGTH_SHORT).show(); return false; } else { Log.d(TAG, "checkPermissions: \n Permission was granted for: " + permission); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkPermission(Permission permission);", "boolean isHasPermissions();", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}", "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "boolean check(Permission permission, Surrogate surrogate, boolean permissionRequired) throws T2DBException;", "@Test\n public void testCheckExistsPermission() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"OPEN_OFFICE\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission));\n Permission permission2 = permissionManager.getPermissionInstance(\"CLOSE_OFFICE\");\n assertFalse(permissionManager.checkExists(permission2));\n }", "public boolean checkPermissions(String check)\n {\n Log.d(TAG,\"check single PErmission\");\n int permissionRequest= ActivityCompat.checkSelfPermission(UploadActivity.this,check);\n if(permissionRequest!= PackageManager.PERMISSION_GRANTED)\n {\n Log.d(TAG,\"check PErmission\\nPermission was not granted for:\"+check);\n return false;\n }\n else\n {\n Log.d(TAG,\"check PErmission\\nPermission was granted for:\"+check);\n return true;\n }\n\n }", "void checkPermission(T request) throws AuthorizationException;", "private static boolean isPermissionGranted(Context context, String permission) {\n if (ContextCompat.checkSelfPermission(context, permission)\n == PackageManager.PERMISSION_GRANTED) {\n Log.i(TAG, permission + \" granted\");\n return true;\n }\n Log.i(TAG, permission + \" not granted yet\");\n return false;\n }", "public boolean hasPermission(T object, Permission permission, User user);", "@Test\n\tpublic void testIsPermitted_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = null;\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "static boolean checkPermissionAllowed(Context context, String permission) {\n if (android.os.Build.VERSION.SDK_INT >= 23) {\n boolean hasPermission = false;\n try {\n // Invoke checkSelfPermission method from Android 6 (API 23 and UP)\n java.lang.reflect.Method methodCheckPermission = Activity.class.getMethod(\"checkSelfPermission\", java.lang.String.class);\n Object resultObj = methodCheckPermission.invoke(context, permission);\n int result = Integer.parseInt(resultObj.toString());\n hasPermission = (result == PackageManager.PERMISSION_GRANTED);\n } catch (Exception ex) {\n\n }\n\n return hasPermission;\n } else {\n return true;\n }\n }", "public boolean validatePermissions()\r\n\t{\n\t\treturn true;\r\n\t}", "boolean memberHasPermission(String perm, Member m);", "void permissionGranted(int requestCode);", "private boolean hasPermission(String permission) {\n if (canMakeSmores()) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n return (checkSelfPermission(permission) == PackageManager.PERMISSION_GRANTED);\n }\n }\n return true;\n }", "private boolean checkPermission() {\r\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), READ_CONTACTS);\r\n int result1 = ContextCompat.checkSelfPermission(getApplicationContext(), CAMERA);\r\n int result2 = ContextCompat.checkSelfPermission(getApplicationContext(), ACCESS_FINE_LOCATION);\r\n int result3 = ContextCompat.checkSelfPermission(getApplicationContext(), READ_EXTERNAL_STORAGE);\r\n int result4 = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE);\r\n int result5 = ContextCompat.checkSelfPermission(getApplicationContext(), READ_PHONE_STATE);\r\n int result6 = ContextCompat.checkSelfPermission(getApplicationContext(), RECORD_AUDIO);\r\n int result7 = ContextCompat.checkSelfPermission(getApplicationContext(), SEND_SMS);\r\n //int result8 = ContextCompat.checkSelfPermission(getApplicationContext(), BLUETOOTH);\r\n\r\n return result == PackageManager.PERMISSION_GRANTED && result1 == PackageManager.PERMISSION_GRANTED && result2 == PackageManager.PERMISSION_GRANTED &&\r\n result3 == PackageManager.PERMISSION_GRANTED && result4 == PackageManager.PERMISSION_GRANTED && result5 == PackageManager.PERMISSION_GRANTED &&\r\n result6 == PackageManager.PERMISSION_GRANTED && result7 == PackageManager.PERMISSION_GRANTED/*&& result8== PackageManager.PERMISSION_GRANTED*/;\r\n }", "boolean hasPermission(final Player sniper, final String permission);", "public void checkPermission() {\n Log.e(\"checkPermission\", \"checkPermission\");\n\n // Here, thisActivity is the current activity\n if (ContextCompat.checkSelfPermission(RegisterActivity.this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(RegisterActivity.this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n\n }", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }", "public void verifyPermission() {\n Permissions.check(this/*context*/, Manifest.permission.WRITE_EXTERNAL_STORAGE, null, new PermissionHandler() {\n @Override\n public void onGranted() {\n addVideoInFolder();\n setupExoPlayer();\n settingListener();\n }\n\n @Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n super.onDenied(context, deniedPermissions);\n verifyPermission();\n }\n });\n\n }", "private boolean validateAccess(String permission) {\n\t\tif (\"READ\".equalsIgnoreCase(permission)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean checkPermission() {\n if (Build.VERSION.SDK_INT >= 23 &&\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n return false;\n } else {\n return true;// Permission has already been granted }\n }\n }", "public boolean hasPerms()\n {\n return ContextCompat.checkSelfPermission(itsActivity, itsPerm) ==\n PackageManager.PERMISSION_GRANTED;\n }", "public void checkPermission(String permission, int requestCode)\n {\n if (ContextCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_DENIED) {\n // Requesting the permission\n ActivityCompat.requestPermissions(this, new String[] { permission }, requestCode);\n }\n else {\n Toast.makeText(this, \"Permission already granted\", Toast.LENGTH_SHORT).show();\n }\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "@Test\n\tpublic void testIsPermitted_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "void check(Permission permission, Surrogate surrogate) throws T2DBException;", "private boolean checkPermission() {\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.READ_PHONE_STATE);\n\n if (result == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n return false;\n }\n }", "void askForPermissions();", "public int checkNotificationPermission() throws android.os.RemoteException;", "private void chkPermission() {\n permissionStatus = getSharedPreferences(\"permissionStatus\", MODE_PRIVATE);\n\n if (ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[0]) != PackageManager.PERMISSION_GRANTED\n || ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[1]) != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[0])\n || ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[1])) {\n //Show Information about why you need the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n\n } else if (permissionStatus.getBoolean(permissionsRequired[0], false)) {\n //Previously Permission Request was cancelled with 'Dont Ask Again',\n // Redirect to Settings after showing Information about why you need the permission\n sentToSettings = true;\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, REQUEST_PERMISSION_SETTING);\n Toast.makeText(getBaseContext(), \"Go to Permissions to Grant Camera, Phone and Storage\", Toast.LENGTH_LONG).show();\n\n } else {\n //just request the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n }\n\n //txtPermissions.setText(\"Permissions Required\");\n\n SharedPreferences.Editor editor = permissionStatus.edit();\n editor.putBoolean(permissionsRequired[0], true);\n editor.commit();\n } else {\n //You already have the permission, just go ahead.\n //proceedAfterPermission();\n }\n\n }", "@Test\n\tpublic void testIsPermitted_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "boolean check(Permission permission, DBObject dBObject,\n\t\t\tboolean permissionRequired) throws T2DBException;", "public void checkpermission()\n {\n permissionUtils.check_permission(permissions,\"Need GPS permission for getting your location\",1);\n }", "public void verifyPermissions(String[] permissions) {\r\n Log.d(TAG, \"verifyPermissions: verifying permissions.\");\r\n\r\n ActivityCompat.requestPermissions(\r\n EditProfileActivity.this,\r\n permissions,\r\n VERIFY_PERMISSIONS_REQUEST\r\n );\r\n }", "@PermissionSuccess(requestCode = 100)\n public void onPermissionSuccess(){\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "@Override\n public void checkRunTimePermission(AppBaseActivity activity, String permission) {\n if (ContextCompat.checkSelfPermission(activity, permission)\n != PackageManager.PERMISSION_GRANTED) {\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(activity, permission)) {\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n // No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(activity,\n new String[]{permission},\n REQUEST_PERMISSIONS_REQUEST_CODE);\n // REQUEST_PERMISSIONS_REQUEST_CODE is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n\n }\n }", "public void verifyAppPermissions() {\n boolean hasAll = true;\n mHasBluetoothPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH) == PackageManager.PERMISSION_GRANTED;\n mHasBluetoothAdminPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_ADMIN) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n if (!hasAll) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n this,\n APP_PERMISSIONS,\n REQUEST_PERMISSIONS\n );\n }\n }", "@Test\n\tpublic void testCheckPermission_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tfixture.checkPermission(permission);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testCheckExistsPermissionWithString() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"OPEN_OFFICE2\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission.getName()));\n Permission permission2 = permissionManager.getPermissionInstance(\"CLOSE_OFFICE2\");\n assertFalse(permissionManager.checkExists(permission2.getName()));\n }", "private Boolean checkRuntimePermission() {\n List<String> permissionsNeeded = new ArrayList<String>();\n\n final List<String> permissionsList = new ArrayList<String>();\n if (!addPermission(permissionsList, Manifest.permission.READ_EXTERNAL_STORAGE))\n permissionsNeeded.add(\"Storage\");\n if (!addPermission(permissionsList, Manifest.permission.CAMERA))\n permissionsNeeded.add(\"Camera\");\n /* if (!addPermission(permissionsList, Manifest.permission.WRITE_CONTACTS))\n permissionsNeeded.add(\"Write Contacts\");*/\n\n if (permissionsList.size() > 0) {\n if (permissionsNeeded.size() > 0) {\n // Need Rationale\n String message = \"You need to grant access to \" + permissionsNeeded.get(0);\n for (int i = 1; i < permissionsNeeded.size(); i++)\n message = message + \", \" + permissionsNeeded.get(i);\n showMessageOKCancel(message,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n }\n });\n return false;\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n return false;\n }\n return true;\n }", "private void checkPermission(){\n // vérification de l'autorisation d'accéder à la position GPS\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n// // l'autorisation n'est pas acceptée\n// if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n// Manifest.permission.ACCESS_FINE_LOCATION)) {\n// // l'autorisation a été refusée précédemment, on peut prévenir l'utilisateur ici\n// } else {\n // l'autorisation n'a jamais été réclamée, on la demande à l'utilisateur\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n FINE_LOCATION_REQUEST);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n // }\n } else {\n // TODO : autorisation déjà acceptée, on peut faire une action ici\n initLocation();\n }\n }", "public boolean checkPerms()\n {\n boolean perms = hasPerms();\n if (!perms) {\n ActivityCompat.requestPermissions(\n itsActivity, new String[] { itsPerm }, itsPermsRequestCode);\n }\n return perms;\n }", "@Test\n\tpublic void testIsPermitted_7()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "private boolean checkAndRequestPermissions() {\n\n List<String> listPermissionsNeeded = new ArrayList<>();\n /*if (camera != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(android.Manifest.permission.CAMERA);\n }\n\n if (wstorage != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\n }\n\n if (rstorage != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);\n }\n if (rphoneState != PackageManager.PERMISSION_GRANTED)\n {\n listPermissionsNeeded.add(Manifest.permission.READ_PHONE_STATE);\n }*/\n\n// if(cLocation != PackageManager.PERMISSION_GRANTED){\n// listPermissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);\n// }\n//\n// if(fLocation != PackageManager.PERMISSION_GRANTED){\n// listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);\n// }\n\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray\n (new String[listPermissionsNeeded.size()]), REQUEST_ID_MULTIPLE_PERMISSIONS);\n return false;\n }\n success();\n return true;\n }", "@Test\n\tpublic void testIsPermitted_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void checkIfPermissionGranted() {\n\n //if user already allowed the permission, this condition will be true\n if (ContextCompat.checkSelfPermission(this, PERMISSION_CODE)\n == PackageManager.PERMISSION_GRANTED) {\n Intent launchIntent = getPackageManager().getLaunchIntentForPackage(\"com.example.a3\");\n if (launchIntent != null) {\n startActivity(launchIntent);//null pointer check in case package name was not found\n }\n }\n //if user didn't allow the permission yet, then ask for permission\n else {\n ActivityCompat.requestPermissions(this, new String[]{PERMISSION_CODE}, 0);\n }\n }", "private boolean checkAndRequestPermissions() {\n List<String> listPermissionsNeeded = new ArrayList<>();\n for (String pem : appPermissions){\n if (ContextCompat.checkSelfPermission(this, pem) != PackageManager.PERMISSION_GRANTED){\n listPermissionsNeeded.add(pem);\n }\n }\n\n //ask for non-granted permissions\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), PERMISSION_REQUEST_CODE);\n return false;\n }\n return true;\n }", "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "abstract public void getPermission();", "public boolean selfPermissionGranted(String permission) {\n boolean result = true;\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n // targetSdkVersion >= Android M, we can\n // use Context#checkSelfPermission\n result = checkSelfPermission(permission)\n == PackageManager.PERMISSION_GRANTED;\n } else {\n // targetSdkVersion < Android M, we have to use PermissionChecker\n result = PermissionChecker.checkSelfPermission(this, permission)\n == PermissionChecker.PERMISSION_GRANTED;\n }\n }\n\n return result;\n }", "@Override\n public boolean hasPermission(Permission permission) {\n // FacesContext context = FacesContext.getCurrentInstance();\n String imp = (String)ADFContext.getCurrent().getSessionScope().get(\"isImpersonationOn\");\n// String imp = (String)context.getExternalContext().getSessionMap().get(\"isImpersonationOn\");\n if(imp == null || !imp.equals(\"Y\")){\n return super.hasPermission(permission);\n }\n else{\n return true;\n \n }\n \n }", "private boolean checkPermission() {\n Log.d(\"TAG\", \"checkPermission()\");\n // Ask for permission if it wasn't granted yet\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED );\n }", "public boolean hasPermission(Permission permission)\n throws Exception\n {\n boolean value = false;\n TurbineAccessControlList<?> acl = data.getACL();\n if (acl == null ||\n !acl.hasPermission(permission))\n {\n data.setScreen(failScreen);\n data.setMessage(message);\n }\n else\n {\n value = true;\n }\n return value;\n }", "@NonNull\n public PendingResult<PermissionStatus> checkPermissionStatus(@NonNull Permission permission) {\n UALog.d(\"Checking permission for %s\", permission);\n\n synchronized (pendingCheckResults) {\n return pendingOrCall(permission, pendingCheckResults, delegate -> {\n final PendingResult<PermissionStatus> pendingResult = new PendingResult<>();\n\n if (delegate == null) {\n UALog.d(\"No delegate for permission %s\", permission);\n pendingResult.setResult(PermissionStatus.NOT_DETERMINED);\n return pendingResult;\n }\n\n synchronized (pendingCheckResults) {\n pendingCheckResults.put(delegate, pendingResult);\n }\n\n mainHandler.post(() -> delegate.checkPermissionStatus(context, status -> {\n UALog.d(\"Check permission %s status result: %s\", permission, status);\n updatePermissionStatus(permission, status);\n pendingResult.setResult(status);\n\n synchronized (pendingCheckResults) {\n pendingCheckResults.remove(delegate);\n }\n }));\n\n return pendingResult;\n });\n }\n }", "private void checkIfPermissionGranted(List<String> requiredPermissions, String permissionToCheck){\n if (ActivityCompat.checkSelfPermission(activity, permissionToCheck)\n != PackageManager.PERMISSION_GRANTED) {\n requiredPermissions.add(permissionToCheck);\n }\n }", "private boolean checkPermissions() {\n int permissionState1 = ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION);\n\n int permissionState2 = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION);\n return permissionState1 == PackageManager.PERMISSION_GRANTED && permissionState2 == PackageManager.PERMISSION_GRANTED;\n }", "private boolean checkPermission() {\n\n if ((ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED)\n\n ) {\n\n // Permission is not granted\n return false;\n\n }\n return true;\n }", "private boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(\n this, Manifest.permission.ACCESS_FINE_LOCATION\n );\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "public boolean checkPermission(final DataBucketBean bucket, final String permission) {\r\n\t\t\treturn _security_service.isUserPermitted(principalName, bucket, Optional.of(permission));\r\n\t\t}", "private boolean checkPermissions() {\r\n int permissionState = ActivityCompat.checkSelfPermission(this,\r\n Manifest.permission.ACCESS_FINE_LOCATION);\r\n return permissionState == PackageManager.PERMISSION_GRANTED;\r\n }", "public boolean checkPermission(PermissionCheckContext context) {\n PolarAccountInfo account = accountPrivilegeData.getAndCheckById(context.getAccountId());\n if (PolarAuthorizer.hasPermission(account, context.getPermission())) {\n return true;\n }\n\n return account.getRolePrivileges().getActiveRoleIds(context.getActiveRoles(), config.getMandatoryRoleIds())\n .stream()\n .map(accountPrivilegeData::getById)\n .filter(Objects::nonNull)\n .anyMatch(role -> PolarAuthorizer.hasPermission(role, context.getPermission()));\n }", "public int checkCallingPermission(String permission) {\n return this.mService.checkCallingPermission(permission);\n }", "int getPermissionRead();", "void check(Permission permission, DBObject dBObject) throws T2DBException;", "boolean requestIfNeeded(Activity activity, Permission permission);", "private boolean checkPermission() {\n Log.d(TAG, \"checkPermission()\");\n // Ask for permission if it wasn't granted yet\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED);\n }", "private boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "private boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "public void checkPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) +\n ContextCompat.checkSelfPermission(this, Manifest.permission.MODIFY_AUDIO_SETTINGS)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, perms, permsRequestCode);\n permissionGranted = false;\n } else {\n permissionGranted = true;\n }\n }", "@Test\n\tpublic void testIsPermitted_6()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testCheckPermissions_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testIsPermitted_8()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(null);\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "private boolean checkPermission() {\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED );\n }", "@Override\n public int checkNotificationPermission() throws android.os.RemoteException {\n android.os.Parcel _data = android.os.Parcel.obtain();\n android.os.Parcel _reply = android.os.Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n boolean _status = mRemote.transact(\n Stub.TRANSACTION_checkNotificationPermission, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }", "public boolean hasPermission(Context paramContext, String paramString) {\n }", "public interface IPermissionCallback {\n /**\n * Gets called if the permission/permissions you requested are granted successfully by the user.\n * @param requestCode - same integer is returned that you have passed when you called requestPermission();\n */\n void permissionGranted(int requestCode);\n\n /**\n * Gets called if the permission/permissions you requested are denied by the user.\n * If user denies a permission once, next time that permission comes with a check box(never ask again).\n * If user check that box and denies again, no permission dialog is shown to the user next time and permission will be denied automatically.\n * @param requestCode - same integer is returned that you have passed when you called requestPermission();\n * @param willShowCheckBoxNextTime - For a request of multiple permissions at the same time, you will always receive false.\n */\n void permissionDenied(int requestCode, boolean willShowCheckBoxNextTime);\n}", "private boolean checkPermission() {\n int fineLocation = ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (fineLocation != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQUEST_CODE_FINE_LOCATION);\n }\n return false;\n } else {\n return true;\n }\n }", "public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }", "public static boolean m45181a() {\n Context b = m45183b();\n if (b != null) {\n try {\n PackageManager packageManager = b.getPackageManager();\n if (packageManager == null) {\n return true;\n }\n String[] strArr = packageManager.getPackageInfo(b.getPackageName(), 4096).requestedPermissions;\n if (strArr == null) {\n return false;\n }\n String[] strArr2 = f31382a;\n for (String str : strArr2) {\n boolean a = m45182a(strArr, str);\n f31383b.put(str, Boolean.valueOf(a));\n if (!a) {\n TLogger.m45340ee(\"PermissionChecker\", \"The required permission of <\" + str + \"> does not found!\");\n return false;\n }\n }\n return true;\n } catch (Throwable th) {\n TLogger.m45339e(\"PermissionChecker\", \"check required permissins exception.\", th);\n return false;\n }\n } else {\n throw new IllegalArgumentException(\"The context parameter can not be null!\");\n }\n }", "public void checkPermissions(){\n //Check if some of the core permissions are not already granted\n if ((ContextCompat.checkSelfPermission(LoginActivity.this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.CAMERA)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.WRITE_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED)) {\n Toast.makeText(this, \"Some permissions are not granted. Please enable them.\", Toast.LENGTH_SHORT).show();\n\n //If so, request the activation of this permissions\n ActivityCompat.requestPermissions(LoginActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n else{\n //Permissions already granted\n }\n }", "private boolean checkPermissions() {\n return PackageManager.PERMISSION_GRANTED == ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n }", "private void checkpermission() {\n permissionUtils = new PermissionUtils(context, this);\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n permissions.add(Manifest.permission.ACCESS_COARSE_LOCATION);\n permissionUtils.check_permission(permissions, \"Need GPS permission for getting your location\", LOCATION_REQUEST_CODE);\n }", "public boolean checkForPermission() {\r\n int permissionCAMERA = ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA);\r\n int storagePermission = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\r\n int accessCoarseLocation = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION);\r\n int accessFineLocation = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\r\n\r\n List<String> listPermissionsNeeded = new ArrayList<>();\r\n if (storagePermission != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);\r\n }\r\n if (permissionCAMERA != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.CAMERA);\r\n }\r\n if (accessCoarseLocation != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);\r\n }\r\n if (accessFineLocation != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);\r\n }\r\n if (!listPermissionsNeeded.isEmpty()) {\r\n ActivityCompat.requestPermissions(this,\r\n listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), MY_PERMISSIONS_REQUEST);\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "boolean hasInstantiatePermission();", "public interface PermissionsManager {\n /**\n * @param permission for which to enquire\n *\n * @return whether the permission is granted.\n */\n boolean isPermissionGranted(Permission permission);\n\n /**\n * Checks whether the permission was already granted, and if it was not, then it requests.\n *\n * @param activity to provide mContext\n * @param permission for which to enquire\n *\n * @return whether the permission was already granted.\n */\n boolean requestIfNeeded(Activity activity, Permission permission);\n}", "public static boolean verifyPermissions(int[] grantResults) {\n if(grantResults.length < 1){\n return false;\n }\n\n // Verify that each required permission has been granted, otherwise return false.\n for (int result : grantResults) {\n if (result != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "void requestNeededPermissions(int requestCode);", "private boolean checkPermissionFromDevice(int permissions) {\n\n switch (permissions) {\n case RECORD_AUDIO_PERMISSION_CODE: {\n // int variables will be 0 if permissions are not granted already\n int write_external_storage_result =\n ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n int record_audio_result =\n ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO);\n\n // returns true if both permissions are already granted\n return write_external_storage_result == PackageManager.PERMISSION_GRANTED &&\n record_audio_result == PackageManager.PERMISSION_GRANTED;\n }\n default:\n return false;\n }\n }", "public boolean hasPermission ( String name ) {\n\t\treturn extract ( handle -> handle.hasPermission ( name ) );\n\t}", "public Map<String, Boolean> hasPermission(String login, List<String> permissions);", "public void checkPermissionStatus(@NonNull Permission permission, @NonNull Consumer<PermissionStatus> callback) {\n checkPermissionStatus(permission).addResultCallback(callback::accept);\n }", "private void checkPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.can_not_handle_calls))\n .setCancelable(false)\n .setPositiveButton(R.string.text_ok, (dialog, id) -> {\n requestPermission();\n });\n\n builder.create().show();\n } else {\n presenter.gotPermissions = true;\n }\n }", "private boolean checkPermissions() {\n boolean permissionGrant = false;\n if (Build.VERSION.SDK_INT >= 23 && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions((Activity) this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQUEST_CODE_ACCESS_COARSE_LOCATION);\n } else {\n permissionGrant = true;\n }\n return permissionGrant;\n\n }" ]
[ "0.79022455", "0.73057586", "0.7290214", "0.706133", "0.702799", "0.6986702", "0.6958502", "0.6918161", "0.68947643", "0.6858026", "0.6824473", "0.6762124", "0.6704156", "0.66583544", "0.66360515", "0.6620569", "0.66169155", "0.6596287", "0.65823454", "0.65821314", "0.65603924", "0.6554117", "0.6552705", "0.65289354", "0.65275395", "0.65266293", "0.6512405", "0.6474971", "0.64698386", "0.6435388", "0.6429542", "0.6426351", "0.6418364", "0.6406957", "0.63925797", "0.6387483", "0.6387098", "0.6373964", "0.6329916", "0.6326909", "0.632166", "0.6315623", "0.6314409", "0.63118136", "0.63032675", "0.6298296", "0.6293264", "0.62869775", "0.6277966", "0.6277078", "0.6266048", "0.6263728", "0.626356", "0.6252632", "0.62497765", "0.62332106", "0.6224116", "0.62114686", "0.6208835", "0.6208113", "0.62048054", "0.61985", "0.6198323", "0.61936665", "0.6187901", "0.61840516", "0.61758447", "0.6162125", "0.6154757", "0.6148524", "0.61452997", "0.6141579", "0.614129", "0.6133484", "0.6133484", "0.61300564", "0.612912", "0.611901", "0.6116696", "0.6113862", "0.6112944", "0.61113083", "0.61090505", "0.61010325", "0.60914856", "0.6090525", "0.6084005", "0.6078419", "0.60776794", "0.60665655", "0.6058299", "0.6055536", "0.60549766", "0.6054133", "0.60539985", "0.60536176", "0.6052367", "0.60519826", "0.6050359", "0.60390776" ]
0.6762392
11
Constructor de la clase, construye la interfaz de eleccion de reportes y llama al constructor del reporte apropiado
public CuentasxCobrar_Reportes() { verBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { dispose(); if(fechaRBtn.isSelected()) new CuentasxCobrar_Reportes_Fecha(); else if(clienteRBtn.isSelected()) new CuentasxCobrar_Reportes_Cliente(); else if(pendientesRBtn.isSelected()) new CuentasxCobrar_Reportes_Pendientes(); else if(canceladasRBtn.isSelected()) new CuentasxCobrar_Reportes_Canceladas(); } }); cancelarBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { dispose(); } }); JPanel upperPanel = new JPanel(); JPanel lowerPanel = new JPanel(); buttonGroup.add(fechaRBtn); buttonGroup.add(clienteRBtn); buttonGroup.add(pendientesRBtn); buttonGroup.add(canceladasRBtn); fechaRBtn.addKeyListener(this); clienteRBtn.addKeyListener(this); pendientesRBtn.addKeyListener(this); canceladasRBtn.addKeyListener(this); fechaRBtn.setPreferredSize(new Dimension(180,20)); clienteRBtn.setPreferredSize(new Dimension(180,20)); upperPanel.setBorder(new TitledBorder(null, "Reportes", TitledBorder.LEFT, TitledBorder.TOP)); upperPanel.add(fechaRBtn); upperPanel.add(clienteRBtn); upperPanel.add(pendientesRBtn); upperPanel.add(canceladasRBtn); lowerPanel.add(verBtn, BorderLayout.WEST); lowerPanel.add(cancelarBtn, BorderLayout.EAST); add(upperPanel, BorderLayout.CENTER); add(lowerPanel, BorderLayout.SOUTH); setSize(200,200); setTitle("Generar Reportes..."); setLocation(Store.screenSize.width/2-100, Store.screenSize.height/2-100); setDefaultCloseOperation(DISPOSE_ON_CLOSE); setResizable(false); setModal(true); setAlwaysOnTop(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Report() {\r\n }", "public Report() {\n\t\tsuper();\n\t}", "protected Report()\n {\n super();\n }", "public Report(Employee employee, int numberOfReports){\n this.employee=employee;\n this.numberOfReports=numberOfReports;\n }", "public FormFieldsReport() {}", "public ProductTestReport() {}", "public Reportes() {\n initComponents();\n }", "public DefaultValidationReport()\r\n {\r\n factory = new DefaultReportFactory();\r\n }", "public Excel_Reporte_Borrador() {\r\n }", "Report createReport();", "public ProductTestReport(Long id)\n/* 26: */ {\n/* 27:27 */ super(id);\n/* 28: */ }", "public ReportScreen() {\n\t\t\n\t}", "public EmailDailyReportOfZA() {\n\t}", "public Reports() {\n initComponents();\n }", "public Reports() {\n initComponents();\n }", "public Reports() {\n initComponents();\n }", "public Prof_Report() {\r\n initComponents();\r\n }", "public reporteController() {\n }", "public ControllerReporteHistorialClinico() {\n }", "void createReport(Report report);", "public DeviceReportExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Reportes() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public BasicReport() throws OculusException\n { super(); }", "private void inicializar() {\n\t\treporte = new Jasperreport();\n\t\tdiv = new Div();\n\t}", "public XSDataCrystal() {\n super();\n }", "public SlowQueryReport() {\n super();\n }", "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "public ConsultaMedica() {\n super();\n }", "public ArAgingDetailReportDAO () {}", "public XL() {\n Reporter.log(\"New XL ctor\", true);\n }", "private ReportService() { }", "public ProductTestReport(Long id, String name, Date date, String operator, Long fileId, String fileName)\n/* 16: */ {\n/* 17:17 */ setId(id);\n/* 18:18 */ setName(name);\n/* 19:19 */ setDate(date);\n/* 20:20 */ setOperator(operator);\n/* 21:21 */ setFileId(fileId);\n/* 22:22 */ setFileName(fileName);\n/* 23: */ }", "public Historique()\n\t{\n\t\t\n\t}", "public Consulte()\n {\n }", "public BeansReportWrittenExamination() {\n\t\tsuper();\n\t}", "public TestBugReports(String name) {\n super(name);\n }", "public ReportResponse(List<ReportData> reportData) {\n this.reportData = reportData;\n }", "public CommAreaRecord() {\n\t}", "public SalesRecords() {\n super();\n }", "public prueba()\r\n {\r\n }", "public ReportTable(TableView<Report> reportTable) {\n this.reportTable = reportTable;\n }", "public FamilyDetails(final String reportId, final Long seqNum) {\n super();\n this.reportId = reportId;\n this.seqNum = seqNum;\n }", "public reportScreen(String reportType) {\n this.reportType = reportType;\n\n }", "public ReportMetadataExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "public CommonPersonalReportServiceImpl() {\r\n }", "public HtmlReport(Catalog c) {\n this.c = c;\n }", "private ReportRepository() {\n ConnectionBD BD = ConnectionBD.GetInstance();\n this.con = BD.GetConnection();\n this.itemInfoFactory = ItemInfoFactory.GetInstance();\n }", "public Pasien() {\r\n }", "public LoggingMessageReport(Logger logger) {\n this.logger = logger;\n }", "@Override\r\n\t\t\tpublic void reporte() {\n\r\n\t\t\t}", "public ICareDailyDietChart() {\n\n\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "public FullPrintableReport( WOContext context )\n {\n super( context );\n }", "public DABeneficios() {\n }", "public ReportGenerator(AccessibilityTester at, TestSettings set){\n tester = at;\n testSettings = set;\n printName = set.report_name;\n printDescription = set.report_description;\n printPosition = set.report_position;\n }", "Constructor() {\r\n\t\t \r\n\t }", "public WaterReport() {\n virusPPM = -1;\n contaminantPPM = -1;\n }", "public AntrianPasien() {\r\n\r\n }", "public PathologyReportDetailQueryBuilder() {\n super();\n }", "public void cargarReporte() throws Exception {\n ReporteLogica rpL = new ReporteLogica();\n int[][] entradas = rpL.reporteBasicoTransacciones(\"ENTRADA\");\n if (entradas.length > 0) {\n cincoMasEntradas(entradas);\n mayorMenorEntrada(entradas);\n totalEntradas(entradas);\n grafica(entradas);\n } else {\n JOptionPane.showMessageDialog(null, \"Datos insuficientes para generar reporte\");\n }\n }", "public ReportPane() {\n initComponents();\n }", "public ReportPanel() {\n initComponents();\n writer = new JTextAreaWriter(jTextArea1);\n }", "public StubReport() {\n\t\t\thashMapDB = new HashMap<String, HashMap<Integer, String>>();\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(1, \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\");\n\t\t\tparkReportData.put(2,\n\t\t\t\t\t\"12 88 28 60 28 0 76 40 20 32 76 0 16 96 0 96 0 0 60 56 28 56 28 0 60 28 0 56 0 0 92 28 0 44 28 0\");\n\t\t\tparkReportData.put(3, \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\");\n\t\t\thashMapDB.put(\"Haifa Park\", parkReportData);\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(4, \"1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1\");\n\t\t\tparkReportData.put(5, \"1 2 7 4 7 6 7 7 0 8 7 0 7 7 7 0 7 0 7 5 7 5 7 6 7 7 7 8 7 5 7 6 7 5 7 7\");\n\t\t\tparkReportData.put(6,\n\t\t\t\t\t\"11 22 33 44 55 66 17 23 5 8 4 2 3 2 54 34 2 32 1 61 1 75 32 46 12 67 23 82 12 56 32 36 12 85 232 7\");\n\t\t\thashMapDB.put(\"Tel-Aviv Park\", parkReportData);\n\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(7, \"1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1\");\n\t\t\tparkReportData.put(8, \"1 2 3 4 5 6 0 0 0 8 9 0 3 0 4 0 6 0 0 5 5 5 0 6 0 7 0 8 0 5 0 6 0 5 0 7\");\n\t\t\tparkReportData.put(9, \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\");\n\t\t\thashMapDB.put(\"Safed Park\", parkReportData);\n\t\t}", "protected ReportGenerator()\r\n {\r\n helperObjects = new HashMap();\r\n }", "public static Report createEntity() {\n\t\tReport report = new Report()\n\t\t\t\t.fromIsoCode(DEFAULT_FROM_ISO_CODE)\n\t\t\t\t.toIsoCode(DEFAULT_TO_ISO_CODE)\n\t\t\t\t.total(DEFAULT_TOTAL)\n\t\t\t\t.lastUpdated(DEFAULT_LAST_UPDATED);\n\t\treturn report;\n\t}", "public Alojamiento() {\r\n\t}", "public ReportUi() {\n initComponents();\n }", "public ReportRunner() \n\t{\n\t\treports = new HashMap<String, Report>();\n\t\tresults =Collections.synchronizedMap(new HashMap<String, ArrayList<String[]>>());\n\t}", "public Carrera(){\n }", "public RuleBaseReporter()\n\t{\n\t\tsuper();\n\t}", "public Exercicio(){\n \n }", "public Propuestas() {}", "public PRODUCT_REPORT() {\n initComponents();\n date();\n time();\n table();\n \n pnn2.setEditable(false);\n pc1.setEditable(false);\n pba.setEditable(false);\n pds.setEditable(false);\n }", "@Override\n\t//Start, end, headache count, average severity, duration\n\tpublic String buildReport() {\n\t\tsetHeadacheInfo(); \n\t\tStringBuilder hsReport = new StringBuilder(); \n\t\thsReport.append(\"\\nReport Start Date: \"); \n\t\thsReport.append(getStartDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Report End Date: \"); \n\t\thsReport.append(getEndDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Headache Count: \"); \n\t\thsReport.append(getHeadacheList().size() + \"\\n\"); \n\t\thsReport.append(\"Average Severty: \"); \n\t\thsReport.append(getAverageSeverity() + \"\\n\"); \n\t\thsReport.append(\"Average Duration (hours): \"); \n\t\thsReport.append(getAverageDuration() + \"\\n\"); \n\t\treturn hsReport.toString(); \n\t}", "public Excellon ()\n {}", "public ReportMakerTab() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "public Visitante() {\r\n }", "public MorteSubita() {\n }", "public Soil()\n\t{\n\n\t}", "public Erreur() {\n\t}", "public LogX() {\n\n }", "@Test\n public void billCustomConstructor_isCorrect() throws Exception {\n\n int billId = 100;\n String billName = \"test Bill\";\n int userId = 101;\n int accountId = 202;\n double billAmount = 300.25;\n String dueDate = \"02/02/2018\";\n int occurrenceRte = 1;\n\n //Create empty bill\n Bill bill = new Bill(billId,userId,accountId,billName,billAmount,dueDate,occurrenceRte);\n\n // Verify Values\n assertEquals(billId, bill.getBillId());\n assertEquals(billName, bill.getBillName());\n assertEquals(userId, bill.getUserId());\n assertEquals(accountId, bill.getAccountId());\n assertEquals(billAmount, bill.getBillAmount(), 0);\n assertEquals(dueDate, bill.getDueDate());\n assertEquals(occurrenceRte, bill.getOccurrenceRte());\n }", "public DecisionTrace() {\r\n\r\n\t}", "public ReportBeanDSLoader(List<TaskGDCReportDetail> reportTemplateData) {\n\t\tsuper(reportTemplateData);\n\t}", "protected Map<String, Object> getReportParameters()\r\n/* 134: */ {\r\n/* 135:169 */ Map<String, Object> reportParameters = super.getReportParameters();\r\n/* 136:170 */ reportParameters.put(\"ReportTitle\", \"Reporte Presupuesto\");\r\n/* 137:171 */ reportParameters.put(\"ejercicio\", this.ejercicio.getNombre());\r\n/* 138:172 */ if ((this.tipoReporte.ordinal() == 1) && (this.mesSeleccionado != null)) {\r\n/* 139:173 */ reportParameters.put(\"mes\", this.mesSeleccionado.getNombre());\r\n/* 140: */ }\r\n/* 141:174 */ return reportParameters;\r\n/* 142: */ }", "public HotelReport(Hotel myHotel) {\n\t\t/*\n\t\t * Constructor method which sets the hotel to be reported\n\t\t */\n\t\tsetHotel(myHotel);\n\t}", "public CapteurEffetHall() {\n\t\t\n\t}", "public Achterbahn() {\n }", "public ShippingResultABCAnalysis2Business()\n {\n super();\n }", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public Chauffeur() {\r\n\t}", "public void setReport(Report report);", "public LogBook() {\n logs = new UniqueLogList();\n exercises = new UniqueExerciseList();\n }", "public Catelog() {\n super();\n }", "public CorreoElectronico() {\n }", "public Empresa() {\n super();\n this.nif = 0;\n this.raio = 0.0;\n this.precoPorKm = 0.0;\n this.precoPorPeso = 0.0;\n this.precoPorHora = 0.0;\n this.available = false;\n this.certificado = false;\n this.historico = new Historico();\n this.pe = null;\n }", "public CarteCaisseCommunaute() {\n super();\n }", "public AnalysisDef() {}", "public Report build() {\n return new Report(this);\n }", "public TbPdfInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Notifica(){}" ]
[ "0.7786069", "0.76947784", "0.76208216", "0.72598374", "0.70339", "0.6988939", "0.6910483", "0.67222464", "0.6716339", "0.6611975", "0.6598246", "0.6593745", "0.6577188", "0.6536183", "0.6536183", "0.6536183", "0.6491261", "0.6459158", "0.64535904", "0.63462377", "0.6300543", "0.62963796", "0.6272402", "0.62550235", "0.6240987", "0.6236974", "0.62331885", "0.62023586", "0.6118842", "0.61110866", "0.610909", "0.6094895", "0.6078235", "0.6024204", "0.6008051", "0.59739196", "0.59677017", "0.595988", "0.5950184", "0.5917627", "0.5916838", "0.5902228", "0.5898577", "0.589456", "0.587958", "0.5876386", "0.5875207", "0.5870554", "0.585899", "0.58563715", "0.5844949", "0.58371735", "0.5834673", "0.5815519", "0.5814106", "0.58104825", "0.57898915", "0.57895535", "0.57828194", "0.5775699", "0.5768323", "0.5763102", "0.5755995", "0.57511675", "0.5733565", "0.57240665", "0.5721008", "0.5717295", "0.57111216", "0.57042617", "0.57010365", "0.56997037", "0.56963617", "0.5694519", "0.5683671", "0.56782", "0.56775343", "0.5677205", "0.56757325", "0.56697524", "0.56630003", "0.5655488", "0.5652398", "0.5650101", "0.5650059", "0.5644462", "0.56426513", "0.5640226", "0.56393385", "0.56314826", "0.56291586", "0.5628837", "0.5628763", "0.5624511", "0.5622037", "0.5614839", "0.56082684", "0.56021184", "0.56012017", "0.5597294", "0.55923724" ]
0.0
-1
Metodo que ejecuta el comando de generar reportes
public void ejecutarComando() { setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "public static void main(String[] args) {\n \t\tSystem.out.println(I18n.tr(\"StatCvs-XML - CVS statistics generation\")+\"\\n\");\n \t\tSystem.setProperty(\"java.awt.headless\", \"true\");\n \t\t\n\t\tif (args.length == 0) {\n\t\t\tprintProperUsageAndExit();\n\t\t}\n \t\tif (args.length == 1) {\n \t\t\tString arg = args[0].toLowerCase();\n \t\t\tif (arg.equals(\"-h\") || arg.equals(\"-help\")) {\n \t\t\t\tprintProperUsageAndExit();\n \t\t\t} else if (arg.equals(\"-version\")) {\n \t\t\t\tprintVersionAndExit();\n \t\t\t}\n \t\t}\n \n \t\ttry {\n \t\t\tReportSettings settings = readSettings(args);\n \t\t\tinitLogger();\n \t\t\tgenerateSuite(settings);\n \t\t} catch (InvalidCommandLineException e) {\n \t\t\tSystem.err.println(e.getMessage());\n \t\t\tprintProperUsageAndExit();\n \t\t} catch (IOException e) {\n \t\t\tprintErrorMessageAndExit(e.getMessage());\n \t\t} catch (LogSyntaxException lex) {\n \t\t\tprintLogErrorMessageAndExit(lex.getMessage());\n \t\t} catch (OutOfMemoryError oome) {\n \t\t\tprintOutOfMemMessageAndExit();\n \t\t} catch (Exception ioex) {\n \t\t\tioex.printStackTrace();\n \t\t\tprintErrorMessageAndExit(ioex.getMessage());\n \t\t}\n \n \t\tSystem.exit(0);\n \t}", "public static void main(String[] args) {\n Module module = ActivatorToolBox.simpleLink(new BaseDBActivator(),\n new ConfigurationActivator(),\n new StandaloneModeActivator(),\n new ModuleHealActivator(),\n new StateServiceActivator(),\n new ChartBaseActivator(),\n new SchedulerActivator(),\n new ReportBaseActivator(),\n new RestrictionActivator(),\n new ReportActivator(),\n new WriteActivator());\n SimpleWork.supply(CommonOperator.class, new CommonOperatorImpl());\n String envpath = \"//Applications//FineReport10_325//webapps//webroot//WEB-INF\";\n SimpleWork.checkIn(envpath);\n I18nResource.getInstance();\n module.start();\n\n\n ResultWorkBook rworkbook = null;\n try {\n // read the workbook\n TemplateWorkBook workbook = TemplateWorkBookIO.readTemplateWorkBook(\"//doc//Primary//Parameter//Parameter.cpt\");\n // get the parameters and set value\n Parameter[] parameters = workbook.getParameters();\n parameters[0].setValue(\"华东\");\n // define a parameter map to execute the workbook\n java.util.Map parameterMap = new java.util.HashMap();\n for (int i = 0; i < parameters.length; i++) {\n parameterMap.put(parameters[i].getName(), parameters[i]\n .getValue());\n }\n\n FileOutputStream outputStream;\n\n // unaltered export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//ExcelExport.xls\"));\n ExcelExporter excel = new ExcelExporter();\n excel.setVersion(true);\n excel.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // unaltered export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//ExcelExport.xlsx\"));\n StreamExcel2007Exporter excel1 = new StreamExcel2007Exporter();\n excel.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // full page export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageExcelExport.xls\"));\n PageExcelExporter page = new PageExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())));\n page.setVersion(true);\n page.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // full page export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageExcelExport.xlsx\"));\n PageExcel2007Exporter page1 = new PageExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook));\n page1.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // page to sheet export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageSheetExcelExport.xls\"));\n PageToSheetExcelExporter sheet = new PageToSheetExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())));\n sheet.setVersion(true);\n sheet.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // page to sheet export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageSheetExcelExport.xlsx\"));\n PageToSheetExcel2007Exporter sheet1 = new PageToSheetExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook));\n sheet1.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // Large data volume export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//LargeExcelExport.zip\"));\n LargeDataPageExcelExporter large = new LargeDataPageExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())), true);\n\n // Large data volume export to xlsx\n // outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//LargeExcelExport.xlsx\"));\n // LargeDataPageExcel2007Exporter large = new LargeDataPageExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook), true);\n large.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n outputStream.close();\n module.stop();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void Btn_exportar_bkupActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n SimpleDateFormat d = new SimpleDateFormat(\"dd-MM-yyyy-HH-mm-ss\");\n Date date = new Date(); \n String respaldo= \"Respaldo_\"+d.format(date); \n respaldo=respaldo.toUpperCase();\n \n \n String cmd = \"expdp system/2015VC601 schemas=director directory=DIRECTORIO dumpfile=\"+respaldo+\".dmp logfile=\"+respaldo+\"_txt.log\"; //Comando \n Process exec = Runtime.getRuntime().exec(cmd); \n JOptionPane.showMessageDialog(rootPane, \"Generando respaldo, espere unos minutos.\");\n } catch (IOException | HeadlessException ioe) {\n System.out.println (ioe);\n }\n }", "public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) { \n processDataFile();\n realtorLogImpl.traverseDisplay();\n System.out.println();\n propertyLogImpl.traverseDisplay();\n System.out.println();\n generateReport();\n }", "public void execute() throws XDocletException {\n\t\tsetPublicId(DD_PUBLICID_20);\n\t\tsetSystemId(DD_SYSTEMID_20);\n\n\t\t// will not work .... dumper.xdt does not exist\n\t\t/*\n\t\tsetTemplateURL(getClass().getResource(\"resources/dumper.xdt\"));\n\t\tsetDestinationFile(\"dump\");\n\t\tSystem.out.println(\"Generating dump\");\n\t\tstartProcess();\n\t\t*/\n\n\n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_EJB_JAR_XML_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"ejb-jar.xml\");\n\t\tSystem.out.println(\"Generating ejb-jar.xml\");\n\t\tstartProcess();\n\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_BND_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_BND_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_BND_FILE_NAME);\n startProcess();\n\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_EXT_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_EXT_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_EXT_FILE_NAME);\n startProcess();\n \n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_EXT_PME_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_EXT_PME_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_EXT_PME_FILE_NAME);\n startProcess();\n\n /*\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_ACCESS_BEAN_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_ACCESS_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_ACCESS_FILE_NAME);\n startProcess();\n */\n \n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_MAPXMI_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"backends/\" + getDb() + \"/Map.mapxmi\");\n\t\tSystem.out.println(\"Generating backends/\" + getDb() + \"/Map.mapxmi\");\n\t\tstartProcess();\n \n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_DBXMI_TEMPLATE_FILE));\n setDestinationFile(\"backends/\" + getDb() + \"/\" + getSchema() + \".dbxmi\");\n System.out.println(\"Generating backends/\" + getDb() + \"/\" + getSchema() + \".dbxmi\");\n startProcess();\n \n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_SCHXMI_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql.schxmi\");\n\t\tSystem.out.println(\"Generating backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql.schxmi\");\n\t\tstartProcess();\n\t\t\n\t\tCollection classes = getXJavaDoc().getSourceClasses();\n\t\tfor (ClassIterator i = XCollections.classIterator(classes); i.hasNext();) {\n\t\t\tXClass clazz = i.next();\n\t\t\t//System.out.print(\">> \" + clazz.getName());\n\t\t\t// check tag ejb:persistence + sub tag table-name\n\t\t\tXTag tag = clazz.getDoc().getTag(\"ejb:persistence\");\n\t\t\tif (tag != null) {\n\t\t\t\tString tableName = tag.getAttributeValue(\"table-name\");\n\t\t\t\t//System.out.println(\"ejb:persistence table-name = '\" + tableName + \"'\");\n\t\t\t\tString destinationFileName = \"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql_\" + tableName + \".tblxmi\";\n\t\t\t\tSystem.out.println(\"Generating \" + destinationFileName);\n\t\t\t\t\n\t\t\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_TBLXMI_TEMPLATE_FILE));\n\t\t\t\tsetDestinationFile(destinationFileName);\n\t\t\t\tsetHavingClassTag(\"ejb:persistence\");\n\t\t\t\tsetCurrentClass(clazz);\n\t\t\t\tstartProcess();\n\t\t\t}\n\t\t\t// Now, check for relationships \n\t\t\tfor (Iterator methods = clazz.getMethods().iterator(); methods.hasNext();) {\n\t\t\t\tXMethod method = (XMethod)methods.next();\n\t\t\t\tif (method.getDoc().hasTag(\"websphere:relation\")) {\n\t\t\t\t\tString tableName = method.getDoc().getTagAttributeValue(\"websphere:relation\",\"table-name\");\n\t\t\t\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_RELATIONSHIP_TBLXMI_TEMPLATE_FILE));\n\t\t\t\t\tString destinationFileName = \"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql_\" + tableName + \".tblxmi\";\n\t\t\t\t\tsetDestinationFile(destinationFileName);\n\t\t\t\t\tsetCurrentClass(clazz);\n\t\t\t\t\tsetCurrentMethod(method);\n\t\t\t\t\tSystem.out.println(\"\\tGenerating M-M Relationship table: \" + destinationFileName);\n\t\t\t\t\tstartProcess();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\t\n\n\t\t}\n\n/*\n if (atLeastOneCmpEntityBeanExists()) {\n setTemplateURL(getClass().getResource(WEBSPHERE_SCHEMA_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_SCHEMA_FILE_NAME);\n startProcess();\n }\n*/\n }", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException {\n\t\ttry {\n\n\t\t\tGenerateReport re=new GenerateReport();//\n\t\t\tre.generateExcelReport(\"report.xlsx\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.getLocalizedMessage();\n\t\t\te.getMessage();\n\t\t\tSystem.out.println(e.getLocalizedMessage());\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }", "public static void main(String args[]) throws Exception{\n \trmk.gui.HtmlReportDialog rpt = new rmk.gui.HtmlReportDialog();\r\n \trpt.exitOnCancel=true;\r\n \t\r\n\tjava.util.GregorianCalendar date = new java.util.GregorianCalendar(2003, 11, 1);\r\n \trmk.reports.TaxShipped tst = new rmk.reports.TaxShipped(date);\r\n\ttst.setFormat(ReportDataInvoicesList.FORMAT_TAX_SHIPPED); // FORMAT_TAX_SHIPPED FORMAT_MINIS\r\n\r\n \trpt.setReport(tst);\r\n// \tErrorLogger.getInstance().logMessage(tst.getInvoice());\r\n// \trpt.setInvoice(60001); // 42496, 42683, 50000, 42684\r\n \trpt.setVisible(true);\r\n }", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }", "public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }", "void printReport();", "public void generarReportePagosAutorizadoss(String sAccionBusqueda,List<PagosAutorizados> pagosautorizadossParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizadosMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PagosAutorizadosMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Pagos Autorizadoses\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PagosAutorizadosConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePagosAutorizados=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePagosAutorizados=new JRBeanArrayDataSource(PagosAutorizadosJInternalFrame.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePagosAutorizados);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PagosAutorizadosConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PagosAutorizadosConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PagosAutorizadosBean.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPagosAutorizadosActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public static void reportes(){\n try {\n /**Variable necesaria para abrir el archivo creado*/\n Desktop pc=Desktop.getDesktop();\n /**Variables para escribir el documento*/\n File f=new File(\"Reporte_salvajes.html\");\n FileWriter w=new FileWriter(f);\n BufferedWriter bw=new BufferedWriter(w);\n PrintWriter pw=new PrintWriter(bw);\n \n /**Se inicia el documento HTML*/\n pw.write(\"<!DOCTYPE html>\\n\");\n pw.write(\"<html>\\n\");\n pw.write(\"<head>\\n\");\n pw.write(\"<title>Reporte de los Pokemons Salvajes</title>\\n\");\n pw.write(\"<style type=\\\"text/css\\\">\\n\" +\n \"body{\\n\" +\n \"background-color:rgba(117, 235, 148, 1);\\n\" +\n \"text-align: center;\\n\" +\n \"font-family:sans-serif;\\n\" +\n \"}\\n\"\n + \"table{\\n\" +\n\"\t\t\tborder: black 2px solid;\\n\" +\n\"\t\t\tborder-collapse: collapse;\\n\" +\n\" }\\n\"\n + \"#td1{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: skyblue;\\n\" +\n\" }\\n\" +\n\" #td2{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: white;\\n\" +\n\" }\\n\"\n +\"</style>\");\n pw.write(\"<meta charset=\\\"utf-8\\\">\");\n pw.write(\"</head>\\n\");\n /**Inicio del cuerpo*/\n pw.write(\"<body>\\n\");\n /**Título del reporte*/\n pw.write(\"<h1>Reporte de los Pokemons Salvajes</h1>\\n\");\n /**Fecha en que se genero el reporte*/\n pw.write(\"<h3>Documento Creado el \"+fecha.get(Calendar.DAY_OF_MONTH)+\n \"/\"+((int)fecha.get(Calendar.MONTH)+1)+\"/\"+fecha.get(Calendar.YEAR)+\" a las \"\n +fecha.get(Calendar.HOUR)+\":\"+fecha.get(Calendar.MINUTE)+\":\"+fecha.get(Calendar.SECOND)+\"</h3>\\n\");\n \n pw.write(\"<table align=\\\"center\\\">\\n\");\n //Se escriben los títulos de las columnas\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[0]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[1]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[2]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[3]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[4]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[5]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[6]+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n for (int i = 0; i < pokemon.ingresados; i++) {\n //Se determina si el pokemon es salvaje\n if(pokemon.Capturado[i]==false){\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Id[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Tipo[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Nombre[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Vida[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.ptAt[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">Salvaje</td>\\n\");\n //Se determina si el pokemon esta vivo o muerto\n String estado;\n if (pokemon.Estado[i]==true) {\n estado=\"Vivo\";\n }else{estado=\"Muerto\";}\n pw.write(\"<td id=\\\"td2\\\">\"+estado+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n }\n }\n pw.write(\"</table><br>\\n\");\n \n pw.write(\"</body>\\n\");\n pw.write(\"</html>\\n\");\n /**Se finaliza el documento HTML*/\n \n /**Se cierra la capacidad de escribir en el documento*/ \n pw.close();\n /**Se cierra el documento en el programa*/\n bw.close();\n /**Se abre el documento recien creado y guardado*/\n pc.open(f);\n } catch (Exception e) {\n System.err.println(\"Asegurese de haber realizado las actividades previas \"\n + \"relacionadas\");\n }\n }", "public static void main(String[] args) throws IOException, JAXBException {\n Report.builder()\n .moduleList(System.getProperty(MODULES_PROPERTY_NAME, DEFAULT_MODULES_LIST))\n .inputFileDir(System.getProperty(INPUT_FILE_DIR_PROPERTY_NAME, DEFAULT_INPUT_FILE_DIR))\n .inputFileName(System.getProperty(INPUT_FILE_NAME_PROPERTY_NAME, DEFAULT_INPUT_FILE_NAME))\n .outputFileDir(System.getProperty(OUTPUT_FILE_DIR_PROPERTY_NAME, DEFAULT_OUTPUT_FILE_DIR))\n .outputFileName(System.getProperty(OUTPUT_FILE_NAME_PROPERTY_NAME, DEFAULT_OUTPUT_FILE_NAME))\n .build()\n .execute();\n }", "public void generarReporteCostoGastoImpors(String sAccionBusqueda,List<CostoGastoImpor> costogastoimporsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"CostoGastoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CostoGastoImporMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"CostoGastoImporMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CostoGastoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Costo Gasto Impores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", CostoGastoImporConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleLiquidacionImpor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tCostoGastoImporLogic costogastoimporLogicAuxiliar=new CostoGastoImporLogic();\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.setDatosCliente(costogastoimporLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.setCostoGastoImpors(costogastoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.cargarRelacionesLoteForeignKeyCostoGastoImporWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tcostogastoimporsParaReportes=costogastoimporLogicAuxiliar.getCostoGastoImpors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//costogastoimporLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (CostoGastoImpor costogastoimpor:costogastoimporsParaReportes) {\r\n\t\t\t\t\t//\tcostogastoimporLogic.deepLoad(costogastoimpor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//costogastoimporLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//costogastoimporLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleLiquidacionImpor = AuxiliarReportes.class.getResourceAsStream(\"DetalleLiquidacionImporDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleliquidacionimpor\", reportFileDetalleLiquidacionImpor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceCostoGastoImpor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tCostoGastoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tCostoGastoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceCostoGastoImpor=new JRBeanArrayDataSource(CostoGastoImporJInternalFrame.TraerCostoGastoImporBeans(costogastoimporsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceCostoGastoImpor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+CostoGastoImporConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+CostoGastoImporConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(CostoGastoImporBean.TraerCostoGastoImporBeans(costogastoimporsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoCostoGastoImporActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "void exportarLog() {\n try {\n JasperPrint rU = null;\n HashMap map = new HashMap();\n\n String arquivoJasper = \"/Sistema/relatorios/relatorioAcessos.jasper\";\n try{\n rU = JasperFillManager.fillReport(arquivoJasper, map, parametrosNS.con);\n }catch(Exception e){ \n JOptionPane.showMessageDialog(null, \"visualizar relatorio \" + e);\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n JasperViewer.viewReport(rU, false); \n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"o erro foi ao gerar relatorio \" + e);\n }\n }", "public static void main(String[] args) throws IOException {\n\n new ReportGenerator(new InMemoryPersonProvider(\"src/main/resources/domain/people.txt\"))\n .generateReport(\"PersonsComposition\");\n\n }", "public void generarReportePlantillaFacturas(String sAccionBusqueda,List<PlantillaFactura> plantillafacturasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PlantillaFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PlantillaFacturaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PlantillaFacturaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PlantillaFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Plantilla Facturas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PlantillaFacturaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePlantillaFactura=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPlantillaFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPlantillaFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePlantillaFactura=new JRBeanArrayDataSource(PlantillaFacturaJInternalFrame.TraerPlantillaFacturaBeans(plantillafacturasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePlantillaFactura);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PlantillaFacturaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PlantillaFacturaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PlantillaFacturaBean.TraerPlantillaFacturaBeans(plantillafacturasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPlantillaFacturaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void execute() throws Exception {\n\n\t\tString datepattern = \"yyyy-MM-dd\";\n\t\tSimpleDateFormat sdf =new SimpleDateFormat(datepattern);\n\t\t//testing console\n\t\t if(TestHTTP.test(Parameters.LATC_CONSOLE_HOST))\n\t \tlogfile.info(Parameters.LATC_CONSOLE_HOST+\" OK\");\n\t else \n\t {\n\t \tlogfile.severe(Parameters.LATC_CONSOLE_HOST+\" DOWN\");\n\t \tSystem.exit(0);\n\t \t}\n \t\t\n\t\tListTranslator lt = new ListTranslator();\n ContentWriter cw = new ContentWriter();\n \n ConsoleConnection client = new ConsoleConnection(Parameters.LATC_CONSOLE_HOST);\n \n /*\n * Getting list of link configuration from LATC_CONSOLE\n * JSON Format : title, identifier\n */\n \n if(!client.getTasks())\n {\n \tlogfile.severe(\"Error during get Queue \"+client.getMessage());\n \tSystem.exit(0);\n }\n lt.translateMember(client.getMessage());\n toDoList = lt.getLinkingConfigs();\n \n ReportCSV report = new ReportCSV( Parameters.RESULT_LOCAL_DIR+\"/report\"+sdf.format(new Date())+\".csv\");\n \n for (String title : toDoList.keySet()) {\n \t boolean blacklist = false;\n \tfinal String [] split = toDoList.get(title).split(\"#\");\n \tfinal String id = split[0];\n \tfinal String speccretime = split[1];\n \tfinal String specmodtime = split[2];\n \tfinal String specAuthor = split[3];\n \n \t logfile.info( \"start processing id \"+id+\" title \"+title);\n \n // checking blacklist\n \t if(title.startsWith(\"**\"))\n {\n \tblacklist = true;\n \ttitle = title.substring(2);\n }\n \t\n \tReportCSV.status st = status.failed; \n //create id directory\n boolean exists = (new File(RESULTDIR +'/'+ title).exists());\n if (!exists)\n \t\t\t (new File(RESULTDIR +'/'+ title )).mkdirs();\n \n \n \n \t\n \n /*\n * Writing specification linking from LATC_CONSOLE_HOST/configuration/ID/specification\n */\n if(!client.getSpec(id))\n {\n \tlogfile.severe(\"Error during get Specification id \"+id+\" \"+client.getMessage());\n }\n else\n {\n \t\n \t\tDate startDate = new Date();\n \t\tdatepattern = \"yyyy-MM-dd'T'HH:mm:ssZZ\";\n \t\tsdf.applyPattern(datepattern);\n \tString specContent = client.getMessage();\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE, specContent);\n\t VoidInfoDto Void=this.parseSpec(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE);\n \n\t Void.setSpecRetrievedTime(sdf.format(startDate));\n\t Void.setSpecCreatedTime(speccretime);\n\t Void.setSpecAuthor(specAuthor);\n\t Void.setID(id);\n\t Void.setTitle(title);\n\t Void.setSpecModifiedTime(specmodtime);\n\t Void.setSilkSpecAPIResource(Parameters.LATC_CONSOLE_HOST+\"/api/task/\"+id+\"/configuration\");\n\t \n//\t \t6- data dump\n\t datepattern = \"yyyy-MM-dd\";\n\t \t\tsdf.applyPattern(datepattern);\n Void.setDataDump(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.LINKS_FILE_STORE);\n Void.setSpec(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.SPEC_FILE);\n \n // blacklist\n if(blacklist)\n {\n \tst = status.ongoing;\n \tVoid.setRemarks(\"Unpredicted\");\n \tclient.postReport(id, Void,Parameters.API_KEY);\n \treport.putData(id, title, Void.getSpec(), 0, st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n \tcontinue;\n }\n \n\t \t//testing endpoint\n\t if(Void.getSourceSparqlEndpoint()!=null && !this.testConn(Void.getSourceSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getSourceSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetSparqlEndpoint()!=null && !this.testConn(Void.getTargetSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\t\n\t \t\tVoid.setRemarks(Void.getTargetSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getSourceUriLookupEndpoint()!=null && !this.testConn(Void.getSourceUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\t\n\t \tVoid.setRemarks(Void.getSourceUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetUriLookupEndpoint()!=null && !this.testConn(Void.getTargetUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getTargetUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void, Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n \n\t \n\t \n\t /*\n\t * Running hadoop for silk Map reduce\n\t */\n\t if (this.runHadoop(title, Void,RESULTDIR)) {\n\t \n\t\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.VOID_FILE, Void);\n\t\n\t // 2-e\n\t Void.setRemarks(Void.getStatItem()+\" Links generated successfully\");\n\t logfile.info( \"Processing id \"+id+\" title \"+title+ \" success\");\n\t\n\t } // if hadoop\n\t else {\n\t \tlogfile.severe( \"Processing id \"+id+\" title \"+title+ \" failed\");\n \t \n\t }\n\t Date endDate = new Date();\n\t \n\t if(Void.getStatItem()>=0)\n\t \tst = status.sucesss;\n\t else if(Void.getStatItem()==-2)\n\t \tst= status.ongoing;\n\t \n\t report.putData(id, title, Void.getSpec(), endDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t client.postReport(id, Void,Parameters.API_KEY);\n\t }\n } // for loop\n report.close(); \n logfile.info(\"Runtime done\");\n \n }", "public void generarReporteTablaAmortiDetalles(String sAccionBusqueda,List<TablaAmortiDetalle> tablaamortidetallesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalleMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TablaAmortiDetalleMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tabla Amortizacion Detalles\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TablaAmortiDetalleConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTablaAmortiDetalle=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTablaAmortiDetalle=new JRBeanArrayDataSource(TablaAmortiDetalleJInternalFrame.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTablaAmortiDetalle);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TablaAmortiDetalleConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TablaAmortiDetalleConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TablaAmortiDetalleBean.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTablaAmortiDetalleActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public static String generateReport(String sdkPath, String[] fileTomerge) {\n\t\tString javaEmma = ConfigApp.JAVA_CP + sdkPath + ConfigApp.EMMAJARPATH\n\t\t\t\t+ File.separator + ConfigApp.EMMAXMLREPORT + fileTomerge[0];\n\t\tEmma.info(\"[Command]: \" + javaEmma);\n\t\tfor (int i = 1; i < fileTomerge.length; i++) {\n\t\t\tjavaEmma = javaEmma + \",\" + fileTomerge[i];\n\t\t}\n\t\tEmma.info(\"[Command]: \" + javaEmma);\n\t\tAntManager antManager = new AntManager();\n\t\treturn antManager.exec(javaEmma);\n\n\t}", "@Postprocess\n public void getReport() {\n try {\n BufferedWriter bufferWriter = new BufferedWriter(new FileWriter(logfile, false));\n if (!results.isEmpty()) {\n bufferWriter.write(\"===========================================================\\n\");\n bufferWriter.write(\"sys_milli,\\t\\tdb_micro,\\t\\ttime_diff\\n\");\n Collections.sort(results);\n for (MysqlheartbeatBean mhb : results) {\n bufferWriter.write(String.valueOf(mhb.getSysMilli()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro() - mhb.getSysMilli()) + \"\\n\");\n }\n bufferWriter.flush();\n }\n bufferWriter.close();\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"{0}: {1}\", new Object[]{toolName, ex.getMessage()});\n }\n }", "public String generarReporte (HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n Empresa empresaSesion = (Empresa)request.getSession().getAttribute(\"emp\");\n String simbolo_moneda;\n \n if (empresaSesion != null && empresaSesion.getSimboloMoneda() != null && \n !empresaSesion.getSimboloMoneda().isEmpty()) {\n simbolo_moneda = empresaSesion.getSimboloMoneda();\n } else {\n simbolo_moneda = \"$\";\n }\n \n // Se restauran variables iniciadas\n ReporteUtil.restaurarValores();\n \n String tipoReporte = request.getParameter(\"tipoReporte\");\n String fechaInicio = request.getParameter(\"fechaInicio\");\n String fechaFinal = request.getParameter(\"fechaFinal\");\n String placa = request.getParameter(\"splaca\"); // id,placa,numInterno\n String mplaca = request.getParameter(\"smplaca_v\");\n String esteDia = request.getParameter(\"esteDia\");\n String tipoArchivo = request.getParameter(\"tipoArchivo\");\n String ruta = request.getParameter(\"sruta\");\n String mruta = request.getParameter(\"smruta_v\");\n String malarma = request.getParameter(\"smalarma_v\");\n String base = request.getParameter(\"sbase\");\n String idLiquidador = request.getParameter(\"sliquidador\");\n String meta = request.getParameter(\"smeta\");\n String mconductor = request.getParameter(\"smconductor_v\"); \n \n boolean dia_actual = verificarDiaActual(fechaInicio, fechaFinal);\n \n// Etiquetas etiquetas = null;\n// etiquetas = LiquidacionBD.searchTags();\n ConfiguracionLiquidacion etiquetas = obtenerEtiquetasLiquidacionPerfil(request);\n \n if (etiquetas != null) {\n ReporteUtil.establecerEtiquetas(etiquetas);\n } \n \n //String reportesPath = \"D:\\\\rdw\\\\\"; \n \n // En caso de estar sobre un SO_WIN, se quita ultimo delimitador\n String reportesPath = getServletContext().getRealPath(\"\");\n if (reportesPath.endsWith(\"\\\\\")) {\n reportesPath = reportesPath.substring(0, reportesPath.length()-1); \n }\n \n Map<String,String> h = new HashMap<String,String>();\n \n h.put(\"tipoReporte\", tipoReporte);\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal); \n h.put(\"tipoArchivo\", tipoArchivo);\n h.put(\"path\", reportesPath); \n \n \n // Informacion de usuario en sesion\n HttpSession session = request.getSession(); \n Usuario u = (Usuario) session.getAttribute(\"login\");\n \n h.put(\"idUsuario\", \"\" + u.getId());\n h.put(\"nombreUsuario\", u.getNombre() +\" \"+ u.getApellido());\n h.put(\"usuarioPropietario\", (u.esPropietario()) ? \"1\" : \"0\");\n \n // Nombre y titulo del reporte\n String nt[] = nombreReporte(tipoReporte, dia_actual).split(\":\");\n \n // Verifica si se considera una o todas las rutas\n // para reportes nivel_ocupacion, despachador, descripcion ruta,\n // cumplimiento ruta por conductor\n int ntp = Integer.parseInt(tipoReporte);\n if (ntp == 5 || ntp == 14 || ntp == 16) {\n if (!ruta.equals(\"0\")) { // Se elige una ruta\n nt[0] += \"_X1Ruta\";\n h.put(\"unaRuta\", \"t\");\n } else {\n h.put(\"unaRuta\", \"f\");\n }\n } \n if (ntp == 25) {\n String una_ruta = (!ruta.equals(\"0\")) ? \"t\" : \"f\";\n h.put(\"unaRuta\", una_ruta);\n }\n \n h.put(\"nombreReporte\", nt[0]);\n h.put(\"tituloReporte\", nt[1]);\n \n // Verifica si es reporte gerencia, gerencia x vehiculo para incluir\n // todos los vehiculos o todas las rutas\n ReporteUtil.incluirTotalidadRutas = false;\n ReporteUtil.incluirTotalidadVehiculos = false;\n ReporteUtil.incluirVehiculosPropietario = false;\n \n if (ntp == 15) {\n ReporteUtil.incluirTotalidadVehiculos = true; \n } else if (ntp == 18) {\n ReporteUtil.incluirTotalidadRutas = true;\n } else if (ntp == 11) {\n if (u.esPropietario()) { \n ReporteUtil.incluirVehiculosPropietario = true;\n } else {\n ReporteUtil.incluirTotalidadVehiculos = true; \n }\n }\n \n // Verifica si es reporte ruta x vehiculo para generar\n // reporte desde codigo\n if (ntp == 3) { \n ReporteUtil.desdeCodigo = true;\n } else {\n ReporteUtil.desdeCodigo = false;\n }\n \n // Verifica si es reporte ruta x vehiculo, vehiculo x ruta, despachador\n // para establecer un dia en parametro fecha y no un rango\n if (ntp == 3 || ntp == 11 || ntp == 16) {\n h.put(\"fechaFinal\", fechaInicio);\n } \n \n // No se necesitan fechas para reporte estadistico y descripcion ruta\n if (ntp == 13 || ntp == 14) {\n h.put(\"fechaInicio\", \"\");\n h.put(\"fechaFinal\", \"\");\n }\n \n // Eleccion de reportes gerencia segun empresa\n if (ntp == 15 || ntp == 18) {\n String empresa = u.getNombreEmpresa();\n String nombre_reporte = h.get(\"nombreReporte\");\n if (ReporteUtil.esEmpresa(empresa, ReporteUtil.EMPRESA_FUSACATAN)) {\n nombre_reporte += \"Fusa\";\n h.put(\"nombreReporte\", nombre_reporte);\n } \n }\n \n // Reportes de liquidacion\n if (ntp == 19 || ntp == 20 || ntp == 21 || ntp == 22) { \n h.put(\"fechaInicio\", fechaInicio + \" 00:00:00\");\n h.put(\"fechaFinal\", fechaFinal + \" 23:59:59\");\n \n //System.out.println(\"---> \"+EtiquetasLiquidacion.getEtq_total1() );\n /*SI EL REPORTE ES LIQUIDACION POR LIQUIDADOR SE MODIFICA EL NOMBRE SI LA EMPRESA ES DIFERENTE DE NEIVA*/\n if (ntp == 21) {\n if ((u.getNombreEmpresa().equalsIgnoreCase(\"FUSACATAN\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"TIERRA GRATA\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"Tierragrata\"))) {\n h.put(\"nombreReporte\", \"Reporte_LiquidacionXLiquidador_new_dcto\"); \n }\n }\n \n if (tipoArchivo.equals(\"w\")) {\n Usuario liquidador = UsuarioBD.getById(Restriction.getNumber(idLiquidador));\n if (liquidador != null) { \n String nom = liquidador.getNombre();\n String ape = liquidador.getApellido(); \n h.put(\"idUsuarioLiquidador\", idLiquidador);\n h.put(\"nombresUsuarioLiquidador\", ape + \" \" + nom);\n }\n } else {\n h.put(\"idUsuario\", idLiquidador);\n }\n } \n \n if (ntp == 23 || ntp == 24 || ntp == 25) {\n h.put(\"meta\", \"\" + meta);\n if (tipoArchivo.equals(\"r\")) {\n ReporteUtil.reporteWeb = true;\n }\n }\n \n if (ntp == 26 || ntp == 27) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n ReporteUtil.reporteWeb = true;\n } \n \n // ======================= Verificacion de campos ======================\n \n // Id, placa, numeroInterno vehiculo\n if (placa.indexOf(\",\") >= 0) {\n h.put(\"idVehiculo\", placa.split(\",\")[0]);\n h.put(\"placa\", placa.split(\",\")[1]);\n h.put(\"numInterno\", placa.split(\",\")[2]);\n h.put(\"capacidad\", placa.split(\",\")[3]);\n ReporteUtil.incluirVehiculo = true;\n } else\n ReporteUtil.incluirVehiculo = false;\n \n // Id de multiples vehiculos\n if (mplaca != \"\" || mplaca.indexOf(\",\") >= 0) {\n h.put(\"strVehiculos\", mplaca);\n h.put(\"strVehiculosPlaca\", id2placa(mplaca));\n ReporteUtil.incluirVehiculos = true;\n } else\n ReporteUtil.incluirVehiculos = false;\n \n // Id ruta y nombre ruta\n if (ruta.indexOf(\",\") >= 0) {\n String arrayRuta[] = ruta.split(\",\");\n h.put(\"idRuta\", arrayRuta[0]);\n h.put(\"nombreRuta\", arrayRuta[1]);\n ReporteUtil.incluirRuta = true;\n } else \n ReporteUtil.incluirRuta = false;\n \n // Id ruta \n if (mruta != \"\" || mruta.indexOf(\",\") >= 0) {\n h.put(\"strRutas\", mruta);\n ReporteUtil.incluirRutas = true;\n } else\n ReporteUtil.incluirRutas = false;\n \n // Id alarma\n if (malarma != \"\" || malarma.indexOf(\",\") >= 0) {\n h.put(\"strAlarmas\", malarma);\n ReporteUtil.incluirAlarma = true;\n } else \n ReporteUtil.incluirAlarma = false; \n \n // Id base, nombre\n if (base.indexOf(\",\") >= 0) {\n String arrayBase[] = base.split(\",\");\n h.put(\"idBase\", arrayBase[0]);\n h.put(\"nombreBase\", arrayBase[1]);\n ReporteUtil.incluirBase = true;\n } else \n ReporteUtil.incluirBase = false; \n \n // Se verifica y establece parametros de empresa\n Empresa emp = EmpresaBD.getById(u.getIdempresa()); \n if (emp != null) {\n h.put(\"nombreEmpresa\", emp.getNombre());\n h.put(\"nitEmpresa\", emp.getNit());\n h.put(\"idEmpresa\", \"\" + emp.getId());\n } else {\n request.setAttribute(\"msg\", \"* Usuario no tiene relaci&oacute;n y/o permisos adecuados con la empresa.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n int id_ruta = Restriction.getNumber(h.get(\"idRuta\")); \n String pplaca = \"'\" + h.get(\"placa\") + \"'\";\n \n // Se verifica si existe despacho para cruzar sus datos,\n // en caso contrario se extrae los datos unicamente desde tabla info. registradora\n if (ntp == 3) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, pplaca)) {\n ReporteUtil.desdeCodigo = true; \n h.put(\"nombreReporte\", \"reporte_RutaXVehiculo2\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n ReporteUtil.desdeCodigo = false; // Reporte con cruce despacho es dinamico\n h.put(\"cruzarDespacho\", \"1\"); \n }\n }\n if (ntp == 11) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, id_ruta)) {\n h.put(\"nombreReporte\", \"reporte_VehiculosXRuta\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n h.put(\"cruzarDespacho\", \"1\");\n }\n }\n \n if (ntp == 30) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n h.put(\"strConductores\", mconductor);\n ReporteUtil.reporteWeb = true;\n \n // Se verifica que exista una configuracion de desempeno activa\n ConfCalificacionConductor ccc = CalificacionConductorBD.confCalificacionConductor();\n if (ccc == null) {\n request.setAttribute(\"msg\", \"* No existe ninguna configuraci&oacute;n de desempe&ntilde;o registrada. Por favor registre una.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"result_error\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n }\n \n // Creacion de reporte\n JasperPrint print = null;\n if (tipoArchivo.equals(\"r\")) {\n \n // Reporte de solo lectura << PDF / Web >>\n ReporteUtil rpt;\n \n if (ReporteUtil.reporteWeb) { \n ReporteWeb rptw = new ReporteWeb(h, request, response);\n return rptw.generarReporteWeb(ntp); \n \n } else if (ReporteUtil.desdeCodigo) {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporteDesdeCodigo(Integer.parseInt(h.get(\"tipoReporte\")), simbolo_moneda);\n \n } else {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporte(simbolo_moneda);\n }\n \n } else {\n \n // Reporte editable << XLS >>\n ReporteUtilExcel rue = new ReporteUtilExcel();\n MakeExcel rpte = rue.crearReporte(ntp, dia_actual, h, u, etiquetas);\n \n // Restablece placa de reportes que no necesitan\n restablecerParametro(\"placa\", ntp, h);\n String splaca = h.get(\"placa\");\n splaca = (splaca == null || splaca == \"\") ? \"\" : \"_\" + splaca;\n String nombreArchivo = h.get(\"nombreReporte\") + splaca + \".xls\";\n \n //response.setContentType(\"application/vnd.ms-excel\");\n response.setContentType(\"application/ms-excel\"); \n response.setHeader(\"Content-Disposition\", \"attachment; filename=\"+nombreArchivo);\n \n HSSFWorkbook file = rpte.getExcelFile();\n file.write(response.getOutputStream()); \n response.flushBuffer();\n response.getOutputStream().close();\n \n return \"/app/reportes/generaReporte.jsp\";\n }\n \n // Impresion de reporte de solo lectura PDF\n if (print != null) {\n \n try { \n // Se comprueba existencia de datos en el reporte obtenido\n boolean hayDatos = true;\n List<JRPrintPage> pp = print.getPages(); \n if (pp.size() > 0) {\n JRPrintPage ppp = pp.get(0);\n if (ppp.getElements().size() <= 0) \n hayDatos = false; \n } else \n hayDatos = false;\n \n if (!hayDatos) {\n request.setAttribute(\"msg\", \"* Ning&uacute;n dato obtenido en el reporte.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"data_reporte\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n byte[] bytes = JasperExportManager.exportReportToPdf(print);\n \n // Inicia descarga del reporte\n response.setContentType(\"application/pdf\");\n response.setContentLength(bytes.length);\n ServletOutputStream outStream = response.getOutputStream();\n outStream.write(bytes, 0, bytes.length);\n outStream.flush();\n outStream.close();\n \n } catch (JRException e) {\n System.err.println(e);\n } catch (IOException e) {\n System.err.println(e);\n } \n }\n return \"/app/reportes/generaReporte.jsp\";\n }", "public void generarReporteFacturaPuntoVentas(String sAccionBusqueda,List<FacturaPuntoVenta> facturapuntoventasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVentaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"FacturaPuntoVentaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Factura Punto Ventas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", FacturaPuntoVentaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(FormaPagoPuntoVenta.class));\r\n\t\t\tclasses.add(new Classe(DetalleFacturaPuntoVenta.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tFacturaPuntoVentaLogic facturapuntoventaLogicAuxiliar=new FacturaPuntoVentaLogic();\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setDatosCliente(facturapuntoventaLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setFacturaPuntoVentas(facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.cargarRelacionesLoteForeignKeyFacturaPuntoVentaWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventasParaReportes=facturapuntoventaLogicAuxiliar.getFacturaPuntoVentas();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (FacturaPuntoVenta facturapuntoventa:facturapuntoventasParaReportes) {\r\n\t\t\t\t\t//\tfacturapuntoventaLogic.deepLoad(facturapuntoventa, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//facturapuntoventaLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileFormaPagoPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"FormaPagoPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_formapagopuntoventa\", reportFileFormaPagoPuntoVenta);\r\n\r\n\t\t\tInputStream reportFileDetalleFacturaPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"DetalleFacturaPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallefacturapuntoventa\", reportFileDetalleFacturaPuntoVenta);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceFacturaPuntoVenta=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceFacturaPuntoVenta=new JRBeanArrayDataSource(FacturaPuntoVentaJInternalFrame.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceFacturaPuntoVenta);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+FacturaPuntoVentaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+FacturaPuntoVentaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(FacturaPuntoVentaBean.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoFacturaPuntoVentaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "private void crearReporte() {\n medirTiempoDeEnvio();\n SimpleDateFormat variableFecha = new SimpleDateFormat(\"dd-MM-yyyy\");\n Calendar cal = Calendar.getInstance();\n String dia = String.valueOf(cal.get(cal.DATE));\n String mes = String.valueOf(cal.get(cal.MONTH) + 1);\n String año = String.valueOf(cal.get(cal.YEAR));\n String fechainicio;\n String fechafin;\n Map parametro = new HashMap();\n cargando.setVisible(true);\n try {\n JasperViewer v;\n switch (listaTipoReporte.getSelectedIndex()) {\n case 0:\n if (rb_diario.isSelected() || this.reporte.getSelectedIndex() == 1) {\n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n parametro.put(\"fecha\",fechainicio+\" al \"+fechafin);\n } else {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.dia.getDate()));\n fechafin = fechainicio;\n parametro.put(\"fecha\",\" dia \"+fechainicio);\n }\n \n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"ordenes_procesadas_diarias\")) {\n v = u.runReporte(\"reporte_ordenes_procesadas_diario\", parametro);\n v.setTitle(\"Reporte de ordenes procesadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n if (rb_mensual.isSelected()) {\n int dia2 = u.numero(mess);\n String fechanueva1 = año + \"-\" + mess + \"-\" + \"01\";\n String fechai1 = año + \"-\" + mess + \"-\" + \"15\";\n String fechai2 = año + \"-\" + mess + \"-\" + \"16\";\n String fechaf1 = año + \"-\" + mess + \"-\" + dia2;\n //----------------------------- ojo son 4 fechas finico-ffinal1 y fechafinal2 -a fechafinal2\n // String fechainicio = u.fechaCorrecta(variableFecha.format(jDateChooser1.getDate()));\n // String f = u.fechaCorrecta(variableFecha.format(jDateChooser2.getDate()));\n // String fechafin =fechainicio;\n String p = \"('\" + fechanueva1 + \"','\" + fechai1 + \"','\" + fechai2 + \"','\" + fechaf1 + \"')\";\n if (u.ejecutarSP(p, \"ordenes_procesadas_mensual\")) {\n v = u.runReporte(\"reporte_ordenes_procesadas_mensual\", parametro);\n v.setTitle(\"Reporte mensual de ordenes procesadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n Reporte r = new Reporte();\n String nombreReporte = \"\";\n if (this.primera.isSelected()) {\n r.reporteQuincena(Integer.toString(mess), \"2014\", 1);\n parametro.put(\"periodo\", \"De la primera quincena del mes de \" + u.obtenerMes(mess));\n nombreReporte = \"procesadasQuincena\";\n } else {\n if (this.segunda.isSelected()) {\n r.reporteQuincena(Integer.toString(mess), \"2014\", 2);\n parametro.put(\"periodo\", \"De la segunda quincena del mes de \" + u.obtenerMes(mess));\n nombreReporte = \"procesadasQuincenaSegunda\";\n }\n }\n v = u.runReporte(nombreReporte, parametro);\n v.setTitle(\"Reporte quincenal de ordenes procesadas\");\n v.setVisible(true);\n u.ejecutarSQL(\"DROP TABLE IF EXISTS temporal1\");\n }\n }\n break;\n case 1:\n //RordeAuditada\n if (rb_mensual.isSelected()) {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n int dia2 = u.numero(mess);\n String fechanueva = año + \"-\" + mess + \"-\" + \"01\"; //calcular el anho\n String fechai = año + \"-\" + mess + \"-\" + \"15\";\n String fechaf = año + \"-\" + mess + \"-\" + dia2;\n String p1 = \"('\" + fechanueva + \"','\" + fechai + \"','\" + fechaf + \"')\";\n if (u.ejecutarSP(p1, \"Raudita_mensual\")) {\n parametro.put(\"fecha\", fechanueva);\n parametro.put(\"fecha_p\", fechai);\n parametro.put(\"fecha_s\", fechaf);\n parametro.put(\"año\", año);\n parametro.put(\"mes\", mes);\n v = u.runReporte(\"report7\", parametro);\n v.setTitle(\"Reporte mensual de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n\n }\n if (rb_diario.isSelected() || this.reporte.getSelectedIndex() == 1) {\n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n } else {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.dia.getDate()));\n fechafin = fechainicio;\n parametro.put(\"fecha1\", \"Del dia \" + fechainicio);\n }\n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"reporteJoel\")) {\n v = u.runReporte(\"RordeAuditada\", parametro);\n v.setTitle(\"Reporte diario de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n }\n if (rb_quincenal.isSelected()) {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n String ms = u.obtenerMes(mess);\n if (this.primera.isSelected()) {\n q = \"Primera\";\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"01\") + \"','\" + (año + \"-\" + mess + \"-\" + \"02\") + \"','\" + (año + \"-\" + mess + \"-\" + \"03\") + \"','\" + (año + \"-\" + mess + \"-\" + \"04\") + \"','\" + (año + \"-\" + mess + \"-\" + \"05\") + \"','\" + (año + \"-\" + mess + \"-\" + \"06\") + \"','\" + (año + \"-\" + mess + \"-\" + \"07\") + \"','\" + (año + \"-\" + mess + \"-\" + \"08\") + \"','\" + (año + \"-\" + mess + \"-\" + \"09\") + \"','\" + (año + \"-\" + mess + \"-\" + \"10\") + \"','\" + (año + \"-\" + mess + \"-\" + \"01\") + \"','\" + (año + \"-\" + mess + \"-\" + \"11\") + \"','\" + (año + \"-\" + mess + \"-\" + \"12\") + \"','\" + (año + \"-\" + mess + \"-\" + \"13\") + \"','\" + (año + \"-\" + mess + \"-\" + \"14\") + \"','\" + (año + \"-\" + mess + \"-\" + \"15\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n if (this.segunda.isSelected()) {\n q = \"Segunda\";\n if (mess == 2) {\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"17\") + \"','\" + (año + \"-\" + mess + \"-\" + \"18\") + \"','\" + (año + \"-\" + mess + \"-\" + \"19\") + \"','\" + (año + \"-\" + mess + \"-\" + \"20\") + \"','\" + (año + \"-\" + mess + \"-\" + \"21\") + \"','\" + (año + \"-\" + mess + \"-\" + \"22\") + \"','\" + (año + \"-\" + mess + \"-\" + \"23\") + \"','\" + (año + \"-\" + mess + \"-\" + \"24\") + \"','\" + (año + \"-\" + mess + \"-\" + \"25\") + \"','\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"26\") + \"','\" + (año + \"-\" + mess + \"-\" + \"27\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"17\") + \"','\" + (año + \"-\" + mess + \"-\" + \"18\") + \"','\" + (año + \"-\" + mess + \"-\" + \"19\") + \"','\" + (año + \"-\" + mess + \"-\" + \"20\") + \"','\" + (año + \"-\" + mess + \"-\" + \"21\") + \"','\" + (año + \"-\" + mess + \"-\" + \"22\") + \"','\" + (año + \"-\" + mess + \"-\" + \"23\") + \"','\" + (año + \"-\" + mess + \"-\" + \"24\") + \"','\" + (año + \"-\" + mess + \"-\" + \"25\") + \"','\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"26\") + \"','\" + (año + \"-\" + mess + \"-\" + \"27\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"29\") + \"','\" + (año + \"-\" + mess + \"-\" + \"30\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n\n }\n }\n }\n }\n break;\n case 2:\n try {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n parametro.put(\"fechaInicio\", fechainicio);\n parametro.put(\"fechaFin\", fechafin);\n v = u.runReporte(\"reporte_errores_diarios\", parametro);\n v.setTitle(\"Reporte de Errores\");\n v.setVisible(true);\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"No se pudo generar el reporte\", \"Reporte\", JOptionPane.ERROR_MESSAGE);\n ErroresSiapo.agregar(ex, \"codigo 39\");\n }\n break;\n case 3:\n \n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n parametro.put(\"PERIODO\", \"Del \" + u.fechaReves(fechainicio) + \" al \" + u.fechaReves(fechafin));\n } else {\n String m = Integer.toString(this.cb_mes.getSelectedIndex() + 1);\n fechafin = año + \"-\" + m + \"-\" + u.numero(this.cb_mes.getSelectedIndex() + 1);\n fechainicio = año + \"-\" + m + \"-01\";\n parametro.put(\"PERIODO\", \"Del mes de \" + u.obtenerMes(this.cb_mes.getSelectedIndex() + 1) + \" del año \" + año);\n }\n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"ERRORES\")) {\n v = u.runReporte(\"analisisDeEficiencia\", parametro);\n v.setTitle(\"Reporte de Analisis de Eficiencia\");\n v.setVisible(true);\n } else {\n ErroresSiapo.agregar(null, \"codigo 39\");\n System.out.println(\"mal\");\n }\n break;\n case 4: \n try {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n parametro.put(\"fecha\", fechainicio);\n parametro.put(\"fechaFin\", fechafin);\n v = u.runReporte(\"reporteDiarioOrdenesRegreso\", parametro);\n v.setTitle(\"Reporte de Razones\");\n v.setVisible(true);\n } catch (Exception e) {\n ErroresSiapo.agregar(e, \"codigo 38\");\n JOptionPane.showMessageDialog(null, \"No se pudo generar el reporte\", \"Reporte\", JOptionPane.ERROR_MESSAGE);\n }\n break;\n }\n } catch (Exception e) {\n }\n\n }", "public static void main(String[] args) throws DateTimeParseException {\t\t\r\n\t\t//Get the current date for which the report is to be generated\r\n\t\tLocalDate date = LocalDate.now(); \r\n\t\t//date = LocalDate.parse( \"09 Jan 2017\", DateTimeFormatter.ofPattern( \"dd MMM yyyy\", Locale.ENGLISH ) );\r\n\t\t\r\n\t\t( new ReportGenerator( trades, date ) ).displayReport();\r\n\t}", "private void addReportingCommands(Project project, MultiJobDetail detail, String baseName) {\r\n String noGenExecReport = \"\";\r\n if (!getOptionExecutionReport()) {\r\n noGenExecReport = \" --dont-gen-exec-rpt\";\r\n }\r\n \r\n String win =\r\ngetEnvironmentSetupWin() + \"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\generate-results.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" \\\"@PROJECT@\\\" --level @LEVEL@ -e @ENV@ \" + noGenExecReport + \"\\n\" +\r\ngetEnvironmentTeardownWin() + \"\\n\" +\r\n\"\";\r\n win = StringUtils.replace(win, \"@PROJECT@\", getManageProjectName());\r\n win = StringUtils.replace(win, \"@LEVEL@\", detail.getLevel());\r\n win = StringUtils.replace(win, \"@ENV@\", detail.getEnvironment());\r\n \r\n String unix =\r\ngetEnvironmentSetupUnix() + \"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/generate-results.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" \\\"@PROJECT@\\\" --level @LEVEL@ -e @ENV@ \" + noGenExecReport + \"\\n\" +\r\ngetEnvironmentTeardownUnix() + \"\\n\" +\r\n\"\";\r\n unix = StringUtils.replace(unix, \"@PROJECT@\", getManageProjectName());\r\n unix = StringUtils.replace(unix, \"@LEVEL@\", detail.getLevel());\r\n unix = StringUtils.replace(unix, \"@ENV@\", detail.getEnvironment());\r\n\r\n VectorCASTCommand command = new VectorCASTCommand(win, unix);\r\n project.getBuildersList().add(command);\r\n }", "boolean generateReport();", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public void cargarReporte() throws Exception {\n ReporteLogica rpL = new ReporteLogica();\n int[][] entradas = rpL.reporteBasicoTransacciones(\"ENTRADA\");\n if (entradas.length > 0) {\n cincoMasEntradas(entradas);\n mayorMenorEntrada(entradas);\n totalEntradas(entradas);\n grafica(entradas);\n } else {\n JOptionPane.showMessageDialog(null, \"Datos insuficientes para generar reporte\");\n }\n }", "public void generarReporteTipoDireccions(String sAccionBusqueda,List<TipoDireccion> tipodireccionsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDireccion\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDireccionMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDireccionMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDireccion\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Direcciones\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDireccionConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(Direccion.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDireccionLogic tipodireccionLogicAuxiliar=new TipoDireccionLogic();\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.setDatosCliente(tipodireccionLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.setTipoDireccions(tipodireccionsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDireccionWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodireccionsParaReportes=tipodireccionLogicAuxiliar.getTipoDireccions();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodireccionLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDireccion tipodireccion:tipodireccionsParaReportes) {\r\n\t\t\t\t\t//\ttipodireccionLogic.deepLoad(tipodireccion, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodireccionLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodireccionLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDireccion = AuxiliarReportes.class.getResourceAsStream(\"DireccionDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_direccion\", reportFileDireccion);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDireccion=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDireccionConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDireccionConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDireccion=new JRBeanArrayDataSource(TipoDireccionJInternalFrame.TraerTipoDireccionBeans(tipodireccionsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDireccion);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDireccionConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDireccionConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDireccionBean.TraerTipoDireccionBeans(tipodireccionsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDireccionActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "public void generarReporteGanancia(String destino,String fechainicial,String fechafinal)\n {\n \n if(destino.equals(\"Todos\"))\n {\n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentasGeneral.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Ventas Credito/Contado\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n }\n else\n { \n \n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentas.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Insumos\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n } \n }", "public void generarReporteUtilidadTipoPrecios(String sAccionBusqueda,List<UtilidadTipoPrecio> utilidadtipopreciosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecio\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"UtilidadTipoPrecioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecio\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Utilidad Tipo Precioes\");\t\t\r\n\t\tparameters.put(\"busquedapor\", UtilidadTipoPrecioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceUtilidadTipoPrecio=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceUtilidadTipoPrecio=new JRBeanArrayDataSource(UtilidadTipoPrecioJInternalFrame.TraerUtilidadTipoPrecioBeans(utilidadtipopreciosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceUtilidadTipoPrecio);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+UtilidadTipoPrecioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+UtilidadTipoPrecioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(UtilidadTipoPrecioBean.TraerUtilidadTipoPrecioBeans(utilidadtipopreciosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoUtilidadTipoPrecioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void generarReporteTipoDetalleMovimientoInventarios(String sAccionBusqueda,List<TipoDetalleMovimientoInventario> tipodetallemovimientoinventariosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventarioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDetalleMovimientoInventarioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Costos\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDetalleMovimientoInventarioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleMovimientoInventario.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDetalleMovimientoInventarioLogic tipodetallemovimientoinventarioLogicAuxiliar=new TipoDetalleMovimientoInventarioLogic();\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setDatosCliente(tipodetallemovimientoinventarioLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setTipoDetalleMovimientoInventarios(tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDetalleMovimientoInventarioWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventariosParaReportes=tipodetallemovimientoinventarioLogicAuxiliar.getTipoDetalleMovimientoInventarios();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDetalleMovimientoInventario tipodetallemovimientoinventario:tipodetallemovimientoinventariosParaReportes) {\r\n\t\t\t\t\t//\ttipodetallemovimientoinventarioLogic.deepLoad(tipodetallemovimientoinventario, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleMovimientoInventario = AuxiliarReportes.class.getResourceAsStream(\"DetalleMovimientoInventarioDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallemovimientoinventario\", reportFileDetalleMovimientoInventario);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDetalleMovimientoInventario=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDetalleMovimientoInventario=new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioJInternalFrame.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDetalleMovimientoInventario);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioBean.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDetalleMovimientoInventarioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\texport();\r\n\t}", "public void runReport(String sReportFile)\n {\n }", "public void executeGeneracionReporteRUV(Map map);", "public void generarReporteCierreCajas(String sAccionBusqueda,List<CierreCaja> cierrecajasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"CierreCaja\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CierreCajaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"CierreCajaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CierreCaja\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Cierre Cajas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", CierreCajaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceCierreCaja=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tCierreCajaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tCierreCajaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceCierreCaja=new JRBeanArrayDataSource(CierreCajaJInternalFrame.TraerCierreCajaBeans(cierrecajasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceCierreCaja);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+CierreCajaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+CierreCajaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(CierreCajaBean.TraerCierreCajaBeans(cierrecajasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoCierreCajaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void generarReporteAnalisisTransaClientes(String sAccionBusqueda,List<AnalisisTransaCliente> analisistransaclientesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaClienteMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"AnalisisTransaClienteMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Analisis Transaccion Clientees\");\t\t\r\n\t\tparameters.put(\"busquedapor\", AnalisisTransaClienteConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceAnalisisTransaCliente=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceAnalisisTransaCliente=new JRBeanArrayDataSource(AnalisisTransaClienteJInternalFrame.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceAnalisisTransaCliente);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+AnalisisTransaClienteConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+AnalisisTransaClienteConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(AnalisisTransaClienteBean.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoAnalisisTransaClienteActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tString data = \"\";\r\n ExportFactory exportFactory = new ExportHtmlFactory();\r\n ExportFile ef = exportFactory.factory(\"financial\");\r\n ef.export(data);\r\n\t}", "void generateMgiCrisprAlleleReport();", "public static void main(String[] args) {\n\t\t\r\n\t\thtmlReporter = new ExtentHtmlReporter(\"C:\\\\Users\\\\Suresh Mylam\\\\eclipse-workspace\\\\TestNG_Listners\\\\Reports\\\\TestReport.html\");\r\n\t\textent = new ExtentReports();\r\n\t\textent.attachReporter(htmlReporter);\r\n\t\ttest= extent.createTest(\"TEst123\");\r\n\t\ttest.pass(\"pass\");\r\n\t\ttest.fail(\"fail\");\r\n\t\ttest.info(\"info\");\r\n\t\textent.flush();\r\n\t\tSystem.out.println(\"Done\");\r\n\r\n\t}", "public void makeReport() throws IOException{\n File report = new File(\"Report.txt\");\n BufferedWriter reportWriter = new BufferedWriter(new FileWriter(report));\n BufferedReader bookReader = new BufferedReader(new FileReader(\"E-Books.txt\"));\n String current;\n while((current = bookReader.readLine()) != null ){\n String[] tokens = current.split(\",\");\n reportWriter.write(tokens[0].trim()+\" for \"+tokens[1].trim()+\" with redemption Code \"+tokens[2].trim()+\n \" is assigned to \"+tokens[4].trim()+\" who is in \"+tokens[5].trim()+\" grade.\");\n reportWriter.write(System.lineSeparator());\n reportWriter.flush();\n }\n reportWriter.close();\n bookReader.close();\n new reportWindow();\n }", "public String execute()\r\n/* 113: */ {\r\n/* 114: */ try\r\n/* 115: */ {\r\n/* 116:153 */ super.prepareReport();\r\n/* 117: */ }\r\n/* 118: */ catch (JRException e)\r\n/* 119: */ {\r\n/* 120:155 */ LOG.info(\"Error JRException\");\r\n/* 121:156 */ e.printStackTrace();\r\n/* 122:157 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 123: */ }\r\n/* 124: */ catch (IOException e)\r\n/* 125: */ {\r\n/* 126:159 */ LOG.info(\"Error IOException\");\r\n/* 127:160 */ e.printStackTrace();\r\n/* 128:161 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 129: */ }\r\n/* 130:164 */ return null;\r\n/* 131: */ }", "public void generarReporteLibroContables(String sAccionBusqueda,List<LibroContable> librocontablesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"LibroContable\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LibroContableMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"LibroContableMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LibroContable\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Libro Contables\");\t\t\r\n\t\tparameters.put(\"busquedapor\", LibroContableConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(ParametroFactuPrincipal.class));\r\n\t\t\tclasses.add(new Classe(Definicion.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tLibroContableLogic librocontableLogicAuxiliar=new LibroContableLogic();\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.setDatosCliente(librocontableLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.setLibroContables(librocontablesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.cargarRelacionesLoteForeignKeyLibroContableWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tlibrocontablesParaReportes=librocontableLogicAuxiliar.getLibroContables();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//librocontableLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (LibroContable librocontable:librocontablesParaReportes) {\r\n\t\t\t\t\t//\tlibrocontableLogic.deepLoad(librocontable, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//librocontableLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//librocontableLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileParametroFactuPrincipal = AuxiliarReportes.class.getResourceAsStream(\"ParametroFactuPrincipalDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_parametrofactuprincipal\", reportFileParametroFactuPrincipal);\r\n\r\n\t\t\tInputStream reportFileDefinicion = AuxiliarReportes.class.getResourceAsStream(\"DefinicionDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_definicion\", reportFileDefinicion);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceLibroContable=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tLibroContableConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tLibroContableConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceLibroContable=new JRBeanArrayDataSource(LibroContableJInternalFrame.TraerLibroContableBeans(librocontablesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceLibroContable);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+LibroContableConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+LibroContableConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(LibroContableBean.TraerLibroContableBeans(librocontablesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoLibroContableActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tExtend ex =new Extend();\n\t\tex.startreport();\n\n\t}", "public void generarReporteEvaluacionProveedors(String sAccionBusqueda,List<EvaluacionProveedor> evaluacionproveedorsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"EvaluacionProveedor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"EvaluacionProveedorMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"EvaluacionProveedorMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"EvaluacionProveedor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Evaluacion Proveedores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", EvaluacionProveedorConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleEvaluacionProveedor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tEvaluacionProveedorLogic evaluacionproveedorLogicAuxiliar=new EvaluacionProveedorLogic();\r\n\t\t\t\t\tevaluacionproveedorLogicAuxiliar.setDatosCliente(evaluacionproveedorLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tevaluacionproveedorLogicAuxiliar.setEvaluacionProveedors(evaluacionproveedorsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tevaluacionproveedorLogicAuxiliar.cargarRelacionesLoteForeignKeyEvaluacionProveedorWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tevaluacionproveedorsParaReportes=evaluacionproveedorLogicAuxiliar.getEvaluacionProveedors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//evaluacionproveedorLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (EvaluacionProveedor evaluacionproveedor:evaluacionproveedorsParaReportes) {\r\n\t\t\t\t\t//\tevaluacionproveedorLogic.deepLoad(evaluacionproveedor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//evaluacionproveedorLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//evaluacionproveedorLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleEvaluacionProveedor = AuxiliarReportes.class.getResourceAsStream(\"DetalleEvaluacionProveedorDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleevaluacionproveedor\", reportFileDetalleEvaluacionProveedor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceEvaluacionProveedor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tEvaluacionProveedorConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tEvaluacionProveedorConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceEvaluacionProveedor=new JRBeanArrayDataSource(EvaluacionProveedorJInternalFrame.TraerEvaluacionProveedorBeans(evaluacionproveedorsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceEvaluacionProveedor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+EvaluacionProveedorConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+EvaluacionProveedorConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(EvaluacionProveedorBean.TraerEvaluacionProveedorBeans(evaluacionproveedorsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoEvaluacionProveedorActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }", "Report createReport();", "public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }", "public static void main(String[] args) throws IOException {\n printReport(Arrays.asList(args),\n System.getProperty(MODE_KEY, MODE_DEFAULT),\n Integer.parseInt(System.getProperty(STACKSIZE_KEY, STACKSIZE_DEFAULT)),\n Integer.parseInt(System.getProperty(COUNT_KEY, COUNT_DEFAULT)),\n Boolean.parseBoolean(System.getProperty(LINENUMBERS_KEY, LINENUMBERS_DEFAULT)));\n }", "private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}", "public static void main(String[] args) {\n MySQLScriptGen databaseobject = new MySQLScriptGen();\n\n //this is same for every model\n JsonFileReader jsonFileReader = JsonFileReader.getInstance();\n JSONObject pim = jsonFileReader.getplatformIndependentModel();\n String ddl_script = databaseobject.createDDLScript(pim);\n String dml_script = databaseobject.createDMLScript(pim);\n String dql_script = databaseobject.createDQLScript(pim);\n System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_BEGIN>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\\n\\n\");\n System.out.println(ddl_script);\n System.out.println(\"\\n\\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_END>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(\"\\n\\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_DML_BEGIN>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(dml_script);\n System.out.println(\"\\n\\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_DML_END>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(\"\\n\\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_DQL_BEGIN>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(dql_script);\n System.out.println(\"\\n\\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_DQL_END>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }", "public static void main(String[] args)throws IOException {\r\n\t\t\r\n\t\t String inputFolder = \"C:/Users/Nekromantik/Desktop/321\";\r\n\t\t String inputfile = \"C:/Users/Nekromantik/Desktop/222/disagreements.txt\";\r\n\t\t \r\n\t\t String outputfile = \"C:/Users/Nekromantik/Desktop/222/result.txt\";\r\n\t\t \r\n\t\t Eva_help2 test = new Eva_help2();\r\n\t\t test.generate(inputfile, inputFolder, outputfile);\r\n\t\t\r\n\t}", "public static void main(String[] asArg)\n {\n int cArgs = asArg.length;\n if (cArgs == 0)\n {\n showUsage();\n return;\n }\n\n String sConfigFile = asArg[0];\n String sOutputPath = cArgs > 1 ? asArg[1] : \"\";\n long lBatchId = cArgs > 2 ? Long.parseLong(asArg[2]) : 1;\n\n CacheFactory.ensureCluster();\n new Reporter().run(sConfigFile, sOutputPath, lBatchId, null, null);\n }", "public static void main(String[] args) {\n\n\t\tExtentHtmlReporter htmlReporter=new ExtentHtmlReporter(\"C:\\\\Users\\\\Lenovo\\\\Desktop\\\\supriya\\\\Report\\\\batch.html\");\n\t\tExtentReports report=new ExtentReports();\n\t\treport.attachReporter(htmlReporter);\n\t\tExtentTest logger= report.createTest(\"Aut_02_login to flight App\", \"User able to login succsessfully\");\n\t\tlogger.log(Status.PASS, \"URL Launched\");\n\t\tlogger.log(Status.PASS, \"User Name Entered Successfully\");\n\t\tlogger.log(Status.PASS, \"Password Entered Successfully\");\n\t\tlogger.log(Status.PASS, \"Clic on Login\");\n\t\t\n\t\treport.flush();\n\t\t\n\t}", "@Override\n void createReport(final Format reportFormat,\n final long start, final long end) {\n makeBriefReport(reportFormat, \"Informe breu\", start, end);\n writeToFile();\n getFormat().finishPrinting();\n }", "public static void main(String[] args) {\r\n final String INPUT_FILENAME = \"input/assn6input1.txt\";\r\n final String REQUEST_FILENAME = \"input/realtorRequests1.txt\";\r\n final String OUTPUT_FILENAME = \"output/assn6salesReport.txt\";\r\n \r\n //Read and Process datafile for Realtors and Properties\r\n readDataFile(INPUT_FILENAME);\r\n \r\n //Display all data stored\r\n System.out.println(\"Realtor List: \");\r\n realtorLogImpl.traverseDisplay(realtorLogImpl.getRoot());\r\n System.out.println();\r\n System.out.println(\"Property List: \");\r\n propertyLogImpl.traverseDisplay();\r\n \r\n //Read and Process datafile for Property sold/unsold inquiries by Realtor\r\n printImpl.generateSalesReport(REQUEST_FILENAME, OUTPUT_FILENAME,\r\n realtorLogImpl, propertyLogImpl);\r\n }", "public void generateReport(ReportGenerationData data)throws ChangeApplicationException;", "public static void main(String[] args) {\n\t\tString[] fileNames = {\r\n\t\t\t\t\"transByZipMonthYear\", \"transCountAndValByType\", \"transCountAndValByState\",\r\n\t\t\t\t\"customerBySsn\", \"updatedCustomer\", \"monthInvoice\",\"monthInvoiceTransactions\",\"custTransBetweenDates\"\r\n\t\t\t\t};\r\n\t\tString[] columnNames = {\r\n\t\t\t\t\"t_id,d,m,y,ccn,branch,transaction_type,transaction_value,c_ssn\",\r\n\t\t\t\t\"type, val, count\",\r\n\t\t\t\t\"state, val, count\",\r\n\t\t\t\t\"fName, mName,lName,ssn,ccn,aptN,streetN,custCity,custState,custCountry,custZip,custPhone,custEmail\",\r\n\t\t\t\t\"fName, mName,lName,ssn,ccn,aptN,streetN,custCity,custState,custCountry,custZip,custPhone,custEmail\",\r\n\t\t\t\t\"balance, fName, lName, id\",\r\n\t\t\t\t\"t_id,d,m,y,ccn,branch,transaction_type,transaction_value,c_ssn\",\r\n\t\t\t\t\"fName, mName, lName,t_id,d,m,y,ccn,branch,transaction_type,transaction_value\"\r\n\t\t\t\t\r\n\t\t};\r\n\t\tfor(int i = 0;i<fileNames.length;i++) {\r\n\t\t\tWriteToFile.overWrite(fileNames[i]);\r\n\t\t\tWriteToFile.writeToLoc(fileNames[i], columnNames[i]);\r\n\t\t}\r\n\t\t//might be easier to just non-append-write the files here to blank them out\r\n\t\t\t//narrator: it was.\t\r\n\t\tScanner scanner = new Scanner (System.in);\r\n\t\tselect(scanner);\r\n\t\tscanner.close();\r\n\t\treturn;\t\r\n\t}", "public static void main(String[] args) {\n GeneracionDatos generacionDatos = new GeneracionDatos();\n generacionDatos.creacionBarcos();\n generacionDatos.creacionAlquileres();\n\n Calculos calculos = new Calculos();\n\n //Muestra de datos calculados\n System.out.println(\"Alquiler mayor: \" + calculos.mayorAlquiler(generacionDatos.getAlquileres()));\n System.out.println(\"\");\n System.out.println(\"Alquiler menor: \" + calculos.menorAlquiler(generacionDatos.getAlquileres()));\n System.out.println(\"\");\n System.out.println(\"Promedios mensuales: \"); calculos.promedioMensual(generacionDatos.getAlquileres());\n System.out.println(\"\");\n System.out.println(\"Promedio anual: \" + calculos.promedioAnual(generacionDatos.getAlquileres()));\n }", "public static void main(String[] args) {\r\n // Getting directory of file.\r\n String userDirectory = System.getProperty(\"user.dir\");\r\n File pathOfHTML = new File(userDirectory + \"\\\\\" + NAMEOFHTML);\r\n SearchFiles searchFiles = new SearchFiles();\r\n BuildHTML report = new BuildHTML();\r\n // Create HTML table of files from this directory.\r\n report.createHTML(pathOfHTML, searchFiles.searchFiles(new File(userDirectory)));\r\n }", "@Test\n\tpublic void Reports_19003_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Create Custom Report in Accounts module\n\t\t// TODO: VOOD-822\n\t\tVoodooControl createSummationReportCtrl = new VoodooControl(\"td\", \"css\", \"#report_type_div tr:nth-child(2) td:nth-child(3) tr:nth-child(1) td:nth-child(1)\");\n\t\tVoodooControl nextBtnCtrl = new VoodooControl(\"input\", \"id\", \"nextBtn\");\n\t\tVoodooControl nxtbtnCtrl = new VoodooControl(\"input\", \"css\", \"#chart_options_div table:nth-child(5) tbody tr td #nextButton\");\n\t\tVoodooControl reportNameCtrl = new VoodooControl(\"input\", \"id\", \"save_report_as\");\n\t\tVoodooControl saveAndRunCtrl = new VoodooControl(\"input\", \"css\", \"#report_details_div table:nth-child(1) tbody tr td #saveAndRunButton\");\n\n\t\t// Select 'Create Report' from Reports menu\n\t\tsugar().navbar.selectMenuItem(sugar().reports, \"createReport\");\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tcreateSummationReportCtrl.waitForVisible();\n\t\tcreateSummationReportCtrl.click();\n\t\tnew VoodooControl(\"table\", \"id\", \"Accounts\").click();\n\t\tnew VoodooControl(\"tr\", \"id\", \"Accounts_date_modified\").click();\n\n\t\t// Verify Fiscal filters listed in dropdown.\n\t\t// TODO: VOOD-822\n\t\tnew VoodooControl(\"option\", \"css\", \"option[value='tp_previous_fiscal_year']\").assertExists(true);\n\t\tnew VoodooControl(\"option\", \"css\", \"option[value='tp_previous_fiscal_quarter']\").assertExists(true);\n\t\tnew VoodooControl(\"option\", \"css\", \"option[value='tp_current_fiscal_year']\").assertExists(true);\n\t\tnew VoodooControl(\"option\", \"css\", \"option[value='tp_current_fiscal_quarter']\").assertExists(true);\n\t\tnew VoodooControl(\"option\", \"css\", \"option[value='tp_next_fiscal_year']\").assertExists(true);\n\t\tnew VoodooControl(\"option\", \"css\", \"option[value='tp_next_fiscal_quarter']\").assertExists(true);\n\t\tnew VoodooControl(\"option\", \"css\", \"option[value='tp_current_fiscal_year']\").click();\n\t\tnextBtnCtrl.click();\n\n\t\t// Verify, for Group by, Fiscal Year/Quarter is available for any date type fields.\n\t\t// TODO: VOOD-822\n\t\tnew VoodooControl(\"tr\", \"xpath\", \"//*[@id='Accounts_date_entered:fiscalQuarter']\").assertExists(true);\n\t\tnew VoodooControl(\"tr\", \"xpath\", \"//*[@id='Accounts_date_modified:fiscalQuarter']\").assertExists(true);\n\t\tnew VoodooControl(\"tr\", \"xpath\", \"//*[@id='Accounts_date_entered:fiscalYear']\").assertExists(true);\n\t\tnew VoodooControl(\"tr\", \"xpath\", \"//*[@id='Accounts_date_modified:fiscalYear']\").assertExists(true);\n\n\t\tnew VoodooControl(\"tr\", \"xpath\", \"//*[@id='Accounts_date_modified:fiscalYear']\").click();\n\t\tnextBtnCtrl.click();\n\t\tnew VoodooControl(\"tr\", \"id\", \"Accounts_count\").click();\n\t\tnextBtnCtrl.click();\n\t\tnew VoodooControl(\"tr\", \"id\", \"Accounts_name\").click();\n\t\tnextBtnCtrl.click();\n\t\tnxtbtnCtrl.click();\n\t\tFieldSet myData = testData.get(testName).get(0);\n\t\treportNameCtrl.set(myData.get(\"report_name\"));\n\t\tsaveAndRunCtrl.click();\n\t\tsugar().alerts.waitForLoadingExpiration();\n\n\t\t// Verify, Report is displayed correctly according to the fiscal period.\n\t\tnew VoodooControl(\"a\", \"css\", \".oddListRowS1\").assertContains(sugar().accounts.getDefaultData().get(\"name\"),true);\n\t\tnew VoodooControl(\"a\", \"css\", \".list.view .Array td:nth-child(2)\").assertContains(\"1\",true);\n\t\tVoodooUtils.focusDefault();\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "public static void main(String[] args) {\n Tabuleiro resta1 = new Tabuleiro();\n //Imprime o estado inicial do tabuleiro\n System.out.println(\"Tabuleiro inicial\");\n resta1.imprimir(); \n //Lê comandos e os tranforma em um vetor de strings\n CSVReader csv = new CSVReader();\n csv.setDataSource(\"/home/cristiano/Documents/resta.csv\");\n String commands[] = csv.requestCommands();\n //Executa comandos no tabuleiro\n for(int i=0; i<commands.length; i++){\n resta1.movimento(commands[i]);\n //Encerra o loop caso o jogador ganhe\n if(Pecas.n==1)\n break;\n }\n }", "public static void main(String[] args) {\n\t\tString filepath = \"D:/JavaWorkSpaces/fhy/WebRoot/template/防护员信息表-Template.xls\";\n\t\tfilepath = \"C:/Users/Administrator/Downloads/防护员信息表数据导入模板 (2).xls\";\n\t\tfilepath = \"H:/个人资料/研发产品/04.工务段防护员管理系统/云梦线路车间_2018-12-12_日计划.xls\";\n\t\tfilepath = \"H:/个人资料/研发产品/04.工务段防护员管理系统/襄北线路车间2019-02-13日计划.xls\";\n\t\t//filepath = \"H:/个人资料/研发产品/04.工务段防护员管理系统/襄北线路车间2019-02-18至2019-02-18日计划.xls\";\n\t\t// filepath =\n\t\t// \"D:/JavaWorkSpaces/fhy/WebRoot/template/评价指标数据表-Template.xls\";\n\t\ttry {\n\t\t\t// filepath =\n\t\t\t// \"D:/JavaWorkSpaces/fhy/WebRoot/template/防护员信息表-Template.xls\";\n\t\t\t// filepath = \"H:/个人资料/研发产品/04.工务段防护员管理系统/客户提供数据/防护员信息表数据导入模板.xls\";\n\t\t\t// importData(filepath);\n\t\t\t// impl.importPjzbData(filepath,\"2\");\n\t\t\tFhyScoreImpl.importQgcjkData(filepath, \"admin\");\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} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void run(String... args) throws Exception {\n this.customerService.exportTotalSalesByCustomer(GlobalConstants.QUERY_5_FILE_PATH);\n }", "public void doTask(String task) {\n \t// show the command line parameters\n String[] params = org.archiviststoolkit.plugin.ATPluginFactory.getInstance().getCliParameters();\n for(int i = 0; i < params.length; i++) {\n System.out.println(\"Parameter \" + (i+1) + \" = \" + params[i]);\n }\n \n // options for when calling convertResourceToFile\n boolean suppressInternalOnly = false;\n boolean includeDaos = false;\n boolean numberedComponents = false;\n boolean useDOIDAsHREF = false;\n boolean MARC = false;\n boolean EAD = false;\n \n java.util.Hashtable optionsAndArgs = new java.util.Hashtable();\n for(int i=3; i<params.length;i++){\n \tif((params[i]).equals(\"-ead\"))\n \t\tEAD = true;\n \telse if((params[i]).equals(\"-marc\"))\n \t\tMARC = true;\n \telse if((params[i]).equals(\"-suppressInternalOnly\"))\n \t\tsuppressInternalOnly = true;\n \telse if((params[i]).equals(\"-includeDaos\"))\n \t\tincludeDaos = true;\n \telse if((params[i]).equals(\"-numberedComponents\"))\n \t\tnumberedComponents = true;\n \telse if((params[i]).equals(\"-useDOIDAsHREF\"))\n \t\tuseDOIDAsHREF = true;\n \telse if(params[i].startsWith(\"-\"))\n \t\toptionsAndArgs.putAll(addParams(params, i));\n }\n \n // ensure EAD and or MARC is select\n if(!MARC && !EAD){\n \tSystem.out.println(\"You must choose to export EAD and/or MARC records.\");\n \treturn;\n }\n \n DomainAccessObject access = new ResourcesDAO();\n\n // get the list of all resources from the database\n java.util.List<Resources> resources;\n java.util.List<Resources> completedResources;\n\n try {\n resources = (java.util.List<Resources>) access.findAll();\n } catch (Exception e) {\n resources = null;\n }\n\n int recordCount = resources.size();\n \n // Get the path where to export the files to from the command line arguments\n String exportRootPath = params[2];\n\n //dummy progress panel to pass into convertResourceToFile\n InfiniteProgressPanel fakePanel = new InfiniteProgressPanel();\n\n // print out the resource identifier and title and export as ead\n System.out.println(\"Exporting Resources\");\n\n // Get the runtime for clearing memory\n Runtime runtime = Runtime.getRuntime();\n\n // get the ead exporter\n EADExport ead = new EADExport();\n \n MARCExport marc = new MARCExport();\n \n // create an index file of all resources\n java.io.File indexFile = new java.io.File(exportRootPath + \"resourceIndex.txt\");\n try{\n \tindexFile.createNewFile();\n }catch(Exception e){\n \tSystem.out.println(\"Failed to create index file\");\n }\n \n // populate index file\n \ttry{\n \tjava.io.FileWriter fstream = new java.io.FileWriter(indexFile);\n \tjava.io.BufferedWriter out = new java.io.BufferedWriter(fstream);\n \tfor(int i=0; i< recordCount; i++){\n \t\tout.write(resources.get(i).getResourceIdentifier().toString()+'\\t');\n \t\tString status = resources.get(i).getFindingAidStatus();\n \t\tstatus = status.replace(\"\\n\", \"\");\n \t\tstatus = status.replace(\"\\r\", \"\");\n \t\tif(status.length() > 0){\n \t\t\tout.write(status+'\\t');\n \t\t}else{\n \t\t\tout.write(\"--------\"+'\\t');\n \t\t}\n \t\t// remove newlines / carriage returns\n \t\tString title = resources.get(i).getTitle().replaceAll(\"\\\\n\",\"\").replaceAll(\"\\\\r\",\"\");\n \t\tif(title.length() > 0){\n \t\t\tout.write(title+'\\t');\n \t\t}else{\n \t\t\tout.write(\"--------\"+'\\t');\n \t\t}\n \t\t//this doesnt work\n \t\tout.write(resources.get(i).getLastUpdated().toString());\n \t\tout.newLine();\n \t\t\n \t\tout.flush();\n \t}\n \tout.close();\n \tfstream.close();\n }catch(Exception e){\n \tSystem.out.println(e);\n }\n \n PrintStream printStreamOriginal=System.out;\n \n for(int i = 0; i < recordCount; i++) {\n \tif(filterOnOptions(resources.get(i), optionsAndArgs)){ \t\t\n\t try {\n\t // load the full resource from database using a long session\n\t Resources resource = (Resources)access.findByPrimaryKeyLongSession(resources.get(i).getIdentifier());\n\t\n\t System.out.println(resource.getResourceIdentifier() + \" : \" + resource.getTitle());\n\t \n\t String fileName = StringHelper.removeInvalidFileNameCharacters(resource.getResourceIdentifier());\n\t \n\t System.setOut(new PrintStream(new OutputStream(){\n\t \t\t\tpublic void write(int b) {\n\t \t\t\t}\n\t \t\t}));\n\t \n\t if(EAD){\n\t \tjava.io.File fileEAD = new java.io.File(exportRootPath + fileName + \"-EAD\" + \".xml\");\n\t \tfileEAD.createNewFile();\n\t \tead.convertResourceToFile(resource, fileEAD, fakePanel, suppressInternalOnly, numberedComponents, includeDaos, useDOIDAsHREF);\n\t }\n\t \n\t if(MARC){\n\t \tjava.io.File fileMARC = new java.io.File(exportRootPath + fileName + \"-MARC\" + \".xml\");\n\t \tfileMARC.createNewFile();\n\t \tmarc.convertDBRecordToFile(resource, fileMARC, fakePanel, suppressInternalOnly);\n\t }\n\t System.setOut(printStreamOriginal);\n\t \n\t } catch (Exception e) {\n\t \tSystem.setOut(printStreamOriginal);\n\t System.out.println(e);\n\t }\n\t\n\t // close the long session. This is critical to saving memory. If it's\n\t // left open then hinernate caches the resource records even though\n\t // we don't need them anymore\n\t access.getLongSession().close(); // close the connection\n \t}\n \t// since we no longer need this resource, set it to null\n // close the session in an attemp to save memory\n resources.set(i, null);\n \n // run GC to clear some memory after 10 exports, not sure if this is\n // really needed but running GC cost little in time so might as well?\n runtime.gc();\n }\n\n System.out.println(\"Finished Exporting ...\");\n }", "@Test\n\tpublic void testBasicReportExecution() \n\t{\n\t\tString testTeam = \"USA\";\n\t\t\n\t\ttry \n\t\t{\n\t\t\tReportParameters rp = new ReportParameters();\n\t\t\t\n\t\t\trp.addSupportedParameter(ParameterInfo.START_DATE_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.END_DATE_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.AGENT_NAMES_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.TEAM_NAMES_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.USER_GRAIN_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.TIME_GRAIN_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.NUM_DRIVERS_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.REPORT_TYPE_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.SOURCE_PARAM);\n\t\t\t\n\t\t\tassertTrue(\"Set stack report\", rp.setReportType(ReportTypes.STACK_REPORT));\n\t\t\t//assertTrue(\"Add agent to report\", rp.addAgentName(testAgent));\n\t\t\tassertTrue(\"Add team to report\", rp.addTeamName(testTeam));\n\t\t\tassertTrue(\"Set report start date\", rp.setStartDate(\"2014-01-01 00:00:00\"));\n\t\t\tassertTrue(\"Set report end date\", rp.setEndDate(\"2014-03-01 23:59:59\"));\n\t\t\tassertTrue(\"Set user granularity for stack report\", rp.setUserGrain(UserGrains.TEAM_GRANULARITY));\n\t\t\tassertTrue(\"Set report source\", rp.setSource(\"JUnit\"));\n\t\t\t\n\t\t\t//report needs roster members\n\t\t\tReport report = proc.startReport(testReportClassName, rp);\n\t\t\tArrayList<String[]> actualResults = report.getData();\n\t\t\t\n\t\t\tassertNotNull(\"Non-null result set\", actualResults);\n\t\t\tassertTrue(\"Check that result set is non zero size\", actualResults.size() > 0);\n\t\t\tassertTrue(\"Check that result set is expected size\", actualResults.size() == 1);\n\t\t\t\n\t\t\tassertEquals(\"Correct team membership\", testTeam, actualResults.get(0)[0]);\n\t\t} \n\t\tcatch (ClassNotFoundException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tassertFalse(\"Exception executing report\", true);\n\t\t}\n\t}", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n // Declaración de variables\n String nombre;\n String asignatura;\n double calificacion_bim1;\n double calificacion_bim2;\n double total;\n\n // Lectura de datos\n System.out.print(\"Nombres completos del estudiante: \");\n nombre = scan.nextLine();\n System.out.print(\"Asignatura: \");\n asignatura = scan.nextLine();\n System.out.print(\"Calificación del Primer Bimestre: \");\n calificacion_bim1 = scan.nextDouble();\n System.out.print(\"Calificación del Segundo Bimestre: \");\n calificacion_bim2 = scan.nextDouble();\n\n // Creación de objeto con inicialización de variables\n EstadoEstudiante estado = new EstadoEstudiante(nombre, asignatura, calificacion_bim1, calificacion_bim2);\n\n // Salida\n System.out.println(estado.reportar(nombre, asignatura, estado.calcular_total(calificacion_bim1,\n calificacion_bim2), estado.aprobar_reprobar(estado.calcular_total(calificacion_bim1,\n calificacion_bim2))));\n }", "void startReportingTask();", "void createReport(Report report);", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(JOB_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (JobDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getTitle()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeName());\n\t\t\t\t\t\trecord.add(transaction.getJobType());\n\t\t\t\t\t\trecord.add(transaction.getPlannedStartTime());\n\t\t\t\t\t\trecord.add(transaction.getActualEndTime());\n\t\t\t\t\t\trecord.add(transaction.getJobStatus() != null ? transaction.getJobStatus().name()\n\t\t\t\t\t\t\t\t: JobStatus.OPEN.name());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!! \" + e);\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public static void main(String[] args) throws ParseException {\n\t\tDate scoutProdFechInicio= new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"2018-11-13\");\n\t\tDate scoutProdFechFin= (Date) new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"2018-11-13\");\n\t\tint scoutProdHoras=88;\n\t\tDate selecProvFechInicio= (Date) new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"2018-11-13\");;\n\t\tDate selecProvFechFin= (Date) new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"2018-11-13\");;\n\t\tint selectProvHoras=88;\n\t\t\n\t\t// Persistencia del objeto en la BD\n\t\tint rowCount=0;\n\t\tDAOCronoPresupuestacion daoPresupuestacion =new DAOCronoPresupuestacion();\t\t\n\t\tCronoPresupuestacion cronoPresupuestacion = new CronoPresupuestacion(scoutProdFechInicio,scoutProdFechFin,scoutProdHoras,selecProvFechInicio,selecProvFechFin,selectProvHoras); \n\t\trowCount = daoPresupuestacion.insertarCronogramaPresupuestacion(cronoPresupuestacion);\n\t\t\n\t\tif (rowCount > 0)\n\t\t\tSystem.out.println(\"Se insertó cronograma de presupuestación en la BD.\\nCantidad de registros afectados: \" + rowCount);\n\t\telse\n\t\t\tSystem.out.println(\"Cantidad de registros afectados: \" + rowCount + \"\\nNo se insertó cronograma de presupuestacion en la BD\");\n\t\t\t\n\t}", "public static void main(String[] args) {\n\n\n System.out.println(\"Bienvenido a Export Digital\");\n\n Ingrediente ingrediente1=new Ingrediente(\"Sal\",2,2,\"Sal tipo marina\",0,\"-\",\"SalYs\");\n Ingrediente ingrediente2=new Ingrediente(\"Pimienta\",1,1,\"Origen colombia\",0,\"-\",\"Green&Light\");\n Ingrediente ingrediente3=new Ingrediente(\"Ajo\",2,3,\"Origen Buenos aires , Tigre\",0,\"-\",\"Green&Ligh\");\n Ingrediente ingrediente4=new Ingrediente(\"Oregano\",1,4,\"Condimentos SA , Tandil\",0,\"-\",\"Condimentos Sa\");\n Ingrediente ingrediente5=new Ingrediente(\"Aji picante\",1,1,\"Origen mexico\",0,\"-\",\"Pica SA\");\n List<Ingrediente> miIngredientes=new ArrayList<>();\n miIngredientes.add(ingrediente1);\n miIngredientes.add(ingrediente2);\n List<Ingrediente> miIngredientes2=new ArrayList<>();\n miIngredientes2.add(ingrediente3);\n miIngredientes2.add(ingrediente4);\n miIngredientes2.add(ingrediente1);\n List<Ingrediente> miIngredientes3=new ArrayList<>();\n miIngredientes3.add(ingrediente1);\n miIngredientes3.add(ingrediente5);\n miIngredientes3.add(ingrediente3);\n\n Receta recetaPollo=new Receta(\"Receta Pollo\",60f,miIngredientes);\n Receta recetaPescado=new Receta(\"Receta Pescado\",30f,miIngredientes2);\n Receta recetaMariscos=new Receta(\"Medallon PO\",20f,miIngredientes3);\n\n MedallonPO medallonPO=new MedallonPO(\"Medallon Pollo clasico\",4.35f,recetaPollo,100,52.3f,13,-22,180,35,25,5,100f,\"D6\",1,32,3,125f,220f,20,36);\n MedallonesPE medallonPE=new MedallonesPE(\"Medallon Pescado clasico\",4.35f,recetaPescado,100,44.3f,24f,-25,180,25,20,3,100f,\"D6\",1,33,3,\"Merluza\",240f,36);\n Anillas rabas=new Anillas(\"Anillas rebozadas\",5.35f,recetaMariscos,100,120f,15,-20,180,20,35,2,15f,\"V2\",140f,8,15,\"V2\");\n\n List<Producto> misProductos=new ArrayList<>();\n misProductos.add(medallonPO);\n misProductos.add(medallonPE);\n misProductos.add(rabas);\n List<Ventas> lista=new ArrayList<>();\n List<Ingrediente> listaingredientes = new ArrayList<>();\n List <Produccion> listaProduccion= new ArrayList<>();\n HistorialVentas historial = new HistorialVentas(lista);\n Inventario inventario=new Inventario(listaProduccion,listaingredientes);\n Fabrica miFabrica=new Fabrica(\"Mardi Sa\",\"Ortiz de zarate 3544\",historial,inventario,misProductos);\n\n miFabrica.IniciarProg();\n\n\n\n\n\n\n\n\n\n\n\n /*\n\n\n\n\n\n // Test ventas, produtos y historial\n\n Ingrediente ingrediente=new Ingrediente(\"Sal\",2,2,\"Sal marina\",0,\"12112\",\"Elmasita\");\n List<Ingrediente> miIngredientes=new ArrayList<>();\n miIngredientes.add(ingrediente);\n Receta recetaPollo=new Receta(\"Medallon PO\",60f,miIngredientes);\n MedallonPO medallonPO=new MedallonPO(\"Medallon Pollo clasico\",4.35f,recetaPollo,100,52.3f,13,-22,180,35,25,5,100f,\"D6\",1,32,3,125f,220f,20,36);\n Ventas venta=new Ventas(medallonPO,100,\"14023123\");\n Ventas vent1=new Ventas(medallonPO,1000,\"14/02/1997\");\n Ventas venta2=new Ventas(medallonPO,100,\"14/02/1994\");\n Produccion produccion=new Produccion(medallonPO,\"10/02/1994\",1000);\n List<Producto> misProductos=new ArrayList<>();\n List<Ventas> lista=new ArrayList<>();\n List<Ingrediente> listaingredientes = new ArrayList<>();\n listaingredientes.add(ingrediente);\n List <Produccion> listaProduccion= new ArrayList<>();\n HistorialVentas historial = new HistorialVentas(lista);\n Inventario inventario=new Inventario(listaProduccion,listaingredientes);\n System.out.println(medallonPO.getReceta().getIngredientes().get(0));\n inventario.mostrar(inventario.getListaIngredientes());\n Fabrica miFabrica=new Fabrica(\"Mardi Sa\",\"Ortiz de zarate 3544\",historial,inventario,misProductos);\n miFabrica.inicializarIngredientes();\n miFabrica.mostrar(miFabrica.getMiStock().getListaIngredientes());\n // miFabrica.getMiStock().inicializarIngredientes();//Seteo en 0 las cantidades de mis bolsas\n /* System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n miFabrica.mostrar(miFabrica.getMiStock().getListaIngredientes());\n miFabrica.comprarIngredientes(200);\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n /*\n\n /*miFabrica.mostrar(miFabrica.getMiStock().getListaIngredientes());*/\n /*\n miFabrica.agregar(medallonPO, miFabrica.getMisProductos());\n miFabrica.mostrar(miFabrica.getMisProductos().get(0).getReceta().getIngredientes());\n miFabrica.comprarIngredientes(200);\n miFabrica.mostrar(miFabrica.getMisProductos().get(0).getReceta().getIngredientes());\n miFabrica.mostrar(miFabrica.getMiStock().getListaIngredientes());\n // okSystem.out.println(produccion.toString());\n // ok System.out.println(medallonPO.toString());\n // System.out.println(miFabrica.getMisProductos().get(0).getReceta().toString());\n //ok miFabrica.mostrar(miFabrica.getMisProductos().get(0).getReceta().getIngredientes());\n\n\n // miFabrica.agregar(produccion,inventario.getListaProduccion());\n //inventario.mostrar(inventario.getListaProduccion());\n // miFabrica.agregar(venta,historial.getVentas());//EL AGREGADO , LAS MUESTRAS Y EL ELIMINADO FUNCIONAN , ASI COMO EL BUSQUEDA GENERAL\n // miFabrica.agregar(vent1,historial.getVentas());\n // miFabrica.agregar(venta2,historial.getVentas());\n // historial.mostrar(historial.getVentas());\n // historial.eliminar(venta,historial.getVentas());\n // historial.mostrar(historial.getVentas());\n miFabrica.producir(0);\n // miFabrica.producir(miFabrica.getMiStock(),miFabrica.getMisProductos(),0);\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n miFabrica.getMiStock().calcularTotalStockProductos(misProductos, miFabrica.getMiStock());\n // miFabrica.mostrar(miFabrica.getMiStock().getListaProduccion());\n //miFabrica.mostrar(historial.getVentas());\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n */\n //ok List<Produccion>miListaDis=miFabrica.getMiStock().bajarDisponibles(miFabrica.getMiStock().getListaProduccion());\n //ok Inventario inventario1=new Inventario(miListaDis,listaingredientes);\n //ok inventario1.mostrar(inventario1.getListaProduccion());\n /* miFabrica.mostrar(miFabrica.getMiStock().getListaProduccion());\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n miFabrica.vender(miFabrica.getMisProduccionesVendidas(),miFabrica.getMiStock(),miFabrica.getMiHistorial(),misProductos,0);\n miFabrica.mostrar(miFabrica.getMisProduccionesVendidas());\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n miFabrica.mostrar(miFabrica.getMiStock().getListaProduccion());\n miFabrica.getMiStock().calcularTotalStockProductos(misProductos,miFabrica.getMiStock());\n // miFabrica.mostrar(misProductos);\n //NOTA FALTAN LAS BUSQUEDAS TANTO EN INVENTARIO COMO EN HISTORIAL Y TESTEAR\n*/\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// log.debug(\"FILE SYSTEM -----\" + fileSystem);\n\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// log.debug(\"PATH----------\" + path);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\t// log.debug(\"NEW EXCEL_FILE PATH TO EXPORT----------\" + filePath);\n\n\t\t\t\t// create workbook\n\t\t\t\tXSSFWorkbook xssfWorkbook = new XSSFWorkbook();\n\t\t\t\t// create worksheet with title\n\t\t\t\tXSSFSheet xssfSheet = xssfWorkbook.createSheet(\"EMPLOYEE_REPORT\");\n\n\t\t\t\tRow headerRow = xssfSheet.createRow(0);\n\n\t\t\t\tfor (int i = 0; i < EMP_HEADER.length; i++) {\n\t\t\t\t\tCell cell = headerRow.createCell(i);\n\t\t\t\t\tcell.setCellValue(EMP_HEADER[i]);\n\t\t\t\t}\n\n\t\t\t\tint rowNum = 1;\n\n\t\t\t\tfor (EmployeeDTO transaction : content) {\n\n\t\t\t\t\tlog.info(\"Entered into EMP-FOR Loop--------->\");\n\n\t\t\t\t\tRow dataRow = xssfSheet.createRow(rowNum++);\n\n\t\t\t\t\tdataRow.createCell(0).setCellValue(transaction.getEmpId());\n\t\t\t\t\tdataRow.createCell(1).setCellValue(transaction.getName());\n\t\t\t\t\tdataRow.createCell(2).setCellValue(transaction.getDesignation());\n\t\t\t\t\tdataRow.createCell(3).setCellValue(transaction.getManagerName());\n\t\t\t\t\tdataRow.createCell(4).setCellValue(transaction.getProjectName());\n\t\t\t\t\tdataRow.createCell(5).setCellValue(transaction.getSiteName());\n\t\t\t\t\tdataRow.createCell(6).setCellValue(transaction.getActive());\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < EMP_HEADER.length; i++) {\n\t\t\t\t\txssfSheet.autoSizeColumn(i);\n\t\t\t\t}\n\t\t\t\t// log.info(exportFileName + \" Excel file was created successfully !!!\");\n\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\n\t\t\t\t// String fName = \"F:\\\\Export\\\\Employee.xlsx\";\n\t\t\t\tFileOutputStream fileOutputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tfileOutputStream = new FileOutputStream(filePath);\n\t\t\t\t\txssfWorkbook.write(fileOutputStream);\n\t\t\t\t\tfileOutputStream.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.error(\"Error while flushing/closing !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public void btnGenerarReporteDestruccionPDF() {\n try {\n byte[] bytesFile;\n bytesFile = null;\n Map parameters = new HashMap();\n\n parameters.put(\"rfc\", produccionCigarrosHelper.getTabacalera().getRfc());\n parameters.put(\"incidencia\", \"Desperdicios y destrucción\");\n parameters.put(\"fecha\", new Date());\n parameters.put(\"folio\", desperdiciosHelper.getIdAcuseRecibo());\n parameters.put(\"cadenaOriginal\", firmaFormHelper.getCadenaOriginal());\n parameters.put(\"selloDigital\", selloDigital.generaSelloDigital(firmaFormHelper.getCadenaOriginal()));\n parameters.put(\"codigo_qr\", QRCodeUtil.getQr(desperdiciosHelper.getIdAcuseRecibo(), produccionCigarrosHelper.getTabacalera().getRfc(), Constantes.CINCUENTA, Constantes.CINCUENTA, Constantes.ARCHIVO_PNG));\n\n if (reporterService != null) {\n bytesFile = reporterService.makeReport(ReportesTabacosEnum.REPORTE_ACUSE_DESPERDICIO_DESTRUCCION, ARCHIVO_PDF, parameters, null);\n if (bytesFile != null) {\n generaDocumento(bytesFile, MIMETypesEnum.PDF, \"AcuseDescargapDesperdiciosDestruccion_\" + desperdiciosHelper.getIdAcuseRecibo(), FileExtensionEnum.PDF);\n }\n }\n } catch (ReporterJasperException e) {\n super.addErrorMessage(ERROR, \"Error al generar el acuse\");\n LOGGER.error(\"Error al generar el Reporte en PDF\" + e.getMessage());\n } catch (QRCodeUtilException ex) {\n super.addErrorMessage(ERROR, \"Error al generar el acuse\");\n LOGGER.error(\"Error al generar el Reporte en PDF\" + ex.getMessage());\n } catch (SelloDigitalException ex) {\n super.addErrorMessage(ERROR, \"Error al generar el acuse\");\n LOGGER.error(\"Error al generar el Reporte en PDF\" + ex.getMessage());\n }\n\n }", "private static void writeShortManual() {\n System.out.println(\"\\nPromethean CLI v1.0.0\");\n System.out.println(\"Commands:\");\n System.out.println(\"\\tplan - create (and optionally execute) a plan given input json\");\n System.out.println(\"\\ttestgen - generate a test input file given initial and goal states\");\n System.out.println(\"Run <command> --help to see all options\\n\");\n }", "public static void main(String[] args) {\r\n\t\tgenera();\r\n\r\n\t}", "public static void runReport(HttpServletRequest request,HttpServletResponse response)throws IOException{\n\n\t\tAsePool connectionPool = null;\n\n\t\tConnection conn = null;\n\n\t\tString reportUser = null;\n\n\t\tString sql = null;\n\n\t\tboolean debug = false;\n\n\t\tAseUtil aseUtil = null;\n\n\t\tWebSite website = null;\n\n\t\ttry{\n\t\t\taseUtil = new AseUtil();\n\n\t\t\tHttpSession session = request.getSession(true);\n\n\t\t\treportUser = Encrypter.decrypter((String)session.getAttribute(\"aseUserName\"));\n\n\t\t\tint i = 0;\n\t\t\tint j = 0;\n\n\t\t\tString junk = \"\";\n\n\t\t\t// step 0\n\t\t\tconnectionPool = AsePool.getInstance();\n\t\t\tconn = connectionPool.getConnection();\n\n\t\t\twebsite = new WebSite();\n\t\t\tString campus = website.getRequestParameter(request,\"c\",\"\");\t\t// parm1\n\t\t\tString alpha = website.getRequestParameter(request,\"a\",\"\");\t\t\t// parm2\n\t\t\tString num = website.getRequestParameter(request,\"n\",\"\");\t\t\t// parm3\n\t\t\tString type = website.getRequestParameter(request,\"t\",\"\");\t\t\t// parm4\n\t\t\tString user = website.getRequestParameter(request,\"u\",\"\");\t\t\t// parm5\n\t\t\tString historyid = website.getRequestParameter(request,\"h\",\"\");\t// parm6\n\t\t\tint route = website.getRequestParameter(request,\"r\",0);\t\t\t\t// parm7\n\t\t\tString p8 = website.getRequestParameter(request,\"p8\",\"\");\t\t\t// any value\n\t\t\tString p9 = website.getRequestParameter(request,\"p9\",\"\");\t\t\t// any value\n\n\t\t\tif (campus == null || campus.length() == 0)\n\t\t\t\tcampus = Encrypter.decrypter((String)session.getAttribute(\"aseCampus\"));\n\n\t\t\tif (user == null || user.length() == 0)\n\t\t\t\tuser = Encrypter.decrypter((String)session.getAttribute(\"aseUserName\"));\n\n\t\t\tString campusName = CampusDB.getCampusNameOkina(conn,campus);\n\n\t\t\tString reportFolder = aseUtil.getReportFolder();\n\t\t\tString outputFolder = aseUtil.getReportOutputFolder(campus +\"/\");\n\n\t\t\tString logoFile = aseUtil.getCampusLogo(campus);\n\t\t\tString reportFileName = outputFolder + user + \".pdf\";\n\n\t\t\tString reportType = \"generic\";\n\t\t\tString reportTitle = \"\";\n\t\t\tString colsWidth = \"\";\n\t\t\tString headerColumns = \"\";\n\t\t\tString dataColumns = \"\";\n\n\t\t\tString where = \"\";\n\t\t\tString order = \"\";\n\t\t\tString grouping = null;\n\t\t\tString savedGrouping = null;\n\t\t\tString groupedValue = null;\n\t\t\tString footer = null;\n\t\t\tString reportSubTitle = null;\n\n\t\t\tString sWhere = \"\";\n\n\t\t\tString parm1 = \"\";\t\t// campus or FORUM src\n\t\t\tString parm2 = \"\";\t\t// alpha or FORUM status\n\t\t\tString parm3 = \"\";\t\t// num\n\t\t\tString parm4 = \"\";\t\t// type\n\t\t\tString parm5 = \"\";\t\t// user\n\t\t\tString parm6 = \"\";\t\t//\thistoryid\n\t\t\tString parm7 = \"\";\t\t//\troute\n\t\t\tString parm8 = \"\";\t\t//\n\t\t\tString parm9 = \"\";\t\t//\n\n\t\t\tint psIndex = 0;\n\n\t\t\tString aseReport = (String)session.getAttribute(\"aseReport\");\n\n\t\t\tif (aseReport != null && aseReport.length() > 0){\n\n\t\t\t\tResourceBundle reportBundle = ResourceBundle.getBundle(\"ase.central.reports.\" + aseReport);\n\t\t\t\tif (reportBundle != null){\n\n\t\t\t\t\tBundleDB bundle = new BundleDB();\n\n\t\t\t\t\treportType = bundle.getBundle(reportBundle,\"reportType\",\"\");\n\t\t\t\t\treportTitle = bundle.getBundle(reportBundle,\"reportTitle\",\"\");\n\t\t\t\t\tcolsWidth = bundle.getBundle(reportBundle,\"colsWidth\",\"\");\n\t\t\t\t\theaderColumns = bundle.getBundle(reportBundle,\"headerColumns\",\"\");\n\t\t\t\t\tdataColumns = bundle.getBundle(reportBundle,\"dataColumns\",\"\");\n\t\t\t\t\tsql = bundle.getBundle(reportBundle,\"sql\",\"\");\n\t\t\t\t\tgrouping = bundle.getBundle(reportBundle,\"grouping\",\"\");\n\t\t\t\t\tfooter = bundle.getBundle(reportBundle,\"footer\",\"\");\n\t\t\t\t\treportSubTitle = bundle.getBundle(reportBundle,\"reportSubTitle\",\"\");\n\n\t\t\t\t\twhere = bundle.getBundle(reportBundle,\"where\",\"\");\n\t\t\t\t\tif (where != null && where.length() > 0){\n\t\t\t\t\t\twhere = where.replace(\"_EQUALS_\",\"=\");\n\t\t\t\t\t}\n\n\t\t\t\t\torder = bundle.getBundle(reportBundle,\"order\",\"\");\n\t\t\t\t\tparm1 = bundle.getBundle(reportBundle,\"parm1\",\"\");\t// campus, src\n\t\t\t\t\tparm2 = bundle.getBundle(reportBundle,\"parm2\",\"\");\t// alpha\n\t\t\t\t\tparm3 = bundle.getBundle(reportBundle,\"parm3\",\"\");\t// num\n\t\t\t\t\tparm4 = bundle.getBundle(reportBundle,\"parm4\",\"\");\t// type\n\t\t\t\t\tparm5 = bundle.getBundle(reportBundle,\"parm5\",\"\");\t// userid\n\t\t\t\t\tparm6 = bundle.getBundle(reportBundle,\"parm6\",\"\");\t// history\n\t\t\t\t\tparm7 = bundle.getBundle(reportBundle,\"parm7\",\"\");\t// route\n\t\t\t\t\tparm8 = bundle.getBundle(reportBundle,\"parm8\",\"\");\n\t\t\t\t\tparm9 = bundle.getBundle(reportBundle,\"parm9\",\"\"); // any single value\n\n\t\t\t\t\tbundle = null;\n\n\t\t\t\t} // reportBundle\n\n\t\t\t\tif (reportTitle != null && colsWidth != null && headerColumns != null && dataColumns != null && sql != null){\n\t\t\t\t\tPdfPTable table = null;\n\t\t\t\t\tPhrase phrase = null;\n\t\t\t\t\tPdfPCell cell = null;\n\n\t\t\t\t\tBaseColor campusColor = null;\n\n\t\t\t\t\tString[] aColsWidth = colsWidth.split(\",\");\n\t\t\t\t\tString[] aDataColumns = dataColumns.split(\",\");\n\n\t\t\t\t\t// define colum width\n\t\t\t\t\tint columns = aDataColumns.length;\n\n\t\t\t\t\tfloat[] fColsWidth = new float[aDataColumns.length];\n\n\t\t\t\t\tfor(i=0; i<columns; i++){\n\t\t\t\t\t\tfColsWidth[i] = Float.valueOf(aColsWidth[i]).floatValue();\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// define campus color; for grouping, use a different color\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(Constant.CAMPUS_TTG);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(Constant.CAMPUS_TTG);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (campus != null && campus.length() > 0 && campusColorMap.containsKey(campus))\n\t\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(campus);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (campusColor == null)\n\t\t\t\t\t\tcampusColor = BaseColor.LIGHT_GRAY;\n\n\t\t\t\t\t// step 1 of 5\n\t\t\t\t\tDocument document = new Document(PageSize.LETTER.rotate());\n\n\t\t\t\t\t// step 2 of 5\n\t\t\t\t\tPdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(reportFileName));\n\t\t\t\t\tTableHeader event = new TableHeader();\n\t\t\t\t\twriter.setPageEvent(event);\n\t\t\t\t\twriter.setPageEvent(new Watermark(\"Curriculum Central\"));\n\n\t\t\t\t\tint leading = 18;\n\n\t\t\t\t\t// step 3 of 5\n\t\t\t\t\tdocument.open();\n\t\t\t\t\tdocument.newPage();\n\n\t\t\t\t\t// create table with user column count\n\t\t\t\t\ttable = new PdfPTable(fColsWidth);\n\t\t\t\t\ttable.setWidthPercentage(100f);\n\t\t\t\t\ttable.setHorizontalAlignment(Element.ALIGN_LEFT);\n\t\t\t\t\ttable.getDefaultCell().setBorder(PdfPCell.NO_BORDER);\n\t\t\t\t\ttable.getDefaultCell().setUseAscender(true);\n\t\t\t\t\ttable.getDefaultCell().setUseDescender(true);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t//formulate sql statement\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tparm1 = website.getRequestParameter(request,\"src\",\"\");\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0){\n\t\t\t\t\t\t\tsWhere = \" src=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tparm2 = website.getRequestParameter(request,\"status\",\"\");\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" status=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" c.campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && (route > 0 || route == -999)){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\t\tsWhere += \" c.route>? \";\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tsWhere += \" c.route=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm9 != null && parm9.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" \" + parm9 + \"=? \";\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\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tsWhere = \" campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0 && alpha != null && alpha.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" alpha=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm3 != null && parm3.length() > 0 && num != null && num.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" num=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm4 != null && parm4.length() > 0 && type != null && type.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" type=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm5 != null && parm5.length() > 0 && user != null && user.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" userid=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm6 != null && parm6.length() > 0 && historyid != null && historyid.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" historyid=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && route > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" route=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} // reportType\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// final formulation of SQL\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (where.length()==0 && sWhere.length()>0)\n\t\t\t\t\t\twhere = \" WHERE \" + sWhere;\n\t\t\t\t\telse{\n\t\t\t\t\t\twhere = \" WHERE \" + where;\n\n\t\t\t\t\t\tif (sWhere.length()>0)\n\t\t\t\t\t\t\twhere += \" AND \" + sWhere;\n\t\t\t\t\t}\n\n\t\t\t\t\t// prevent empty where\n\t\t\t\t\tif (where.trim().toUpperCase().equals(\"WHERE\"))\n\t\t\t\t\t\twhere = \"\";\n\n\t\t\t\t\tif (order.length() > 0)\n\t\t\t\t\t\torder = \" ORDER BY \" + order;\n\n\t\t\t\t\t// prevent empty order\n\t\t\t\t\tif (order.trim().toUpperCase().equals(\"ORDER BY\"))\n\t\t\t\t\t\torder = \"\";\n\n\t\t\t\t\tsql = sql + where + order;\n\n\t\t\t\t\tdebug = false;\n\n\t\t\t\t\tif (debug){\n\t\t\t\t\t\tlogger.info(\"campus: \" + campus);\n\t\t\t\t\t\tlogger.info(\"alpha: \" + alpha);\n\t\t\t\t\t\tlogger.info(\"num: \" + num);\n\t\t\t\t\t\tlogger.info(\"type: \" + type);\n\t\t\t\t\t\tlogger.info(\"user: \" + user);\n\t\t\t\t\t\tlogger.info(\"historyid: \" + historyid);\n\t\t\t\t\t\tlogger.info(\"route: \" + route);\n\t\t\t\t\t\tlogger.info(\"p8: \" + p8);\n\t\t\t\t\t\tlogger.info(\"p9: \" + p9);\n\t\t\t\t\t\tlogger.info(\"reportFolder: \" + reportFolder);\n\t\t\t\t\t\tlogger.info(\"logoFile: \" + logoFile);\n\t\t\t\t\t\tlogger.info(\"reportFileName: \" + reportFileName);\n\t\t\t\t\t\tlogger.info(\"reportType: \" + reportType);\n\t\t\t\t\t\tlogger.info(\"reportTitle: \" + reportTitle);\n\t\t\t\t\t\tlogger.info(\"colsWidth: \" + reportTitle);\n\t\t\t\t\t\tlogger.info(\"headerColumns: \" + headerColumns);\n\t\t\t\t\t\tlogger.info(\"dataColumns: \" + dataColumns);\n\t\t\t\t\t\tlogger.info(\"grouping: \" + grouping);\n\t\t\t\t\t\tlogger.info(\"footer: \" + footer);\n\t\t\t\t\t\tlogger.info(\"reportSubTitle: \" + reportSubTitle);\n\t\t\t\t\t\tlogger.info(\"order: \" + order);\n\t\t\t\t\t\tlogger.info(\"parm1: \" + parm1);\n\t\t\t\t\t\tlogger.info(\"parm2: \" + parm2);\n\t\t\t\t\t\tlogger.info(\"parm3: \" + parm3);\n\t\t\t\t\t\tlogger.info(\"parm4: \" + parm4);\n\t\t\t\t\t\tlogger.info(\"parm5: \" + parm5);\n\t\t\t\t\t\tlogger.info(\"parm6: \" + parm6);\n\t\t\t\t\t\tlogger.info(\"parm7: \" + parm7);\n\t\t\t\t\t\tlogger.info(\"parm8: \" + parm8);\n\t\t\t\t\t\tlogger.info(\"parm9: \" + parm9);\n\t\t\t\t\t\tlogger.info(\"aseReport: \" + aseReport);\n\t\t\t\t\t\tlogger.info(\"sql: \" + sql);\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// Add the first header row (step 4 of 5)\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tFont f = new Font();\n\n\t\t\t\t\tdrawTitleRow(table,reportTitle,campusColor,f,BaseColor.WHITE,columns,Element.ALIGN_CENTER);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// customized subtitles\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\treportSubTitle = parm1 + \" Report\";\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\treportSubTitle = \"Approval Routing\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treportSubTitle = \"Approval Routing - \" + ApproverDB.getRoutingFullNameByID(conn,campus,route);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\treportSubTitle = \"System Settings - \" + p9;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (reportSubTitle != null && reportSubTitle.length() > 0){\n\t\t\t\t\t\tdrawTitleRow(table,reportSubTitle,campusColor,f,BaseColor.WHITE,columns,Element.ALIGN_CENTER);\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// table header\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tdrawHeaderRow(table,campusColor,columns,headerColumns,f);\n\n\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(null);\n\n\t\t\t\t\ttable.setHeaderRows(2);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// get the data\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0)\n\t\t\t\t\t\t\tps.setString(1,parm1);\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0)\n\t\t\t\t\t\t\tps.setString(2,parm2);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && (route > 0 || route == -999)){\n\t\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\t\tps.setInt(++psIndex,0);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tps.setInt(++psIndex,route);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (p9 != null && p9.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,p9);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0 && alpha != null && alpha.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,alpha);\n\n\t\t\t\t\t\tif (parm3 != null && parm3.length() > 0 && num != null && num.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,num);\n\n\t\t\t\t\t\tif (parm4 != null && parm4.length() > 0 && type != null && type.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,type);\n\n\t\t\t\t\t\tif (parm5 != null && parm5.length() > 0 && user != null && user.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,user);\n\n\t\t\t\t\t\tif (parm6 != null && parm6.length() > 0 && historyid != null && historyid.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,historyid);\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && route > 0)\n\t\t\t\t\t\t\tps.setInt(++psIndex,route);\n\n\t\t\t\t\t} // reportType\n\n\t\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\t\twhile(rs.next()){\n\n\t\t\t\t\t\tevent.setHeader(reportTitle,campusName,user);\n\n\t\t\t\t\t\tif (grouping != null && grouping.length() > 0){\n\t\t\t\t\t\t\tgroupedValue = AseUtil.nullToBlank(rs.getString(grouping));\n\t\t\t\t\t\t\tif (savedGrouping == null || !savedGrouping.equals(groupedValue)){\n\t\t\t\t\t\t\t\tsavedGrouping = groupedValue;\n\t\t\t\t\t\t\t\tdrawTitleRow(table,\n\t\t\t\t\t\t\t\t\t\t\t\tsavedGrouping.toUpperCase(),\n\t\t\t\t\t\t\t\t\t\t\t\tcampusColor,\n\t\t\t\t\t\t\t\t\t\t\t\tf,\n\t\t\t\t\t\t\t\t\t\t\t\tBaseColor.BLACK,\n\t\t\t\t\t\t\t\t\t\t\t\tcolumns,\n\t\t\t\t\t\t\t\t\t\t\t\tElement.ALIGN_LEFT);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // grouping\n\n\t\t\t\t\t\tif (j % 2 == 0)\n\t\t\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(ASE_ODD_ROW_COLOR);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(ASE_EVEN_ROW_COLOR);\n\n\t\t\t\t\t\tfor (i=0;i<columns;i++){\n\n\t\t\t\t\t\t\tif (!aDataColumns[i].equals(Constant.BLANK)){\n\t\t\t\t\t\t\t\tif (aDataColumns[i].indexOf(\"date\") > -1){\n\t\t\t\t\t\t\t\t\tjunk = aseUtil.ASE_FormatDateTime(rs.getString(aDataColumns[i]),Constant.DATE_DATE_MDY);\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\tjunk = aseUtil.nullToBlank(rs.getString(aDataColumns[i]));\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\tjunk = \"\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tjunk = junk.replace(\"<p>\",\"\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"</p>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br/>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br />\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"&nbsp;\",\" \")\n\t\t\t\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t//phrase = new Phrase();\n\t\t\t\t\t\t\t\t//phrase.add(createPhrase(junk,false));\n\n\t\t\t\t\t\t\t\t//OR\n\n\t\t\t\t\t\t\t\t// this version cuts does not parse html\n\t\t\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\t\t\tcell = new PdfPCell(phrase);\n\n\t\t\t\t\t\t\t\t// OR\n\n\t\t\t\t\t\t\t\t// this version is having problems with a stylesheet or font message\n\t\t\t\t\t\t\t\t//cell = new PdfPCell(processElement(junk, DATACOLOR, Font.NORMAL));\n\n\t\t\t\t\t\t\t\t// OR\n\n\t\t\t\t\t\t\t\t// this version is having problems with a stylesheet or font message.\n\t\t\t\t\t\t\t\t// also cuts off multiline data\n\t\t\t\t\t\t\t\t//cell = processElement(junk);\n\n\t\t\t\t\t\t\t\tcell.setFixedHeight(20);\n\t\t\t\t\t\t\t\tcell.setPaddingRight(10);\n\t\t\t\t\t\t\t\ttable.addCell(cell);\n\t\t\t\t\t\t\t} catch(IllegalArgumentException e){\n\t\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 1: \" + e.toString());\n\t\t\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 2: \" + e.toString());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t++j;\n\t\t\t\t\t} // while\n\n\t\t\t\t\tif (j==0){\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tphrase = new Phrase();\n\t\t\t\t\t\t\tphrase.add(createPhrase(\"no date found for requested report\",false));\n\t\t\t\t\t\t\tcell = new PdfPCell(phrase);\n\t\t\t\t\t\t\tcell.setFixedHeight(20);\n\t\t\t\t\t\t\tcell.setPaddingRight(10);\n\t\t\t\t\t\t\tcell.setColspan(columns);\n\t\t\t\t\t\t\ttable.addCell(cell);\n\t\t\t\t\t\t} catch(IllegalArgumentException e){\n\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 1: \" + e.toString());\n\t\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 2: \" + e.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tdocument.add(table);\n\n\t\t\t\t\t// footer\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\n\t\t\t\t\t\tList list = new List();\n\n\t\t\t\t\t\tjunk = \"CLOSED - tickets combined with another item because of similarity in the work that is needed, or the work that is no longer necessary.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"COMPLETED - this status is set after development has been completed, and user confirms that CC is working as expected.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"MONITORING - either a problem cannot be recreated or a fix was implemented without a way to recreate the problem.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"REQUIREMENTS - an enhancement or bug fix requiring additional specification prior to development.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"RESEARCH - the development team is unclear of the reported ticket or requset and requires time to better understand what has taken place and possible recommendation for the user.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"REVIEW - items the development team required additional time to understand.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"UAT - user acceptance testing (UAT) is the process where user(s) confirms that a fix or enhancement was completed as requested. If all goes well, the work is moved to production; otherwise, the work goes back for more requirements.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tdocument.add(list);\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// step 5 of 5\n\t\t\t\t\tdocument.close();\n\n\t\t\t\t\t// with report ready, open in browser\n\t\t\t\t\twritePDF(request,response,reportFileName);\n\n\t\t\t\t} // not null report fields\n\n\t\t\t} // aseReport\n\n\t\t} catch(SQLException ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport 3: \" + ex.toString());\n\t\t} catch(IllegalArgumentException ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport - 4: \" + ex.toString());\n\t\t} catch(Exception ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport 5: \" + ex.toString());\n\t\t} finally {\n\t\t\tconnectionPool.freeConnection(conn,\"ReportGeneric\",reportUser);\n\n\t\t\ttry{\n\t\t\t\tif (conn != null){\n\t\t\t\t\tconn.close();\n\t\t\t\t\tconn = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tlogger.fatal(\"Tables: campusOutlines - \" + e.toString());\n\t\t\t}\n\n\t\t\taseUtil = null;\n\t\t\twebsite = null;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tList<String> productionIssues = AllTestMethodNames.getTestSuiteProductionIssuesMethods(product);\n\t\tList<String> obsolete = AllTestMethodNames.getTestSuiteObsoleteMethods(product);\n\t\tproductionIssues.addAll(obsolete);\n\t\tList<String> productionIssuesAndObsoleteTestCases = productionIssues;\n\n\t\tList<String> logNew;\n\t\tList<String> logOld;\n\t\tLogAnalyzer tool;\n\n\t\tinitializeToolPaths();\n\t\tlogNew = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_NEW);\n\t\tlogOld = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_OLD);\n\t\ttool = new LogAnalyzer(logNew);\n\t\tcreateFullReport(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were started during an automation run but never finished\n\t\t// createXMLWithUnfinishedTestCases(tool, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were not started at all because for instance test run failed before finishing. (eg Java Heap)\n\t\t// Place log contents of complete full recent run into C:\\Automation_artifacts\\LogAnalyzer\\LogAnalyzer-LogOld.log\n\t\t// createXMLWithTestCasesThatNeverStartedFromLog(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// Change to which group test cases belong to.\n\t\t// Options below will add additional group to the @Test(groups = {\"\"}) the test cases belong to or if non exist then it will add a new one. This will make the change in the\n\t\t// source code.\n\t\t// In the test case file each test case is separated by a new line, 2 test case file would be ex:\n\t\t// c158643\n\t\t// c256486\n\t\t// Uncomment the option you want below. Place testCaseList.txt file containing test cases needing update in C:\\Automation_artifacts\\LogAnalyzer\\ directory.\n\t\t// Update the product variable value above if its different than cpm\n\n\t\t// AllTestMethodNames.addTestCaseToObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",product);\n\t\t// AllTestMethodNames.addTestCaseToCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", \"EnterCustomGroupNameHere\", product); // enter your custom group name as the 2nd parameter.\n\n\t\t// Remove to which group test cases belong to.\n\t\t// AllTestMethodNames.removeTestCaseFromObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",\"EnterCustomGroupNameHere\", product ); // enter your custom group name as the 2nd parameter.\n\n\t}", "private void createExecutableFile() throws IOException {\r\n //if (report.getErrorList() == null)\r\n //{\r\n System.out.println(\"Currently generating the executable file.....\");\r\n executableFile = new File(sourceName + \".lst\");\r\n // if creating the lst file is successful, then you can start to write in the lst file\r\n executableFile.delete();\r\n if (executableFile.createNewFile()) {\r\n writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(sourceName + \".asm\"), \"utf-8\")); //create an object to write into the lst file\r\n\r\n String [] hex = generate.split(\" \");\r\n\r\n for (int index = 0; index < hex.length; index++) {\r\n String hex1 = hex[index].trim();\r\n System.out.println(hex1);\r\n\r\n int i = Integer.parseInt(hex1, 16);\r\n String bin = Integer.toBinaryString(i);\r\n System.out.println(bin);\r\n\r\n writer.write(bin); // once the instruction is converted to binary it is written into the exe file\r\n }\r\n\r\n writer.close();\r\n\r\n }\r\n }", "public void printReport(AhpModel model, double criticalCr, String fileName) {\n this.criticalCr = criticalCr;\n\n //create reportContent object by transforming the model data with the ReportContentBuilder \n ReportContentBuilder reportContentBuilder = new ReportContentBuilder();\n ReportContent reportContent = reportContentBuilder\n .getReportContentFromAhpModel(model);\n \n //create template and export it \n createTemplate(reportContent, fileName);\n\n //launch the exported file (with an installed PDF reader)\n Program.launch(fileName);\n\n }", "public String generateReport() {\n throw new UnsupportedOperationException(\"ERROR: generateReport() Not yet implemented.\");\n }", "@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }", "public static void main(String[] args)\r\n {\r\n try\r\n {\r\n DBList part3 = new DBList();\r\n if (args.length == 0)\r\n {\r\n System.out.println(\"File name expected as command line argument.\");\r\n System.out.println(\"Program ending.\");\r\n }\r\n else\r\n {\r\n part3.readFile(args[0]);\r\n System.out.print(part3.generateReport()\r\n + part3.generateReportByName()\r\n + part3.generateReportByMonthlyCost()\r\n + part3.generateInvalidRecordsReport());\r\n }\r\n }\r\n catch (FileNotFoundException file)\r\n {\r\n String err = \"*** Attempted to read file: \" + args[0];\r\n err += \" (No such file or directory)\";\r\n err += \"\\n\";\r\n System.out.print(err);\r\n }\r\n }", "public void generarReporteLiquidacionImpuestoImpors(String sAccionBusqueda,List<LiquidacionImpuestoImpor> liquidacionimpuestoimporsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImporMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"LiquidacionImpuestoImporMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Liquidacion Impuesto Impores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", LiquidacionImpuestoImporConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleLiquidacionImpuestoImpor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tLiquidacionImpuestoImporLogic liquidacionimpuestoimporLogicAuxiliar=new LiquidacionImpuestoImporLogic();\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.setDatosCliente(liquidacionimpuestoimporLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.setLiquidacionImpuestoImpors(liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.cargarRelacionesLoteForeignKeyLiquidacionImpuestoImporWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporsParaReportes=liquidacionimpuestoimporLogicAuxiliar.getLiquidacionImpuestoImpors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (LiquidacionImpuestoImpor liquidacionimpuestoimpor:liquidacionimpuestoimporsParaReportes) {\r\n\t\t\t\t\t//\tliquidacionimpuestoimporLogic.deepLoad(liquidacionimpuestoimpor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleLiquidacionImpuestoImpor = AuxiliarReportes.class.getResourceAsStream(\"DetalleLiquidacionImpuestoImporDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleliquidacionimpuestoimpor\", reportFileDetalleLiquidacionImpuestoImpor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceLiquidacionImpuestoImpor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tLiquidacionImpuestoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tLiquidacionImpuestoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceLiquidacionImpuestoImpor=new JRBeanArrayDataSource(LiquidacionImpuestoImporJInternalFrame.TraerLiquidacionImpuestoImporBeans(liquidacionimpuestoimporsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceLiquidacionImpuestoImpor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+LiquidacionImpuestoImporConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+LiquidacionImpuestoImporConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(LiquidacionImpuestoImporBean.TraerLiquidacionImpuestoImporBeans(liquidacionimpuestoimporsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoLiquidacionImpuestoImporActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void crearReporte() {\r\n\t\tJFileChooser chooser = new JFileChooser(\"reporte.doc\");\r\n\t\tchooser.addChoosableFileFilter(new FileFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic String getDescription() {\r\n\t\t\t\treturn \"*.doc\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File f) {\r\n\t\t\t\t if (f.isDirectory())\r\n\t\t {\r\n\t\t return false;\r\n\t\t }\r\n\r\n\t\t String s = f.getName();\r\n\r\n\t\t return s.endsWith(\".doc\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tint res = chooser.showSaveDialog(this);\r\n\t\tif(res == JFileChooser.APPROVE_OPTION)\r\n\t\t{\r\n\t\t\tFile file = chooser.getSelectedFile();\r\n\t\t\t\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tJava2Word word = new Java2Word(this, file);\r\n\t\t}\r\n\t\t\r\n\t}", "protected void generarReporte(String fileNameOut){\n LinkedList datos;\n LinkedList listaHojas;\n frmHoja tmpSheet;\n Clases.Dato tmpDato;\n int numRows = 0;\n int numCols = 0;\n try{\n sw = new FileWriter(fileNameOut,true);\n //obtener lista de hojas desde el workplace\n listaHojas = wp.getListaHojas();\n\n //escribir encabezado de HTML a stream\n sw.write(\"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01 Transitional//EN\\\">\\n\");\n sw.write(\"<html>\\n<head>\\n<meta content=\\\"text/html; charset=ISO-8859-1\\\" http-equiv=\\\"content-type\\\">\\n\");\n sw.write(\"<title>JExcel</title>\\n\");\n sw.write(\"</head>\\n<body>\\n\");\n sw.write(\"<big><span style=\\\"font-weight: bold;\\\">Hoja generada por JExcel</span></big><br>\\n\");\n sw.write(\"<small>Universidad Mariano Gálvez de Guatemala</small><br>\\n<br>\\n\");\n sw.write(\"<small>Extensión Morales Izabal</small><br>\\n<br>\\n\");\n sw.write(\"<small>(C) Amy C. Leiva - 4890-15-</small><br>\\n<br>\\n\");\n // Iterar sobre cada hoja en listaSheets\n for (int i = 0; i < listaHojas.size();i++){\n // obtener maximo numero de datos\n tmpSheet = (frmHoja) listaHojas.get(i);\n\n numRows = tmpSheet.getHoja().getRowCount();\n numCols = tmpSheet.getHoja().getColumnCount();\n sw.write(\"<table style=\\\"text-align: left; width: 100%;\\\" border=\\\"1\\\" cellpadding=\\\"2\\\" cellspacing=\\\"2\\\">\\n\");\n sw.write(\"<tbody>\\n\");\n sw.write(\" <tr> <td colspan=\\\"4\\\" rowspan=\\\"1\\\"><big><span style=\\\"font-weight: bold;\\\">\");\n sw.write(\"Nombre de la Hoja: \" + tmpSheet.getId());\n sw.write(\"</span></big></td>\\n</tr>\\n\");\n sw.write(\" <tr><td>Fila</td><td>Columna</td><td>Expresi&oacute;n</td> <td>Valor Num&eacute;rico</td> </tr>\\n\");\n // obtener lista de datos desde matriz\n if( tmpSheet.getHoja().getTabla().estaVacia() == false){ // si la tabla tiene datos\n datos = tmpSheet.getHoja().getTabla().getSubset(1,1,numCols,numRows);\n //escribir tabla con datos generados\n for (int j = 0; j < datos.size();j++){\n tmpDato = (Clases.Dato) datos.get(j); \n sw.write(\"<tr>\\n\");\n sw.write(\"<td>\" + tmpDato.getRow() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getCol() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getExpr() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.eval() + \"</td>\\n\");\n sw.write(\"</tr>\\n\");\n }\n }\n else{\n sw.write(\"<tr><td colspan=\\\"4\\\" rowspan=\\\"1\\\"> Hoja Vacia... </td></tr>\");\n }\n sw.write(\" </tbody></table>\\n<br><br><br>\");\n // sw.write();\n // sw.write();\n }\n //escribir fin de datos\n sw.write(\"</body></html>\");\n //escribir a archivo de salida\n sw.close();\n }\n catch(Exception e){\n System.out.println(\"No se pudo guardar archivo:\" + e);\n }\n \n }", "public void makeReport()\n\t{\n\t\tif (currentStage[currentSlice-1] > 1)\n\t\t{\n\t\t\tResultsTable rt = new ResultsTable();\n\t\t\tfor (int j=0;j<popSequence.N;j++)\n\t\t\t{\n\t\t\t\tpop = popSequence.PopList[j];\n\t\t\t\tint N = pop.N;\n\t\t\t\tfor (int i=0;i<N;i++)\n\t\t\t\t{\n\t\t\t\t\trt.incrementCounter();\n\t\t\t\t\tBalloon bal;\n\t\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\t\tbal.mass_geometry();\n\t\t\t\t\trt.addValue(\"X\",bal.x0);\n\t\t\t\t\trt.addValue(\"Y\",bal.y0);\n\t\t\t\t\trt.addValue(\"Z\",j);\n\t\t\t\t\trt.addValue(\"ID\",bal.id);\n\t\t\t\t\trt.addValue(\"AREA\",bal.area);\n\t\t\t\t\trt.addValue(\"Ixx\",bal.Ixx);\n\t\t\t\t\trt.addValue(\"Iyy\",bal.Iyy);\n\t\t\t\t\trt.addValue(\"Ixy\",bal.Ixy);\n\t\t\t\t\trt.addValue(\"Lx\",bal.lx);\n\t\t\t\t\trt.addValue(\"Ly\",bal.ly);\n\t\t\t\t}\n\t\t\t}\n\t\t\trt.show(\"Report\");\n\t\t\tcurrentSlice = i1.getCurrentSlice();\n\t\t\tipWallSegment = (i1.getStack()).getProcessor(i1.getCurrentSlice());\n\t\t\tpop = popSequence.PopList[currentSlice-1];\n\t\t}\n\t}", "public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(EMPLOYEE_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (EmployeeDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\t// log.debug(\"Writing transaction record for Employee id :\"+\n\t\t\t\t\t\t// transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getEmpId());\n\t\t\t\t\t\trecord.add(transaction.getName());\n\t\t\t\t\t\trecord.add(transaction.getDesignation());\n\t\t\t\t\t\trecord.add(transaction.getManagerName());\n\t\t\t\t\t\trecord.add(transaction.getProjectName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getActive());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public void execute() throws BuildException {\n super.execute();\n\n // minimal Renew logging configuration that forwards messages\n // to the Ant logging system\n Logger logger = Logger.getLogger(\"CH.ifa.draw\");\n AntTaskLogAppender appender = AntTaskLogAppender.getInstance(this);\n logger.addAppender(appender);\n logger.setLevel(Level.INFO);\n logger = Logger.getLogger(\"de.renew\");\n logger.addAppender(appender);\n logger.setLevel(Level.INFO);\n\n // get all files - out of the vector full of filesets -> 2 loops\n Iterator<FileSet> filesetIterator = filesets.iterator();\n while (filesetIterator.hasNext()) {\n FileSet elementFileSet = filesetIterator.next();\n DirectoryScanner dirScan = elementFileSet.getDirectoryScanner(getProject());\n String[] fileNames = dirScan.getIncludedFiles();\n log(\"filenames: \" + fileNames.length, Project.MSG_VERBOSE);\n\n for (int i = 0; i < fileNames.length; i++) {\n String fileName = fileNames[i];\n File inFile = new File(dirScan.getBasedir() + \"/\" + fileName);\n log(\"File: \" + inFile.getAbsolutePath(), Project.MSG_VERBOSE);\n\n // get drawing from file\n Drawing netDrawing = DrawingFileHelper.loadDrawing(inFile,\n new StatusDisplayer() {\n public void showStatus(String message) {\n log(message);\n }\n }); //rnw-Object\n log(\"Drawing: \" + netDrawing, Project.MSG_VERBOSE);\n\n if (netDrawing == null) {\n throw new BuildException(\"Could not read drawing file: \"\n + inFile);\n }\n\n // Export netDrawing\n try {\n File helpFile = new File(destdir + \"/\" + fileName); // helps to get the right directory path\n File outFile = new File(helpFile.getParent() + \"/\"\n + netDrawing.getName() + \".\"\n + defaultExtension);\n\n //create directories\n outFile.getParentFile().mkdirs();\n exportFormat.export(netDrawing, outFile);\n } catch (Exception e) {\n throw new BuildException(e);\n }\n }\n }\n }", "@Test\n public void testWizardReport() {\n testReporterConfig(Reporter.ALL_2017_4_24, \"WizardReport.txt\");\n }", "public static JasperReportBuilder generateReport(ExportData metaData,HttpServletRequest request){\n session = request.getSession(false);\n report = report(); // Creer le rapport\n \n //Logo\n// logoImg = cmp.image(inImg).setStyle(DynamicReports.stl.style().setHorizontalAlignment(HorizontalAlignment.LEFT)); \n //logoImg.setDimension(80,80); \n \n //Definit le style des colonnes d'entàte\n report.setColumnTitleStyle(getHeaderStyle(metaData));\n \n \n \n LinkedHashMap <String,String> criteria = metaData.getCriteria(); \n //Ajout la date d'àdition au critere d'impression\n String valDateProperty = getDateTxt(metaData.getLang()) ;\n String keyDateProperty = \"\" ;\n if ( session.getAttribute(\"activedLocale\").equals(\"fr\") ) {\n keyDateProperty = \"Edité le \" ;\n }\n else {\n keyDateProperty = \"Printed on \" ;\n }\n criteria.put(keyDateProperty,valDateProperty);\n \n StyleBuilder titleStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0)).setHorizontalAlignment(HorizontalAlignment.RIGHT).setRightIndent(20);\n ComponentBuilder<?, ?> logoComponent = cmp.horizontalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 50).setStyle(stl.style().setLeftIndent(20)),\n cmp.verticalList(\n cmp.text(metaData.getTitle()).setStyle(titleStyle)\n )\n ).newRow()\n .add(cmp.horizontalList().add(cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()))\n .newRow(); \n \n report.noData(logoComponent, cmp.text(\"Aucun enregistrement trouvà\").setStyle(stl.style().setHorizontalAlignment(HorizontalAlignment.CENTER).setTopPadding(30)));\n\n \n \n lblStyle = stl.style(Templates.columnStyle).setForegroundColor(new Color(60, 91, 31)); // Couleur du text \n colStyle = stl.style(Templates.columnStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n \n groupStyle = stl.style().setForegroundColor(new Color(60, 91, 31)) \n .setBold(Boolean.TRUE)\n .setPadding(5)\n .setFontSize(13)\n .setHorizontalAlignment(HorizontalAlignment.CENTER); \n \n\n \n if(metaData.getTitle().equals(ITitle.PARCEL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PARCEL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ATTACK_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BUDGET)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }\n \n \n drColumns = new HashMap<String, TextColumnBuilder>(); \n groups = new ArrayList<String>();\n subtotals = new ArrayList<String>();\n \n //Definit la liste des colonnes du rapport\n ExportGenerator.getColumns(metaData); \n //Definit la liste des sous-totaux du rapport\n ExportGenerator.getSubTotals(metaData);\n \n \n //Genration des sous totaux\n for (String group : groups) {\n ColumnGroupBuilder group2 = grp.group(drColumns.get(group));\n report.groupBy(group2);\n for (String subtotal : subtotals) {\n report.subtotalsAtGroupFooter(group2,sbt.sum(drColumns.get(subtotal)));\n }\n }\n\n for (String subtotal : subtotals) {\n report.subtotalsAtSummary(sbt.sum(drColumns.get(subtotal))); \n }\n \n /*if(ExportGenerator.getColumnByNameField(\"plantingName\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"plantingName\"), Calculation.NOTHING));\n }*//*else if(ExportGenerator.getColumnByNameField(\"invoiceCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"invoiceCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"planterCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL\"), ExportGenerator.getColumnByNameField(\"planterCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"transportTicket\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"transportTicket\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"deliveryDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"deliveryDate\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"planterNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"planterNumber\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"startPaymentDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"startPaymentDate\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"sectorCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"sectorCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"month\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"month\"), Calculation.NOTHING));\n }*/\n \n\n \n \n //Genere la source de donnàes du rapport\n report.setDataSource(metaData.getData());\n \n report.highlightDetailEvenRows(); \n \n \n // Definition de l'entete : valable uniquement pour la 1ere page\n HorizontalListBuilder hlb= null;\n \n hlb = cmp.horizontalList().add(\n cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()\n );\n\n \n report.title(\n createCustomTitleComponent(metaData.getTitle()), // Titre\n hlb,// Liste Horizontal des Critàres \n cmp.verticalGap(12) // Marge de 12 px entre chaque critàre\n ); \n \n \n \n report.setPageMargin(DynamicReports.margin().setLeft(15).setTop(30).setRight(15).setBottom(30));\n report.setPageFormat(PageType.A3, PageOrientation.LANDSCAPE);\n report.pageFooter(DynamicReports.cmp.pageXslashY());\n return report;\n \n }", "@Test\n\tpublic void generateBatchReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t//Generate Batch report\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Batch Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\t\t\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}", "protected void doRun() {\n\n\t\tFile dirFile = null;\n\t\ttry {\n\t\t\tdirFile = new File(exportConfig.getDataFileFolder() + File.separator + \"ddl\");\n\t\t\tif (!dirFile.exists()) {\n\t\t\t\tdirFile.mkdir();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"create schema dir error : \", e);\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tString schemaFile = null;\n\t\t\tString indexFile = null;\n\t\t\tString triggerFile = null;\n\t\t\tif (exportConfig.isExportSchema()) {\n\t\t\t\tschemaFile = dirFile + File.separator + \"schema.sql\";\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataBeginOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SCHEMA));\n\t\t\t}\n\t\t\tif (exportConfig.isExportIndex()) {\n\t\t\t\tindexFile = dirFile + File.separator + \"index.sql\";\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataBeginOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_INDEX));\n\t\t\t}\n\t\t\tif (exportConfig.isExportTrigger()) {\n\t\t\t\ttriggerFile = dirFile + File.separator + \"trigger.sql\";\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataBeginOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_TRIGGER));\n\t\t\t}\n\n\t\t\tSet<String> tableSet = new HashSet<String>();\n\t\t\ttableSet.addAll(exportConfig.getTableNameList());\n\t\t\tExprotToOBSHandler.exportSchemaToOBSFile(dbInfo, exportDataEventHandler, tableSet,\n\t\t\t\t\tschemaFile, indexFile, triggerFile, exportConfig.getFileCharset(),\n\t\t\t\t\texportConfig.isExportSerialStartValue(), false);\n\n\t\t\tif (exportConfig.isExportSchema()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataSuccessEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SCHEMA));\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFinishOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SCHEMA));\n\t\t\t}\n\t\t\tif (exportConfig.isExportIndex()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataSuccessEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_INDEX));\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFinishOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_INDEX));\n\t\t\t}\n\t\t\tif (exportConfig.isExportTrigger()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataSuccessEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_TRIGGER));\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFinishOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_TRIGGER));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tif (exportConfig.isExportSchema()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFailedOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SCHEMA));\n\t\t\t}\n\t\t\tif (exportConfig.isExportIndex()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFailedOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_INDEX));\n\t\t\t}\n\t\t\tif (exportConfig.isExportTrigger()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFailedOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_TRIGGER));\n\t\t\t}\n\t\t\tLOGGER.error(\"create schema index trigger error : \", e);\n\t\t}\n\n\t\ttry {\n\t\t\tif (exportConfig.isExportSerial()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataBeginOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SERIAL));\n\t\t\t\tString serialFile = dirFile + File.separator + \"serial.sql\";\n\t\t\t\texportSerial(serialFile);\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataSuccessEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SERIAL));\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFinishOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SERIAL));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\texportDataEventHandler.handleEvent(new ExportDataFailedOneTableEvent(\n\t\t\t\t\tExportConfig.TASK_NAME_SERIAL));\n\t\t\tLOGGER.error(\"create serial.sql error : \", e);\n\t\t}\n\n\t\ttry {\n\t\t\tif (exportConfig.isExportView()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataBeginOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_VIEW));\n\t\t\t\tString viewFile = dirFile + File.separator + \"view.sql\";\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataSuccessEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_VIEW));\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFinishOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_VIEW));\n\t\t\t\texportView(viewFile);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\texportDataEventHandler.handleEvent(new ExportDataFailedOneTableEvent(\n\t\t\t\t\tExportConfig.TASK_NAME_VIEW));\n\t\t\tLOGGER.error(\"create view.sql error : \", e);\n\t\t}\n\t}", "public void execute() throws MojoExecutionException {\n CodeGeneratorLoggerFactory.setLogger(getLog());\n\n // iff baseFolder is null or empty, reset it to the default value\n baseFolder = StringUtils.defaultIfEmpty(baseFolder, \"GUIData\");\n\n // create the helper with our config\n CodeGeneratorHelper helper = new CodeGeneratorHelper(toCodeGeneratorConfig());\n\n if (CodeGeneratorLoggerFactory.getLogger().isDebugEnabled()) {\n helper.displayProjectInformation();\n }\n\n // register all custom element classes\n helper.registerCustomElements();\n\n // create the generated page details file\n helper.createSeLionPageDetailsFile();\n\n // process the files.\n helper.processFiles();\n }" ]
[ "0.65565366", "0.6456988", "0.64524806", "0.6417472", "0.6413467", "0.6360076", "0.6359576", "0.6356748", "0.6303903", "0.62449193", "0.62433857", "0.6228382", "0.6213253", "0.61986023", "0.6186087", "0.61757827", "0.61691016", "0.616094", "0.6156977", "0.6148381", "0.61362207", "0.6108644", "0.6069075", "0.60656965", "0.6056914", "0.6052149", "0.6048207", "0.60457253", "0.6043684", "0.6028131", "0.60073584", "0.60027754", "0.59857726", "0.59766924", "0.597328", "0.5973237", "0.59688324", "0.595328", "0.5949321", "0.5939326", "0.59307104", "0.59", "0.58970183", "0.58757704", "0.58732116", "0.58658314", "0.58573353", "0.58325255", "0.58300734", "0.58273923", "0.58205616", "0.5819501", "0.5807148", "0.57963556", "0.57933134", "0.5791147", "0.5790013", "0.57823837", "0.5772265", "0.57717425", "0.576756", "0.576591", "0.5765799", "0.5757791", "0.5754066", "0.57491", "0.57201284", "0.5710045", "0.56947047", "0.5667779", "0.5667182", "0.565023", "0.5647512", "0.5631821", "0.56310546", "0.56124675", "0.5605976", "0.56016237", "0.55974925", "0.5595954", "0.55880606", "0.55777687", "0.55749154", "0.55743194", "0.5557285", "0.55486214", "0.5541235", "0.55379593", "0.55330634", "0.55324495", "0.5528638", "0.5527857", "0.5526665", "0.5519127", "0.55188346", "0.5517481", "0.5508049", "0.5501607", "0.55005676", "0.55002075", "0.5494447" ]
0.0
-1
Listener de teclado para el dialogo de peticion de datos.
public void keyReleased(KeyEvent e) { if(e.getKeyCode() == KeyEvent.VK_ENTER) verBtn.doClick(); if(e.getKeyCode() == KeyEvent.VK_ESCAPE) cancelarBtn.doClick(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). ConsultOuvrage() ;}", "private Listener btn_Ok_Clicked() {\n\t\treturn new Listener() {\r\n\t\t\tpublic void handleEvent(Event event) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon = DriverManager.getConnection(conn1.url,\r\n\t\t\t\t\t\t\tconn1.getUsername(), conn1.getPassword());\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstmt = con.createStatement();\r\n\t\t\t\t\tString query = \"INSERT INTO SINHVIEN (IDSINHVIEN,TENSINHVIEN,NGAYSINH,DIACHI,STATUS,IDLOP,DATEJOIN,DATEEND) \"\r\n\t\t\t\t\t\t\t+ \"VALUES ('\"\r\n\t\t\t\t\t\t\t+ idsv\r\n\t\t\t\t\t\t\t+ \"','\"\r\n\t\t\t\t\t\t\t+ tensv\r\n\t\t\t\t\t\t\t+ \"',to_date('\"\r\n\t\t\t\t\t\t\t+ ngaysinh\r\n\t\t\t\t\t\t\t+ \"','YYYY/MM/DD'),'\"\r\n\t\t\t\t\t\t\t+ diachi\r\n\t\t\t\t\t\t\t+ \"','\"\r\n\t\t\t\t\t\t\t+ status\r\n\t\t\t\t\t\t\t+ \"','\"\r\n\t\t\t\t\t\t\t+ idLop\r\n\t\t\t\t\t\t\t+ \"','\"\r\n\t\t\t\t\t\t\t+ datejoin + \"','\" + dateend + \"')\";\r\n\t\t\t\t\tstmt.executeUpdate(query);\r\n\t\t\t\t\tMessageBox m = new MessageBox(shell);\r\n\t\t\t\t\tm.open();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} finally {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tstmt.close();\r\n\t\t\t\t\t\tcon.close();\r\n\r\n\t\t\t\t\t} catch (SQLException 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}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public interface NewProjectDialogListener {\n void onDialogOK(Bundle myData);\n void onDialogCancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which){\n guardarEmpleado();\n }", "@FXML\n public final void buttonListener() {\n final String str = GameContext.instance().toStringUniverse();\n Dialogs.create()\n .title(\"Planet list\")\n .message(str)\n .showInformation();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n predata();\n }", "public void eventos()\n\t{\n\t\tvuelos.addActionListener(new ActionListener()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\t\t\tif(v!=null)\n\t\t\t\t{\n\t\t\t\t\tllenarPasabordos(v.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (_dataSource.size() == 0) {\n\t\t\t\t\tToast.makeText(getActivity(), \"Bạn phải chọn sản phẩm trước khi xác nhận\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t} else {\n\t\t\t\t\tAlertDialog.Builder b = new AlertDialog.Builder(getActivity());\n\t\t\t\t\tb.setMessage(\"Bạn chắc chắn muốn xác nhận đơn đặt hàng?\");\n\t\t\t\t\tb.setPositiveButton(\"Có\", new DialogInterface.OnClickListener() {\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\tsaveToServer();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tb.setNegativeButton(\"Không\", new DialogInterface.OnClickListener() {\n\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}\n\t\t\t\t\t});\n\t\t\t\t\tb.create().show();\n\t\t\t\t}\n\t\t\t}", "public interface DeleteDataEntryDialogListener {\n\n /**\n * Handles a DeleteDataEntryDialog positive click.\n *\n * @param dialog Represents the DeleteDataEntryDialog.\n */\n void onDeleteDataEntryDialogPositiveClick(DeleteDataEntryDialog dialog);\n\n /**\n * Handles a DeleteDataEntryDialog negative click.\n *\n * @param dialog Represents the DeleteDataEntryDialog.\n */\n void onDeleteDataEntryDialogNegativeClick(DeleteDataEntryDialog dialog);\n }", "@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusActivo());\n\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}", "public interface CustomVaDialogListener extends Serializable {\n void onOkClicked(String input);\n\n void onCancelClicked();\n}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n int a = myBooksDb.daoLivrosLidos().idLivros(livro);\n //deleta o livroler que foi pedido.\n myBooksDb.daoLivrosLidos().deletar(myBooksDb.daoLivrosLidos().pegarLivroLidos(a));\n //insere o livro\n myBooksDb.daoLivroLer().inserir(livrol);\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n int a = myBooksDb.daoLivroLer().idLivros(livro);\n //deleta o livroler que foi pedido.\n myBooksDb.daoLivroLer().deletar(myBooksDb.daoLivroLer().pegarLivroLer(a));\n //insere o livro\n myBooksDb.daoLivrosLidos().inserir(livrol);\n\n\n }", "public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisible(true);\n }", "public void dialogoEditarUsuario() {\n vEditarUsuario = new V_EditarUsuario(new JFrame(), true);\n vEditarUsuario.setVisible(true);\n }", "public interface DialogListener {\n\n /**\n * Called when a dialog completes.\n *\n * Executed by the thread that initiated the dialog.\n *\n * @param values\n * Key-value string pairs extracted from the response.\n */\n public void onComplete(Bundle values);\n\n \n /**\n * Called when a dialog is canceled by the user.\n *\n * Executed by the thread that initiated the dialog.\n *\n */\n public void onCancel();\n}", "public interface Listener extends Serializable {\n void onClose(CheckboxConfirmDialog dialog);\n }", "public void verificaAlteracao() {\r\n if (produto != null) {\r\n dialog.getTfNome().setText(produto.getNome());\r\n dialog.getTfCodigoBarra().setText(produto.getCodigoBarra());\r\n dialog.getTfPrecoCompra().setText(produto.getPrecoCompra().toString());\r\n dialog.getTfPrecoVenda().setText(produto.getPrecoVenda().toString());\r\n dialog.getCbCategoria().setSelectedItem(produto.getCategoriaId());\r\n dialog.getCbFornecedor().setSelectedItem(produto.getFornecedorId());\r\n }\r\n }", "public void onClick(DialogInterface dialogBox, int id) {\n map.put(\"status\", \"Đang sửa chữa\");\n map.put(\"message\", userInputDialogEditText.getText().toString());\n map.put(\"time\", DateFormat.getDateTimeInstance().format(new Date()));\n reference1.push().setValue(map);\n }", "public void controlloEventiInserimento() {\n\t\t/**\n\t\t * Riempimento form informativo riguardo\n\t\t * all'ultima quota inserita per un determinato\n\t\t * tipo di socio\n\t\t */ \n\t\tviewInserimento.getCmbbxTipologia().addItemListener(new ItemListener() {\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif (viewInserimento.getCmbbxTipologia().getSelectedIndex() != -1) {\n\t\t\t\t\tquotapre = model.getQuotaPrecendente(viewInserimento.getCmbbxTipologia()\n\t\t\t\t\t\t\t.getItemAt(viewInserimento.getCmbbxTipologia().getSelectedIndex()));\n\t\t\t\t\tif (quotapre != null) {\n\t\t\t\t\t\tviewInserimento.getTxtFieldDataIPre().setText(quotapre.getDataI().toString());\n\t\t\t\t\t\tviewInserimento.getTxtFieldValorePre().setText(String.valueOf(quotapre.getValore()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (viewInserimento.getCmbbxTipologia().getSelectedIndex() == -1 || quotapre == null) {\n\t\t\t\t\tviewInserimento.getTxtFieldDataIPre().setText(\"\");\n\t\t\t\t\tviewInserimento.getTxtFieldValorePre().setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Evento inserimento quota \n\t\t */\n\t\tviewInserimento.getBtnInserisci().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (validatorForm()) {\n\t\t\t\t\tboolean esito = false;\n\t\t\t\t\tQuota quota = null;\n\t\t\t\t\tquota = new Quota(Float.valueOf(viewInserimento.getTxtFieldValore().getText()).floatValue(),\n\t\t\t\t\t\t\tviewInserimento.getCmbbxTipologia().getSelectedItem().toString(),\n\t\t\t\t\t\t\tDate.valueOf(viewInserimento.getTxtFieldDataI().getText() + \"-01\"));\n\t\t\t\t\tesito = model.insertQuota(quota);\n\t\t\t\t\tif (esito) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(viewInserimento.getFrame().getContentPane(), \"Quota inserita\");\n\t\t\t\t\t\tazzeraInsertForm();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(viewInserimento.getFrame().getContentPane(),\n\t\t\t\t\t\t\t\t\"Inserimento non effettuato\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(viewInserimento.getFrame().getContentPane(),\n\t\t\t\t\t\t\t\"Campi non validi, modificare i campi contrassegnati in rosso\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Evento azzeramento form \n\t\t */\n\t\tviewInserimento.getBtnAzzera().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tazzeraInsertForm();\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Evento ritorno all'AdminView \n\t\t */\n\t\tviewInserimento.getBtnDashboard().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tAdminController adminController = new AdminController();\n\t\t\t\tadminController.controlloEvento();\n\t\t\t\tviewInserimento.getFrame().dispose();\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n\t\t//\t\t\t\tEL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t\tif (sTransaccion.validarAnalistaEnRequerimientos(analista)){\n//\t\t\t\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n//\t\t\t\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n//\t\t\t\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n//\t\t\t\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n//\t\t\t\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n//\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t\t\t\tmostrarMensaje(\"Informacion\", \"No se Puede eliminar el analista, esta asignado a un requerimiento que esta activo\", Messagebox.EXCLAMATION, null, null, null);\n//\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}", "public interface OnDialogListener {\n void onPositiveListener();\n void onNegativeListener();\n }", "private void chegada() {\n Pessoa pessoa = tablePessoa.getSelectionModel().getSelectedItem();\n if(pessoa==null){\n pessoa=tablePessoa.getItems().get(0);\n \n }\n// if(pessoa!=null){\n Chegada chegada = new Chegada(\n pessoa.getRg(),\n pessoa.getNome(),\n pessoa.getSegundoNome(),\n pessoa.getTelefone(),\n pessoa.getSexo(),\n HoraChegada,\n pessoa.getData()\n \n );\n \n// }\n mainApp.getPersonData2().add(chegada);\n \n }", "@Override\r\n\t\t\t\tpublic void onResponseReceived(Request request,\r\n\t\t\t\t\t\tResponse response) {\n\r\n\t\t\t\t\tList<XMLFizikselSinifTanimlari> listXmlFizikselSinifTanimlari = XMLFizikselSinifTanimlari.XML\r\n\t\t\t\t\t\t\t.readList(response.getText());\r\n\r\n\t\t\t\t\t_dlgFizikselSinifTanimlari = new DlgFizikselSinifTanimlari(\r\n\t\t\t\t\t\t\tfalse, new Long(id).longValue());\r\n\t\t\t\t\t_dlgFizikselSinifTanimlari\r\n\t\t\t\t\t\t\t.putDataFromXML(listXmlFizikselSinifTanimlari\r\n\t\t\t\t\t\t\t\t\t.get(0));\r\n\t\t\t\t\t_dlgFizikselSinifTanimlari.setAnimationEnabled(true);\r\n\t\t\t\t\t_dlgFizikselSinifTanimlari.center();\r\n\r\n\t\t\t\t\t_dlgFizikselSinifTanimlari\r\n\t\t\t\t\t\t\t.addCloseHandler(new CloseHandler<PopupPanel>() {\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onClose(CloseEvent<PopupPanel> event) {\r\n\r\n\t\t\t\t\t\t\t\t\tputDataToGrid();\r\n\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}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n long result = apodDataSource.saveApod(modelApod);\n if(result != -1) {\n Toast.makeText(getActivity(), getString(R.string.fragments_msgSuccessfullyAdded),\n Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\t\t\tpublic void onEntrada(Object entrada, View view) {\n\t\t\t\t\tif (entrada != null) \n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtDNI1 = (TextView) view.findViewById(R.id.textViewDNI);\n\t\t\t\t\t\tTxtDNI1.setText(((Lista_entrada_ControlAcceso) entrada).get_IdFuncionario()); \n\n\t\t\t\t\t\tTextView TxtPlaca1 = (TextView) view.findViewById(R.id.textView_Placa);\n\t\t\t\t\t\tTxtPlaca1.setText(((Lista_entrada_ControlAcceso) entrada).get_Patente()); \n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtCod1 = (TextView) view.findViewById(R.id.textView_Cod); \n\t\t\t\t\t\tTxtCod1.setText(((Lista_entrada_ControlAcceso) entrada).get_CodError());\n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtFecha1= (TextView) view.findViewById(R.id.textView_Fecha); \n\t\t\t\t\t\tTxtFecha1.setText(((Lista_entrada_ControlAcceso) entrada).get_Fecha());\n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtHora1 = (TextView) view.findViewById(R.id.textView_Nivel); \n\t\t\t\t\t\tTxtHora1.setText(((Lista_entrada_ControlAcceso) entrada).get_Hora());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Toast.makeText(mContext,cadenaNueva, Toast.LENGTH_LONG).show();\n\n\t\t\t\t\t}\n\t\t\t\t}", "public void onComidaSelected(int comidaId);", "private void helperAcceptButtonListener() {\n refresh();\n editDialog.dispose();\n }", "private void inizia() throws Exception {\n\n try { // prova ad eseguire il codice\n\n /* questo dialogo non e' modale */\n this.getDialogo().setModal(false);\n\n this.setTitolo(TITOLO_DIALOGO);\n this.addBottoneStampa();\n this.addBottoneChiudi();\n\n /* crea il modulo con db in memoria */\n this.creaModuloMem();\n\n /* crea i pannelli del dialogo */\n this.creaPannelli();\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public DatosInvitado() {\n\t\tsuper(MensajesVentanas.ventanaActiva);\n\t\tinitialize();\n\n\t\tjButtonAceptar.addActionListener(this);\n\t\tjButtonAceptar.addKeyListener(this);\n\t\tjButtonCancelar.addActionListener(this);\n\t\tjButtonCancelar.addKeyListener(this);\n\t\tjTextField.addKeyListener(this);\n\t\tjTextPane.addKeyListener(this);\n\t\t\n\t\tif(CR.meVenta.getVenta() != null && CR.meVenta.getVenta().getCliente().getNombreCompleto() != null){\n\t\t\tgetJTextField().setText(CR.meVenta.getVenta().getCliente().getNombreCompleto());\n\t\t\tjTextPane.requestFocus();\n\t\t}else if(CR.meServ.getListaRegalos()!=null && CR.meServ.getListaRegalos().getCliente()!=null){\n\t\t\tgetJTextField().setText(CR.meServ.getListaRegalos().getCliente().getNombreCompleto());\n\t\t\tjTextPane.requestFocus();\n\t\t}\n\t\t\n\t\tif(CR.meServ.getListaRegalos()!=null && CR.meServ.getListaRegalos().getDedicatoria()!=null)\n\t\t\tjTextPane.setText(CR.meServ.getListaRegalos().getDedicatoria());\n\t}", "private void mostrarValorDeIndicadorSeleccionado() {\n\t\r\n\t\tMessageBox messageBox;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdatosDelIndicador();\r\n\t\t\tthis.getModelObject().observerIndicador();\r\n\t\t}\r\n\t\tcatch (RuntimeException ex){\r\n\t\t\tmessageBox = new MessageBox(this, Type.Error);\r\n\t\t\tmessageBox.setMessage(ex.getMessage());\r\n\t\t\tmessageBox.open();\r\n\t\t}\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n nextdata();\n }", "public void onClick(DialogInterface dialogBox, int id) {\n map.put(\"status\", \"Đang di chuyển\");\n map.put(\"message\", userInputDialogEditText.getText().toString());\n map.put(\"time\", DateFormat.getDateTimeInstance().format(new Date()));\n reference1.push().setValue(map);\n }", "public void performTambah() {\n\n dialogEntry.postInit();\n dialogEntry.clearFields();\n dialogEntry.setRowToBeEdited(-1);\n //dialogEntry.clearFields ();\n dialogEntry.show(true); // -- modal dialog ya, jd harus menunggu..\n //if (isDirty()) {\n loadTable();\n // TODO : select last item added\n //}\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\ttry {\r\n\t\t\tString txt_nom = paramActeur.getAct_nom();\r\n\t\t\tString txt_prenom = paramActeur.getAct_pre();\r\n\t\t\tString txt_mail = paramActeur.getAct_mai();\r\n\t\t\tString txt_tel = paramActeur.getAct_tel();\r\n\t\t\tString txt_grp = paramActeur.getAct_grp();\r\n\t\t\tString txt_login = paramActeur.getAct_log();\r\n\t\t\tString txt_pass = paramMdp1.getmdp_pw();\r\n\t\t\tString txt_pass2 = paramMdp2.getmdp_pw();\r\n\t\t\tString txt_ville = paramLoc.getLoc_lib();\r\n\t\t\tString txt_type = paramType.getTyp_lib();\r\n\t\t\t\r\n\t\t\tSystem.out.println(txt_type);\r\n\t\t\t\r\n\t\t\tDB_Connection conn = new DB_Connection();\r\n\t\t\tConnection laCo = conn.get_connection();\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch(Exception ex) {\r\n\t\t\tex.getMessage();\r\n\t\t}\r\n\t\t//if(e.getSource() == application) {\r\n\t\t\tInscrire(); \r\n\t\t//}\r\n\t\t\r\n\t\t\r\n\t}", "public void onClick(DialogInterface dialogBox, int id) {\n map.put(\"status\", \"Đợi thiết bị\");\n map.put(\"message\", userInputDialogEditText.getText().toString());\n map.put(\"time\", DateFormat.getDateTimeInstance().format(new Date()));\n reference1.push().setValue(map);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource().equals(btnConectar)) {\n if (getNickname().isEmpty()) {\n JOptionPane.showMessageDialog(this,\n \"Indique un nickname.\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n } else if (getNickname().length() > 9 || getNickname().length() < 3) {\n JOptionPane.showMessageDialog(this,\n \"El nickname debe contener entre 3 y 9 carácteres.\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n } else {\n hiloCliente = new HiloCliente(this);\n\n txtEstado.setText(ESTADO_CONECTANDO);\n btnConectar.setEnabled(false);\n }\n }\n\n // Si pulsamos sobre btnDesconectar, desconectamos al usuario del servidor\n if (e.getSource().equals(btnDesconectar)) {\n desconectar();\n }\n\n // Si pulsamos sobre btnEmpate, proponemos tablas\n if (e.getSource().equals(btnEmpate)) {\n // enviamos mensaje de empate y deshabilitamos btnEmpate\n enviarMensajeEmpate(true, true);\n btnEmpate.setEnabled(false);\n\n // creamos un jdialog que informe de que estamos a la espera\n JDialog jDialog = new JDialog(this);\n jDialog.setTitle(\"Esperando respuesta de solicitud de empate.\");\n jDialog.setSize(280, jDialog.getHeight());\n jDialog.setResizable(false);\n jDialog.setLocationRelativeTo(pnlTablero);\n\n // hacemos esperar al programa\n synchronized (this) {\n try {\n jDialog.setVisible(true);\n this.setEnabled(false);\n wait(); // esperamos hasta que se invoque a notify al recibir un mensajeempate\n } catch (InterruptedException ex) { }\n }\n\n jDialog.dispose(); // cerramos jdialog a la orden del notify\n }\n }", "public void onClick(DialogInterface dialog, int\n id) {\n AgregarOcurrencias();\n }", "abstract void botonDescargaSobre_actionPerformed(ActionEvent e);", "public interface MotorActionSelectDialogListener {\n /**\n * Just a callback method.\n * @param dialog finished dialog\n * @param which dialog's id\n * @param motor selected motor\n * @param direction selected motor's direction\n */\n void onMotorActionSet(DialogInterface dialog, int which, String motor, String direction);\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n String srt = input.getEditableText().toString();\n\n if (srt.isEmpty()) {\n Snackbar.make(mRecyclerView, \"Debe ingresar datos en el comentario\", Snackbar.LENGTH_SHORT).show(); // Don’t forget to show!\n } else {\n\n agregarComentario(new Comentario(\"\", srt, MobileServiceCustom.USUARIO_LOGUEADO.id, MyTime.getFecha(), MyTime.getHora(), ID_NOTICIA));\n }\n\n }", "private void controladorEquipos() {\n\n this.panelEquipos.BtnImprimir().addActionListener((ActionEvent ae) -> {\n\n if (panelEquipos.TablaEquipos().getSelectedRow() == -1) {\n JOptionPane.showMessageDialog(null, \"Debe Seleccionar un Equipo\");\n } else {\n int dialogoResultado = JOptionPane.showConfirmDialog(null, \"¿Esta segur@ de que este equipo ya se entrego?\", \"Pregunta\", JOptionPane.YES_NO_OPTION);\n if (dialogoResultado == JOptionPane.YES_OPTION) {\n int id = Integer.parseInt(panelEquipos.TablaEquipos().getValueAt(panelEquipos.TablaEquipos().getSelectedRow(), 0).toString());\n if (modeloEquipos.entregarEquipo(id)) {\n\n } else {\n JOptionPane.showMessageDialog(null, \"El equipo no se pudo modificar\");\n }\n cargarDatosEquipos(panelEquipos.TxtBusqueda().getText());\n }\n }\n\n });\n this.panelEquipos.getComboEstado().addActionListener((ActionEvent ae) -> {\n cargarDatosEquipos(panelEquipos.TxtBusqueda().getText());\n });\n this.panelEquipos.BtnBuscar().addActionListener((ActionEvent ae) -> {\n cargarDatosEquipos(panelEquipos.TxtBusqueda().getText());\n });\n this.panelEquipos.TxtBusqueda().addKeyListener(new KeyListener() {\n\n @Override\n public void keyTyped(KeyEvent ke) {\n }\n\n @Override\n public void keyPressed(KeyEvent ke) {\n cargarDatosEquipos(panelEquipos.TxtBusqueda().getText());\n }\n\n @Override\n public void keyReleased(KeyEvent ke) {\n }\n });\n //cargarDatosEquipos(panelEquipos.TxtBusqueda().getText());\n\n this.panelEquipos.TablaEquipos().addMouseListener(new MouseListener() {\n\n @Override\n public void mouseClicked(MouseEvent me) {\n System.out.println(panelEquipos.TablaEquipos().getValueAt(panelEquipos.TablaEquipos().getSelectedRow(), 0)\n + \" \" + getTipo() + \" \" + getEstado());\n if (getTipo().equals(\"pc\")) {\n loadDesktopData(panelEquipos.TablaEquipos().getValueAt(panelEquipos.TablaEquipos().getSelectedRow(), 0).toString());\n registroPc.setVisible(true);\n }\n if (getTipo().equals(\"impresora\")) {\n loadPrinterData(panelEquipos.TablaEquipos().getValueAt(panelEquipos.TablaEquipos().getSelectedRow(), 0).toString());\n registroImpresora.setVisible(true);\n }\n if (getTipo().equals(\"portatil\")) {\n cargarDatosPortatil(panelEquipos.TablaEquipos().getValueAt(panelEquipos.TablaEquipos().getSelectedRow(), 0).toString());\n registroPortatil.setVisible(true);\n }\n if (getTipo().equals(\"otros\")) {\n loadOtherData(panelEquipos.TablaEquipos().getValueAt(panelEquipos.TablaEquipos().getSelectedRow(), 0).toString());\n registroOtros.setVisible(true);\n }\n\n }\n\n @Override\n public void mousePressed(MouseEvent me) {\n\n }\n\n @Override\n public void mouseReleased(MouseEvent me) {\n }\n\n @Override\n public void mouseEntered(MouseEvent me) {\n }\n\n @Override\n public void mouseExited(MouseEvent me) {\n }\n });\n this.panelEquipos.getImpresora().addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent ae) {\n cargarDatosEquipos(panelEquipos.TxtBusqueda().getText());\n }\n });\n this.panelEquipos.getPc().addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent ae) {\n cargarDatosEquipos(panelEquipos.TxtBusqueda().getText());\n }\n });\n this.panelEquipos.getPortatil().addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent ae) {\n cargarDatosEquipos(panelEquipos.TxtBusqueda().getText());\n }\n });\n this.panelEquipos.getOtro().addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent ae) {\n cargarDatosEquipos(panelEquipos.TxtBusqueda().getText());\n }\n });\n }", "public interface DialogInteractionListener {\n /**\n * Handles the click on the discard changes button.\n */\n void onDiscardChangesSelected();\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tint hora = calendario.get(Calendar.HOUR_OF_DAY);\r\n\t\t\t\t\tint minutos = calendario.get(Calendar.MINUTE);\r\n\t\t\t\t\tint segundos = calendario.get(Calendar.SECOND);\r\n\t\t\t\t\tString horaDespegue = hora + \":\" + minutos + \":\" + segundos;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Asigna la hora de despegue a la variable del Avión\r\n\t\t\t\t\tcontrol.llegadaAviones.elementAt(0).setHoraDespegue(horaDespegue);\r\n\r\n\t\t\t\t\t//Asigna al avión que puede proceder a despegar\r\n\t\t\t\t\tcontrol.llegadaAviones.elementAt(0).setApagado(true);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Escribe en el texto del registro la información del avión\r\n\t\t\t\t\tescribeRegistro();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Elimina del vector el avión\r\n\t\t\t\t\tcontrol.llegadaAviones.remove(0);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Elimina de la tabla el avión\r\n\t\t\t\t\tlistaterminal.model.removeRow(0);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Actualiza los paneles\r\n\t\t\t\t\tactualiza();\r\n\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). saisirParution() ;}", "public interface Listener {\n void onClose(ConfirmDialog dialog);\n }", "private void carregaInformacoes() {\n Pessoa pessoa = (Pessoa) getIntent().getExtras().getSerializable(\"pessoa\");\n edtNome.setText(pessoa.getNome());\n edtEmail.setText(pessoa.getEmail());\n edtTelefone.setText(pessoa.getTelefone());\n edtIdade.setText(pessoa.getIdade());\n edtCPF.setText(pessoa.getCpf());\n }", "private void acceptListener() {\n addDialog.getAccept().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n Task newTask = new Task(addDialog.getTaskName().getText(), addDialog.getTaskDesc().getText(),\n Integer.parseInt(addDialog.getTaskDate().getText()));\n toDoList.addTask(newTask);\n } catch (NumberFormatException | InvalidTitleException a) {\n addDialog.dispose();\n }\n addDialog.dispose();\n refresh();\n }\n });\n }", "public interface EnqueteListListener {\n}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif (turno.getVolontari() != null) {\n\t\t\t\t\t\t\tfinal Dialog dialog = new Dialog(Calendario.this);\n\t\t\t\t\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\t\t\t\t\tdialog.setContentView(R.layout.dialog_turno);\n\t\t\t\t\t\t\tdialog.getWindow().setBackgroundDrawableResource(\n\t\t\t\t\t\t\t\t\tR.drawable.dialog_rounded_corner);\n\n\t\t\t\t\t\t\t((ListView) dialog\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.lista_volontari))\n\t\t\t\t\t\t\t\t\t.setAdapter(new RowVolontario(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(), turno\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getVolontari()));\n\t\t\t\t\t\t\t((ListView) dialog\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.lista_volontari))\n\t\t\t\t\t\t\t\t\t.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onItemClick(\n\t\t\t\t\t\t\t\t\t\t\t\tAdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tfinal Utente mUtente = turno\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getVolontari().get(arg2);\n\n\t\t\t\t\t\t\t\t\t\t\tif (mUtente.getNumeroTelefonico()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"null\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCalendario.this);\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.setTitle(getString(R.string.CONTATTO));\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.setMessage(getString(R.string.NESSUN_NUMERO));\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.setCancelable(false);\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.setNeutralButton(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.CHIUDI),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew android.content.DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.create().show();\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCalendario.this);\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.setTitle(\"Contatto\");\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.setMessage(getString(R.string.PROFILO_PHONE1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ mUtente.getNome()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ mUtente.getCognome()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ getString(R.string.PROFILO_PHONE2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ mUtente\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getNumeroTelefonico());\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.setCancelable(false);\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.setPositiveButton(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Chiama\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew android.content.DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIntent.ACTION_CALL);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tintent.setData(Uri.parse(\"tel:\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ mUtente\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getNumeroTelefonico()));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstartActivityForResult(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tintent,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.setNegativeButton(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Chiudi\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew android.content.DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\tbuilder.create().show();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tdialog.show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public interface DialogListener {\r\n public void handleYesButton();\r\n}", "private void dialogGame(final Game game) {\n final boolean isInsert = game.getId() == null;\n final Dialog dialog = new Dialog(this);\n\n dialog.setContentView(R.layout.new_game);\n\n dialog.setTitle(R.string.label_novo_game);\n\n final TextInputLayout etTitulo = (TextInputLayout) dialog.findViewById(R.id.inputTitulo);\n\n Spinner spGenero = (Spinner)dialog.findViewById(R.id.spGenero);\n\n Spinner spPlataforma = (Spinner)dialog.findViewById(R.id.spPlataforma);\n\n initGeneroSpinner(spGenero, game.getGenero());\n\n initPlataformaSpinner(spPlataforma, game.getPlataforma());\n\n etTitulo.getEditText().setText(game.getTitulo());\n\n Button btConfirmar = (Button) dialog.findViewById(R.id.btConfirmar);\n\n btConfirmar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String titulo = etTitulo.getEditText().getText().toString();\n if(titulo.trim().equals(\"\")){\n etTitulo.setError(getString(R.string.label_campo_obrigatorio));\n } else {\n etTitulo.setErrorEnabled(false);\n game.setTitulo(etTitulo.getEditText().getText().toString());\n game.setGenero(generoSelecionado);\n game.setPlataforma(plataformaSelecionada);\n game.save();\n\n if (isInsert)\n mAdapter.add(game);\n\n mAdapter.notifyDataSetChanged();\n\n dialog.dismiss();\n Toast.makeText(MainActivity.this, R.string.label_gravado_com_sucesso, Toast.LENGTH_SHORT).show();\n }\n\n }\n });\n\n Button btCancelar = (Button) dialog.findViewById(R.id.btCancelar);\n\n btCancelar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n dialog.show();\n }", "@FXML\n\tpublic void handleEditar(MouseEvent event) {\n\t\tif(colNome.getCellData(jtvIngredienteTable.getSelectionModel().getSelectedIndex()) != null){\n\t\t\tingredienteService = new IngredienteService();\n\t\t\tIngrediente ingrediente = jtvIngredienteTable.getSelectionModel().getSelectedItem();\n\t\t\tScreenUtils.abrirNovaJanela(\"fxml/Compras/NovoIngrediente.fxml\", ingrediente);\n\t\t}else{\n\t\t\tScreenUtils.janelaInformação(spDialog, Internationalization.getMessage(\"header_erro3\"), Internationalization.getMessage(\"item_nao_selecionado\"), Internationalization.getMessage(\"erro_button2\"));\n//\t\t\tScreenUtils.janelaInformação(spDialog, \"Ops\", \"Por favor, selecione um item.\", \"Sem problemas\");\n\t\t}\n\t}", "private void onCadastrarCliente() {\n prepFieldsNovoCliente();\n mainCliente = null;\n }", "@Override\n\tpublic void onDialogPositiveClick(CarDialog dialog) {\n\t\tCar updated = dialog.getCarData();\n\t\tQueryListener carUpdated = new QueryListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onError() {\n\t\t\t\tToast.makeText(CarDetailsActivity.this, R.string.updateError,\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(double data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(boolean data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(ObjectPrx data, boolean saved) {\n\t\t\t\tif (saved) {\n\t\t\t\t\tmCar = (CarTypPrx) data;\n\t\t\t\t\tUserTypPrx user = _sessionController.getMyUser();\n\t\t\t\t\tList<CarTypPrx> userCars = user.getUserCars();\n\t\t\t\t\tfor (int n = 0; n < userCars.size(); n++)\n\t\t\t\t\t\tif (userCars.get(n).getPlate().equals(mCar.getPlate()))\n\t\t\t\t\t\t\tuserCars.set(n, mCar);\n\t\t\t\t\tuser.setUserCars(userCars);\n\t\t\t\t\tdisplayCarData();\n\t\t\t\t\tToast.makeText(CarDetailsActivity.this,\n\t\t\t\t\t\t\tR.string.dataUpdated, Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(QueryModel data, boolean saved) {\n\t\t\t}\n\t\t};\n\t\t_sessionController.updateCarDataEmail(carUpdated,\n\t\t\t\tnew uclm.esi.cardroid.data.ice.Car().newInstance(updated),\n\t\t\t\tgetIntent().getStringExtra(EXTRA_CAR_OWNER_EMAIL));\n\t}", "public void abrirDialogoCustodio(){\n\t\tif(aut_empleado.getValor()!=null){\n\t\t\ttab_tarspaso_Custodio.limpiar();\n\t\t\ttab_tarspaso_Custodio.insertar();\n\t\t\t//tab_direccion.limpiar();\n\t\t//\ttab_direccion.insertar();\n\t\t\tdia_traspaso_custodio.dibujar();\n\t\t}\n\t\telse{\n\t\t\tutilitario.agregarMensaje(\"Inserte un Custodio\", \"\");\n\t\t}\n\n\t}", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "private void botaoSalvar4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botaoSalvar4MouseClicked\n\n // Instancia objeto com metodo de verificacao dos campos.\n VerificacoesCamposCliente verificarCampos = new VerificacoesCamposCliente();\n\n // Insere confirmacao para insercao.\n int confirmar = JOptionPane.showConfirmDialog(null, \"Confirmacao\", \"Deseja prosseguir?\", JOptionPane.OK_OPTION);\n\n // Se positiva a continuacao.\n if (confirmar == 0) {\n\n // Para erros em sql.\n try {\n\n //Cria objeto de verificacao.\n boolean verificar = false;\n\n // Instancia objeto com o metodo de verificacao.\n // Seu parametro tem os campos de verificacao do painel.\n verificar = verificarCampos.verificarFormularios(\n textoNome.getText(),\n textoCPF.getText(),\n comboGenero.getSelectedItem().toString(),\n textoDataDeNascimento.getText(),\n textoEnderecoLogradouro.getText(),\n textoBairro.getText(),\n textoComplemento.getText(),\n textoNumero.getText(),\n textoTelefone.getText(),\n textoCelular.getText(),\n textoCEP.getText(),\n textoDD_Telefone.getText(),\n textoDD_Celular.getText()\n );\n \n // Verifica se ja eh existente o cpf.\n boolean verificaCPF = verificarCampos.verificarCPF(textoCPF.getText());\n \n // Se os campos estiverem de acorda com as regras, insere.\n if (verificar && verificaCPF) {\n\n // Instancia nos objetos os metodos de dados, endereco e contato.\n DadosPessoais dados = new DadosPessoais();\n Endereco endereco = new Endereco();\n Contato contato = new Contato();\n\n // Objeto de dados insere os dados pessoais do cliente.\n dados.setNome(textoNome.getText());\n dados.setCPF(textoCPF.getText());\n dados.setGenero(comboGenero.getSelectedItem().toString());\n dados.setDataNascimento(textoDataDeNascimento.getText());\n\n // Objeto de endereco insere o endereco do cliente.\n endereco.setLogradouro(textoEnderecoLogradouro.getText());\n endereco.setBairro(textoBairro.getText());\n endereco.setComplemento(textoComplemento.getText());\n endereco.setNumero(textoNumero.getText());\n endereco.setCEP(textoCEP.getText());\n\n // Objeto de contato insere os contatos do cliente.\n contato.setEmail(textoEmail.getText());\n contato.setTelefone(textoTelefone.getText());\n contato.setDD_Telefone(textoDD_Telefone.getText());\n contato.setCelular(textoCelular.getText());\n contato.setDD_Celular(textoDD_Celular.getText());\n\n // Verifica se tem imagem selecionada.\n if (imgCaminho == null) {\n\n // Se não, insere um caminho de imagem pre definido.\n imgCaminho = \"src\\\\br\\\\com\\\\Grupo07\\\\Imagens\\\\perfil.jpg\";\n dados.setImagem(imgCaminho);\n\n } else {\n\n // Se sim, insere o caminho da imagem selecionada.\n dados.setImagem(imgCaminho);\n\n }\n\n // Chama classe de servico para cadastrar cliente com seus construtores(objetos).\n ServicosCliente.cadastrarCliente(dados, endereco, contato);\n\n // Mensagem de sucesso\n JOptionPane.showMessageDialog(null, \"Cadastratado\", \"Sucesso\", JOptionPane.INFORMATION_MESSAGE);\n\n // Limpa campos.\n limparCampos();\n\n }\n\n // Mensagem de erro no banco de dados\n } catch (SQLException ex) {\n\n JOptionPane.showMessageDialog(null, \"Erro no banco de dados\", \"Erro\", JOptionPane.ERROR);\n\n // Mensagem de erro na imagem.\n } catch (FileNotFoundException ex) {\n\n JOptionPane.showMessageDialog(null, \"Erro no imagem\", \"Erro\", JOptionPane.ERROR);\n \n }\n\n // Se negativa a continuacao.\n } else {\n\n JOptionPane.showMessageDialog(null, \"Cancelado, sucesso\", \"Cancelamento\", JOptionPane.OK_OPTION);\n\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n if(a.getAsistencia().getDateFin().getTime()==new Date(0).getTime()) {\n try {\n Long time = Complementos.convertirStringAlong(Complementos.getDateActualToString(), hora.getText().toString());\n\n Asistencia nuevaAsistencia = new Asistencia(a.getTrabajadores(),(Puestos) spPuesto.getSelectedItem(),new Date(time),new Date(0),0);\n\n if(mDetailAdapter.validarHoras(nuevaAsistencia,-1,cuadrillas)){\n a.getAsistencia().setDateFin(new Date(time));\n mDetailAdapter.add(new ListaAsistencia(a.getTrabajadores(),nuevaAsistencia));\n }\n\n }catch (Exception e){\n\n }\n\n }\n\n mDetailAdapter.notifyDataSetChanged();\n }", "public interface SaveRecordDialogDismissListener {\n\n void onDialogDismissed();\n}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tv.setPantallaRecuperar();\n\t\t\t}", "@Override\n public void onButtonClickListner(int position, PeticionQuedadaRecibida pQuedada, String estado) {\n if(isOnlineNet()) {\n\n peticionQuedada=new PeticionQuedada(pQuedada.getId(),pQuedada.getAutor_peticion_nombre(),pQuedada.getAutor(),pQuedada.getAutor_uid(),pQuedada.getLugar(),pQuedada.getFecha(),pQuedada.getHora(),pQuedada.getDeporte(),pQuedada.getInfo(),pQuedada.getPlazas(),pQuedada.getLongitud(),\n pQuedada.getLatitud(),pQuedada.getNum_plazas_solicitadas(),estado );\n peticionQuedada.setAutor_peticion(pQuedada.getAutor_peticion());\n peticionQuedada.setId_peticion(pQuedada.getId_peticion());\n\n Log.i(\"CAMBIANDO ESTADO \", \"NUEVA PETICION CON CAMBIO DE ESTADO: \" + peticionQuedada.toString());\n\n String fecha_obtenida= \"\"+peticionQuedada.getFecha()+ \" \"+peticionQuedada.getHora();\n if(compararFechaActualCon(fecha_obtenida)) {\n presenter.cambiarEstadoQuedada(peticionQuedada);\n\n }else{\n AlertDialog.Builder myBuild = new AlertDialog.Builder(getContext());\n myBuild.setMessage(\"La fecha propuesta de la quedada ya ha expirado.\\n\\n No es posible confirmar o rechazar esta quedada!\" );\n myBuild.setTitle(\"Alerta\");\n\n myBuild.setNegativeButton(\"Cerrar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n myBuild.show();\n }\n\n }else{\n Snackbar.make(myView,\"No hay conexión con internet\", Snackbar.LENGTH_SHORT).show();\n\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n getCariSemua();\n//\n }", "public void onDataChanged(){}", "@Override\n public void onClick(DialogInterface dialog, int which){\n guardarUsr();\n }", "@Override\n\t\t\tpublic void onError(DialogError e) {\n\t\t\t\t\n\t\t\t}", "public interface DialogListener {\n void onOk();\n void onCancel();\n}", "public void widgetSelected(SelectionEvent e) {\n\t\t\t\tnew ShellEscribirMensaje(tabFolder.getShell(),bundle,vista,null,0,\"\",false,tabla);\r\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void actualizar(int id_evento_vista, Object datos) {\r\n\t\t//Borra lo anterior\r\n \t\r\n \t jFormattedTextFieldPiso.setText(\"\");\r\n jFormattedTextFieldNumero.setText(\"\");\r\n jFormattedTextFieldTipo.setText(\"\");\r\n \r\n\t\t\r\n\t\tif(id_evento_vista == EventoVista.ALTA_HABITACION_EXITO){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Se ha creado la Habitacion con exito\", \"Nuevo Habitacion\", JOptionPane.INFORMATION_MESSAGE);\t\t\r\n\t\t}\t\r\n\t\r\n\t\telse if (id_evento_vista == EventoVista.ALTA_HABITACION_FALLO){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"ERROR!! Ha ocurrido un error con la BD\", \"Nuevo Habitacion\", JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t}", "public void tipoendereco(View view){\n final ArrayAdapter adapter = new ArrayAdapter(this, R.layout.novo_cliente_endereco_tipoendereco, itens);\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Selecione o Tipo do Endereço:\");\n //define o diálogo como uma lista, passa o adapter.\n builder.setSingleChoiceItems(adapter, 0, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface arg0, int arg1) {\n //Toast.makeText(Novo_Cliente_Endereco.this, \"posição selecionada=\" + arg1, Toast.LENGTH_SHORT).show();\n tipo.setText(adapter.getItem(arg1).toString());\n try {\n endereco.setTipoendereco(daoTipoEndereco.queryBuilder().where().eq(\"nome\",tipo.getText().toString()).queryForFirst());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n //tipo.setEnabled(false);\n alertaEndereco.dismiss();\n }\n });\n\n alertaEndereco = builder.create();\n alertaEndereco.show();\n }", "void autofinanciarPoliza(AutofinanciarPolizaCancelCommand datosPoliza);", "@Override\n public void onClick(DialogInterface dialog, int id) {\n \n }", "public interface DialogListener { void onQuit(); }", "public void controlloEventiGestione() {\n\t\t/**\n\t\t * Evento eliminazione Versamento \n\t\t */\n\t\tviewGestione.getBtnElimina().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (JOptionPane.showConfirmDialog(null, \"Eliminare la quota?\") == 0\n\t\t\t\t\t\t&& viewGestione.getTable().getSelectedRow() != -1) {\n\t\t\t\t\tboolean esito = model.deleteQuota(quote.get(viewGestione.getTable().getSelectedRow()).getId());\n\t\t\t\t\tquote.remove(viewGestione.getTable().getSelectedRow());\n\t\t\t\t\tif (esito) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(viewGestione.getFrameGestQuote().getContentPane(),\n\t\t\t\t\t\t\t\t\"Versamento eliminato\");\n\t\t\t\t\t\tviewGestione.getFrameGestQuote().dispose();\n\t\t\t\t\t\tmostraGestioneQuote();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(viewGestione.getFrameGestQuote().getContentPane(),\n\t\t\t\t\t\t\t\t\"Versamento non eliminato\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/* \n\t\t *Evento ritorno all'AdminView\n\t\t */\n\t\tviewGestione.getBtnDashboard().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tAdminController adminController = new AdminController();\n\t\t\t\tadminController.controlloEvento();\n\t\t\t\tviewGestione.getFrameGestQuote().dispose();\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent a) {\n\t\t\t\t\tClientsDAO clientsDAO = DAOFactory.getClientsDAO();\n\t\t\t\t\tAnimauxDAO animauxDAO = DAOFactory.getAnimauxDAO();\n\t\t\t\t\tRacesDAO racesDAO = new DAOFactory().getRaceDAO();\n\t\t\t\t\tJOptionPane display = new JOptionPane();\n\t\t\t\t\tAgendasDAO agendasDAO = DAOFactory.getAgendasDAO();\n\n\t\t\t\t\tif (comboBxPersonnels.getSelectedIndex() == 0) {\n\t\t\t\t\t\tdisplay.showMessageDialog(panelAgendas, \"Veuillez sélectionnez un vétérinaire\", \"Attention\",\n\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (datePickerRendezVous.getJFormattedTextField().getText().isEmpty()) {\n\t\t\t\t\t\t\tdisplay.showMessageDialog(panelAgendas, \"Veuillez sélectionnez une date \", \"Attention\",\n\t\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tint ligne = tableRendezVous.getSelectedRow();\n\t\t\t\t\t\t\tint colonne = tableRendezVous.getSelectedColumn();\n\t\t\t\t\t\t\tif (!tableRendezVous.getValueAt(ligne, colonne).equals(\"Aucune données\")) {\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t * System.out.println(\"valide\"); try { cli =\n\t\t\t\t\t\t\t\t * clientsDAO.getClient(tableRendezVous.\n\t\t\t\t\t\t\t\t * getValueAt(ligne, 1).toString());\n\t\t\t\t\t\t\t\t * System.out.println(cli); } catch\n\t\t\t\t\t\t\t\t * (DALException e) { // TODO Auto-generated\n\t\t\t\t\t\t\t\t * catch block e.printStackTrace(); } try { ani\n\t\t\t\t\t\t\t\t * = animauxDAO.getAnimauxClients(cli.\n\t\t\t\t\t\t\t\t * getCodeClient()).get(0); } catch\n\t\t\t\t\t\t\t\t * (DALException e) { // TODO Auto-generated\n\t\t\t\t\t\t\t\t * catch block e.printStackTrace(); } try {\n\t\t\t\t\t\t\t\t * espece = racesDAO.allRaces().get(0); } catch\n\t\t\t\t\t\t\t\t * (DALException e) { // TODO Auto-generated\n\t\t\t\t\t\t\t\t * catch block e.printStackTrace(); }\n\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\tEcranAgendas.this.fntrDossierMedic();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdisplay.showMessageDialog(panelAgendas, \"Veuillez sélectionner un rendez-vous valide\",\n\t\t\t\t\t\t\t\t\t\t\"Attention\", JOptionPane.WARNING_MESSAGE);\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}", "@Override\n public void eventoCargarData() {\n }", "private void mostrarDatosInterfaz() {\n\t\tif (this.opcion == CREAR) {\n\t\t\tthis.campoTextoNombreUsuario.setUserData(\"\");\n\t\t\tthis.campoTextoNombreUsuario.setDisable(false);\n\t\t\tthis.campoContrasena.setUserData(\"\");\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setUserData(\"\");\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.getSelectionModel().select(\"\");\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.getSelectionModel().select(\"\");\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == EDITAR) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == VER) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(true);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(true);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(true);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(true);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(true);\n\t\t}//FIN IF ELSE\n\t}", "private void addListener() {\n ActionListener actionGravar = new GravarUsuario();\n JButton bt;\n bt = getPanelBotoes().getBtCadastrar();\n bt.addActionListener(actionGravar);\n bt = getPanelBotoes().getBtAtualizar();\n bt.setVisible(false);\n }", "public AbstractListenerDialog() {\n\t\tlisteners = new ArrayList<>();\n\t}", "@Override\n\tpublic void selecciona() {\n\t\tClienteProxy bean = grid.getSelectionModel().getSelectedObject();\n\t\tif(bean!=null){\t\t\t\t\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(\"Devolpay\");\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\t\t\n\t\tuiHomePrestamo.getUIMantPrestamoImpl().setBeanCliente(bean);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\t\t\n\t\t}else{\n\t\t\t//Dialogs.alert(constants.alerta(), constants.seleccioneCliente(), null);\n\t\t\t//Window.alert(constants.seleccioneCliente());\n\t\t\tNotification not=new Notification(Notification.ALERT,constants.seleccioneCliente());\n\t\t\tnot.showPopup();\n\t\t}\n\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }", "@Override\n\t\t\tpublic void onError(DialogError e) {\n\n\t\t\t}", "@Override\n public void onDialogPositiveClick(DialogFragment dialog, String descripcion, int taCoId) {\n // User touched the dialog's positive button\n //Guardamos la finalizacion en la BD local\n TarjetaService tarjetaService=new TarjetaService(getContext());\n tarjetaService.FinalizarTarjetaIncompleta(taCoId,buId,taCoFecha);\n Toast.makeText(getContext(), \"Se finalizó correctamente\", Toast.LENGTH_SHORT).show();\n\n //Guardamos la incidencia\n AlertaIncidenciaService alertaIncidenciaService=new AlertaIncidenciaService(getContext());\n List<AlertaIncidencia> alertaIncidencias=new ArrayList<>();\n AlertaIncidencia alertaIncidencia=new AlertaIncidencia();\n alertaIncidencia.setAlInId(0);\n alertaIncidencia.setAlInTipo(false);\n alertaIncidencia.setTaCoId(taCoId);\n\n //Obtenemos los ultimo datos del MaintActivity\n settingActivity=(SettingActivity)getActivity();\n settingActivity.updateHoraofTimerService();\n Date fecha2=settingActivity.FechaActual;\n alertaIncidencia.setAlInFecha(String.valueOf(fecha2.getTime()));\n alertaIncidencia.setAlInLatitud(settingActivity.Latitud);\n alertaIncidencia.setAlInLongitud(settingActivity.Longitud);\n alertaIncidencia.setEmId(settingActivity.EmId);\n alertaIncidencia.setAlInDescripcion(\"TarjetaFinalizada: \"+descripcion);\n alertaIncidencias.add(alertaIncidencia);\n alertaIncidenciaService.GuardarAlertaIncidenciaBD(alertaIncidencias);\n //enviamos al servidor en la nube\n alertaIncidenciaService.SaveAlertaIncidenciaRest(alertaIncidencia);\n //actualizamos el RecyclerViwer\n SimpleDateFormat format = new SimpleDateFormat(\"dd-M-yyyy\");//(\"yyyy-MM-dd'T'HH:mm:ss\");\n String dateFecha=format.format(fecha2);\n iRecyclerviewEnvioTarjetaPresenter.obtenerEnvioTarjetasBD(buId,dateFecha,0);\n\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n\tpublic void pegaInstanciaDialogo(AposentadoriaCompulsoria obj) {\n\t\t\n\t}", "public interface DialogButtonListener {\n\n void buttonClicked(String buttonText);\n\n}", "public void run() {\n AlertDialog.Builder mesg = new AlertDialog.Builder(EditarFichaConsulta.this);\n mesg.setMessage(\"Houve algum erro por favor, tente mais tarde!\");\n mesg.setTitle(\"\");\n mesg.setCancelable(false);\n mesg.setNeutralButton(\"Tentar Novamente\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n editarDados();\n }\n });\n mesg.setPositiveButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n //mesg.setIcon(android.R.drawable.ic_dialog_alert);\n mesg.show();\n // onLoginFailed();\n progressDialog.dismiss();\n }", "@Override\n public void OnSelecterEquipoDetalle(Equipo equipo) {\n DialogoRedes dialogoRedes = DialogoRedes.newInstance(equipo);\n dialogoRedes.show(getSupportFragmentManager(),\"key3\");\n\n }", "@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }", "private void esegui() {\n /* variabili e costanti locali di lavoro */\n OperazioneMonitorabile operazione;\n\n try { // prova ad eseguire il codice\n\n /**\n * Lancia l'operazione di analisi dei dati in un thread asincrono\n * al termine il thread aggiorna i dati del dialogo\n */\n operazione = new OpAnalisi(this.getProgressBar());\n operazione.avvia();\n\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "public void activarVista(){\r\n\tvista.getVerVistaAutorObra().addActionListener(r->{\r\n\t\tCrearVista.crearVIstaAutorObra(con);\r\n\t\tvista.getTable().removeAll();\r\n\t\tlistaArte= new ArrayList<ObraArte>();\r\n\t\tlistaArte.removeAll(listaArte);\r\n\t\tlistaArte=SeleccionarDatosVista.getTodosRegistros(con);\r\n\t\ttableModelArteVista= new TableModelArteVista(listaArte, CABECERA);\r\n\t\tvista.getTable().setModel(tableModelArteVista);\r\n\t\tvista.getTxtBarraStatus().setText(\"VISTA CREADA. DICHA VISTA NO ES EDITABLE.\");\r\n\t\tvista.getButton_Modificar().setEnabled(false);\r\n\t\tvista.getButtonBorrar().setEnabled(false);\r\n\t\tvista.getMntmBorrarFila().setEnabled(false);\r\n\t\tvista.getButtonInsertarNuevo().setEnabled(false);\r\n\t\tvista.getLabelSize().setText(vista.getTable().getRowCount()+\" elementos.\");\r\n\t\t\r\n\t});\r\n}", "void onDeleteDataEntryDialogPositiveClick(DeleteDataEntryDialog dialog);", "@Override\n public boolean onItemLongClick(AdapterView<?> adapterView, View view, int i, long l) {\n\n clienteID = (int)adapter.getItemId(i);\n //Toast.makeText(getContext(), \"ID: \" + String.valueOf(clienteID), Toast.LENGTH_SHORT).show();\n\n\n AlertDialog.Builder dialogo1 = new AlertDialog.Builder(getActivity());\n dialogo1.setTitle(\"Importante\");\n dialogo1.setIcon(R.drawable.aceptar);\n dialogo1.setMessage(\"¿Desea Restaurar este elemento?\");\n dialogo1.setView(vistaAlertActivar);\n dialogo1.setCancelable(false);\n dialogo1.setPositiveButton(\"Confirmar\", new DialogInterface.OnClickListener() {\n //\n public void onClick(DialogInterface dialogo1, int id) {\n\n //Inicializa el progres dialog\n progressDialog = new ProgressDialog(getContext());\n progressDialog.setTitle(\"En Proceso\");\n progressDialog.setMessage(\"Un momento...\");\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.show();\n\n\n RequestQueue queue = Volley.newRequestQueue(getContext());\n String consulta = \"update clave_cliente set activo=1 where id=\"+clienteID;\n consulta = consulta.replace(\" \", \"%20\");\n String cadena = \"?host=\" + HOST + \"&db=\" + DB + \"&usuario=\" + USER + \"&pass=\" + PASS + \"&consulta=\" + consulta;\n final String url = SERVER + RUTA + \"consultaGeneral.php\" + cadena;\n Log.i(\"info\", url);\n\n //Inicia la peticion para actualizar el estado del cliente a activo\n JsonArrayRequest request = new JsonArrayRequest(Request.Method.GET, url, null, new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n //Inicia la peticion\n RequestQueue queue = Volley.newRequestQueue(getContext());\n String consulta = \"select cc.id,cl.nombre, cl.direccion,cl.telefono,CONCAT(pv.tipo,'-',cc.numero) \" +\n \"from cliente cl, clave_cliente cc, punto_venta pv \" +\n \"where cc.puntoVenta_id = pv.id \" +\n \"and cc.cliente_id = cl.id \" +\n \" and pv.tipo='\"+puntoVenta+\"' and cc.activo =false\";\n consulta = consulta.replace(\" \", \"%20\");\n String cadena = \"?host=\" + HOST + \"&db=\" + DB + \"&usuario=\" + USER + \"&pass=\" + PASS + \"&consulta=\" + consulta;\n final String url = SERVER + RUTA + \"consultaGeneral.php\" + cadena;\n Log.i(\"info\", url);\n\n //Hace la petición String para mostrar los clientes que siguen inactivos\n JsonArrayRequest request = new JsonArrayRequest(Request.Method.GET, url, null, new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n progressDialog.hide();\n lista = ModeloClientes.sacarListaClientes(response);\n //Toast.makeText(context, \"RutasLib \"+url, Toast.LENGTH_SHORT).show();\n adapter = new AdapterClientes(getContext(),lista);\n listView.setAdapter(adapter);\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.hide();\n Toast.makeText(getContext(), \"Error en el WebService\", Toast.LENGTH_SHORT).show();\n Toast.makeText(getContext(), \"Activos \"+url, Toast.LENGTH_SHORT).show();\n\n }\n });\n\n //Agrega y ejecuta la cola\n queue.add(request);\n progressDialog.hide();\n Toast.makeText(getContext(),\"Se activo correctamente\",Toast.LENGTH_SHORT).show();\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.hide();\n Toast.makeText(getContext(), \"Error en el WebService\", Toast.LENGTH_SHORT).show();\n Toast.makeText(getContext(), \"Activos \"+url, Toast.LENGTH_SHORT).show();\n\n }\n });\n\n //Agrega y ejecuta la cola\n queue.add(request);\n\n\n }\n });\n dialogo1.setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialogo1, int id) {\n }\n });\n dialogo1.show();\n\n return false;\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tPedidoMesa pedidomesa;\n\t\t\t\ttry {\n\t\t\t\t\tpedidomesa = new PedidoMesa();\n\t\t\t\t\tpedidomesa.setLocationRelativeTo(null);\n\t\t\t\t\tpedidomesa.SetMainDashboard(main);\n\n\t\t\t\t\tmain.frmSistemaDeCadastro.setEnabled(false);\n\t\t\t\t\tpedidomesa.setVisible(true);\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}" ]
[ "0.6630366", "0.66223276", "0.6619035", "0.65989137", "0.6514691", "0.6481565", "0.64494586", "0.6435021", "0.6426256", "0.6414417", "0.6414398", "0.64100057", "0.6400158", "0.6328824", "0.63027287", "0.6298866", "0.62652606", "0.6244133", "0.62183225", "0.62161887", "0.6201346", "0.619382", "0.6190124", "0.6163011", "0.6149301", "0.61491275", "0.61474025", "0.61443114", "0.61439884", "0.6142216", "0.61420673", "0.6141796", "0.61414397", "0.6136041", "0.6129436", "0.6125567", "0.6118901", "0.61148185", "0.6112648", "0.61123556", "0.61061823", "0.61057", "0.61031055", "0.6093339", "0.6092352", "0.6091509", "0.6078114", "0.60748005", "0.6068813", "0.6066226", "0.60627437", "0.6061454", "0.6061162", "0.60564387", "0.6052517", "0.60442185", "0.60414654", "0.6038894", "0.6038825", "0.60343945", "0.6031843", "0.60257816", "0.60219747", "0.6021446", "0.6017732", "0.6017535", "0.6014237", "0.60137856", "0.60064715", "0.60005766", "0.5999538", "0.59981084", "0.5995389", "0.59924215", "0.5991732", "0.59847486", "0.59843534", "0.59837884", "0.59773964", "0.59726834", "0.5968867", "0.5968867", "0.59565705", "0.5955441", "0.59514827", "0.5950631", "0.5949973", "0.5949973", "0.5949973", "0.5949973", "0.59429103", "0.5940357", "0.5939653", "0.5937677", "0.5936811", "0.5932535", "0.5929557", "0.5924568", "0.59229016", "0.5922887", "0.59168494" ]
0.0
-1
Check if all prerequisites are fulfilled.
void checkPrerequisite() throws ActionNotPossibleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasRequirements() {\n \t\tif (checkHasRequirements) {\n \t\t\thasRequirements = pullRequired(requiredInput, false);\n \t\t\tcheckHasRequirements = false;\n \t\t}\n \t\treturn hasRequirements;\n \t}", "private boolean checkDependenciesSatisfied() {\n\t\tLOGGER.trace(\"CheckDependenciesSatisfied: Start Checking\");\n\t\tfinal Collection<ModuleDependency> moduleDependencies = selfModule.getDependencies();\n\t\tif (moduleDependencies == null) {\n\t\t\treturn true;\n\t\t}\n\t\tfor (final ModuleDependency moduleDependency : moduleDependencies) {\n\t\t\tif (!peerDiscoveryService.getPeerRegistry().containsPeerWithType(moduleDependency.getModuleTypeId(), true)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "protected static boolean areAllPreconditionsMet(HashSet<GoapState> preconditions, HashSet<GoapState> effects) {\r\n\t\tboolean preconditionsMet = true;\r\n\r\n\t\tfor (GoapState precondition : preconditions) {\r\n\t\t\tboolean currentPreconditionMet = false;\r\n\r\n\t\t\tfor (GoapState effect : effects) {\r\n\t\t\t\tif (precondition.effect.equals(effect.effect)) {\r\n\t\t\t\t\tif (precondition.value.equals(effect.value)) {\r\n\t\t\t\t\t\tcurrentPreconditionMet = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpreconditionsMet = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!preconditionsMet || !currentPreconditionMet) {\r\n\t\t\t\tpreconditionsMet = false;\r\n\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn preconditionsMet;\r\n\t}", "private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}", "private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}", "public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have every prerequisite building\n for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) {\n UnitType requiredUnitType = UnitType.getByID(unitTypeID);\n \n// if (requiredUnitType.isLarva()) {\n// continue;\n// }\n// System.out.println(\"=req: \" + requiredUnitType);\n if (!requiredUnitType.isBuilding()) {\n// System.out.println(\" continue\");\n continue;\n }\n \n int requiredAmount = unitType.getRequiredUnits().get(unitTypeID);\n int weHaveAmount = requiredUnitType.isLarva() ? \n SelectUnits.ourLarva().count() : SelectUnits.our().ofType(requiredUnitType).count();\n// System.out.println(requiredUnitType + \" x\" + requiredAmount);\n// System.out.println(\" and we have: \" + weHaveAmount);\n if (weHaveAmount < requiredAmount) {\n return false;\n }\n }\n return true;\n }", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "public static boolean canFinish(int numCourses, int[][] prerequisites) {\n Course clist[] = new Course[numCourses];\n\n // initialize array with new course objects\n for (int i = 0; i < numCourses; i++) {\n clist[i] = new Course();\n }\n\n // pair the course with the prerequisites from the params\n for (int[] couple : prerequisites) {\n Course c1 = clist[couple[0]];\n Course c2 = clist[couple[1]];\n c1.addPre(c2);\n }\n\n // check every course and its prerequisites for a cyclic graph\n for (int i = 0; i < numCourses; i++) {\n if (clist[i].isCyclic()) {\n return false;\n }\n }\n\n // if none is detected then we return true, we can complete all the courses\n return true;\n }", "public boolean isProduced(){\n if(!step1.isEmpty()&&!step2.isEmpty()&&!step3.isEmpty()){\n return true;\n }else {\n return false;\n }\n }", "public boolean isSatisfied() {\n for (IntegerVariable v : integerVariables) {\n if (!v.isSatisfied()) {\n // Logger.fine(v.toString() + \" is not satisfied\");\n return false;\n }\n }\n for (Clause clause : clauses) {\n if (!clause.isSatisfied()) {\n // Logger.fine(clause.toString() + \" is not satisfied\");\n return false;\n }\n }\n return true;\n }", "@Override\n\tpublic void checkDependencies() throws Exception\n\t{\n\t\t\n\t}", "public static boolean runAllTests() {\r\n\r\n return testLinkedCart() && testAlphabetListConstructorIsEmpty()\r\n && testAlphabetListConstructorBadInput() && testAlphabetListAddBadInput1()&&\r\n testAlphabetListAddBadInput2()&&testAlphabetListAddBadInput2()&&\r\n testAlphabetListAdd() && testAlphabetListRemove();\r\n }", "protected void evaluateConditions()\n {\n ensureConditionContinuity() ;\n checkComponentList() ;\n\n for ( int liCondCtr = 1 ; liCondCtr <= 5 ; liCondCtr++ )\n {\n checkCondition( liCondCtr ) ;\n } /* end for */\n\n }", "public void check(){\n check1();\n check2();\n check3();\n check4();\n check5();\n check6();\n\t}", "public boolean isComplete() {\n return addedFrontWork.size() == 0 && addedBackWork.size() == 0 && sawAllDone.get();\n }", "@Override\n public boolean preconditionsSatisfied() {\n return true;\n }", "boolean isSetRequiredResources();", "@Override\n\tprotected boolean prerequisitesMet() {\n\t\treturn super.prerequisitesMet() && renderMaskHandlerSystem.getActiveMask() == RenderMask.Mask.TEAM_DOMAINS;\n\t}", "public boolean checkIsEmpty() {\n return isEmpty(minimumInstances) && isEmpty(maximumInstances) && isEmpty(dependentProfiles);\n }", "private void validateDependencies() throws ReportingSystemException {\r\n\r\n\t\tif (calculationService == null || manipulationService == null || incomingRankingService == null\r\n\t\t\t\t|| outgoingRankingService == null || dataReader == null || dataWriter == null)\r\n\t\t\tthrow new ReportingSystemException(\r\n\t\t\t\t\tReportingSystemResourceUtil.getValue(ReportingSystemConstants.EXCEPTION_DEPENDENCY_INJECTION));\r\n\r\n\t}", "public boolean canFinish(int numCourses, int[][] prerequisites) {\n if (prerequisites.length == 0){\n return true;\n }\n int[][] adjList = adjList(numCourses, prerequisites);\n return this.canFinish(adjList, numCourses);\n }", "boolean check() {\n return check(Env.empty);\n }", "private void checkRecipes() {\n\n for (Recipe recipe : this.recipeItems.values()) {\n List<String> requiredItems = new ArrayList<>(recipe.getRequiredItems());\n\n for (Item item : this.commonItems.values()) {\n requiredItems.remove(item.getName());\n }\n if (requiredItems.isEmpty()) {\n this.combineRecipe(recipe);\n break;\n }\n }\n }", "public final boolean hasDependents() {\r\n synchronized (f_seaLock) {\r\n return !f_dependents.isEmpty();\r\n }\r\n }", "boolean hasAll();", "boolean hasAll();", "private ValidationResult allCriteriaSatisfied(FormCheckerElement elem) {\n\t\tfor (Criterion criterion : elem.getCriteria()) {\n\t\t\tValidationResult vr = criterion.validate(elem);\n\t\t\tif (!vr.isValid()) {\n\t\t\t\treturn vr;\n\t\t\t}\n\t\t}\n\n\t\treturn ValidationResult.ok();\n\t}", "public boolean hasAll() {\n return allBuilder_ != null || all_ != null;\n }", "public boolean hasAll() {\n return allBuilder_ != null || all_ != null;\n }", "public boolean isSatisfied() {\n\t\treturn satisfied().isSatisfied();\n\t}", "private void assertAll() {\n\t\t\n\t}", "static boolean areAllStepsValid(WizardDescriptor descriptor) {\n // first step does not need to be checked, just the 2nd and more\n Boolean isValid = (Boolean) descriptor.getProperty(RunConfigurationPanel.VALID);\n if (isValid != null && !isValid) {\n return false;\n }\n isValid = (Boolean) descriptor.getProperty(PhpFrameworksPanel.VALID);\n if (isValid != null && !isValid) {\n return false;\n }\n @SuppressWarnings(\"unchecked\")\n Map<org.netbeans.modules.php.spi.phpmodule.PhpModuleExtender, Boolean> validity = (Map<org.netbeans.modules.php.spi.phpmodule.PhpModuleExtender, Boolean>) descriptor.getProperty(PhpExtenderPanel.VALID);\n if (validity != null) {\n for (Boolean extenderValid : validity.values()) {\n if (!extenderValid) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public boolean isReady() {\n //at least one parameter estimtion must be enabled\n return (mPositionEstimationEnabled || mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled) &&\n //if position estimation is disabled, an initial position must be provided\n !(!mPositionEstimationEnabled && mInitialPosition == null) &&\n //if transmitted power estimation is disabled, an initial transmitted power must be provided\n !(!mTransmittedPowerEstimationEnabled && mInitialTransmittedPowerdBm == null) &&\n //readings must also be valid\n areValidReadings(mReadings);\n }", "private void checkMandatoryArguments() throws ArgBoxException {\n\t\tfinal List<String> errors = registeredArguments.stream()\n\t\t\t\t.filter(arg -> arg.isMandatory())\n\t\t\t\t.filter(arg -> !parsedArguments.containsKey(arg))\n\t\t\t\t.map(arg -> String.format(\"The argument %1s is required !\", arg.getLongCall()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tthrowException(() -> !errors.isEmpty(), getArgBoxExceptionSupplier(\"Some arguments are missing !\", errors));\n\t}", "public boolean canFinish(int numCourses, int[][] prerequisites) {\n this.numCourses = numCourses;\n this.indegree = new int[numCourses];\n this.graph = new HashMap<>();\n for(int[] dependency : prerequisites) {\n List<Integer> list = graph.getOrDefault(dependency[1], new ArrayList<>());\n list.add(dependency[0]);\n indegree[dependency[0]]++;\n graph.put(dependency[1], list);\n }\n\n Queue<Integer> queue = new LinkedList<>();\n int count = 0;\n for(int i = 0; i < indegree.length; i++) {\n if(indegree[i] == 0) queue.add(i);\n }\n\n while(!queue.isEmpty()) {\n int curr = queue.poll();\n if(indegree[curr] == 0) count++;\n if(!graph.containsKey(curr)) continue;\n for(int neighbor : graph.get(curr)) {\n indegree[neighbor]--;\n if(indegree[neighbor] == 0) queue.add(neighbor);\n }\n }\n return count == numCourses;\n }", "public boolean canFinish(int numCourses, int[][] prerequisites) {\n\t\tint[][] graph = new int[numCourses][numCourses];\n\t\t// represents courses we are taking in degree\n\t\tint[] inDegree = new int[numCourses];\n\t\t\n\n\t\t// for all the edges\n\t\tfor (int i = 0; i < prerequisites.length; i++) {\n\t\t\t// vertex 0\n\t\t\tint course = prerequisites[i][0];\n\t\t\t// vertex 1\n\t\t\tint prereq = prerequisites[i][1];\n\t\t\t\n\t\t\tif (graph[prereq][course] == 0) {\n\t\t\t\t// handle duplicate case\n\t\t\t\tinDegree[course]++;\n\t\t\t}\n\t\t\t// mark edge is visited\n\t\t\tgraph[prereq][course] = 1;\n\t\t}\n\t\t\n\t\t// keep total count of courses we tool till now\n\t\tint count = 0;\n\t\t\n\t\tQueue<Integer> queue = new LinkedList<>();\n\t\tfor (int i = 0; i < numCourses; i++) {\n\t\t\t// all courses which are not visited/covered yet \n\t\t\tif (inDegree[i] == 0) {\n\t\t\t\tqueue.offer(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// BFS\n\t\twhile (!queue.isEmpty()) {\n\t\t\t// first course from the queue\n\t\t\tint course = queue.poll();\n\t\t\t// increment count for taken courses\n\t\t\tcount++;\n\t\t\t\n\t\t\t// for all other courses\n\t\t\t// consider i as prereq\n\t\t\tfor (int i = 0; i < numCourses; i++) {\n\t\t\t\tif (graph[course][i] != 0) {\n\t\t\t\t\tif (--inDegree[i] == 0) {\n\t\t\t\t\t\tqueue.offer(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn count == numCourses;\n\t}", "public boolean hasMinRequirements() {\n\t\t// FIXME MIN input\n\t\treturn true;\n\t}", "private boolean scanPreconditions()\n\t\t{\n\t\t\tboolean statusChanged = false;\n\t\t\t\n\t\t\t//Conditional activity\n\t\t\tif(TravelToCustomer.precondition(this) == true)\n\t\t\t{\n\t\t\t\tTravelToCustomer act = new TravelToCustomer(this);\n\t\t\t\tact.startingEvent();\n\t\t\t\tscheduleActivity(act);\n\t\t\t\tstatusChanged = true;\n\t\t\t\t//System.out.println(\"Started Travel to Customer. \");\n\t\t\t}\n\t\t\t\n\t\t\tif(TakingLunch.precondition(this) == true)\n\t\t\t{\n\t\t\t\tTakingLunch act = new TakingLunch(this);\n\t\t\t\tact.startingEvent();\n\t\t\t\tscheduleActivity(act);\n\t\t\t\tstatusChanged = true;\n\t\t\t\t//System.out.println(\"Started Take Lunch. \");\n\t\t\t}\n\t\t\t\n\t\t\t// Do not change the status if already true\n\t\t\tif(statusChanged) scanInterruptPreconditions();\n\t\t\telse statusChanged = scanInterruptPreconditions();\n\t\t\treturn(statusChanged);\n\t\t}", "public boolean conditionFulfilled();", "@Override\n\tpublic boolean isComplete() {\n\t\tboolean empties = nbEmptyMetrics == 0;\n\t\t// 2. all submetrics are complete\n\t\tboolean subs = true;\n\t\tfor (AbstractMetric m : metrics)\n\t\t\tsubs = subs && m.isComplete();\n\t\t// 3. the sum of weights is 1\n\t\tdouble weight = 0;\n\t\tfor (int i = 0; i < metrics.size(); i++)\n\t\t\tweight += this.weight.get(i);\n\t\tboolean sum = weight == 1.0;\n\t\treturn empties && subs && sum;\n\t}", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "private boolean isAllTestsRun() {\n Collection<TestPackage> pkgs = getTestPackages();\n for (TestPackage pkg : pkgs) {\n if (!pkg.isAllTestsRun()) {\n return false;\n }\n }\n return true;\n }", "public static boolean checkResources(){\n for(Instruction i : waitingList){\n if(resourceArr[i.resourceType - 1] >= i.resourceAmount){\n return true;\n }\n }\n for(int i = 0 ; i < taskPointers.length; i ++){\n int pointerIndex = taskPointers[i];\n Task currTask = taskList.get(i);\n if(currTask.terminateTime == - 1 && (currTask.isAborted == false) && Collections.disjoint(waitingList, currTask.instructionList)){\n Instruction currInstruction = currTask.instructionList.get(pointerIndex);\n Type instructionType = currInstruction.instructionType;\n int resourceType = currInstruction.resourceType;\n if(instructionType != Type.request){\n return true;\n }else{\n if(resourceArr[currInstruction.resourceType - 1] >= currInstruction.resourceAmount){\n return true;\n }\n }\n }\n\n }\n return false;\n }", "protected final boolean isReady() {\n // check if visible (invisible components are ok to be not ready)\n if (!this.isVisible()) {\n return true;\n }\n if (!this.isDisplayable()) {\n return true;\n }\n // check if this is not ready\n if (!ready) {\n return false;\n }\n // check if any child is not ready\n for (BlankDialogModule module : childModules) {\n if (!module.isReady()) {\n return false;\n }\n }\n // all ready!\n return true;\n }", "public int checkGoals() {\n\t\tupdateUnsupportedPreconditionInconsistencies(maxLevel);\n\t\tcountInconsistencies();\n\t\tgraphQuality = calculateQuality();\n\t\treturn this.inconsistencyCount;\n\t}", "public default boolean needsReagents()\r\n\t{\r\n\t\tfor(ItemStack stack : getReagents()) if(!stack.isEmpty()) return true;\r\n\t\treturn true;\r\n\t}", "private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }", "public boolean hasAll() {\n return all_ != null;\n }", "public boolean hasAll() {\n return all_ != null;\n }", "public static boolean multiProve(Tableau tableau) {\n // Alphas\n boolean retVal = expandAllAlphas(tableau);\n // Deltas\n retVal = expandAllDeltas(tableau) || retVal;\n // expand comprehension triggers before doing comprehension stuff\n retVal = expandComprehensionTriggers(tableau) || retVal;\n // Comprehension Schema\n retVal = expandClassMemberPredicates(tableau) || retVal;\n // Brown's rule\n retVal = tableau.applyAllBrowns() || retVal;\n // Beta or Gamma\n if (expandOneBeta(tableau))\n return true;\n if (Prover.unifyEquality(tableau) != null)\n return false;\n return expandOneGamma(tableau) || retVal;\n }", "public boolean satisfyingReferences() {\n\t\tfor (DependencyElement refEl : references) {\n\t\t\tif (!refEl.after(this)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\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 }", "@Test\n public void testZeroDependencies() {\n dependencyManager.depend(\"foo\", ImmutableSet.of());\n assertTrue(dependencyManager.isdepend(\"foo\", ImmutableSet.of()));\n }", "public boolean hasAllAuxClasss(Collection auxClasssToCheck);", "public boolean hasDependencies(int pk) {\n return (employeeDao.select(pk).getSubordinate() != null);\n }", "public static boolean doTestsPass()\r\n {\r\n\r\n boolean result = true;\r\n result = result && FindMin(new int[]{3,4,5,6,1,2}) == 1;\r\n result = result && FindMin(new int[]{2,1}) == 1;\r\n result = result && FindMin(new int[]{1}) == 1;\r\n\r\n try {\r\n FindMin(null);\r\n result = false;\r\n }\r\n catch(Exception e)\r\n {\r\n result = result && true;\r\n }\r\n\r\n if(result)\r\n {\r\n System.out.println(\"All tests pass\\n\");\r\n }\r\n else\r\n {\r\n System.out.println(\"There are test failures\\n\");\r\n }\r\n return result;\r\n }", "private boolean checkIfAllStepActionsCompleted(String stepId, Set<String> completedActions) {\n SPGoal goal = goalFactory.getGoal(stepId);\n if (goal != null && completedActions != null) {\n return goal.getActionCount() == completedActions.size();\n }\n return false;\n }", "boolean isSetProbables();", "boolean hasResolve();", "private void check() {\r\n\t\tif(isEmpty()){\r\n\t\t\tthrow new RuntimeException(\"Queue is empty\");\r\n\t\t}\r\n\t}", "void done(boolean allSucceeded);", "protected boolean isAllJobsFinished() {\r\n \tIterator<Progress> jobsIterator = JobManager.iterator();\r\n \twhile (jobsIterator.hasNext()) {\r\n \t\tProgress job = jobsIterator.next();\r\n\t\t\tif (!job.isFinished()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n }", "public boolean matchResult() {\n return !pathMatchDependencies.isEmpty();\n }", "private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }", "public void verifyAllCheckBoxIsCheckOrUnCheck(boolean isCheck) {\n try {\n boolean result = true;\n boolean checkEmptyToDoListRow = checkListIsEmpty(eleToDoRowList);\n boolean checkEmptyToDoCompleteListRow = checkListIsEmpty(eleToDoCompleteRowList);\n if (!checkEmptyToDoListRow) {\n result = checkAllCheckBoxIsCheckOrUnCheck(eleToDoCheckboxRow, isCheck);\n }\n if (!checkEmptyToDoCompleteListRow) {\n if (result)\n checkAllCheckBoxIsCheckOrUnCheck(eleToDoCompleteCheckboxRow, isCheck);\n }\n Assert.assertTrue(result, \"All checkbox do not check/uncheck\");\n if (isCheck) {\n NXGReports.addStep(\"All check box are check in ToDo page\", LogAs.PASSED, null);\n } else {\n NXGReports.addStep(\"All check box are uncheck in ToDo page\", LogAs.PASSED, null);\n }\n\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n if (isCheck) {\n NXGReports.addStep(\"TestScript Failed: All check box are not check in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n } else {\n NXGReports.addStep(\"TestScript Failed: All check box are not uncheck in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }\n }", "@Override\n\tpublic boolean CheckFacts(){\n\t\tqueries.add( query );\n\t\t\n\t\t// while there are still queries to be proven\n\t\twhile ( queries.size() > 0 )\n\t\t{\n\t\t\t// take the first query off of queries to be checked \n\t\t\tString currentQuery = queries.remove(0);\n\n\t\t\t// add it to the list of queries that will be used to output (if true)\n\t\t\toutputFacts.add( currentQuery );\n\n\t\t\t// Compare currentQuery with every fact in Facts:\n\t\t\t// if it matches a fact then the current loop can end\n\t\t\tif( ! CompareToFacts( currentQuery ) )\n\t\t\t{\n\t\t\t\t// if not, compare currentQuery with every entailed literal\n\t\t\t\t// if it matches, add the literal(s) from the left\n\t\t\t\t// of the entailment onto queries\n\t\t\t\tif( ! CompareToClauses( currentQuery ) )\n\t\t\t\t{\n\t\t\t\t\t// if currentQuery still didn’t find a match then \n\t\t\t\t\t// the search has failed \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// when queries is empty, it means there are no more queries to prove,\n\t\t// so the search was a success\n\t\treturn true;\n\t}", "private Set<String> crossCheckDependenciesAndResolve(Map<String, List<Dependency>> dependencies) throws MojoFailureException {\n Map<String, Map<String, Dependency>> lookupTable = new HashMap<>();\n for (String bom : dependencies.keySet()) {\n Map<String, Dependency> bomLookup = new HashMap<>();\n lookupTable.put(bom, bomLookup);\n\n for (Dependency dependency : dependencies.get(bom)) {\n String key = dependencyKey(dependency);\n bomLookup.put(key, dependency);\n }\n }\n\n Map<String, Set<VersionInfo>> inconsistencies = new TreeMap<>();\n Set<String> trueInconsistencies = new TreeSet<>();\n\n // Cross-check all dependencies\n for (String bom1 : dependencies.keySet()) {\n for (Dependency dependency1 : dependencies.get(bom1)) {\n String key = dependencyKey(dependency1);\n String version1 = dependency1.getArtifact().getVersion();\n\n for (String bom2 : dependencies.keySet()) {\n // Some boms have conflicts with themselves\n\n Dependency dependency2 = lookupTable.get(bom2).get(key);\n String version2 = dependency2 != null ? dependency2.getArtifact().getVersion() : null;\n if (version2 != null) {\n Set<VersionInfo> inconsistency = inconsistencies.get(key);\n if (inconsistency == null) {\n inconsistency = new TreeSet<>();\n inconsistencies.put(key, inconsistency);\n }\n\n inconsistency.add(new VersionInfo(dependency1, bom1));\n inconsistency.add(new VersionInfo(dependency2, bom2));\n\n if (!version2.equals(version1)) {\n trueInconsistencies.add(key);\n }\n }\n }\n }\n }\n\n // Try to solve with preferences\n Set<String> resolvedInconsistencies = new TreeSet<>();\n DependencyMatcher preferencesMatcher = new DependencyMatcher(this.preferences);\n for (String key : trueInconsistencies) {\n int preferred = 0;\n for (VersionInfo nfo : inconsistencies.get(key)) {\n if (preferencesMatcher.matches(nfo.getDependency())) {\n preferred++;\n }\n }\n\n if (preferred == 1) {\n resolvedInconsistencies.add(key);\n }\n }\n\n trueInconsistencies.removeAll(resolvedInconsistencies);\n\n if (trueInconsistencies.size() > 0) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found \" + trueInconsistencies.size() + \" inconsistencies in the generated BOM.\\n\");\n\n for (String key : trueInconsistencies) {\n message.append(key);\n message.append(\" has different versions:\\n\");\n for (VersionInfo nfo : inconsistencies.get(key)) {\n message.append(\" - \");\n message.append(nfo);\n message.append(\"\\n\");\n }\n }\n\n throw new MojoFailureException(message.toString());\n }\n\n return resolvedInconsistencies;\n }", "public boolean getIsValid() {\n return projectName != null && packageName != null && !projectName.isEmpty() && !packageName.isEmpty();\n }", "public boolean areAllAnswersCollect(){\n\t\tif(selectedA.isEmpty())\n\t\t\treturn false;\n\t\telse{\n\t\t\n\t\tfor(String Aanswer:selectedA){\n\t\t\tif(!(correctA.contains(Aanswer)))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn (selectedA.size() == correctA.size());\n\t\t}\n\t}", "public boolean isSetRequires()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(REQUIRES$28) != null;\r\n }\r\n }", "@Step(\"There are the following elements on Different Elements page: 4 checkboxes, 4 radios, 1 dropdown, 2 buttons\")\n public void checkElements() {\n checkboxes.shouldHaveSize(4);\n radios.shouldHaveSize(4);\n dropdown.shouldBe(Condition.exist);\n buttons.shouldHaveSize(2);\n }", "boolean check(Env env) {\n // System.out.println (\"Checking block...\");\n for (Iterator it = idList.iterator (); it.hasNext (); ) {\n String id = (String) it.next ();\n env = new Env (id, env); \n }\n // System.out.println (\" Environment = \" + env);\n boolean isOkay = true;\n for (Iterator it = exprList.iterator (); it.hasNext (); ) {\n Expr expr = (Expr) it.next ();\n isOkay = expr.check (env) && isOkay;\n }\n return isOkay;\n }", "public boolean hasPendingQuestions() {\r\n try {\r\n Task[] tasks = getTasks();\r\n if (tasks == null || tasks.length == 0)\r\n return false;\r\n \r\n for (int i = 0; i < tasks.length; i++) {\r\n if (tasks[i].getPendingQuestions() != null\r\n && tasks[i].getPendingQuestions().length > 0)\r\n return true;\r\n }\r\n \r\n return false;\r\n } catch (ProcessManagerException pme) {\r\n return false;\r\n }\r\n }", "private void checkMandatoryArgs(UserResource target, Errors errors) {\n final String proc = PACKAGE_NAME + \".checkMandatoryArgs.\";\n final String email = target.getEmail();\n final String password = target.getPassword();\n final String lastName = target.getLastName();\n\n logger.debug(\"Entering: \" + proc + \"10\");\n\n if (TestUtils.isEmptyOrWhitespace(email)) {\n errors.rejectValue(\"email\", \"user.email.required\");\n }\n logger.debug(proc + \"20\");\n\n if (TestUtils.isEmptyOrWhitespace(password)) {\n errors.rejectValue(\"password\", \"user.password.required\");\n }\n logger.debug(proc + \"30\");\n\n if (TestUtils.isEmptyOrWhitespace(lastName)) {\n errors.rejectValue(\"lastName\", \"userLastName.required\");\n }\n logger.debug(\"Leaving: \" + proc + \"40\");\n }", "@PostConstruct\n protected void checkInitialization() {\n ValidationUtility.checkNotNullNorEmpty(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n ValidationUtility.checkNotNullElements(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n }", "public abstract boolean isSatisfied();", "public boolean allCalculationsDone() {\r\n return progressBarMap.isEmpty();\r\n }", "private static boolean areComplete(Collection<JobProxy> jobProxies) {\n for (JobProxy jobProxy : jobProxies) {\n if (!jobProxy.isComplete())\n return false;\n }\n return true;\n }", "public void checkRequirements() throws TNotFoundEx{\n\t\t\n\t\tArrayList<SimpleEntry> toolsCheck = new ArrayList<>();\n\t\t\n\t\t//adb\n\t\ttoolsCheck.add(new SimpleEntry<String, String>(\"adb\", \"adb devices\"));\n\t\t//sqlite3\n\t\ttoolsCheck.add(new SimpleEntry<String, String>(\"sqlite3\", \"sqlite3 -version\"));\n\t\t//strings\n\t\ttoolsCheck.add(new SimpleEntry<String, String>(\"strings\", \"strings -v\"));\n\t\t\n\t\tboolean pass = this.checkToolOnHost(toolsCheck);\n\t\t\n\t\tif (!pass)\n\t\t\tthrow new TNotFoundEx(\"Missing tools on host: Please install the missing tools and rerun the command\");\n\t}", "@Override\r\n public boolean checkAllDecksEmpty(int plDeckPosition) {\r\n // Are all the decks empty\r\n boolean flag = true;\r\n \r\n // Loop through all decks at deck position for each player\r\n for (Player player : this.players) {\r\n if (!player.isDeckEmpty(plDeckPosition)) {\r\n flag = false;\r\n }\r\n }\r\n \r\n // Return the value\r\n return flag;\r\n }", "private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }", "private void checkIfReadyToParse() {\r\n\t\tif (this.hostGraph != null)\r\n\t\t\tif (this.stopGraph != null)\r\n\t\t\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\t\t\tthis.readyToParse = true;\r\n\t\t\t\t}\r\n\t}", "public boolean dependenciesRunning() {\n\t\ttry {\n\t\t\treturn dependenciesInState(ResourceState.RUNNING);\n\t\t} catch (DependencyException de) {\n\t\t\tlog.warn(\"Unable to check is dependencies are running for \" + this, de);\n\t\t\treturn false;\n\t\t}\n\t}", "protected void validate(PiecewiseQuasipolynomial... polynomials) {\n\t\tif (polynomials.length > 0) {\n\t\t\tSet<String> params = new TreeSet<String>();\n\t\t\t\n\t\t\tfor (PiecewiseQuasipolynomial p : polynomials) {\n\t\t\t\tparams.addAll(p.getParameters());\n\t\t\t}\t\n\t\t\t\n\t\t\tfor (PiecewiseQuasipolynomial p : polynomials) {\n\t\t\t\tp.addAllParameters(params);\n\t\t\t}\n\t\t}\n\t}", "private void isValidBuild(List<ICard> build) {\n // count the number of free open piles\n int numFreeOpen = 0;\n for (IPile<ICard> pile : this.open) {\n if (pile.getPile().isEmpty()) {\n numFreeOpen++;\n }\n }\n // count the number of empty cascade piles\n int numFreeCascade = 0;\n for (IPile<ICard> pile : this.cascade) {\n if (pile.getPile().isEmpty()) {\n numFreeCascade++;\n }\n }\n // check that there are enough open intermediate slots\n if (build.size() > ((numFreeOpen + 1) * (int) Math.pow(2, numFreeCascade))) {\n throw new IllegalArgumentException(\"Build is invalid\");\n }\n }", "void calculateValidationRequirement() {\n this.elementRequiringJSR303Validation = Util.hasValidation(this.type);\n\n // Check for JSR 303 or @OnValidate annotations in default group\n if (Util.requiresDefaultValidation(this.type)) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any simple index uniqueness constraints\n if (!this.uniqueConstraintFields.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any composite index uniqueness constraints\n if (!this.uniqueConstraintCompositeIndexes.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n }", "public boolean hasUnfinishedDependencies(TransportOrder order) {\n requireNonNull(order, \"order\");\n\n // Assume that FINISHED orders do not have unfinished dependencies.\n if (order.hasState(TransportOrder.State.FINISHED)) {\n return false;\n }\n // Check if any transport order referenced as a an explicit dependency\n // (really still exists and) is not finished.\n if (order.getDependencies().stream()\n .map(depRef -> kernel.getTCSObject(TransportOrder.class, depRef))\n .anyMatch(dep -> dep != null && !dep.hasState(TransportOrder.State.FINISHED))) {\n return true;\n }\n\n // Check if the transport order is part of an order sequence and if yes,\n // if it's the next unfinished order in the sequence.\n if (order.getWrappingSequence() != null) {\n OrderSequence seq = kernel.getTCSObject(OrderSequence.class, order.getWrappingSequence());\n if (!order.getReference().equals(seq.getNextUnfinishedOrder())) {\n return true;\n }\n }\n // All referenced transport orders either don't exist (any more) or have\n // been finished already.\n return false;\n }", "void check()\n {\n final ScopeSymbolValidator validator = new ScopeSymbolValidator();\n for (ServiceMethod method : methods)\n validator.validate(method.getName(), method);\n }", "@Override\n boolean canFinish() {\n return false; //!getTask().hasUnfinishedDependencies();\n }", "@Override\r\n\tpublic void satisfy() {\n\t\t\r\n\t}", "private boolean consistencyCheckC1Constraints(double[][] xResults) {\n\t\tint n = mExplicitMDP.getNumStates();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble outxValue = GRBSolverUtils.getOutValue(i, xResults, mExplicitMDP);\n\t\t\tdouble inxValue = GRBSolverUtils.getInValue(i, xResults, mExplicitMDP);\n\t\t\tboolean satisfied = GRBSolverUtils.approximatelyEqual(outxValue, inxValue,\n\t\t\t\t\tmSettings.getFeasibilityTolerance());\n\n\t\t\tif (!satisfied) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean isComplete()\n {\n return (name != null) && (spacecraft != null) &&\n (sensor != null) && (description != null);\n }", "public boolean canBuildNextStage() {\r\n\t\tSystem.out.print(\"Checking if \" + stages[stagesCompleted]\r\n\t\t\t\t+ \" can be built:\");\r\n\t\tSimpleResList costSRL = SimpleResList\r\n\t\t\t\t.buildCostList(stages[stagesCompleted]);\r\n\t\tSystem.out\r\n\t\t\t\t.println((canBuildStage(stages[stagesCompleted], costSRL) ? \" true \"\r\n\t\t\t\t\t\t: \" false \"));\r\n\t\t// TODO needs code to see if there is enough money to buy the goods from\r\n\t\t// the neighbors(if they have the goods).....look buildCommandOptions\r\n\t\treturn canBuildStage(stages[stagesCompleted], costSRL); // this is only\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checking to\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// see if this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// board can\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// afford it\r\n\t}", "public boolean isEmpty(){\n\t\treturn ( startQueue.isEmpty() && finishQueue.isEmpty() && completedRuns.isEmpty() );\n\t}", "public void validate() {\n transportStats.validate(this);\n\n for (String unitName : produces) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit name \" + unitName + \" in build unit stats\");\n }\n\n for (Map.Entry<String, String> entry : buildCities.entrySet()) {\n String terrainName = entry.getKey();\n String cityName = entry.getValue();\n Args.validate(!TerrainFactory.hasTerrainForName(terrainName), \"Illegal terrain \" + terrainName + \" in build cities stats\");\n Args.validate(!CityFactory.hasCityForName(cityName), \"Illegal city \" + cityName + \" in build cities stats\");\n }\n\n for (String unitName : supplyUnits) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units stats\");\n }\n\n for (String unitName : supplyUnitsInTransport) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units in transport stats\");\n }\n\n Args.validate(StringUtil.hasContent(primaryWeaponName) && !WeaponFactory.hasWeapon(primaryWeaponName),\n \"Illegal primary weapon \" + primaryWeaponName + \" for unit \" + name);\n Args.validate(StringUtil.hasContent(secondaryWeaponName) && !WeaponFactory.hasWeapon(secondaryWeaponName),\n \"Illegal secondary weapon \" + secondaryWeaponName + \" for unit \" + name);\n }", "public boolean isValidSetup() {\n\t\tif(!rowCheck())\n\t\t\treturn false;\n\t\tif(!columnCheck())\n\t\t\treturn false;\n\t\tif(!subGridCheck())\n\t\t\treturn false;\n\t\treturn true;\n\t}", "private boolean checkValid() {\n\t\tif(openRadio.isSelected()) {\n\t\t\t//Open loop mode.\n\t\t\treturn checkInfusionRate() && checkPumpSelected() && checkMonitorSelected();\n\t\t} else {\n\t\t\t//Closed loop mode.\n\t\t\t//Check patient selected\n\t\t\t//Check QCore selected\n\t\t\t//Check BP monitor selected\n\t\t\t//Check target BP range\n\t\t\t//Check infusion rate.\n\t\t\treturn checkTargetBPRange() && checkInfusionRate() && checkPumpSelected() && checkMonitorSelected();\n\t\t}\n\t}", "private boolean check() {\n if (!isBST()) System.out.println(\"Not in symmetric order\");\n if (!isSizeConsistent()) System.out.println(\"Subtree counts not consistent\");\n if (!isRankConsistent()) System.out.println(\"Ranks not consistent\");\n return isBST() && isSizeConsistent() && isRankConsistent();\n }", "boolean isSetConstraints();", "public boolean isComplete() {\r\n for (GoalInterface g: goals) {\r\n if (type == GoalType.AND && !g.isComplete()) {\r\n return false;\r\n } else if (type == GoalType.OR && g.isComplete()) {\r\n return true;\r\n }\r\n }\r\n\r\n if (type == GoalType.AND) {\r\n return true;\r\n } else if (type == GoalType.OR) {\r\n return false;\r\n }\r\n return false;\r\n }" ]
[ "0.6809062", "0.65550584", "0.63160914", "0.62203354", "0.60305786", "0.5961922", "0.5934144", "0.5889807", "0.58525443", "0.5818996", "0.5808738", "0.57612115", "0.57538533", "0.5737294", "0.5724223", "0.5679192", "0.5670942", "0.5634038", "0.5625655", "0.5624587", "0.5602788", "0.5601022", "0.55941844", "0.5586853", "0.558589", "0.558589", "0.5527314", "0.55025727", "0.55025727", "0.54898006", "0.5456224", "0.544129", "0.5418906", "0.54173434", "0.54167795", "0.5407972", "0.54021835", "0.53927284", "0.5386009", "0.5369582", "0.5365877", "0.5361158", "0.5360495", "0.5358173", "0.5356258", "0.5347412", "0.53360593", "0.5320517", "0.5320517", "0.5312821", "0.52818996", "0.5271792", "0.5263524", "0.5263317", "0.52621824", "0.52466714", "0.5234519", "0.5227101", "0.52263886", "0.52247745", "0.5223951", "0.52232105", "0.5221893", "0.521548", "0.5214138", "0.5212438", "0.5210966", "0.520455", "0.5202672", "0.52022135", "0.51795363", "0.5176714", "0.5171346", "0.5169066", "0.5159813", "0.5157375", "0.5156447", "0.51562625", "0.51461315", "0.51432806", "0.5142703", "0.51384926", "0.51356447", "0.51352006", "0.513337", "0.51234925", "0.51181704", "0.511596", "0.51151055", "0.5112215", "0.5109246", "0.51042265", "0.51036143", "0.509343", "0.5092133", "0.50903714", "0.5087238", "0.5077656", "0.507096", "0.5066278" ]
0.57969767
11
Method to set the listeners of the activity
private void setListeners() { btnSearch.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { searchAddress(); } }); lvResult.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent = new Intent(MainActivity.this, MapActivity.class); intent.putExtra(RESULT_KEY, geocodingResult); intent.putExtra(SELECTED_POSITION_KEY, position); startActivity(intent); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setListeners() {\n backButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n settingButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showEditDialog();\n }\n });\n\n cameraButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showChoosePictureDialog();\n }\n });\n }", "private void setListener() {\n\t\tmSlidingLayer.setOnInteractListener(this);\r\n\t\tmMsgNotifySwitch.setOnCheckedChangeListener(this);\r\n\t\tmMsgSoundSwitch.setOnCheckedChangeListener(this);\r\n\t\tmShowHeadSwitch.setOnCheckedChangeListener(this);\r\n\t\tmAccountSetting.setOnClickListener(this);\r\n\t\tmMyProfile.setOnClickListener(this);\r\n\t\tmFaceJazzEffect.setOnClickListener(this);\r\n\t\tmAcountInfo.setOnClickListener(this);\r\n\t\tmFeedBack.setOnClickListener(this);\r\n\t\tmExitAppBtn.setOnClickListener(this);\r\n\r\n\t}", "private void setListeners() {\n\n }", "@Override\n\tpublic void setListeners() {\n\t\tet1.setOnClickListener(this);\n\t\tet2.setOnClickListener(this);\n\t\tet3.setOnClickListener(this);\n\t\tet4.setOnClickListener(this);\n\t\tet5.setOnClickListener(this);\n\t\tet6.setOnClickListener(this);\n\t\tet7.setOnClickListener(this);\n\t\tet8.setOnClickListener(this);\n\t\tet9.setOnClickListener(this);\n\t\tet10.setOnClickListener(this);\n\t\tet11.setOnClickListener(this);\n\t\tet12.setOnClickListener(this);\n\t\tet13.setOnClickListener(this);\n\t\tet14.setOnClickListener(this);\n\t}", "@Override\r\n protected void setListener() {\n logout.setOnClickListener(this);\r\n update.setOnClickListener(this);\r\n cleanCache.setOnClickListener(this);\r\n pushSwitch.setOnCheckedChangeListener(this);\r\n feedback.setOnClickListener(this);\r\n }", "public void setListeners() {\n mbt_no_realizar_comentario.setOnClickListener(this);\n mbt_realizar_comentario_propietario.setOnClickListener(this);\n }", "private void setEventListener() {\n mCameraView.addCameraKitListener(this);\n mCameraButton.setOnClickListener(this);\n mCameraButtonCloud.setOnClickListener(this);\n }", "public void initListeners() {\n\t\tlogoGrabListener = new LogoGrabListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onResponse(JSONObject response) {\n\t\t\t\tLog.i(TAG, \"LogoGrab Application responded with: \" + response.toString());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onError(String error) {\n\t\t\t\tLog.e(TAG, error);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// set LogoGrabListener\n\t\tLogoGrabInterface.setLogoGrabListener(logoGrabListener);\n\t\t\n\t\t\n\t\t// init OnClickListener\n\t\tonClickListener = new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLogoGrabInterface.startLogoGrab(MainActivity.this);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// set OnClickListener\n\t\tlogoGrabButton.setOnClickListener(onClickListener);\n\t}", "private void setListeners() {\n\t\timgBack.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t}", "private void initListeners() {\n appCompatButtonLogin.setOnClickListener(this);\n }", "private void initListeners() {\n appCompatButtonLogout.setOnClickListener(this);\n appCompatButtonDelete.setOnClickListener(this);\n }", "@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}", "private void initializeListeners() {\n llBack.setOnClickListener(this);\n btnChange.setOnClickListener(this);\n btnNext.setOnClickListener(this);\n }", "@Override\n\tprotected void setListenerAndAdapter() {\n\t\t\n\t}", "private void setViewListeners() {\n // Set an OnClickListener for each button.\n btnDecrease.setOnClickListener(this);\n btnIncrease.setOnClickListener(this);\n btnOrder.setOnClickListener(this);\n\n // Set an OnTouchListener for each view.\n btnDecrease.setOnTouchListener(touchListener);\n btnIncrease.setOnTouchListener(touchListener);\n etTitle.setOnTouchListener(touchListener);\n etAuthor.setOnTouchListener(touchListener);\n etPrice.setOnTouchListener(touchListener);\n etEditQuantity.setOnTouchListener(touchListener);\n etSupplier.setOnTouchListener(touchListener);\n etPhoneNumber.setOnTouchListener(touchListener);\n\n /* Format the phone number as the user types it.\n Reference: https://stackoverflow.com/a/15647444\n Date: 8/1/18\n */\n etPhoneNumber.addTextChangedListener(new PhoneNumberFormattingTextWatcher());\n // End referenced code.\n }", "private void setListener() {\n\t}", "private void setListeners() {\r\n \t/*----------------------------\r\n\t\t * 1. Buttons\r\n\t\t\t----------------------------*/\r\n\t\t//\r\n \tButton bt_create = (Button) findViewById(R.id.db_manager_btn_create_table);\r\n \tButton bt_drop = (Button) findViewById(R.id.db_manager_btn_drop_table);\r\n \tButton bt_register_patterns = \r\n \t\t\t\t\t\t(Button) findViewById(R.id.db_manager_btn_register_patterns);\r\n \t\r\n \t/*----------------------------\r\n\t\t * 2. Tags\r\n\t\t\t----------------------------*/\r\n \tbt_create.setTag(Methods.ButtonTags.db_manager_activity_create_table);\r\n \tbt_drop.setTag(Methods.ButtonTags.db_manager_activity_drop_table);\r\n \tbt_register_patterns.setTag(Methods.ButtonTags.db_manager_activity_register_patterns);\r\n \t\r\n \t/*----------------------------\r\n\t\t * 3. Listeners\r\n\t\t * \t\t1. OnClick\r\n\t\t * \t\t2. OnTouch\r\n\t\t\t----------------------------*/\r\n \t/*----------------------------\r\n\t\t * 3.1. OnClick\r\n\t\t\t----------------------------*/\r\n \t//\r\n \tbt_create.setOnClickListener(new ButtonOnClickListener(this));\r\n \tbt_drop.setOnClickListener(new ButtonOnClickListener(this));\r\n \tbt_register_patterns.setOnClickListener(new ButtonOnClickListener(this));\r\n \t\r\n \t/*----------------------------\r\n\t\t * 3.2. OnTouch\r\n\t\t\t----------------------------*/\r\n \t//\r\n \tbt_create.setOnTouchListener(new ButtonOnTouchListener(this));\r\n \tbt_drop.setOnTouchListener(new ButtonOnTouchListener(this));\r\n \tbt_register_patterns.setOnTouchListener(new ButtonOnTouchListener(this));\r\n \t\r\n \t/*----------------------------\r\n\t\t * 4. Disenable => \"Create table\"\r\n\t\t\t----------------------------*/\r\n// \tbt_create.setEnabled(false);\r\n \t\r\n\t}", "protected void setListener(){\r\n main_list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n activityStart(Constants.ACTIVITIES[position]);\r\n }\r\n });\r\n }", "@Override\n\tpublic void initListeners() {\n\t\tmClick.setOnClickListener(this);\n\t}", "private void setListener() {\n Log.d(TAG, \"TAG - MainActivity - setListener()\");\n\n if (buttonShow != null) {\n buttonShow.setOnClickListener( view -> showPicture());\n }\n }", "public void setListeners() {\n\t\tmTabHost.getTabWidget().getChildAt(0)\n\t\t\t\t.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\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(0)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[0]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(0);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t// Listener for Feed tab//\n\n\t\tmTabHost.getTabWidget().getChildAt(1)\n\t\t\t\t.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\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(1)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[1]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(1);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t/* Listener for Tab 3 */\n\t\tmTabHost.getTabWidget().getChildAt(2)\n\t\t\t\t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(2)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[2]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(2);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n mFetchChatRoomListUseCase.registerListener(this);\n }", "void addListeners() {\n\t\t/* Get a handle to the views */\n\t\tmsgText = (TextView) findViewById(R.id.msgView); //TextView handle\n\t\tviewAgainButton = (Button) findViewById(R.id.button_viewAgain); //Button handle\n\t\t\n\t\t/* Add a click listener to the View Again button */\n\t\tviewAgainButton.setOnClickListener(this);\n\t\t\n\t\t/* Add a click listener to the Instructions button */\n\t\tButton buttonInstructions = (Button) findViewById(R.id.button_instructions2);\n\t\tbuttonInstructions.setOnClickListener(this);\n\t\t\n\t\t/* Add listeners to the ImageViews */\n\t\taddImageViewListeners();\n\t}", "private void initListeners() {\n btnCadastrar.setOnClickListener(this);\n cadastrar.setOnClickListener(this);\n }", "private void registerListeners() {\r\n View.OnClickListener clickListener = new ButtonListener();\r\n btnStart.setOnClickListener(clickListener);\r\n btnStop.setOnClickListener(clickListener);\r\n }", "public void addListeners()\n {\n view.addListeners(new FileButtonClick(view, this), new ViewButtonClick(view, this), new ClassClick(view, this), new RelationshipClick(view, this), new RightClickListenerFactory(view, this));\n\t}", "private void setListener() {\n\t\tback_iv.setOnClickListener(this);//返回\r\n\t\trelativeLayout_project.setOnClickListener(this);\r\n\t\trelativeLayout_addr.setOnClickListener(this);\r\n\t\trelativeLayout_activity.setOnClickListener(this);\r\n\t\trelativeLayout_host.setOnClickListener(this);\r\n\t\trelativeLayout_comment.setOnClickListener(this);\r\n\t\t\r\n\t\tsna_viewpager.setOnPageChangeListener(new OnPageChangeListener() {\r\n\t\t\tpublic void onPageSelected(int position) {\r\n\t\t\t\tif (views.size() != 0\r\n\t\t\t\t\t\t&& views.get(position % images.length) != null) {\r\n\r\n\t\t\t\t\tfor (int i = 0; i < views.size(); i++) {\r\n\t\t\t\t\t\tif (i == position % images.length) {\r\n\t\t\t\t\t\t\tviews.get(i)\r\n\t\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.sy_03);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tviews.get(i)\r\n\t\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.sy_05);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\r\n\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\thost_bt.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tintent = new Intent(SnaDetailsActivity.this,HostActivity.class);\r\n\t\t\t\tintent.putExtra(\"stoid\", stoid);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t});\r\n\t\tcomment_bt.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tintent = new Intent(SnaDetailsActivity.this,CommentActivity.class);\r\n\t\t\t\tintent.putExtra(\"stoid\", stoid);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\t\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "public void setupUIListeners() {\n\t\tsetupEditTextListeners();\n\t\tsetupSeekBarsListeners();\n\t}", "@Override\n\tpublic void setListener() {\n\n\t}", "private void setListeners() {\n\t\trefreshButton.addActionListener(new refreshButtonListener());\n\n\t\tthis.list.addMouseListener(new MouseAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent event) {\n\t\t\t\tif (event.getClickCount() == 2 && list.getSelectedValue() != null && !list.getSelectedValue().equals(\"\") && tabs.getSelectedIndex() != -1) {\n\t\t\t\t\tlaunchDocument(tabs.getTitleAt(tabs.getSelectedIndex()), list.getSelectedValue());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttabs.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\t\tif (!tabs.getTitleAt(tabs.getSelectedIndex()).equals(\"Chat\")) {\n\t\t\t\t\tlistmodel.clear();\n\t\t\t\t\tmakeRequest();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t}", "private void setupListeners() {\n\n // \"Save\" button\n Button confirmButton = (Button) findViewById(R.id.button_save_report);\n confirmButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setResult(RESULT_OK);\n saveForm();\n finish(); // eventually calls onPause() and onStop()\n }\n });\n\n // \"Cancel\" button\n Button cancelButton = (Button) findViewById(R.id.button_cancel_edit_report);\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setResult(RESULT_CANCELED);\n finish(); // eventually calls onPause() and onStop()\n }\n });\n\n TextWatcher onFormChangeListener = new TextWatcher() {\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n mFormChanged = true;\n }\n\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n };\n\n mValueText.addTextChangedListener(onFormChangeListener);\n }", "private void setOnClickListeners() {\n now_playing_previous_button.setOnClickListener(this::handleTransportControls);\n\n now_playing_play_button.setOnClickListener(this::handleTransportControls);\n\n now_playing_next_button.setOnClickListener(this::handleTransportControls);\n }", "public void listenButtons() {\n\n playGameButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.PLAY_GAME;\n startActivity();\n }\n });\n\n freePlayButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.FREE_PLAY;\n startActivity();\n }\n });\n\n informationIcon.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mActivities = MyActivities.POP_UP;\n startActivity();\n }\n });\n }", "private void addListeners() {\n \t\tfHistoryListener= new HistoryListener();\n \t\tfHistory.addOperationHistoryListener(fHistoryListener);\n \t\tlistenToTextChanges(true);\n \t}", "public void addListeners() {\n\t\timages[TOP].setOnClickListener(top);\t\n\t\timages[BOTTOM].setOnClickListener(bottom);\n\t\timages[TOP].setOnLongClickListener(topsave);\t\n\t\timages[BOTTOM].setOnLongClickListener(bottomsave);\n }", "private void setListener() {\n\n mManagerPlay.setmOnSuccessPlayer(new ManagerPlay.OnSuccessPlayer() {\n @Override\n public void onSuccess(Tracks tracks) {\n\n mTxtNameMediaPlayer.setText(checkLimitText(tracks.getTitle(), 15));\n mTxtArtistMediaPlayer.setText(checkLimitText(tracks.getArtist(), 20));\n mManagerPlay.setIsPause(false);\n mImgPause.setImageResource(R.drawable.ic_pause);\n\n if(mManagerPlay.isRepeat()) {\n mImgRepeat.setImageResource(R.drawable.icon_repeat_selected);\n\n } else {\n mImgRepeat.setImageResource(R.drawable.ic_repeat);\n }\n\n if (tracks.getArtwork_url() != null) {\n ImageLoader.getInstance().displayImage(tracks.getArtwork_url(), mImgMediaPlayer);\n }\n }\n });\n\n mViewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n }\n\n @Override\n public void onPageSelected(int position) {\n mTabBar.clickTab(position);\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n });\n\n mTabBar.setOnClickTabBar(new TabBar.OnClickTabBar() {\n @Override\n public void onClick(int position) {\n mViewPager.setCurrentItem(position);\n }\n });\n }", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "public void initListener() {\n this.mSearchView.setOnQueryTextListener(this);\n this.mTopDisplayAdapter.setOnItemClickListener(new BaseSearchContactActivity$$Lambda$2(this));\n this.mSearchAdapter.setOnItemClickListener(new BaseSearchContactActivity$$Lambda$3(this));\n }", "private void setClickListeners() {\n buttonSomethingWentWrong.setOnClickListener(this);\n buttonSuggestion.setOnClickListener(this);\n buttonHighlightRequest.setOnClickListener(this);\n closeButton.setOnClickListener(this);\n }", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "void registerListeners();", "private void initEvents() {\n\t\tuser_head_img.setOnClickListener(this);\r\n\t\ttxt_zcgl.setOnClickListener(this);\r\n\t\ttxt_tzgl.setOnClickListener(this);\r\n\t\ttxt_jlcx.setOnClickListener(this);\r\n\t\ttxt_wdyhk.setOnClickListener(this);\r\n\t\ttxt_wdxx.setOnClickListener(this);\r\n\t\tlayout_zhaq.setOnClickListener(this);\r\n\t\tlayout_ssmm.setOnClickListener(this);\r\n\t\ttxt_myredpager.setOnClickListener(this);\r\n\t}", "private void setListeners(){\n\n Button b = (Button) findViewById(R.id.newGameButton);\n b.setOnClickListener(this);\n\n LinearLayout cel1=(LinearLayout) findViewById(R.id.cel1);\n LinearLayout cel2=(LinearLayout) findViewById(R.id.cel2);\n LinearLayout cel3=(LinearLayout) findViewById(R.id.cel3);\n LinearLayout cel4=(LinearLayout) findViewById(R.id.cel4);\n LinearLayout cel5=(LinearLayout) findViewById(R.id.cel5);\n LinearLayout cel6=(LinearLayout) findViewById(R.id.cel6);\n LinearLayout cel7=(LinearLayout) findViewById(R.id.cel7);\n LinearLayout cel8=(LinearLayout) findViewById(R.id.cel8);\n LinearLayout cel9=(LinearLayout) findViewById(R.id.cel9);\n\n cel1.setOnClickListener(this);\n cel2.setOnClickListener(this);\n cel3.setOnClickListener(this);\n cel4.setOnClickListener(this);\n cel5.setOnClickListener(this);\n cel6.setOnClickListener(this);\n cel7.setOnClickListener(this);\n cel8.setOnClickListener(this);\n cel9.setOnClickListener(this);\n }", "private void setlistener() {\n\t\timg_home.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i = new Intent(ManageCustomersActivity.this,\n\t\t\t\t\t\tHome_Activity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}\n\n\t\t});\n\t\tbtn_mc_genrate_invoice.setOnClickListener(new View.OnClickListener() {\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"himurtuza\" + filter_array);\n\t\t\t\tif (filter_array != null) {\n\t\t\t\t\tif (filter_array.length() == 0) {\n\t\t\t\t\t\tToast.makeText(activity,\n\t\t\t\t\t\t\t\tR.string.str_no_data_found_as_search,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (cd.isConnectingToInternet()) {\n\t\t\t\t\t\t\tnew generate_invoice_manage_customer().execute();\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tR.string.No_Internet_Connection,\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t\t}\n\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} else {\n\t\t\t\t\tToast.makeText(activity,\n\t\t\t\t\t\t\tR.string.str_no_data_found_as_search,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "protected void attachListeners() {\n\t\t\n\t}", "@Override\n public void onActivityCreated (Bundle savedInstanceState){\n super.onCreate(savedInstanceState);\n\n getListView().setOnScrollListener(this);\n }", "@SuppressLint(\"ClickableViewAccessibility\")\n private void setTouchListeners() {\n mStudentNameEditText.addTextChangedListener(mTextListener);\n mStudentSexSpinner.setOnTouchListener(mTouchListener);\n mStudentBirthdateRelativeLayout.setOnTouchListener(mTouchListener);\n mStudentGradeEditText.addTextChangedListener(mTextListener);\n mAddPhotoView.setOnTouchListener(mTouchListener);\n mStudentAddClassView.setOnTouchListener(mTouchListener);\n mStudentRemoveClassView.setOnTouchListener(mTouchListener);\n }", "private void setActionListener() {\n\n\t\tlnrPlayVoice.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (audioListener != null) {\n\t\t\t\t\taudioListener.onPlayClicked(isPlaying);\n\t\t\t\t}\n\t\t\t\tlnrReportVoice.setVisibility(View.GONE);\n\t\t\t\tplayVoice();\n\t\t\t}\n\t\t});\n\n\t\tlnrReportVoice.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (audioListener != null) {\n\t\t\t\t\taudioListener.onReportClicked();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void setListeners(){\n\t\t\n\t\tthis.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// chosen to add new patient\n\t\t\t\t\n\t\t\t\tArrayList<String> constructorInput = null;\n\t\t\t\tconstructorInput = NewPatientWindow.showInputdialog(true);\n\t\t\t\t\n\t\t\t\t// if cancel or close chosen on new patient window:\n\t\t\t\tif (constructorInput == null)\n\t\t\t\t\treturn; \n\t\t\t\t\n\t\t\t\t//else:\n\t\t\t\tBrainFreezeMain.patients.add(new Patient(\n\t\t\t\t\t\t(constructorInput.toArray( new String[constructorInput.size()]))));\n\t\t\t\tBrainFreezeMain.currentPatientIndex = BrainFreezeMain.patients.size()-1;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLeftPanel.refreshPatientLabel(); // change to patient list, update label\n\t\t\t\tLeftPanel.refreshPatientData(); // change to patient, update data\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t}", "@Override\n protected void setListener() {\n findView(R.id.btnClear).setOnClickListener(this);\n findView(R.id.btnSave).setOnClickListener(this);\n\n ivGraffit.setOnTouchListener(new GraffitTouchListener());\n }", "void onActivityReady();", "private void setupListeners() {\n mCalendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() {\n @Override\n public void onSelectedDayChange(CalendarView view, int year, int month, int dayOfMonth) {\n // When the clicked date is changed, change the date displayed on screen\n String date = dayOfMonth + \"/\" + (month + 1) + \"/\" + year;\n mTextView.setText(date);\n }\n });\n }", "private void listenersInitiation() {\n ActionSelectors listener = new ActionSelectors();\n submit.addActionListener(listener);\n goBack.addActionListener(listener);\n }", "private void setupBtnListeners() {\n findViewById(R.id.btnAddValue).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n buttonAddValues();\n updateUI();\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n\n //Button to open blood pressure chart sets opens blood pressure chart activity\n findViewById(R.id.btnOpenBPChart).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent bpChart = new Intent(WeightActivity.this, BPChartActivity.class);\n startActivity(bpChart.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));\n mSettingsOrBPChartOpened = true;\n }\n });\n\n //Clicking date button opens date picker and closes keyboard\n findViewById(R.id.tvDate).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showDatePickerDialog();\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n }", "public void addListeners() {\r\n\t\tbtnLogin.addActionListener(listener);\r\n\t\tbtnChooseFile.addActionListener(listener);\r\n\t\tbtnSendMessage.addActionListener(listener);\r\n\t\tbtnRemoveImage.addActionListener(listener);\r\n\t\tbtnUpdateMessages.addActionListener(listener);\r\n\t\tbtnUpdateUsers.addActionListener(listener);\r\n\t}", "protected void installListeners() {\n\n\t}", "@Override\n\tpublic void staticByActivityListener() {\n\t\tsb.setOnSeekBarChangeListener(this);\n\t}", "@Override\r\n public void setListener() {\n input.setInputListener(this);\r\n\r\n //bind load more listener, it will track scroll up\r\n messagesAdapter.setLoadMoreListener(this);\r\n\r\n //bind on message long click\r\n messagesAdapter.setOnMessageLongClickListener(this);\r\n\r\n //get called when a incoming message come..\r\n socketManager.getSocket().on(\"updateChat\", new Emitter.Listener() {\r\n @Override\r\n public void call(Object... args) {\r\n String messageData = (String) args[0];\r\n Gson gson = new Gson();\r\n _Message message = gson.fromJson(messageData, _Message.class);\r\n\r\n //double check for valid room\r\n if (me.isValidRoomForUser(message.getRoomName())) {\r\n\r\n //sometime nodejs can broadcast own message so check and message should be view immediately\r\n\r\n if(!message.getUser().getId().equals(me.getId())) {\r\n //save new incoming message to realm\r\n saveOrUpdateNewMessageRealm(message);\r\n\r\n //check and save validity of room incoming user\r\n runOnUiThread(() -> {\r\n\r\n messagesAdapter.addToStart(message, true);\r\n });\r\n }\r\n\r\n }\r\n }\r\n });\r\n }", "protected void installListeners() {\n }", "protected void installListeners() {\n }", "protected void installListeners() {\n\t}", "private void setOnClickListener() {\n listener = new RecyclerAdapter.RecyclerViewClickListener() {\n @Override\n public void onClick(View v, int position) {\n // Clean sweeps are stopped.\n stopRepeatingDeletionSearch();\n\n // Intent to go to New Reminder is created.\n Intent resultIntent = new Intent(getApplicationContext(),NewReminder.class);\n\n // createNewReminderBundle creates a new bundle containing all the necessary information to recreate the New Reminder activity.\n resultIntent.putExtras(createNewReminderBundle(position));\n\n // New Reminder activity is started.\n startActivityForResult(resultIntent,1);\n }\n };\n }", "private void setOnClickListeners(){\n mDueDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickDate(mDueDateCalendar);\n }\n });\n mDueTime.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickTime(mDueDateCalendar);\n }\n });\n }", "private void initListener() {\n mVideoView.setOnPreparedListener(this);\n mVideoView.setOnCompletionListener(this);\n mVideoView.setOnErrorListener(this);\n }", "private void setTangoListeners() {\n // Lock configuration and connect to Tango\n // Select coordinate frame pair\n final ArrayList<TangoCoordinateFramePair> framePairs =\n new ArrayList<TangoCoordinateFramePair>();\n framePairs.add(new TangoCoordinateFramePair(\n TangoPoseData.COORDINATE_FRAME_START_OF_SERVICE,\n TangoPoseData.COORDINATE_FRAME_DEVICE));\n\n // Listen for new Tango data\n mTango.connectListener(framePairs, new OnTangoUpdateListener() {\n @Override\n public void onPoseAvailable(final TangoPoseData pose) {\n onPoseUpdate(pose);\n }\n\n @Override\n public void onXyzIjAvailable(TangoXyzIjData xyzIj) {\n // We are not using onXyzIjAvailable for this app.\n }\n\n @Override\n public void onPointCloudAvailable(TangoPointCloudData pointCloud) {\n // We are not using onPointCloudAvailable for this app.\n }\n\n @Override\n public void onTangoEvent(final TangoEvent event) {\n // Ignoring TangoEvents.\n }\n\n @Override\n public void onFrameAvailable(int cameraId) {\n // We are not using onFrameAvailable for this application.\n }\n });\n }", "private void addListeners() {\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));\n\n\n tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n adapter.getItem(tab.getPosition()).onAttach(getApplicationContext());\n\n viewPager.setCurrentItem(tab.getPosition());\n\n if (tab.getPosition() == 0) {\n mImageChange.setImageResource(R.drawable.list);\n mImageChange.setClickable(false);\n } else if (tab.getPosition() == 1) {\n mImageChange.setImageResource(R.drawable.pen);\n mImageChange.setClickable(true);\n\n }\n\n\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n adapter.getItem(tab.getPosition()).onAttach(getApplicationContext());\n\n }\n });\n\n viewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n }\n\n @Override\n public void onPageSelected(int position) {\n\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n });\n }", "@Override protected void onStart()\n {\n super.onStart();\n adapter.startListening();\n }", "@Override\n public void setListeners() {\n btnViewOnMap.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Uri map = Uri.parse(ApiUrls.MAPS_ADDRESS_URL + tvLocation.getText().toString());\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(map);\n i.setPackage(ApiUrls.MAPS_APP_URL);\n startActivity(i);\n\n }\n });\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n\n @Override\n public void onRefresh() {\n\n if(NetworkCheck.alertIfNotConnectedToInternet(ViewEventActivity.this, swipeRefreshLayout)){\n\n NetworkInterface.getInstance(getApplicationContext()).getEventsForUser(new EventApiCallback() {\n @Override\n public void onSuccess() {\n updateData();\n swipeRefreshLayout.setRefreshing(false);\n }\n\n @Override\n public void onFailure() {\n populateAdapter();\n Toast.makeText(getApplicationContext(), getString(R.string.network_error), Toast.LENGTH_SHORT).show();\n swipeRefreshLayout.setRefreshing(false);\n }\n });\n }\n else{\n swipeRefreshLayout.setRefreshing(false);\n\n }\n swipeRefreshLayout.setRefreshing(false);\n\n }\n });\n\n btnUpdateOrSignIn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n // Change function of button between update and sign into event\n if(eventType.equals(EventType.ORGANISE)){\n Log.d(TAG, \"In update event\");\n\n Bundle bundle = new Bundle();\n bundle.putString(BundleAndSharedPreferencesConstants.CREATE_OR_UPDATE, BundleAndSharedPreferencesConstants.UPDATE);\n bundle.putInt(DbConstants.EVENT_KEY_EVENT_ID, eventId);\n startNewActivity(CreateUpdateEventActivity.class, bundle);\n finish();\n }\n else if(eventType.equals(EventType.ATTEND)){\n Bundle bundle = new Bundle();\n bundle.putInt(DbConstants.EVENT_KEY_EVENT_ID, eventId);\n\n startNewActivity(SignInActivity.class, bundle);\n }\n }\n });\n }", "void setListener(Listener listener);", "private void initializeListeners()\n {\n btnBack.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n btnCreateAccount.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String email = etEmail.getText().toString();\n String username = etUsername.getText().toString();\n String password = etPassword.getText().toString();\n CreateAccountDTO createAccountDTO = new CreateAccountDTO(email, username, password);\n createAccount(createAccountDTO);\n }\n });\n }", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tlistenr = (CheckStateListener) getActivity();\n\t}", "@Override\r\n protected void onStart() {\r\n super.onStart();\r\n adapter.startListening();\r\n }", "@Override\r\n\tprotected void attachListeners() {\n\t\t\r\n\t}", "private void setAllMarkerOnClickListeners(){\n mMap.setOnMarkerClickListener((Marker marker)->{\n Singleton.get(mainActivity).setCurrentCafeId((String) marker.getTag());\n showInfoBox();\n return false;\n });\n }", "@Override\n\tpublic void addListener() {\n\t\t\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n adapter.startListening();\n }", "private void setButtonOnClickListeners() {\n aboutUsButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n goToFragment(v, new AboutUsFragment());\n }\n });\n\n contactUsButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n goToFragment(v, new ContactUsFragment());\n }\n });\n\n upcomingEventsButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n goToFragment(v, new UpcomingEventsFragment());\n }\n });\n\n makeADonationButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n goToFragment(v, new MakeADonationFragment());\n }\n });\n }", "@Override\n\tprotected void setListener() {\n\t\tsw_lv_searchschedule.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t\tif (BIntentObj.isGetClass == 1) {// 不能查看项目课表查询的数据\n\n\t\t\t\t} else {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif (list.get(arg2 - 1).get(\"TYPE\").equals(\"2\")) {//\n\t\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\t\tintent.putExtra(\"projectid\",\n\t\t\t\t\t\t\t\tlist.get(arg2 - 1).get(\"Id\"));\n\t\t\t\t\t\tintent.setClass(SearchScheduleActivity.this,\n\t\t\t\t\t\t\t\tSearchScheduleDetailActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "public void setListener(final Activity activity, final AdvancedWebviewListener listener) {\n setListener(activity, listener, REQUEST_CODE_FILE_PICKER);\n }", "@Override\n public void onCreate() {\n mp.setOnCompletionListener(this);\n mp.setOnErrorListener(this);\n mp.setOnPreparedListener(this);\n mp.setOnBufferingUpdateListener(this);\n mp.setOnSeekCompleteListener(this);\n mp.setOnInfoListener(this);\n mp.reset();\n }", "private void setUpListeners() {\n TextView listOfPlacesText = findViewById(R.id.list_of_places_text);\n listOfPlacesText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ScavengerHunt.this, ListOfPlaces.class);\n startActivity(intent);\n }\n });\n\n // Goes to List of Places activity\n ImageView topArrow = findViewById(R.id.top_arrow);\n topArrow.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ScavengerHunt.this, ListOfPlaces.class);\n startActivity(intent);\n }\n });\n\n // Goes to QR Scanner\n TextView checkOffText = findViewById(R.id.checkoff_place_text);\n checkOffText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (ContextCompat.checkSelfPermission(ScavengerHunt.this,\n Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) {\n Intent intent = new Intent(ScavengerHunt.this, ScanQRCode.class);\n startActivity(intent);\n } else {\n requestCameraPermission();\n }\n }\n });\n\n // Goes to QR Scanner\n ImageView bottomArrow = findViewById(R.id.bottom_arrow);\n bottomArrow.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ScavengerHunt.this, ScanQRCode.class);\n startActivity(intent);\n }\n });\n\n // Moves camera to Student Union when pressed (in case the user is off campus)\n ImageView pawImage = findViewById(R.id.paw);\n pawImage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(34.181309518547195, -117.32371486723423), 18));\n }\n });\n\n }", "@Override\n\tprotected void setOnClickListener() {\n\n\t}", "private void setOnClickListeners() {\n progressBar = (ProgressBar) findViewById(R.id.progressBar);\n progressBar.setMax(100);\n progressBar.setIndeterminate(false);\n\n }", "public void setListeners()\n {\n connect.setOnClickListener(this);\n stopMotors.setOnClickListener(this);\n\n mVerticalSeekbarLeft.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n // Convert using scale\n progress = progress - numberOfNotches;\n progress = progress * scale;\n\n // Direction is sent as 0 for forward or 1 for backward\n leftDirection = 0;\n\n // If progress is negative, set direction to 1 and then take abs to avoid sending \"-\" over bluetooth\n if (progress < 0) {\n leftDirection = 1;\n progress = Math.abs(progress);\n }\n\n speedHolder.setLeftSpeed(\"\" + leftDirection + progress);\n mLeftSliderText.setText(String.valueOf(progress));\n\n writeData(\"move \" + speedHolder.getLeftSpeed() + \" \" + speedHolder.getRightSpeed() + \"x\");\n }\n\n });\n\n mVerticalSeekbarRight.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n // Convert using scale\n progress = progress - numberOfNotches;\n progress = progress * scale;\n\n // Direction is sent as 0 for forward or 1 for backward\n rightDirection = 0;\n\n // If progress is negative, set direction to 1 and then take abs to avoid sending \"-\" over bluetooth\n if (progress < 0) {\n rightDirection = 1;\n progress = Math.abs(progress);\n }\n\n speedHolder.setRightSpeed(\"\" + rightDirection + progress);\n mRightSliderText.setText(String.valueOf(progress));\n\n writeData(\"move \" + speedHolder.getLeftSpeed() + \" \" + speedHolder.getRightSpeed() + \"x\");\n }\n });\n }", "public void addListener(EventListener listener);", "protected void installListeners() {\n spinner.addPropertyChangeListener(propertyChangeListener); }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (callbackManager != null) callbackManager.setActivity(activity);\n }", "@Override\r\n\tpublic void initListeners() {\n\t\t\r\n\t}", "public abstract void registerListeners();", "@Override\n\tpublic void setUpListener() {\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmAdapter.setIndex(position);\n\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\tif(litener != null){\n\t\t\t\t\tlitener.onItemClick(position, mAdapter.getListItem(position), view);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void addListeners() {\n\n startButton.addActionListener(e -> {\n if (play) {\n gameFrame.startGame();\n } else {\n gameFrame.stopGame();\n }\n play = !play;\n setTextOfStartPause();\n });\n saveButton.addActionListener(e -> {\n gameFrame.saveGame();\n });\n loadButton.addActionListener(e -> {\n gameFrame.loadGame();\n });\n resetButton.addActionListener(e -> {\n gameFrame.clearBoard();\n play = true;\n setTextOfStartPause();\n });\n exitButton.addActionListener(e -> {\n gameFrame.exitGame();\n });\n }", "@Override\n\tprotected void setListener() {\n\t\tslider_text.setOnClickListener(this);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "private void setListeners() {\n try {\n\n viewButtonChennai = findViewById(R.id.viewButtonChennai);\n viewButtonMumbai = findViewById(R.id.viewButtonMumbai);\n viewButtonBangalore = findViewById(R.id.viewButtonBangalore);\n viewButtonNewDelhi = findViewById(R.id.viewButtonNewDelhi);\n\n viewButtonChennai.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n homeController.startFRGetDailyForecast(getString(R.string.city_chennai));\n\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n viewButtonMumbai.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n homeController.startFRGetDailyForecast(getString(R.string.city_mumbai));\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n viewButtonBangalore.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n homeController.startFRGetDailyForecast(getString(R.string.city_bangalore));\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n viewButtonNewDelhi.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n homeController.startFRGetDailyForecast(getString(R.string.city_newdelhi));\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n\n viewCardToday.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n HomeModel homeModel = (HomeModel) ObjectStore.I().Get(AppConstants.OBJ_HOME_MODEL, true);\n if (null != homeModel.dailyForecasts) {\n showToastOfTodayWeatherDetails(homeModel.dailyForecasts.getList().get(0));\n } else {\n Toast.makeText(HomeActivity.this, \"No Data to show\", Toast.LENGTH_SHORT).show();\n }\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n\n\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }", "public void setListener(final Activity activity, final AdvancedWebviewListener listener,\n final int requestCodeFilePicker) {\n if (activity != null) {\n mActivity = new WeakReference<Activity>(activity);\n } else {\n mActivity = null;\n }\n\n setListener(listener, requestCodeFilePicker);\n }", "public void addListenerOnButton() {\n\n\t\t//koppel de button code aan een widget en voeg een onclicklistener toe\n\t\tsettings = (Button) findViewById(R.id.settings);\n\n\t\tsettings.setOnClickListener(new OnClickListener() {\n\t\t\t//koppel de button aan een nieuw xml scherm wat opent\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Settings.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}\n\n\t\t});\n\n\t\tsearch = (Button) findViewById(R.id.search);\n\n\t\tsearch.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Search.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}\n\t\t});\n\t\tterug = (Button) findViewById(R.id.terug);\n\n\t\tterug.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tsetResult(RESULT_OK, intent);\n\t\t\t\tfinish();\n\t\t\t}\n\n\t\t});\n\n\n\t}", "@Override\r\n\tprotected void initListener() {\n\t\trly_personal_info.setOnClickListener(this);\r\n\t}" ]
[ "0.74341947", "0.72677815", "0.71222794", "0.71123666", "0.6969749", "0.6965489", "0.69500357", "0.6869468", "0.68633735", "0.68233013", "0.67957354", "0.6710908", "0.6692692", "0.66628563", "0.6654772", "0.6621479", "0.6621092", "0.660712", "0.6596057", "0.658333", "0.6560375", "0.65399486", "0.6529713", "0.6522333", "0.6508466", "0.6483183", "0.647547", "0.6465887", "0.6465887", "0.64559066", "0.6453254", "0.6450618", "0.6426072", "0.64163464", "0.6372017", "0.6367536", "0.63632107", "0.63627326", "0.6360089", "0.6360089", "0.6349503", "0.63458765", "0.6314685", "0.62832516", "0.6251391", "0.6249886", "0.62216884", "0.6215042", "0.6208612", "0.6206628", "0.6190264", "0.6189978", "0.6176882", "0.6150834", "0.61404663", "0.6137041", "0.61316466", "0.61243653", "0.61186177", "0.6105673", "0.60870785", "0.6080993", "0.6080993", "0.6073522", "0.6071077", "0.6070568", "0.60694987", "0.6059795", "0.6056495", "0.6034978", "0.60342395", "0.6033154", "0.6029742", "0.6029357", "0.6028168", "0.60210145", "0.6007931", "0.6005896", "0.5988805", "0.5967472", "0.5962613", "0.5959336", "0.5946759", "0.59403986", "0.59396863", "0.5938556", "0.5933059", "0.5928529", "0.5925361", "0.5923884", "0.5913937", "0.59115565", "0.5903977", "0.58872056", "0.5886607", "0.5882888", "0.58722407", "0.5865519", "0.5858509", "0.5857177" ]
0.63089633
43
Performs the process to search the address
private void searchAddress() { CommomUtils.hideKeyboard(MainActivity.this, etAddress); //Check if the address was informed if (etAddress.getText().toString().equals("")) { Toast.makeText(MainActivity.this, R.string.activity_main_search_address_validation, Toast.LENGTH_SHORT).show(); return; } lvResult.setVisibility(View.GONE); showProgress(); //Call the api for searching the address GoogleMapsService service = ServiceGenerator.createService(GoogleMapsService.class, getString(R.string.google_maps_api_base_url)); service.getGeocoding(etAddress.getText().toString(), true, new Callback<GeocodingResult>() { @Override public void success(GeocodingResult googleGeocodingResult, Response response) { hideProgress(); geocodingResult = googleGeocodingResult; if (geocodingResult.getResults().size() > 0) { loadResult(); } else { Toast.makeText(MainActivity.this, R.string.activity_main_search_no_results_found, Toast.LENGTH_SHORT).show(); } } @Override public void failure(RetrofitError error) { hideProgress(); Toast.makeText(MainActivity.this, error.getMessage(), Toast.LENGTH_SHORT).show(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchmap() {\n String location = \"475 Dien bien phu\";\n //lcSearch;\n\n if (location != null && !location.equals(\"\")) {\n List<Address> lstAddress = null;\n try {\n lstAddress = geocoder.getFromLocationName(location, 1);\n System.out.print(lstAddress);\n if (lstAddress != null) {\n double lat = lstAddress.get(0).getLatitude();\n double lng = lstAddress.get(0).getLongitude();\n LatLng latLng = new LatLng(lat, lng);\n goToMaps(latLng);\n } else {\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public void onSearch(View view){\n List<Address> addressList = null;\n EditText location_tf = (EditText) findViewById(R.id.TFaddress);\n String location = location_tf.getText().toString();\n if(location!=null || location.equals(\"\")){\n Geocoder geocoder = new Geocoder(this);\n try {\n addressList = geocoder.getFromLocationName(location, 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n Address address = addressList.get(0);\n LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());\n marker = mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker\"));\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,17));\n\n }\n\n }", "public void search(String location){\n List<Address> addressList = null;\n if(location != null || !location.equals(\"\")){\n Geocoder geocoder = new Geocoder(this);\n try{\n addressList = geocoder.getFromLocationName(location,1);\n }\n catch (IOException e){}\n Address address =addressList.get(0);\n LatLng latlng = new LatLng(address.getLatitude(), address.getLongitude());\n mMap.addMarker(new MarkerOptions().position(latlng).title(location));\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latlng));\n Toast.makeText(getApplication(), location, Toast.LENGTH_LONG).show();\n }\n }", "private void searchFunction() {\n\t\t\r\n\t}", "public void searchByAccount() {\n\t\t\n\t\tlog.log(Level.INFO, \"Please Enter the account number you want to search: \");\n\t\tint searchAccountNumber = scan.nextInt();\n\t\tbankop.search(searchAccountNumber);\n\n\t}", "public void searchPerson() {\n\t\tSystem.out.println(\"*****Search a person*****\");\n\t\tSystem.out.println(\"Enter Phone Number to search: \");\n\t\tlong PhoneSearch = sc.nextLong();\n\t\tfor (int i = 0; i < details.length; i++) {\n\t\t\tif (details[i] != null && details[i].getPhoneNo() == PhoneSearch) {\n\t\t\t\tSystem.out.print(\"Firstname \\tLastname \\tAddress \\t\\tCity \\t\\tState \\t\\t\\tZIP \\t\\tPhone \\n\");\n\t\t\t\tSystem.out.println(details[i]);\n\t\t\t}\n\t\t}\n\t}", "public void searchPlace(String value)\n\t\t{ \n\t\t Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault()); \n\t\t try {\n\t\t List<Address> addresses = geoCoder.getFromLocationName(\n\t\t value, 5);\t\t \n\t\t if (addresses.size() > 0) {\n\t\t \t\n\t\t \tdouble latitude= 0.0, longtitude= 0.0;\n\t\t \tGeoPoint p = new GeoPoint(\n\t\t (int) (addresses.get(0).getLatitude() * 1E6), \n\t\t (int) (addresses.get(0).getLongitude() * 1E6));\n\t\t \tlatitude=p.getLatitudeE6()/1E6;\n\t\t\t\t\t\tlongtitude=p.getLongitudeE6()/1E6;\t \n\t\t\t\t\t\tlat = String.valueOf(latitude);\n\t\t\t\t\t\tlongi = String.valueOf(longtitude);\n\t\t\t\t\t\torigin = new LatLng(latitude,longtitude);\n\t\t \tmap.moveCamera( CameraUpdateFactory.newLatLngZoom(origin, (float) 14.0) ); \n\t\t } \n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\n\n\n\t\t \n\n\t\t}", "public AddressBook search(String query)\n {\n Integer count = 0;\n Integer size = addressEntryList.size();\n AddressBook ab = new AddressBook();\n int indexes[] = new int[size];\n //For loop, iterating through our entire list of Address Entries\n for (int i = 0; i < addressEntryList.size(); i++)\n {\n //If the lastname is the search query\n if(addressEntryList.get(i).getLastName().contains(query))\n {\n indexes[count] = i;\n count++;\n }\n }\n //If we found anything\n if (count > 0)\n {\n //Add entries found\n for (int i = 0; i < count; i++)\n {\n ab.addressEntryList.add(addressEntryList.get(indexes[i]));\n }\n }\n //No entries were found\n else {\n System.out.println(\"No entries were found.\");\n }\n\n return ab;\n\n }", "void search();", "void search();", "void onAddressFound(@Nullable Address address);", "public void search() {\r\n \t\r\n }", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tint wkid = map.getSpatialReference().getID();\n\n\t\t\t\t\t\t\tLocator locator = Locator\n\t\t\t\t\t\t\t\t\t.createOnlineLocator(floorInfo\n\t\t\t\t\t\t\t\t\t\t\t.getLocatorServerPath());\n\t\t\t\t\t\t\t// Create suggestion parameter\n\t\t\t\t\t\t\tLocatorFindParameters params = new LocatorFindParameters(\n\t\t\t\t\t\t\t\t\taddress);\n\n\t\t\t\t\t\t\t// ArrayList<String> outFields = new\n\t\t\t\t\t\t\t// ArrayList<String>();\n\t\t\t\t\t\t\t// outFields.add(\"*\");\n\t\t\t\t\t\t\t// params.setOutFields(outFields);\n\t\t\t\t\t\t\t// Set the location to be used for proximity based\n\t\t\t\t\t\t\t// suggestion\n\t\t\t\t\t\t\t// params.setLocation(map.getCenter(),map.getSpatialReference());\n\t\t\t\t\t\t\t// Set the radial search distance in meters\n\t\t\t\t\t\t\t// params.setDistance(50000.0);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tlocatorResults = locator.find(params);\n\t\t\t\t\t\t\t\t// HashMap<String, String> params = new\n\t\t\t\t\t\t\t\t// HashMap<String,\n\t\t\t\t\t\t\t\t// String>();\n\t\t\t\t\t\t\t\t// params.put(\"货架编号\", address);\n\t\t\t\t\t\t\t\t// locatorResults = locator.geocode(params,\n\t\t\t\t\t\t\t\t// null,\n\t\t\t\t\t\t\t\t// map.getSpatialReference());\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tSystem.out.println(\"查找:\" + address + \" 出错:\"\n\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (locatorResults != null\n\t\t\t\t\t\t\t\t\t&& locatorResults.size() > 0) {\n\t\t\t\t\t\t\t\t// Add the first result to the map and zoom to\n\t\t\t\t\t\t\t\t// it\n\t\t\t\t\t\t\t\tfor (LocatorGeocodeResult result : locatorResults) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"查找:\" + address + \" 结果:\"\n\t\t\t\t\t\t\t\t\t\t\t+ result.getAddress());\n\n\t\t\t\t\t\t\t\t\tif (result.getAddress() != null\n\t\t\t\t\t\t\t\t\t\t\t&& address.equals(result\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getAddress())) {\n\n\t\t\t\t\t\t\t\t\t\tfloorInfo.getShelfList().add(result);\n\t\t\t\t\t\t\t\t\t\t// shelfList.add(result);\n\t\t\t\t\t\t\t\t\t\tbreak;\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\tsearchTime++;\n\t\t\t\t\t\t\tSystem.out.println(\"已查找次数:\" + searchTime);\n\t\t\t\t\t\t\tif (searchTime >= mSearchCount) {\n\t\t\t\t\t\t\t\tmHandler.post(mMarkAndRoute);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public ArrayList<AddressEntry> searchByPostalAddress(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getPostalAddress().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "@Override\n protected List<Address> doInBackground(String... locationName) {\n Geocoder geocoder = new Geocoder(getBaseContext());\n List<Address> addresses = null;\n\n try {\n // Getting a maximum of 10 Address that matches the input text\n addresses = geocoder.getFromLocationName(locationName[0], 10);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n return addresses;\n }", "public HDAddressDescription findAddress(Address addr) {\n HDAddressDescription retval = null;\n for (HDAccount acct : mAccounts) {\n retval = acct.findAddress(addr);\n if (retval != null)\n return retval;\n }\n return retval;\n }", "@Override\n protected List<Address> doInBackground(String... locationName) {\n Geocoder geocoder = new Geocoder(getBaseContext());\n List<Address> addresses = null;\n \n try {\n // Getting a maximum of 3 Address that matches the input text\n addresses = geocoder.getFromLocationName(locationName[0], 3);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return addresses;\n }", "@Override\n protected List<Address> doInBackground(String... locationName) {\n Geocoder geocoder = new Geocoder(getBaseContext());\n List<Address> addresses = null;\n\n try {\n // Getting a maximum of 3 Address that matches the input text\n addresses = geocoder.getFromLocationName(locationName[0], 3);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return addresses;\n }", "@Override\n protected List<Address> doInBackground(String... locationName) {\n Geocoder geocoder = new Geocoder(BookingActivity.this);\n List<Address> addresses = null;\n\n try {\n // Getting a maximum of 3 Address that matches the input text\n addresses = geocoder.getFromLocationName(locationName[0], 3);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return addresses;\n }", "private Response getAddressList( String term )\n {\n\n ReferenceList list = null;\n try\n {\n if ( \"RestAddressService\".equals( AddressServiceProvider.getInstanceClass( ) ) )\n {\n list = AddressServiceProvider.searchAddress( null, term );\n }\n\n }\n catch( RemoteException e )\n {\n AppLogService.error( e );\n }\n\n if ( list == null )\n {\n _logger.error( Constants.ERROR_NOT_FOUND_RESOURCE );\n return Response.status( Response.Status.NOT_FOUND )\n .entity( JsonUtil.buildJsonResponse( new ErrorJsonResponse( Response.Status.NOT_FOUND.name( ), MSG_ERROR_GET_ADDRESSES ) ) ).build( );\n }\n\n return Response.status( Response.Status.OK ).entity( JsonUtil.buildJsonResponse( new JsonResponse( list ) ) ).build( );\n }", "public Data getDataContaining(Address addr);", "abstract public void search();", "@Override\r\n\t\t\tprotected List<Address> doInBackground(String... locationName) {\n\t\t\t\tGeocoder geocoder = new Geocoder(getBaseContext());\r\n\t\t\t\tList<Address> addresses = null;\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Getting a maximum of 3 Address that matches the input text\r\n\t\t\t\t\taddresses = geocoder.getFromLocationName(locationName[0], 3);\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\treturn addresses;\r\n\t\t\t}", "public void searchOnGooleMap(String address) {\n String map = \"http://maps.google.co.in/maps?q=\" + address;\n Uri gmmIntentUri = Uri.parse(map);\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n if (mapIntent.resolveActivity(getContext().getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }", "public void searchStreet(View view) throws ExecutionException, InterruptedException {\n\n EditText editField = (EditText)findViewById(R.id.street_name);\n String street = editField.getText().toString();\n\n if(street.isEmpty()){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n builder.setMessage(R.string.empty_phrase)\n .setTitle(R.string.search_results);\n AlertDialog dialog = builder.create();\n dialog.show();\n } else {\n\n InputMethodManager inputManager = (InputMethodManager)\n getSystemService(this.INPUT_METHOD_SERVICE);\n\n inputManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(),\n InputMethodManager.HIDE_NOT_ALWAYS);\n new LocationActivity(this).getLocation();\n }\n }", "@Override\n protected Void doInBackground(Void... voids) {\n\n\n Geocoder gc = new Geocoder(MainActivity.this);\n\n Log.d(\"florianBurel\", \"gc - isPresent : \" + (gc.isPresent() ? \"YES\" : \"NO\"));\n\n try {\n List<Address> addresses = gc.getFromLocation(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude(), 1);\n\n Log.d(\"florianBurel\", addresses.size() + \" addresses found\");\n\n //city.setName(addresses.get(0).getLocality());\n\n } catch (IOException e) {\n city.setName(\"Unknown Location\");\n }\n\n\n\n\n return null;\n }", "public void search() {\n }", "void searchProbed (Search search);", "protected ArrayList<String> search(String key) {\n addresses = map.get(key);\n if (addresses == null) {\n return null;\n }\n return addresses;\n }", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n mAddressOutput = resultData.getString(Constants.RESULT_DATA_KEY);\n Log.d(TAG, \"Address: \" + mAddressOutput);\n\n // show a toast message is address is found\n if(resultCode == Constants.SUCCESS_RESULT) {\n Toast.makeText(MapsActivity.this, R.string.address_found, Toast.LENGTH_LONG).show();\n }\n }", "public static void search(){\n\t\tfor (Page p:heap){\n\t\t\tfor(Building b:p.buildings){\n\t\t\t\t\n\t\t\t\t//System.out.println(b.buildingName);\n\t\t\t\tif(b.getBuildingName()!=null) {\n\t\t\t\t\tif(b.getBuildingName().contains(searchQuery)){\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println(\"Building Name: \" + b.getBuildingName());\n\t\t\t\t\t\tSystem.out.println(\"Property ID: \" + b.getPropID());\n\t\t\t\t\t\tSystem.out.println(\"Census year: \" + b.getCensusYear());\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tbuildingsFound++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpagesSearched++;\n\t\t}\n\t}", "private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }", "@RequestMapping(value = \"/adressensuche\", method = RequestMethod.GET)\n @ResponseBody\n public void adressensuche(\n @RequestParam(value = \"query\", required = false) String query,\n HttpServletResponse response) throws IOException {\n\n try {\n sendOk(response, geoService.searchAddress(query));\n } catch (Exception ex) {\n java.util.logging.Logger.getLogger(BackendController.class.getName()).log(Level.SEVERE, null, ex);\n sendError(response, ex);\n }\n }", "public List<UrlAddress> searchDBUrl() {\n log.info(new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(new Date()) + \"find all url address\");\n List<UrlAddress> all = urlRepository.findAll();\n return all;\n }", "public interface AddressFinderService {\n Set<Address> findAddresses(String postcode);\n}", "public static List<Address> search(String value) throws SQLException, Exception {\n\n String sql = \"SELECT * FROM address WHERE (UPPER(publicplace) LIKE UPPER(?) AND enabled=?)\";\n\n List<Address> listAddress = null;\n\n Connection con = null;\n\n PreparedStatement stmt = null;\n\n ResultSet result = null;\n try {\n //Opens a connection to the DB\n con = ConnectionUtils.getConnection();\n //Creates a statement for SQL commands\n stmt = con.prepareStatement(sql);\n\n stmt.setString(1, \"%\" + value + \"%\");\n stmt.setBoolean(2, true);\n\n result = stmt.executeQuery();\n\n while (result.next()) {\n\n if (listAddress == null) {\n listAddress = new ArrayList<Address>();\n }\n\n // Create a Address instance and population with BD values\n Address address = new Address();\n\n address.setId(result.getInt(\"id\"));\n PublicPlaceType publicPlaceType = DAOPublicPlaceType.get(result.getInt(\"publicplace_type_id\"));\n address.setPublicPlaceType(publicPlaceType);\n City city = DAOCity.get(result.getInt(\"city_id\"));\n address.setCity(city);\n address.setNumber(result.getInt(\"number\"));\n address.setComplement(result.getString(\"complement\"));\n address.setDistrict(result.getString(\"district\"));\n address.setZipcode(result.getInt(\"zipcode\"));\n\n // Add the instance in the list\n listAddress.add(address);\n }\n } finally {\n ConnectionUtils.finalize(result, stmt, con);\n }\n\n return listAddress;\n }", "public com.apatar.cdyne.ws.demographix.SummaryInformation getLocationInformationByAddress(java.lang.String addressLine1, java.lang.String city, java.lang.String stateAbbrev, java.lang.String zipCode, java.lang.String licenseKey) throws java.rmi.RemoteException;", "private static Address getOfficialByAddress(String address) throws Exception {\n\t\tString USER_AGENT = \"Mozilla/5.0\";\n\n\t\tString name = \"\", country = \"US\", zip = \"\", city = \"\", state = \"\", line1 = \"\", line2 = \"\";\n\t\tAddress to = null;\n\t\t// Replaces all strings with '%20' for URL completion\n\t\taddress = address.replace(\" \", \"%20\");\n\t\tString urlString = \"https://www.googleapis.com/civicinfo/v2/representatives?key=AIzaSyAEU9J6KzUL_gXPGi-4S6XekJuEC0JRWjA&address=\" + address;\n\t\tURL url = new URL(urlString);\n\t\tHttpURLConnection con = (HttpURLConnection) url.openConnection();\n\t\t// By default it is GET request\n\t\tcon.setRequestMethod(\"GET\");\n\t\t//add request header\n\t\tcon.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t\n\t\t// Reading response from input Stream\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t \n\t\tString output;\n\t\tStringBuffer response = new StringBuffer();\n\t\twhile ((output = in.readLine()) != null) {\n\t\t\tresponse.append(output);\t\n\t\t}\n\t\tin.close();\n\t\t\n\t\t// Constructs JSONOBject to parse the response\n\t\tJSONObject object = new JSONObject(response.toString());\n\t\tJSONArray addresses = object.getJSONArray(\"officials\");\n\t\t\n\t\t// Takes array of individuals response and selects last index of it by default (may be optimized for more specific selections)\n\t\tJSONObject person = addresses.getJSONObject(addresses.length()-1);\n\t\tJSONArray fields = person.getJSONArray(\"address\");\n\t\tJSONObject addressTo = fields.getJSONObject(0);\n\t\t\t\t\n\t\tif(person.has(\"name\"))\n\t\t\tname = person.getString(\"name\");\n\t\t\n\t\tif(addressTo.has(\"zip\"))\n\t\t\tzip = addressTo.getString(\"zip\");\n\t\t\n\t\tif(addressTo.has(\"city\"))\n\t\t\tcity = addressTo.getString(\"city\");\n\t\t\n\t\tif(addressTo.has(\"state\"))\n\t\t\tstate = addressTo.getString(\"state\");\n\t\t\n\t\tif(addressTo.has(\"line2\"))\n\t\t\tline2 = addressTo.getString(\"line2\");\n\t\t\n\t\tif(addressTo.has(\"line1\"))\n\t\t\t line1 = addressTo.getString(\"line1\");\n\t\t\n\t\tto = new Address(name, country, zip, city, state, line2, line1);\n\t\t\n\n\t\treturn to;\n\t\t\n\t \n\t }", "List<ShipmentInfoPODDTO> search(String query);", "public void searchNodeRequest(long idNode, Address address){\r\n\t\tArrayList<NodeAddress> node = routeTable.get(idNode);\r\n\t\tif ( node != null && node.size() != 0 ){\r\n\t\t\tmyCommunications.send(\r\n\t\t\t\t\tnew NodeAddress(0, address), \r\n\t\t\t\t\tnew FindNodeMessage( node ).toByteArray()\r\n\t\t\t);\r\n\t\t\r\n\t\t//Sending to Entity for broadcast\r\n\t\t}else{\r\n\t\t\tareaWrapper.sendtoEntity(new NodeAddress(0, address), new SearchNodeRequestMessage(idNode).toByteArray());\r\n\t\t}\r\n\t}", "@Override\n\tpublic List<Address> FindAllAddress() {\n\t\treturn ab.FindAll();\n\t}", "@Transactional\r\n\t@Override\r\n\tpublic List<DOS> get_search_addr(String txt,String txt1) {\n\t\treturn dosdao.get_search_addr(txt,txt1);\r\n\t}", "private void searchQuery(String query) {\n mSearchAheadServiceV3 = new SearchAheadService(this, API_KEY);\n\n String queryString = query;\n\n LatLng surreyBC = new LatLng(49.104599F, -122.823509F);\n\n List searchCollections = Arrays.asList(SearchCollection.AIRPORT, SearchCollection.ADMINAREA,\n SearchCollection.ADDRESS, SearchCollection.FRANCHISE, SearchCollection.POI);\n try {\n SearchAheadQuery searchAheadQuery = new SearchAheadQuery\n .Builder(queryString, searchCollections)\n .location(surreyBC)\n .limit(5)\n .build();\n\n mSearchAheadServiceV3.predictResultsFromQuery(searchAheadQuery,\n new SearchAheadService.SearchAheadResponseCallback() {\n\n @Override\n public void onSuccess(@NonNull SearchAheadResponse searchAheadResponse) {\n\n //Get search results from the request response\n List<SearchAheadResult> searchAheadResults = searchAheadResponse.getResults();\n\n //if we have requests\n if (searchAheadResults.size() > 0) {\n\n //clear the current data to display\n searchResultsData.clear();\n\n try {\n\n int size = (searchAheadResults.size() < 5) ? searchAheadResults.size() : 5;\n\n for (int i = size - 1; i >= 0; i--) {\n // create a hashmap\n HashMap<String, String> hashMap = new HashMap<>();\n\n AddressProperties addressProperties = searchAheadResults.get(i).getPlace().getAddressProperties();\n\n // convert image int to a string and place it into the hashmap with an images key\n hashMap.put(\"address\", searchAheadResults.get(i).getName());\n hashMap.put(\"city\", addressProperties.getCity() + \", \" + addressProperties.getStateCode());\n hashMap.put(\"lat\", String.valueOf(searchAheadResults.get(i).getPlace().getLatLng().getLatitude()));\n hashMap.put(\"long\", String.valueOf(searchAheadResults.get(i).getPlace().getLatLng().getLongitude()));\n\n\n // add this hashmap to the list\n searchResultsData.add(hashMap);\n }\n\n //handle null pointer exception on address properties\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n\n //adapter inputs\n String[] from = {\n \"address\",\n \"city\",\n \"lat\",\n \"long\"\n };\n\n int[] to = {R.id.text_result_address, R.id.text_result_city, R.id.hidden_location_lat, R.id.hidden_location_long};\n\n searchAdapter = new SimpleAdapter(getApplicationContext(), searchResultsData, R.layout.item_search_result, from, to);\n mListViewSearch.setAdapter(searchAdapter);\n mListViewSearch.setVisibility(View.VISIBLE);\n } else {\n resetSearchAheadList();\n }\n }\n\n @Override\n public void onError(Exception e) {\n Log.e(\"MAPQUEST\", \"Search Ahead V3 Failure\", e);\n }\n });\n } catch (IllegalQueryParameterException e) {\n Log.e(\"Error performing search\", e.getMessage());\n }\n }", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "@Test\n public void iPAddressGeolocateStreetAddressTest() throws Exception {\n String value = null;\n GeolocateStreetAddressResponse response = api.iPAddressGeolocateStreetAddress(value);\n\n // TODO: test validations\n }", "protected void streetLoc(LatLng latLng) {\n if (latLng == null) {\n return;\n }\n TencentSearch tencentSearch = new TencentSearch(this);\n //还可以传入其他坐标系的坐标,不过需要用coord_type()指明所用类型\n //这里设置返回周边poi列表,可以在一定程度上满足用户获取指定坐标周边poi的需求\n Geo2AddressParam geo2AddressParam = new Geo2AddressParam(latLng).getPoi(true)\n .setPoiOptions(new Geo2AddressParam.PoiOptions()\n// .setRadius(1000).setCategorys(\"面包\")\n .setPolicy(Geo2AddressParam.PoiOptions.POLICY_O2O));\n tencentSearch.geo2address(geo2AddressParam, new HttpResponseListener<BaseObject>() {\n\n @Override\n public void onSuccess(int arg0, BaseObject arg1) {\n if (arg1 == null) {\n return;\n }\n Geo2AddressResultObject obj = (Geo2AddressResultObject)arg1;\n StringBuilder sb = new StringBuilder();\n sb.append(\"逆地址解析\");\n sb.append(\"\\n地址:\" + obj.result.address);\n sb.append(\"\\npois:\"+obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n// provinceMap.put()\n province1 = provinceMap.get(obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n if(province1 == null) {\n provinceMap.put(obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district,obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n getStreet(obj.result.address_component.province, obj.result.address_component.city, obj.result.address_component.district);\n }\n\n// for (Poi poi : obj.result.pois) {\n// sb.append(\"\\n\\t\" + poi.title);\n// tencentMap.addMarker(new MarkerOptions()\n// .position(poi.latLng) //标注的位置\n// .title(poi.title) //标注的InfoWindow的标题\n// .snippet(poi.address) //标注的InfoWindow的内容\n// );\n// }\n// Log.e(\"test\", sb.toString());\n }\n\n @Override\n public void onFailure(int arg0, String arg1, Throwable arg2) {\n Log.e(\"test\", \"error code:\" + arg0 + \", msg:\" + arg1);\n }\n });\n }", "private void searchPerson(String searchName){\r\n\r\n textAreaFromSearch.setText(\"\");\r\n try{\r\n Scanner scanner = new Scanner(file);\r\n String info;\r\n\r\n while (scanner.hasNext()){\r\n String line = scanner.nextLine();\r\n String[] components = line.split(separator);\r\n if (searchName.length() == 0){\r\n return;\r\n }\r\n if (components[0].contains(searchName)){\r\n info = \" Name: \" + components[0] + \"\\n\";\r\n info += \" Phone No.: \"+components[1]+\"\\n\";\r\n info += \" Email: \"+components[2]+\"\\n\";\r\n info += \" Address: \"+components[3]+\"\\n\";\r\n textAreaFromSearch.append(info+\"\\n\");\r\n }\r\n }\r\n }catch (IOException e){\r\n fileError();\r\n }\r\n }", "private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}", "public static void captureAddressInformation(){\r\n\t\ttestInfo.log(Status.INFO, \"Capture Address Information\");\r\n\t\tIWanna.selectFromDropdown(\"ddStatus\", red.getCellData(\"TestData\", \"ResStatus\", currentRow));\r\n\t\tIWanna.type(\"tbResidentialLine1\", red.getCellData(\"TestData\", \"ResLine1\", currentRow));\r\n\t\tIWanna.type(\"tbResidentialLine2\", red.getCellData(\"TestData\", \"ResLine2\", currentRow));\r\n\t\tIWanna.type(\"tbResidentialSuburb\", red.getCellData(\"TestData\", \"ResSuburb\", currentRow));\r\n\t\tIWanna.click(\"btnSearchResidentialSuburb\");\r\n\t\tIWanna.wait(1);\r\n\t\tIWanna.selectFromDropdown(\"ddResidentialSuburb\", 1);\t\r\n\t\tIWanna.type(\"tbResidentialCity\", red.getCellData(\"TestData\", \"ResCity\", currentRow));\r\n\t\tIWanna.click(\"btnResidentialCitySearch\");\r\n\t\tIWanna.selectFromDropdown(\"ddResidentialCity\", 1);\r\n\t\tIWanna.type(\"tbYYatThisAddress\", red.getCellData(\"TestData\", \"PeriodYY\", currentRow));\r\n\t\tIWanna.type(\"tbMMatThisAddress\", red.getCellData(\"TestData\", \"PeriodMM\", currentRow));\r\n\t\t\r\n\t\tString sameAsPostal = red.getCellData(\"TestData\", \"SameAsPostal\", currentRow);\r\n\t\tif (sameAsPostal.equalsIgnoreCase(\"Yes\")){\r\n\t\t\tIWanna.click(\"rbSameAsPostalYes\");\r\n\t\t}\r\n\t\telse if(sameAsPostal.equalsIgnoreCase(\"No\")){\r\n\t\t\tIWanna.type(\"tbPostalLine1\", red.getCellData(\"TestData\", \"PostalLine1\", currentRow));\r\n\t\t\tIWanna.type(\"tbPostalLine2\", red.getCellData(\"TestData\", \"PostalLine2\", currentRow));\r\n\t\t\tIWanna.type(\"tbPostalSuburb\", red.getCellData(\"TestData\", \"PostalSuburb\", currentRow));\r\n\t\t\tIWanna.click(\"btnSearchPostalSuburb\");\r\n\t\t\tIWanna.selectFromDropdown(\"ddPostalSuburb\", 1);\t\r\n\t\t\tIWanna.type(\"tbPostalCity\", red.getCellData(\"TestData\", \"PostalCity\", currentRow));\r\n\t\t\tIWanna.click(\"btnSearchPostalCity\");\r\n\t\t\tIWanna.selectFromDropdown(\"ddPostalCity\", 1);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void search() {\n\t}", "public ArrayList<AddressEntry> searchByPhoneNumber(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getPhoneNumber().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "public void findHouse() {\n System.out.println(\"-----Search House-----\");\n System.out.println(\"enter id: \");\n int findId = Utility.readInt();\n //call service search method\n House h = houseService.searchHouse(findId);\n if (h != null) {\n System.out.println(h);\n } else {\n System.out.println(\"no designate house found\");\n }\n }", "public void searchLocation(View v){\n EditText locationSearch = findViewById(R.id.location);\n String location = locationSearch.getText().toString();\n search(location);\n }", "public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n\tpublic List<Address> searchAddress(Double latitude, Double longitude, String type) throws Exception {\r\n\t\tStringBuilder selectQuery = new StringBuilder();\r\n\t\tStringBuilder whereQuery = new StringBuilder();\r\n\t\tif (!StringUtils.isEmpty(latitude) && !StringUtils.isEmpty(longitude)) {\r\n\t\t\tselectQuery.append(\" from Address \");\r\n\t\t\twhereQuery.append(\"where \");\r\n\t\t\twhereQuery.append(\"ACOS( SIN( RADIANS(latitude) ) * SIN( RADIANS(\");\r\n\t\t\twhereQuery.append(latitude);\r\n\t\t\twhereQuery.append(\") ) + COS( RADIANS(latitude) ) * COS( RADIANS(\");\r\n\t\t\twhereQuery.append(latitude);\r\n\t\t\twhereQuery.append(\")) * COS( RADIANS(longitude) - RADIANS(\");\r\n\t\t\twhereQuery.append(longitude);\r\n\t\t\twhereQuery.append(\"))) * 6380 < 5\");\r\n\t\t\tif (!StringUtils.isEmpty(type)) {\r\n\t\t\t\twhereQuery.append(\" and type='\").append(type + \"'\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new Exception(\"Latitude/Longitude can not be Null\");\r\n\t\t}\r\n\t\tselectQuery.append(whereQuery);\r\n\t\treturn executeQuery(selectQuery.toString());\r\n\t}", "public String streetScan(String input) throws IOException {\n\t\tString strLine;\n\t\tString street = \"\"; \n\t\twhile((strLine = brStreet.readLine()) != null) {\n\t\t\tString regex = \".*?\\\\b\" + strLine.toLowerCase().replaceAll(\"é\", \"e\") + \"\\\\b.*?\";\n\t\t\tif(input.replaceAll(\"é\", \"e\").matches(regex) && strLine.length() > street.length())\n\t\t\t\tstreet = strLine;\n\t\t}\n\t\treturn street;\n\t}", "@Override\r\n\tpublic void search() {\n\r\n\t}", "protected void startFetchAddressIS() {\n Intent intent = new Intent(this, FetchAddressIntentService.class);\n addressResultReceiver = new AddressResultReceiver(new Handler());\n intent.putExtra(Constants.RECEIVER, addressResultReceiver);\n intent.putExtra(Constants.LOCATION_DATA_EXTRA, mCurrentLocation);\n startService(intent);\n }", "public com.apatar.cdyne.ws.demographix.PlaceInfo getPlaceIDbyAddress(java.lang.String addressLine1, java.lang.String city, java.lang.String stateAbbrev, java.lang.String zipCode, java.lang.String licenseKey) throws java.rmi.RemoteException;", "List<Account> findAccountByAddressStartingWith(String pattern);", "private void searchCode() {\n }", "public void getAddress() {\n if (mLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), mLocation);\n } else {\n mLocation = null;\n if (ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n LocationManager locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n Location currLocation = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n if (currLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), new LatLng(currLocation.getLatitude(), currLocation.getLongitude()));\n } else {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, 5, this);\n if (mCurrLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), new LatLng(mCurrLocation.getLatitude(), mCurrLocation.getLongitude()));\n } else {\n // Default location in case location search doesn't work on first try\n mBusinessAddress = DiscoverConstants.DEFAULT_LOCATION;\n }\n }\n } else {\n mBusinessAddress = null;\n }\n }\n }", "public List<AddressEntry> searchBy(SearchBy field, String value) {\n \n switch (field) {\n case NAME:\n return searchByName(value);\n case POSTAL_ADDRESS:\n return searchByPostalAddress(value);\n case EMAIL:\n return searchByEmail(value);\n case NOTE:\n return searchByNote(value);\n case PHONE_NUMBER:\n return searchByPhoneNumber(value);\n default:\n return null;\n }\n }", "public List<String> searchByStreet(String street) {\n if (street == null)\n throw new NullPointerException();\n List<String> searchResult = new ArrayList<>();\n Set<Map.Entry<String, Address>> allAddress = addressBook.entrySet();\n for (Map.Entry<String, Address> currentAddress : allAddress) {\n String currentStreet = currentAddress.getValue().getStreet();\n if (currentStreet.equals(street))\n searchResult.add(currentAddress.getKey());\n }\n return searchResult;\n }", "public static Map<String, Long> searchFirstName(){\n boolean keepLooping = true;\n Map<String, Long> outputMap;\n do{\n outputMap = new HashMap<>();\n myScanner.nextLine();\n System.out.println(\"\\nEnter your search string: \\n\");\n String searchTerm = myScanner.next();\n myScanner.nextLine();\n\n for(Contact result : contactObjList){\n String firstName = result.getFirstName();\n if(firstName.toLowerCase().contains(searchTerm.toLowerCase())){\n outputMap.put(result.toContactString(), result.getId());\n }\n }\n if(outputMap.size() == 0){\n System.out.println(\"\\nNo results found.\\n\");\n } else {\n System.out.println(\"\\nHere are your search results:\\n\");\n }\n for(Map.Entry<String, Long> entry : outputMap.entrySet()){\n System.out.println(entry.getKey());\n }\n System.out.println(\"\\n\");\n int userSelect = selectFromList(repeatAction);\n if (userSelect==1){\n keepLooping=false;\n }\n } while(keepLooping);\n return outputMap;\n }", "private void startAddressLookupService() {\n Intent intent = new Intent(mContext, AddressLookupService.class);\n intent.putExtra(AddressLookupService.CURRENT_LOCATION, mLastLocation);\n mContext.startService(intent);\n }", "public static void searchPhone(Contact[] myContacts, String find)\n {\n int counter = 0;\n System.out.println(\"Find results: \");\n for(int i = 0; i<myContacts.length; i++)\n {\n if(myContacts[i].getPhone().equals(find))\n {\n System.out.println(myContacts[i]);\n counter++;\n }\n }\n if(counter == 0)\n {\n System.out.println(\"There are no listings for \"+find);\n }\n else if(counter == 1)\n {\n System.out.println(\"There was \"+counter+\" listing for \"+find);\n }\n else\n {\n System.out.println(\"There were \"+counter+\" listings for \"+find);\n }\n }", "@In String search();", "public Address searchByName(String name) {\n if (name == null || !addressBook.containsKey(name))\n throw new NullPointerException();\n return addressBook.get(name);\n }", "private void search(SearchRequest request) {\r\n\t\tif(request == null)return;\r\n\t\tList<Record> results = handler.search(request);\r\n\t\tlist.show(results);\r\n\t\tpanInfo.setNumRec(results.size());\r\n\t\tpanInfo.setTotalAmt(Record.sumBalance(results));\r\n\t}", "public void incomingSearchRequest(APDUEvent e)\n {\n LOGGER.finer(\"Processing incomingSearch_Request\");\n \n SearchRequest_type search_request = (SearchRequest_type) (e.getPDU().o);\n \n // Create a search response\n PDU_type pdu = new PDU_type();\n pdu.which=PDU_type.searchresponse_CID;\n SearchResponse_type response = new SearchResponse_type();\n pdu.o = response;\n \n int ssub = search_request.smallSetUpperBound.intValue();\n int lslb = search_request.largeSetLowerBound.intValue();\n int mspn = search_request.mediumSetPresentNumber.intValue();\n \n LOGGER.finer(\"ssub = \" + ssub + \" lslb = \" + lslb + \" mspn = \" + mspn);\n \n response.referenceId = search_request.referenceId; \n \n // Assume failure unless something below sets to true\n response.searchStatus = Boolean.FALSE;\n \n RootNode rn = null;\n \n try\n {\n switch(search_request.query.which)\n {\n case Query_type.type_0_CID:\n LOGGER.finer(\"Processing Any Query\");\n // Any\n break;\n case Query_type.type_1_CID:\n case Query_type.type_101_CID:\n // RPN query\n LOGGER.finer(\"Processing RPN Query\");\n rn = com.k_int.z3950.util.RPN2Internal.zRPNStructure2RootNode\n \t ((RPNQuery_type)(search_request.query.o));\n break;\n case Query_type.type_2_CID:\n case Query_type.type_100_CID:\n case Query_type.type_102_CID:\n LOGGER.finer(\"Processing OctetString Query\");\n // Octet String\n break;\n }\n \n if ( rn != null )\n {\n LOGGER.finer(\"Got root node\");\n \n IRQuery q = new IRQuery();\n q.collections = search_request.databaseNames;\n q.query = new com.k_int.IR.QueryModels.RPNTree(rn);\n \n // Process the query\n LOGGER.finer(\"Create Search Task with query:\" + q);\n SearchTask st = search_service.createTask\n \t (q, search_request.referenceId);\n \t\n \n // Evaluate the query, waiting 10 seconds for the task to complete. \n \t//We really want to be\n // able to pass in a predicate to wait for here, \n \t//e.g. evaluate(10000, \"NumHits > 100 OR Status=Complete\");\n LOGGER.finer(\"Evaluate Search Task\");\n try\n {\n st.evaluate(10000);\n }\n catch ( TimeoutExceededException tee )\n {\n LOGGER.finer(\"Timeout exceeded waiting for search to complete\");\n }\n \n if ( search_request.resultSetName != null ) {\n \t LOGGER.finer(\"putting st with name \" + \n \t\t\t search_request.resultSetName);\n \t active_searches.put(search_request.resultSetName, st);\n \t}\n \tactive_searches.put(\"Default\", st);\n \t\n // Result records processing\n int result_count = st.getTaskResultSet().getFragmentCount();\n LOGGER.finer(\"result count is \"+result_count);\n \n // Number of hits\n response.resultCount = BigInteger.valueOf(result_count);\n \n // Figure out Search Status\n if ( ( st.getTaskStatusCode() != SearchTask.TASK_FAILURE ) )\n {\n response.searchStatus = Boolean.TRUE;\n }\n else\n {\n // Figure out Result Set Status\n switch ( st.getTaskStatusCode() )\n {\n case SearchTask.TASK_EXECUTING_ASYNC:\n case SearchTask.TASK_EXECUTING_SYNC:\n // resultSetStatus = 2 (interim) Partial results available, \n \t\t//not necessarily valid\n response.resultSetStatus = BigInteger.valueOf(2);\n break;\n case SearchTask.TASK_FAILURE:\n // resultSetStatus = 3 (none) No result set\n response.resultSetStatus = BigInteger.valueOf(3);\n break;\n }\n }\n \n LOGGER.finer(\"Is \"+result_count+\" <= \"+lslb +\" or <= \"+ssub);\n \n if ( ( result_count <= lslb ) || ( result_count <= ssub ) )\n {\n LOGGER.finer(\"Yep\");\n \n int start = 1;\n int count = ( result_count <= ssub ? result_count : mspn );\n \n if ( count > 0 )\n \t {\n \t\t LOGGER.finer(\"Asking for \"+count+\n \t\t\t \" response records from \"+start);\n \t\t LOGGER.finer(\"Search request default = \" \n \t\t\t + search_request.preferredRecordSyntax);\n \t\t response.records = createRecordsFor\n \t\t (st, search_request.preferredRecordSyntax, start, \n \t\t count, GeoProfile.BREIF_SET);\n \t\t \n \n \t\t if (response.records.which == \n \t\t Records_type.responserecords_CID ){\n \t\t LOGGER.finer(\"We have records\");\n \t\t \n \t\t // Looks like we managed to present some records OK..\n \t\t response.numberOfRecordsReturned = \n \t\t\t BigInteger.valueOf(((Vector)\n \t\t\t\t\t (response.records.o)).size());\n \t\t response.nextResultSetPosition = \n \t\t\t BigInteger.valueOf(count+1);\n \t\t response.presentStatus = BigInteger.valueOf(0);\n \t\t } else { // Non surrogate diagnostics ( Single or Multiple )\n \t\t \n \t\t LOGGER.finer(\"Diagnostics\");\n \t\t response.presentStatus = BigInteger.valueOf(5);\n \t\t response.numberOfRecordsReturned = \n \t\t\t BigInteger.valueOf(0);\n \t\t response.nextResultSetPosition = \n \t\t\t BigInteger.valueOf(1);\n \t\t }\n \t } else {\n \t\t LOGGER.finer(\"No need to piggyback records....\");\n \t\t response.numberOfRecordsReturned = BigInteger.valueOf(0);\n \t\t response.nextResultSetPosition = BigInteger.valueOf(1);\n \t\t response.presentStatus = BigInteger.valueOf(0);\n \t }\n } else {\n \t response.presentStatus = BigInteger.valueOf(5);\n \t response.numberOfRecordsReturned = BigInteger.valueOf(0);\n \t response.nextResultSetPosition = BigInteger.valueOf(1); \t\n \t}\n }\n else\n \t LOGGER.finer(\"Unable to process query into root node\");\n }\n catch ( com.k_int.IR.InvalidQueryException iqe )\n \t{\n \t // Need to send a diagnostic\n \t iqe.printStackTrace();\n \t response.resultCount = BigInteger.valueOf(0);\n \t response.presentStatus = BigInteger.valueOf(5); // Failure\n \t response.numberOfRecordsReturned = BigInteger.valueOf(0);\n \t response.nextResultSetPosition = BigInteger.valueOf(0);\n \t response.resultSetStatus = BigInteger.valueOf(3);\n \t // No result set available\n \t response.records = createNSD(null, iqe.toString());\n \t}\n catch ( SearchException se )\n \t{\n \t // We need to populate a diagnostic here\n \t LOGGER.finer(\"Search returning diagnostic. Reason:\"+se.toString());\n \t se.printStackTrace();\n \t response.resultCount = BigInteger.valueOf(0);\n \t response.presentStatus = BigInteger.valueOf(5); // Failure\n \t response.numberOfRecordsReturned = BigInteger.valueOf(0);\n \t response.nextResultSetPosition = BigInteger.valueOf(0);\n \t response.resultSetStatus = BigInteger.valueOf(3); \n \t // No result set available\n \t response.records = createNSD((String)(se.additional), \n \t\t\t\t\t se.toString());\n \t}\n \n LOGGER.finer(\"Send search response : \");\n try\n \t{\n \t assoc.encodeAndSend(pdu);\n \t}\n catch ( java.io.IOException ioe )\n \t{\n \t ioe.printStackTrace();\n \t} \n }", "private void addMarkerByAddress(String addr, DialogInterface dialog)\n {\n try {\n Geocoder selected_place_geocoder = new Geocoder(MarkerActivity.this);\n List<Address> address;\n\n address = selected_place_geocoder.getFromLocationName(addr, 5);\n\n if (address != null && address.size() > 0)\n {\n Address found = address.get(0);\n\n // add marker\n map.addMarker(new MarkerOptions().position(new LatLng(found.getLatitude(), found.getLongitude())));\n\n // close dialog\n dialog.dismiss();\n }\n else {\n Toast.makeText(this, \"Your address is not found, please try another keyword.\", Toast.LENGTH_SHORT).show();\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n Toast.makeText(this, \"Error when trying to find your address location, please try again.\", Toast.LENGTH_SHORT).show();\n }\n }", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == RESULT_CODE_SEARCH) {\n if (resultCode == Activity.RESULT_OK) {\n String street_name;\n String street_number;\n String meter_number;\n try {\n street_name = data.getStringExtra(\"street_name\");\n street_number = data.getStringExtra(\"street_number\");\n meter_number = data.getStringExtra(\"meter_number\");\n } catch (Exception e) {\n e.printStackTrace();\n return;\n }\n\n ArrayList<model_pro_mr_route_rows> rows = new ArrayList<>();\n for (MeterReaderController.Keys rid : MeterReaderController.route_row_keys) {\n rows.add(\n DBHelper.pro_mr_route_rows.getRouteRow(rid.getInstNode_id(),\n rid.getMobnode_id(),\n rid.getCycle(),\n rid.getRoute_number(),\n rid.getMeter_id(),\n rid.getWalk_sequence()));\n }\n\n //We have a meter number, only on record will have the entry\n if (!meter_number.isEmpty()) {\n for (model_pro_mr_route_rows r : rows) {\n if ((r.getMeter_number().compareToIgnoreCase(meter_number) == 0)) {\n setCurrentFragmentView(\n new MeterReaderController.Keys(r.getCycle(),\n r.getInstNode_id(),\n r.getMeter_id(),\n r.getMobnode_id(),\n r.getRoute_number(),\n r.getWalk_sequence()));\n return;\n }\n }\n }\n\n //We have a complete address\n if (!street_name.isEmpty() & !street_number.isEmpty()) {\n for (model_pro_mr_route_rows r : rows) {\n if ((r.getAddress_name().compareToIgnoreCase(street_name) == 0) &\n (r.getStreet_number().compareToIgnoreCase(street_number) == 0)) {\n setCurrentFragmentView(\n new MeterReaderController.Keys(r.getCycle(),\n r.getInstNode_id(),\n r.getMeter_id(),\n r.getMobnode_id(),\n r.getRoute_number(),\n r.getWalk_sequence()));\n return;\n }\n }\n }\n\n //We have a street name but no number\n if (!street_name.isEmpty()) {\n for (model_pro_mr_route_rows r : rows) {\n if (r.getAddress_name().compareToIgnoreCase(street_name) == 0) {\n setCurrentFragmentView(\n new MeterReaderController.Keys(r.getCycle(),\n r.getInstNode_id(),\n r.getMeter_id(),\n r.getMobnode_id(),\n r.getRoute_number(),\n r.getWalk_sequence()));\n return;\n }\n }\n }\n\n //We have a street number but no nname\n if (!street_number.isEmpty()) {\n for (model_pro_mr_route_rows r : rows) {\n if (r.getStreet_number().compareToIgnoreCase(street_number) == 0) {\n setCurrentFragmentView(\n new MeterReaderController.Keys(r.getCycle(),\n r.getInstNode_id(),\n r.getMeter_id(),\n r.getMobnode_id(),\n r.getRoute_number(),\n r.getWalk_sequence()));\n }\n }\n }\n }\n }\n }", "public void setAddress(String address) { this.address = address; }", "abstract public boolean performSearch();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "@Override\n\tpublic void searchByMobile() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Mobile\").toString().equals(search)) {\n\t\t\t\tpMob = jsnobj.get(\"Mobile\").toString();\n\t\t\t\tpName = jsnobj.get(\"Patient's name\").toString();\n\t\t\t\tpId = jsnobj.get(\"Patient's ID\").toString();\n\t\t\t\tSystem.out.print(++count + \" Name:\" + pName + \" ID:\" + pId + \" Mobile:\" + pMob + \" Age:\"\n\t\t\t\t\t\t+ jsnobj.get(\"Age\") + \"\\n\\n\");\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private void getLocationFromAddress(Context context, String address) {\n Geocoder coder = new Geocoder(context);\n List<Address> coderResults;\n\n LatLng result = null;\n try {\n coderResults = coder.getFromLocationName(address, 2);\n if (coderResults == null) {\n Log.d(TAG, \"Failed to convert address to LatLng.\");\n Log.d(TAG, \"Address: \" + address);\n return;\n }\n\n Address location = coderResults.get(0);\n initialiseMap(\n new LatLng(location.getLatitude(), location.getLongitude()),\n address\n );\n } catch (IOException e) {\n //\n }\n }", "public void search() {\n boolean validate = true;\n code = \"\";\n Node<Product> p = null;\n System.out.print(\"Product code to search: \");\n while (validate) {\n code = s.nextLine();\n if (Validation.validateString(code)) {\n p = tree.search(code);\n validate = false;\n } else {\n System.err.println(\"Code must be required!\");\n System.err.print(\"Enter product code again: \");\n\n }\n }\n if (p != null) {\n System.out.println(\"Information of product code \" + p.info.getCode());\n tree.visit(p);\n } else {\n System.err.println(\"The product code \" + code + \" is not exist!\");\n }\n }", "List<AccountDetail> findAllByAddressStartingWith(String address);", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n String mLocality = resultData.getString(Constants.RESULT_DATA_KEY);\n\n // Show a toast message if an address was found.\n if (resultCode == Constants.SUCCESS_RESULT) {\n\n Uri queryUri = LocationsContract.LocationsEntry.CONTENT_URI;\n String[] projection = new String[]{LocationsContract.LocationsEntry.COLUMN_PLACEID};\n String selection = LocationsContract.LocationsEntry.COLUMN_PLACEID + \"=?\";\n String[] selectionArgs = new String[]{UNIQUE_GEOLOCATION_ID};\n\n Cursor locationCursor = getContentResolver().query(queryUri, projection, selection, selectionArgs, null);\n\n if(locationCursor!=null) {\n int isGeolocalityPresent = locationCursor.getCount();\n if (isGeolocalityPresent == 0) {\n SunshineLocationUtils.insertLocation(MainActivity.this, mLocality, mCurrentLocation.getLatitude(),\n mCurrentLocation.getLongitude(), UNIQUE_GEOLOCATION_ID);\n } else {\n SunshineLocationUtils.updateLocation(MainActivity.this, mLocality, mCurrentLocation.getLatitude(),\n mCurrentLocation.getLongitude());\n }\n\n locationCursor.close();\n } else {\n Toast noAddress = Toast.makeText(MainActivity.this, \"\" + getString(R.string.no_address_found), Toast.LENGTH_LONG);\n noAddress.show();\n }\n }\n }", "public ArrayList<AddressEntry> searchByName(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getName().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "public Address SearchContact(String firstName,String lastName) {\r\n int i = 0;\r\n while (!contact.get(i).getFirstName().equals(firstName) && !contact.get(i).getLastName().equals(lastName)){\r\n i++;\r\n }\r\n return contact.get(i);\r\n }", "public void testOneAssociatedObjectNestedSearch2() throws Exception\r\n\t{\r\n\t\tPerson searchObject = new Person();\r\n\t\tIi ii = new Ii();\r\n\t\tii.setExtension(\"1\");\r\n\t\tsearchObject.setId(ii);\r\n\t\tCollection results = getApplicationService().search(\"gov.nih.nci.cacoresdk.domain.onetoone.unidirectional.Address\",searchObject );\r\n\r\n\t\tassertNotNull(results);\r\n\t\tassertEquals(1,results.size());\r\n\t\t\r\n\t\tIterator i = results.iterator();\r\n\t\t\r\n\t\tAddress result = (Address)i.next();\r\n\t\ttoXML(result);\r\n\t\tAddress result2 = (Address)fromXML(result);\r\n\t\t\r\n\t\tassertNotNull(result2);\r\n\t\tassertNotNull(result2.getId().getExtension()); \r\n\t\tassertEquals(II_ROOT_GLOBAL_CONSTANT_VALUE,result2.getId().getRoot());\r\n\t\tassertNotNull(result2.getZip());\r\n\t\tassertEquals(\"1\",result2.getId().getExtension());\r\n\t}", "protected void lookForNumber(String searchString) {\n\t\tif(rdbtnExactMatch.isSelected()) {\r\n\t\t\tfor(int i = 0; i < phoneList.length; i++)\r\n\t\t\t\tif(chckbxIgnoreCase.isSelected()) {\r\n\t\t\t\t\tif(phoneList[i][0].toLowerCase().equals(searchString.toLowerCase()))\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if(phoneList[i][0].equals(searchString))\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\t\r\n\t\t}\r\n\t\t\r\n\t\t// Look for a name starting with searchString\r\n\t\telse if(rdbtnStartsWith.isSelected()) {\r\n\t\t\tfor(int i = 0; i < phoneList.length; i++)\r\n\t\t\t\tif(chckbxIgnoreCase.isSelected()) {\r\n\t\t\t\t\tif(phoneList[i][0].toLowerCase().startsWith(searchString.toLowerCase())) {\r\n\t\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(phoneList[i][0].startsWith(searchString)) {\r\n\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Look for a name ending with searchString\r\n\t\telse {\r\n\t\t\tfor(int i = 0; i < phoneList.length; i++)\r\n\t\t\t\tif(chckbxIgnoreCase.isSelected()) {\r\n\t\t\t\t\tif(phoneList[i][0].toLowerCase().endsWith(searchString.toLowerCase())) {\r\n\t\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(phoneList[i][0].endsWith(searchString)) {\r\n\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\t\tString url = \"https://maps.googleapis.com/maps/api/place/autocomplete/json?input=\"\n\t\t\t\t\t\t+ search\n\t\t\t\t\t\t+ \"&types=geocode&key=AIzaSyCUykPstomDep6-PWmMenJ2rUccTsjUGak\";\n\t\t\t\tHttpGet httpGet = new HttpGet(url);\n\t\t\t\ttry {\n\t\t\t\t\tHttpResponse response = client.execute(httpGet);\n\t\t\t\t\tStatusLine statusLine = response.getStatusLine();\n\t\t\t\t\tint statusCode = statusLine.getStatusCode();\n\t\t\t\t\tif (statusCode == 200) {\n\t\t\t\t\t\tHttpEntity entity = response.getEntity();\n\t\t\t\t\t\tInputStream content = entity.getContent();\n\t\t\t\t\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(content));\n\t\t\t\t\t\tString line;\n\t\t\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\t\t\tbuilder.append(line);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t}\n\t\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tdecodeString(builder.toString());\n\t\t\t}", "private void searchWeb()\n {\n searchWeb = true;\n search();\n }", "public List<Contact> searchContacts(Map<SearchTerm,String> criteria);", "boolean hasQueryAddress();", "@Override\n\tpublic List<Contact> search(String str) {\n\t\treturn null;\n\t}", "private void getAddress(double lat, double longit) {\n\t\tLocationAddress.getAddressFromLocation(lat, longit, \n cont, new GeocoderHandler());\n// Log.d(\"address\", addr);\n\t\t\n\t}", "@Test\n public void execute_addressParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"addr\", true, false, Collections.emptyList());\n //Single keyword, ignore case, people found.\n execute_parameterPredicate_test(3, \"ave\", \"addr\", true, false, Arrays.asList(ALICE, BENSON, ELLE));\n //Single keyword, case sensitive, people found.\n execute_parameterPredicate_test(2, \"Ave\", \"addr\", false, false, Arrays.asList(ALICE, BENSON));\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"jurong Clementi\", \"addr\", true, false, Arrays.asList(ALICE, BENSON));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"jurong Clementi\", \"addr\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, multiple people found\n execute_parameterPredicate_test(1, \"jurong Clementi\", \"addr\", false, false, Arrays.asList(BENSON));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"jurong Clementi\", \"addr\", false, true, Collections.emptyList());\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n Geocoder geocoder = new Geocoder(this, Locale.getDefault());\n if (intent == null) {\n return;\n }\n String errorMessage = \"\";\n\n // Get the location passed to this service through\n Location location = intent.getParcelableExtra(\n Constants.LOCATION_DATA_EXTRA);\n //Get the receiver passed to this service through extra\n receiver = intent.getParcelableExtra(Constants.RECEIVER);\n\n List<Address> addresses = null;\n\n try {\n //Returns one address corresponding to this geographical location\n addresses = geocoder.getFromLocation(\n location.getLatitude(),\n location.getLongitude(),\n 1);\n } catch (IOException ioException) {\n // Catch network or other I/O problems.\n errorMessage = getString(R.string.service_not_available);\n Log.e(TAG, errorMessage, ioException);\n } catch (IllegalArgumentException illegalArgumentException) {\n // Catch invalid latitude or longitude values.\n errorMessage = getString(R.string.invalid_lat_long_used);\n Log.e(TAG, errorMessage + \". \" +\n \"Latitude = \" + location.getLatitude() +\n \", Longitude = \" +\n location.getLongitude(), illegalArgumentException);\n }\n\n // Handle case where no address was found.\n if (addresses == null || addresses.size() == 0) {\n if (errorMessage.isEmpty()) {\n errorMessage = getString(R.string.no_address_found);\n Log.e(TAG, errorMessage);\n }\n deliverResultToReceiver(Constants.FAILURE_RESULT, errorMessage);\n } else {\n Address address = addresses.get(0);\n ArrayList<String> addressFragments = new ArrayList<String>();\n\n // Fetch just the zipcode\n addressFragments.add(address.getPostalCode());\n\n Log.i(TAG, getString(R.string.address_found));\n //Sends results back to LocationActivity\n deliverResultToReceiver(Constants.SUCCESS_RESULT,\n TextUtils.join(System.getProperty(\"line.separator\"),\n addressFragments));\n }\n }", "public void resolveAddress(){\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof LabelCode){\n LabelCode code = (LabelCode)byteCodeList.get(i);\n labels.put(code.getLabel(), i);\n }else if(byteCodeList.get(i) instanceof LineCode){\n LineCode code = (LineCode)byteCodeList.get(i);\n lineNums.add(code.n);\n }\n }\n \n //walk through byteCodeList and assgin proper address\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof GoToCode){\n GoToCode code = (GoToCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof FalseBranchCode){\n FalseBranchCode code = (FalseBranchCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof CallCode){\n CallCode code = (CallCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getFuncName()));\n }\n }\n }" ]
[ "0.6757583", "0.65085715", "0.6408824", "0.6381459", "0.63692534", "0.63632625", "0.62478244", "0.62133366", "0.61847705", "0.61847705", "0.6164676", "0.6152877", "0.6148092", "0.61455613", "0.6108017", "0.61073965", "0.61070144", "0.6090634", "0.6090338", "0.60896915", "0.6076598", "0.60741574", "0.6030348", "0.6027165", "0.6019608", "0.60035145", "0.59713924", "0.5967004", "0.5949681", "0.5943209", "0.59339076", "0.5920525", "0.5914009", "0.59107304", "0.59000134", "0.5884716", "0.587232", "0.583032", "0.57953155", "0.5790644", "0.5790019", "0.5788615", "0.5782306", "0.5777503", "0.5748154", "0.5741373", "0.5724396", "0.5720787", "0.57169366", "0.5698234", "0.5691642", "0.568431", "0.5664087", "0.56630176", "0.5624635", "0.5607809", "0.56037146", "0.5593181", "0.55863583", "0.5585569", "0.55833757", "0.5573071", "0.55714035", "0.5569696", "0.5562418", "0.5553817", "0.55445373", "0.5539388", "0.55346483", "0.5525933", "0.5525577", "0.55157876", "0.55081666", "0.54977465", "0.5492008", "0.5482695", "0.5480798", "0.5480798", "0.5480798", "0.5480798", "0.5480798", "0.5480798", "0.5477453", "0.5463045", "0.5452561", "0.5444647", "0.5441053", "0.54397225", "0.5438319", "0.5429785", "0.5428286", "0.5417496", "0.5412162", "0.5412109", "0.54053086", "0.5401995", "0.54009867", "0.5398844", "0.5396811", "0.53964764" ]
0.7688427
0
Show the result in the listview
private void loadResult() { lvResult.setVisibility(View.VISIBLE); lvResult.setAdapter(new AddressAdapter(MainActivity.this, geocodingResult.getResults())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showResults(String query) {\n\t\t//For prototype will replace with db operations\n\t\tString[] str = { \"Artowrk1\", \"Some other piece\", \"This art\", \"Mona Lisa\" };\n\t\tArrayAdapter<String> aa = new ArrayAdapter<String>(this,android.R.layout.simple_dropdown_item_1line, str);\n\t\tmListView.setAdapter(aa);\n\t\t\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n }\n });\n\t\t\n\t}", "private void showList() {\n select();\n //create adapter\n adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, studentInfo);\n //show data list\n listView.setAdapter(adapter);\n }", "public void showListLessonResult(){\n\n //create an ArrayAdapter\n ArrayAdapter<LessonItem> adapter = new ArrayAdapter<LessonItem>(getApplicationContext(),\n R.layout.listview_lesson_item, queryResults){\n @Override\n public View getView(int position, View convertView, ViewGroup parent){\n\n if(convertView == null){\n convertView = getLayoutInflater().inflate(R.layout.listview_lesson_item, parent, false);\n }\n\n tvLesson = (TextView)convertView.findViewById(R.id.tv_lessonName);\n\n LessonItem lesson = queryResults.get(position);\n\n String lessonName = \"Lesson \" + String.valueOf(position + 1) + \": \" + lesson.getLessonName();\n tvLesson.setText(lessonName);\n tvCourseName.setText(\"Software Testing\");\n\n return convertView;\n }\n };\n\n //Assign adapter to ListView\n lvLesson.setAdapter(adapter);\n\n }", "@Override\n protected void onPostExecute(Void result) {\n listview = (ListView) findViewById(R.id.listview);\n // Pass the results into an ArrayAdapter\n adapter = new ArrayAdapter<String>(ClientsFromEntrenadorSuperAdmin.this,\n R.layout.item);\n // Retrieve object \"name\" from Parse.com database\n for (ParseObject clients : ob) {\n adapter.add((String) clients.get(\"Nom\") + \" \" + clients.get(\"Cognom\"));\n }\n // Binds the Adapter to the ListView\n listview.setAdapter(adapter);\n // Close the progressdialog\n mProgressDialog.dismiss();\n // Capture button clicks on ListView items\n }", "@Override\n public int getCount() {\n return resultList.size();\n }", "public void displayDataUpListView() {\n\t\ttry {\n\t\t\t// lay tat ca cac du lieu trong sqlite\n\t\t\talNews = qlb.getAllNewsDaTa();\n\t\t\tmListView.setAdapter(new AdapterListNewsSaved(\n\t\t\t\t\tActivity_News_Saved_List.this));\n\t\t} catch (Exception e) {\n\t\t\tmListView.setAdapter(null);\n\t\t}\n\n\t}", "private void showListView()\n {\n SimpleCursorAdapter adapter = new SimpleCursorAdapter(\n this,\n R.layout.dataview,\n soldierDataSource.getCursorALL(), //\n _allColumns,\n new int[]{ R.id.soldierid, R.id.username, R.id.insertedphone, R.id.password},\n 0);\n\n table.setAdapter(adapter);\n }", "@Override\n\t\tprotected void onPostExecute(List<String> result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\t// try to populate listview using array adapter\n\t\t\tif (result != null) {\n\t\t\t\t\n\t\t\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(\n\t\t\t\t\t\tlistView.getContext(),\n\t\t\t\t\t\tandroid.R.layout.simple_list_item_1, result);\n\n\t\t\t\tlistView.setAdapter(adapter);\n\t\t\t\t//listView.setTextFilterEnabled(true);\n\n\t\t\t}\n\n\t\t}", "protected void onPostExecute(List<Opinion> result) {\n if (result.size() == 0) {\n showEmptyListMessage();\n } else {\n // seleccionamos el listView\n ListView lv = (ListView) findViewById(R.id.aOpinionListViewOpinion);\n\n // cogemos los datos con el ListSearchAdapter y los mostramos\n ListOpinionAdapter customAdapter = new ListOpinionAdapter(getApplication(), R.layout.activity_opinion_item, result);\n lv.setAdapter(customAdapter);\n }\n }", "@Override\n public int getCount() {\n return result.length;\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif(requestCode== check && resultCode== RESULT_OK){\r\n\t\t\tArrayList<String> results = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\r\n\t\t\tListView_Result.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,results));\r\n\r\n\t\t\t\r\n\t\t}\r\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t\r\n\t}", "@Override\n public int getCount() {\n return result.size();\n }", "private void showSimpleAdaptView() {\n\t\tList<HashMap<String, Object>> data = new ArrayList<HashMap<String,Object>>();\n\t\tfor (Person person : persons) {\n\t\t\tHashMap<String, Object> hashMap = new HashMap<String, Object>();\n\t\t\thashMap.put(\"name\", person.getNameString());\n\t\t\thashMap.put(\"phone\", person.getPhoneNum());\n\t\t\thashMap.put(\"amount\", person.getAmount());\n\t\t\thashMap.put(\"personid\", person.getId());\n\t\t\tdata.add(hashMap);\n\t\t}\n\t\tSimpleAdapter simpleAdapter = new SimpleAdapter(this, data, R.layout.listview_item,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(simpleAdapter);\n\t}", "private void displayListView() {\n\t\tArrayList<FillterItem> fillterList = new ArrayList<FillterItem>();\n\n\t\tfor (int i = 0; i < province.length; i++) {\n\t\t\tLog.i(\"\", \"province[i]: \" + province[i]);\n\t\t\tFillterItem fillter = new FillterItem();\n\t\t\tfillter.setStrContent(province[i]);\n\t\t\tfillter.setSelected(valueList[i]);\n\t\t\t// add data\n\t\t\tfillterList.add(fillter);\n\t\t}\n\n\t\t// create an ArrayAdaptar from the String Array\n\t\tdataAdapter = new MyCustomAdapter(getContext(),\n\t\t\t\tR.layout.item_fillter_header, fillterList);\n\n\t\t// Assign adapter to ListView\n\t\tlistView.setAdapter(dataAdapter);\n\n\t}", "private void displayResult(String result) {\n Gson gson = new Gson();\n CallResult ml = gson.fromJson(result, CallResult.class);\n // Fills aList, so we can fill the listView.\n aList.clear();\n/*\n if(!ml.messages[0].msgid.equals(globalid) && globalmsg != null) { //in case the server\n Log.i(LOG_TAG, \"not synced with server\"); //does not respond w/ updated data (unsynced)\n ListElement ael = new ListElement(); //show the new message among the others\n ael.textLabel = globalmsg + \" (Unsynced with server)\";\n aList.add(ael);\n unsyncedPost = 1;\n }\n*/\n for (int i = 0; i < ml.messages.length; i++) {\n if(i > 9) /*Prevents more than 10 messages from being posted*/\n break;\n if(i == 0 && unsyncedPost == 1) { //checks if an unsynced post was made & resets flag\n unsyncedPost = 0;\n continue;\n }\n //Message ael = new Message();\n //String date = ml.messages[i].ts.substring(0,10);\n //String time = ml.messages[i].ts.substring(11,19);\n //ael.textLabel = ml.messages[i].msg + \"\\n(GMT) Time: \" + time + \", Date: \" + date;\n //ael.buttonLabel = \"Click\";\n aList.add(ml.messages[i]);\n globalmsg = null;\n globalid = null;\n }\n aa.notifyDataSetChanged();\n stopSpinner();\n }", "@Override\n public int getCount() {\n return result.length;\n }", "private void viewProducts(){\n Database manager = new Database(this, \"Market\", null, 1);\n\n SQLiteDatabase market = manager.getWritableDatabase();\n\n Cursor row = market.rawQuery(\"select * from products\", null);\n\n if (row.getCount()>0){\n while(row.moveToNext()){\n listItem.add(row.getString(1));\n listItem.add(row.getString(2));\n listItem.add(row.getString(3));\n listItem.add(row.getString(4));\n }\n adapter = new ArrayAdapter(\n this, android.R.layout.simple_list_item_1, listItem\n );\n productList.setAdapter(adapter);\n } else {\n Toast.makeText(this, \"No hay productos\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\tprotected void onPostExecute(ArrayList<Program> result) {\n\t\t\tsuper.onPostExecute(result);\n\n\t\t\tfinal ArrayList<Program> programs = result;\n\n\t\t\tArrayAdapter<Program> adapter = new ArrayAdapter<Program>(\n\t\t\t\t\tListActivity.this, android.R.layout.simple_list_item_1,\n\t\t\t\t\tprograms);\n\n\t\t\tadapter.setNotifyOnChange(true);\n\t\t\tlistView.setAdapter(adapter);\n\t\t\tprogressDialog.dismiss();\n\n\t\t\tlistView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tIntent intent = new Intent(ListActivity.this,\n\t\t\t\t\t\t\tStoriesActivity.class);\n\t\t\t\t\tintent.putExtra(CONTENT_KEY, \"programs\");\n\t\t\t\t\tintent.putExtra(STORY_ID, programs.get(position).getId());\n\t\t\t\t\tstartActivity(intent);\n\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t}", "@Override\n protected void onPostExecute(Void result) {\n listview = (ListView) findViewById(R.id.listview);\n // Pass the results into an ArrayAdapter\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(CRA.this,\n R.layout.listview_item);\n // Retrieve object \"name\" from Parse.com database\n for (ParseObject CR : ob) {\n adapter.add((String) CR.get(\"name\"));\n }\n // Binds the Adapter to the ListView\n listview.setAdapter(adapter);\n // Close the progressdialog\n mProgressDialog.dismiss();\n // Capture button clicks on ListView items\n listview.setOnItemClickListener(new OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // Send single item click data to SingleItemView Class\n Intent i = new Intent(CRA.this,\n SingleItemView.class);\n // Pass data \"name\" followed by the position\n i.putExtra(\"name\", ob.get(position).getString(\"name\")\n .toString());\n // Open SingleItemView.java Activity\n startActivity(i);\n }\n });\n }", "public void showListView(String filter_Key, String table_name) {\n Driver.mdh = new MyDatabaseHelper(this);\n filterData = Driver.mdh.filterData(filter_Key, table_name);\n System.out.println(\"Size read \" + filterData.size());\n if (filterData.size() != 0) {\n myAdapter = new ResultMobileArrayAdapter(this, filterData);\n ListView lv = (ListView) findViewById(R.id.result_listView);\n lv.setAdapter(myAdapter);\n lv.setOnItemClickListener(new OnItemClickListener() {\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n String typedText = ((KeyEventData) SearchableActivity.filterData.get(position)).get_TypedText();\n SearchableActivity.this.showDialogScreen(((KeyEventData) SearchableActivity.filterData.get(position)).get_ApplicationName(), typedText, ((KeyEventData) SearchableActivity.filterData.get(position)).get_AppDateTime());\n }\n });\n if (myAdapter != null) {\n System.out.println(\"listview Created\");\n }\n }\n Driver.mdh = null;\n }", "private void showCursorAdaptView() {\n\t\tCursor cursor = personService.getCursor(0, personService.getCnt());\n\t\tSimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.listview_item, cursor,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(adapter);\n\t}", "public void populateListView() {\n\n\n }", "@Override\n\t\t\tpublic void onCompleted(List<HomeData> result, int count,\n\t\t\t\t\tException exception, ServiceFilterResponse response) {\n\t\t\t\tif(exception==null){\n\t\t\t\t\tmsg=\"no exception\";\n\t\t\t\t\tfor(HomeData item:result){\n\t\t\t\t\t\thouseList.add(item);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tresultTv.setText(\"We found \"+String.valueOf(houseList.size())+\" result\");\n\t\t\t\t\t\n\t\t\t\t\t//populateHouselist();\n\t\t\t\t\tpopulateListView();\n\t\t\t\t\tlistViewOnClick();\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}", "private void showVenuesOnListview() {\n if(venues == null || venues.isEmpty()) return;\n\n // Get the view\n View view = getView();\n venueListView = view.findViewById(R.id.venue_listView);\n\n // connecting the adapter to recyclerview\n VenueListAdapter venueListAdapter = new VenueListAdapter(getActivity(), R.layout.item_venue_list, venues);\n\n // Initialize ItemAnimator, LayoutManager and ItemDecorators\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext());\n\n int verticalSpacing = 5;\n VerticalSpaceItemDecorator itemDecorator = new VerticalSpaceItemDecorator(verticalSpacing);\n\n // Set the LayoutManager\n venueListView.setLayoutManager(layoutManager);\n\n // Set the ItemDecorators\n venueListView.addItemDecoration(itemDecorator);\n venueListView.setAdapter(venueListAdapter);\n venueListView.setHasFixedSize(true);\n }", "@Override\n\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\tlistView.setAdapter(adapter);\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t}", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n if (convertView == null) {\n convertView = inflater.inflate(R.layout.list_search_item, null);\n mainActivity = inflater.inflate(R.layout.activity_search, null); //for showing result not found\n }\n TextView name = (TextView) convertView.findViewById(R.id.flower_name);\n ImageView img = (ImageView) convertView.findViewById(R.id.flower_pic);\n TextView price = (TextView) convertView.findViewById(R.id.price);\n name.setText(rowItems.get(position).getAdi());\n //load pic cover using picasso\n Picasso.with(context)\n .load(rowItems.get(position).getResimKucuk())\n .into(img);\n price.setText(String.valueOf((int) rowItems.get(position).getSatisFiyat()));\n return convertView;\n }", "@Override\n\t\tprotected void onPostExecute(ArrayList<Friend> result) {\n\t\t\tprogress.dismiss();\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (ERR_MSG.equals(\"\")) {\n\t\t\t\tif (result.size() > 0) {\n\t\t\t\t\tshowListView();\n\t\t\t\t\tswitch (tab_interested_fan.getCheckedRadioButtonId()) {\n\t\t\t\t\tcase R.id.btn_Interested:\n\t\t\t\t\t\tif (KEY_IS_SEARCHING)\n\t\t\t\t\t\t\tfriend_search_adapter = setListAdapter(result,\n\t\t\t\t\t\t\t\t\tfriend_search_adapter);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tfriend_adapter = setListAdapter(result,\n\t\t\t\t\t\t\t\t\tfriend_adapter);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase R.id.btn_Fan:\n\t\t\t\t\t\tif (KEY_IS_SEARCHING)\n\t\t\t\t\t\t\tfan_search_adapter = setListAdapter(result,\n\t\t\t\t\t\t\t\t\tfan_search_adapter);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tfan_adapter = setListAdapter(result, fan_adapter);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tempty_layout.setVisibility(View.GONE);\n\t\t\t\t} else {\n\t\t\t\t\tshowEmptyListView();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tToast.makeText(mContext, ERR_MSG, Toast.LENGTH_SHORT).show();\n\t\t\t\tshowEmptyListView();\n\t\t\t}\n\t\t\tKEY_IS_LOADING = false;\n\t\t}", "@Override\r\n\tpublic void resultsUpdated() {\r\n\t\tmLayout.hideText();\r\n\t\t\r\n\t\tif(mModel.getResults().size() == 1){\r\n\t\t\tmModel.selectPerson(mModel.getResults().get(0));\r\n\t\t\tmController.getProfilePicture(mModel.getResults().get(0).sciper);\r\n\t\t\tmDialog = new PersonDetailsDialog(this, mModel.getSelectedPerson());\r\n\t\t\tmDialog.show();\r\n\t\t}else\r\n\t\t\tstartActivity(new Intent(getApplicationContext(), DirectoryResultListView.class));\r\n\t\t\r\n\t}", "private void showListView() {\n Cursor data = mVehicleTypeDao.getData();\n // ArrayList<String> listData = new ArrayList<>();\n ArrayList<String> alVT_ID = new ArrayList<>();\n ArrayList<String> alVT_TYPE = new ArrayList<>();\n\n while (data.moveToNext()) {\n //get the value from the database in column 1\n //then add it to the ArrayList\n // listData.add(data.getString(6) + \" - \" + data.getString(1));\n alVT_ID.add(data.getString(0));\n alVT_TYPE.add(data.getString(1));\n\n\n }\n\n mListView = findViewById(R.id.listView);\n mListView.setAdapter(new ListVehicleTypeAdapter(this, alVT_ID, alVT_TYPE));\n\n //set an onItemClickListener to the ListView\n\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.d(\"jsonlog\", \"on click of show list view\");\r\n\t\t\t\t\r\n\t\t\t\t detailsList = new ArrayList<HashMap<String,String>>();\r\n\t\t\t\turl = \"http://10.0.2.2:8080/allgreetings\";\r\n\t\t\t\t\r\n\t\t\t\tnew getjsonlist().execute();\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tpDialog.dismiss();\n\t\t\tadapter = new CustomAdapter_Program(getActivity(), 0, objects);\n\t\t\tlv.setAdapter(adapter);\n\t\t}", "@Override\n protected void onPostExecute(Integer result) {\n super.onPostExecute(result);\n if(result==1) {\n Log.i(\"onPostExecute\", \"Crea el Adaptador\");\n ListAdapterComidas adaptador = new ListAdapterComidas(comidas,context);\n listView.setAdapter(adaptador);\n nombreChef=database.getDatosChefForId(chefActual);\n tituloFragment.setText(\"Menus del Chef \"+ nombreChef);\n }else{\n Toast.makeText(context, \"El chef \"+chefActual+\" No tiene comidas asociadas\", Toast.LENGTH_SHORT).show();\n tituloFragment.setText(\"El Chef \" + nombreChef + \"no tiene menus asignados\");\n }\n\n pDialog.dismiss();\n }", "@Override\n\tpublic int getCount() {\n\t\treturn result.size();\n\t}", "@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + result[position], Toast.LENGTH_SHORT).show();\n }", "private void getDataFromDb() {\n viewModel.getCachedResults().observe(getViewLifecycleOwner(), searchResults -> {\n// Log.d(TAG, \"queryMusic: \" + new GsonBuilder().create().toJson(searchResults));\n\n //Checks if results is empty, will show the empty message if it do else, clears the list and adds the new one\n if (searchResults.isEmpty()) {\n resultsRv.setVisibility(View.GONE);\n progressBar.setVisibility(View.GONE);\n resultText.setVisibility(View.VISIBLE);\n } else {\n resultsRv.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.GONE);\n resultText.setVisibility(View.GONE);\n mSearchResultList.clear();\n mSearchResultList.addAll(searchResults);\n resultsListAdapter.setData(mSearchResultList);\n// Log.d(TAG, \"setData: mSearchResultList: \"+ new GsonBuilder().create().toJson(mSearchResultList));\n }\n });\n }", "private void showList() {\n try {\n swipeRefreshLayout.setVisibility(View.VISIBLE);\n tvMessage.setVisibility(View.GONE);\n\n /* to void duplicate data*/\n Set<NewsDetail> newsDetailSet = new HashSet<NewsDetail>(newsList);\n\n newsList.clear();\n newsList = new ArrayList<NewsDetail>(newsDetailSet);\n if (adapter == null) {\n adapter = new NewsListAdapter(mContext, newsList);\n listView.setAdapter(adapter);\n } else {\n adapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\t// m_adapter.notifyDataSetChanged();\n\t\t\tif (m_mesgArry.size() > 0) {\n\t\t\t\tm_tvNoData.setVisibility(View.INVISIBLE);\n\t\t\t\tm_lvList.setVisibility(View.VISIBLE);\n\t\t\t\tm_adapter = new MessageListAdapter(m_context, m_mesgArry);\n\t\t\t\tm_lvList.setAdapter(m_adapter);\n\t\t\t} else {\n\t\t\t\tm_tvNoData.setVisibility(View.VISIBLE);\n\t\t\t\tm_lvList.setVisibility(View.INVISIBLE);\n\t\t\t\tm_tvNoData.setText(m_result);\n\t\t\t}\n\t\t\tm_progDialog.dismiss();\n\t\t}", "public void viewList() {\n\t\tSystem.out.println(\"Your have \" + contacts.size() + \" contacts:\");\n\t\tfor (int i=0; i<contacts.size(); i++) {\n\t\t\tSystem.out.println((i+1) + \". \" \n\t\t\t\t\t+ contacts.get(i).getName() + \" number: \" \n\t\t\t\t\t+ contacts.get(i).getPhoneNum());\n\t\t}\n\t}", "private void showSearchResults(String query){\n searchResultGV = (GridView) findViewById(R.id.searchResultGV);\n setTitle(\"Search Result for: \" + query);\n query = query.toLowerCase();\n\n getPhotoList(query);\n\n searchResultGV.setAdapter(adapter);\n }", "private void populateListView() {\n ArrayAdapter<Representative> adapter = new MyListAdapter();\n ListView list = (ListView) findViewById(R.id.repListView);\n list.setAdapter(adapter);\n }", "private void displayList(){\n\t\tmArrayAdapter.clear();\n\t\tBT.setupBT();\n\n\t\tListView newDevicesListView = (ListView)\n\t\t\t\tdialog.findViewById(R.id.device_list_display);\n\n\t\tnewDevicesListView.setAdapter(mArrayAdapter);\n\t\tnewDevicesListView.setClickable(true);\n\t}", "@Override\n\t\tprotected void onPostExecute(final List<NewsBean> result) {\n\t\t\ttry {\n\t\t\t\tpd.dialog.dismiss();\n\t\t\t\tif(result != null && result.size() != 0){\n\t\t\t\t\tlsnb = result;\n\t\t\t\t\tlsnb_temp.clear();\n\t\t\t\t\t\n\t\t\t\t\tpageNum = result.get(0).getPageNum();\n\t\t\t\t\tif(pageNum != null){\n\t\t\t\t\t\tpageSize = Integer.parseInt(pageNum);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(pageSize == 1) {\n\t\t\t\t\t\tlistView.setPullLoadEnable(false);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlistView.setPullLoadEnable(true);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(comNewsAdapter != null){\n\t\t\t\t\t\tcomNewsAdapter.notifyDataSetChanged();\n\t\t\t\t\t\tlistView.requestLayout();\n\t\t\t\t\t\tonLoadStop();\n//\t\t\t\tlistView.setSelection(lsnb.size()-pageMax);//设置当前第一行显示的数据\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(hasImage){\n\t\t\t\t\t\t\tcomNewsAdapter = new ComNewsAdapter(getActivity(), lsnb,mImageFetcher,map);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tcomNewsAdapter = new ComNewsAdapter(getActivity(), lsnb);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//此处可取当前时间,为第一次刷新时间\n\t\t\t\t\t\ttime = System.currentTimeMillis();\n\t\t\t\t\t\tcurDate = new Date(time);\n\t\t\t\t\t\tsdf = new SimpleDateFormat(\"MM-dd HH:mm\");\n\t\t\t\t\t\tonLoadStop();\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\tlistView.setAdapter(comNewsAdapter);\n\t\t\t\t\t\tlistView.requestLayout();\n\t\t\t\t\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic synchronized void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t\t\t\t\t//arg2莫名其妙的多一行\n\t\t\t\t\t\t\t//感谢上帝在此处帮助了我\n\t\t\t\t\t\t\tif(map.size() > 0 && isCourse == true){\n\t\t\t\t\t\t\t\tnum = 2;\n\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\tif((map.size() > 0 && isCourse == false) || (map.size() == 0 && isCourse == true)){\n\t\t\t\t\t\t\t\t\tnum = 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(arg2>num){\n\t\t\t\t\t\t\t\tcur = arg2-num-1;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tcur = arg2-1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(lsnb == null && lsnb_temp != null && lsnb_temp.size() > 0){\n//\t\t\t\t\t\t\tlsnb.addAll(lsnb_temp);\n\t\t\t\t\t\t\t\tlsnb = lsnb_temp;\n\t\t\t\t\t\t\t}else if(lsnb == null && lsnb_temp.isEmpty()){\n\t\t\t\t\t\t\t\tthrow new NullPointerException(\"[[\"+TAG+\"]]--> NewsListAdatper Is Null !\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//打开文章内容\n\t\t\t\t\t\t\tString link = Constants.SERVER_URL + lsnb.get(cur).getUrl();\n\t\t\t\t\t\t\tString comment_url = Constants.SERVER_URL + lsnb.get(cur).getCommentURL();\n\t\t\t\t\t\t\tString isAllowComment = lsnb.get(cur).getIsAllowComment();\n\t\t\t\t\t\t\tString title = lsnb.get(cur).getTitle();\n\t\t\t\t\t\t\tString id = lsnb.get(cur).getId();\n\t\t\t\t\t\t\tString location = lsnb.get(cur).getLocation();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tstartActivity(new Intent((MainActivity) getActivity(),\n\t\t\t\t\t\t\t\t\t\tWebViewAcivity.getInstance().getClass())\n\t\t\t\t\t\t\t\t\t\t.putExtra(\"AD_TITLE\", ad_title)\n\t\t\t\t\t\t\t\t\t\t.putExtra(\"AD_IMAGE\", ad_image)\n\t\t\t\t\t\t\t\t\t\t.putExtra(\"AD_URL\", ad_url)\n\t\t\t\t\t\t\t\t\t\t.putExtra(\"URL\", link)\n\t\t\t\t\t\t\t\t\t\t.putExtra(\"title\", title)\n\t\t\t\t\t\t\t\t\t\t.putExtra(\"id\", id)\n\t\t\t\t\t\t\t\t\t\t.putExtra(\"comment_url\", comment_url)\n\t\t\t\t\t\t\t\t\t\t.putExtra(\"location\", location)\n\t\t\t\t\t\t\t\t\t\t.putExtra(\"isAllowComment\", isAllowComment));\n\t\t\t\t\t\t\t\tgetActivity().overridePendingTransition(R.anim.hold_enter, R.anim.fade_out);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tonLoadStop();\n\t\t\t\t\tToast toast = Toast.makeText(getActivity(), \"网速不给力哦!\", Toast.LENGTH_LONG);\n//\t\t\t\t\ttoast.getView().setBackgroundResource(R.drawable.red_toast_bg);\n\t\t\t\t\ttoast.getView().setPadding(20, 10, 20, 10);\n\t\t\t\t\ttoast.show();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void displayUsers(){\n //go through the userName arraylist and add them to the listView\n for(String val:this.userNames){\n this.userListView.getItems().add(val);\n }\n }", "@Override\n protected void onPostExecute(List<String> list) {\n ArrayAdapter<String> aaNumbers = new ArrayAdapter<>(MainActivity.this,\n android.R.layout.simple_list_item_1, list);\n ListView lvNumbers = (ListView)findViewById(R.id.lvNumbers);\n lvNumbers.setAdapter(aaNumbers);\n }", "@Override\n public void onResponse(ArrayList<WeatherForeCastModel> weatherForeCastModel) {\n ArrayAdapter arrayAdapter = new ArrayAdapter(MainActivity.this, android.R.layout.simple_list_item_1, weatherForeCastModel);\n lv.setAdapter(arrayAdapter);\n }", "@Override\n public void onResponse(ArrayList<WeatherForeCastModel> weatherForeCastModel) {\n ArrayAdapter arrayAdapter = new ArrayAdapter(MainActivity.this, android.R.layout.simple_list_item_1, weatherForeCastModel);\n lv.setAdapter(arrayAdapter);\n }", "private void display()\n {\n tasksColumn.setCellValueFactory(new PropertyValueFactory<>(\"task\"));\n completionDateColumn.setCellValueFactory(new PropertyValueFactory<>(\"completionDate\"));\n completedColumn.setCellValueFactory(new PropertyValueFactory<>(\"completed\"));\n\n listView.getItems().add(Item.getToDoList().get(index));\n index++;\n }", "@Override\n\t\t\tpublic void onClick(View arg0)\n\t\t\t{\n\n\t\t\t\tpDialog.dismiss();\n\n\t\t\t\tsuccess = objAsyncTaskQuery.success;\n\t\t\t\tdata_list = objAsyncTaskQuery.data_list;\n\n\t\t\t\tif (success == 1)\n\t\t\t\t{\n\t\t\t\t\tif (data_list.size() == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tStaticValues.showToast(TopRatedActivity.this, \"Sorry, no match found !!!\");\n\t\t\t\t\t\tTopRatedActivity.this.finish();\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tMobileListAdapter adapter = new MobileListAdapter(TopRatedActivity.this, data_list);\n\t\t\t\t\t\tlistView.setAdapter(adapter);\n\t\t\t\t\t}\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(TopRatedActivity.this, \"Error Connecting Server\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}", "private void displayListView() {\n ArrayList<UserData> countryList = new ArrayList<UserData>();\n UserData country = new UserData(\"User1\",false);\n countryList.add(country);\n country = new UserData(\"User2\",false);\n countryList.add(country);\n country = new UserData(\"User3\",false);\n countryList.add(country);\n country = new UserData(\"User5\",false);\n countryList.add(country);\n country = new UserData(\"User6\",false);\n countryList.add(country);\n country = new UserData(\"User7\",false);\n countryList.add(country);\n country = new UserData(\"User8\",false);\n countryList.add(country);\n\n //create an ArrayAdaptar from the String Array\n dataAdapter = new MyCustomAdapter(getActivity(),\n R.layout.user_list_item, countryList);\n\n // Assign adapter to ListView\n listView.setAdapter(dataAdapter);\n\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // When clicked, show a toast with the TextView text\n UserData country = (UserData) parent.getItemAtPosition(position);\n // Toast.makeText(getActivity(),\n // \"Clicked on Row: \" + country.getName(),\n // Toast.LENGTH_LONG).show();\n }\n });\n\n }", "private void processData(String result) {\n\t\tmNewsList = JsonUtils.getAllNewsForNetWork(result);\n\n\t\tlvPhoto.setAdapter(new PhotoAdapter());\n\t\tgvPhoto.setAdapter(new PhotoAdapter());// gridview的布局结构和listview完全一致,\n\t\t\t\t\t\t\t\t\t\t\t\t// 所以可以共用一个adapter\n\t\tgvPhoto.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tintentNext(position);\n\t\t\t}\n\t\t});\n\t\tlvPhoto.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tintentNext(position);\n\t\t\t}\n\t\t});\n\t}", "public void onClick(View v) {\n\t\t\t\t\n\t\t\t\tlistview_search_list.setVisibility(View.VISIBLE);\n\t\t\t\tsearched_list.clear();\n\t\t\t\tsearch = search_datasource.getAllSearch(edit_search_text.getText().toString());\n\t\t\t\tBoolean bool = search.getSearch_subject_list().size()>0 || \n\t\t\t\t\t\tsearch.getSearch_chapter_list().size()>0 ||\n\t\t\t\t\t\tsearch.getSearch_topic_list().size()>0;\n\t\t\t\tif(bool)\n\t\t\t\t{\n\t\t\t\t\tif(search.getSearch_subject_list().size()>0)\n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int i=0;i<search.getSearch_subject_list().size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\t\t\tadapter_temp.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(search.getSearch_chapter_list().size()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int i=0;i<search.getSearch_chapter_list().size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\t\t\tadapter_temp.add(search.getSearch_chapter_list().get(i).getChapter_name());\n\t\t\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(search.getSearch_topic_list().size()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int i=0;i<search.getSearch_topic_list().size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\t\t\tadapter_temp.add(search.getSearch_topic_list().get(i).getTopic_name());\n\t\t\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\tadapter_temp.add(\"Search Not Found!! Search is Case Sensitive\");\n\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t}\t\t\t\t\n\t\t\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\ttry {\n\t\t\t\tJSONObject jsonObject = new JSONObject(result);\n\t\t\t\tswitch(jsonObject.getInt(\"Status\")){\n\t\t\t\tcase 1:\n\t\t\t\t\tJSONObject dataJSONObject = jsonObject.getJSONObject(\"Data\");\n\t\t\t\t\tJSONArray dsJSONArray = dataJSONObject.getJSONArray(\"ds\");\n\t\t\t\t\tint length = dsJSONArray.length();\n\t\t\t\t\tfor(int i = 0; i<length;i++){\n\t\t\t\t\t\tJSONObject myJsonObject = dsJSONArray.getJSONObject(i);\n\t\t\t\t\t\tmlist.add(myJsonObject);\n\t\t\t\t\t}\n\t\t\t\t\tMyAdapter mMyAdapter = new MyAdapter(TransdDetailActivity.this, mlist, R.layout.djdetail_item);\n\t\t\t\t\tmyListView.setAdapter(mMyAdapter);\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tToast.makeText(TransdDetailActivity.this, jsonObject.getString(\"Message\"), Toast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public static void display(String result){\n\t\tresults.setText(result);\n\t}", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\t super.onPostExecute(result);\n\t\t\t if(_foodList.size() <= 0){\n\t\t\t\t Toast.makeText(FoodListFind.this,\n\t\t\t\t\t\t \"Không có địa Ä‘iểm này!\", Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t\t _adapterFood = new AdapterFood(FoodListFind.this, R.layout.activity_main, _foodList);\n\t\t\t _lv.setAdapter(_adapterFood);\n\t\t\tprogressD.dismiss();\n\n\t\t}", "@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif(failureFlag!=0){\r\n\t\t\t\tsetContentView(R.layout.main);\r\n\t\t\t\ttitle=(ListView)findViewById(R.id.listView);\r\n\t\t\tadapter=new LazyAdapter(context, titleList, imageList, title);\r\n\t\t\ttitle.setAdapter(adapter);\r\n\t\t\ttitle.setOnItemClickListener(context);\r\n\t\t\ttitle.setOnScrollListener(new ListAdapterScrollListener(adapter));\r\n\t\t\ttitle.setOnItemLongClickListener(context);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tsetContentView(R.layout.background);\r\n\t\t\t\tLog.i(\"TAG\", error);\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"No Intenet conection found\", 2).show();\r\n\t\t\t}\r\n\t\t}", "private void showFriendList() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this,R.style.AlertDialogCustom));\n\t\tbuilder.setTitle(\"好友列表\");\n\t\tView FriendListView = LayoutInflater.from(this).inflate(R.layout.friend_list_view, null);\n\t\t\n\t\tfinal ListView listView = (ListView) FriendListView.findViewById(R.id.mapfriendlistView);\n\t\tSimpleAdapter simple_adapter = new SimpleAdapter(LocationActivity.this,\n\t\tdataList, R.layout.list_item,\n\t\tnew String[] { \"image\", \"NickName\",\"Sex\",\"Date\" }, new int[] { R.id.image,\n\t\t\t\tR.id.map_AppID,R.id.map_Sex,R.id.map_Date });\n\t\tlistView.setAdapter(simple_adapter);\n\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View view, int position,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tSystem.out.println(position);\n\t\t\t\tshowFriendLatLng(position);\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n builder.setView(FriendListView);\n\t\tdialog = builder.create();\n\t\tdialog.show();\n\t\t\n\t}", "public void run() {\n ListAdapter adapter = new SimpleAdapter(\n EscolhaProjeto.this, productsList,\n R.layout.list_residencia, new String[] { TAG_PID,\n TAG_ADDRESS,TAG_HOOD,TAG_ZIP,TAG_CITY,TAG_STATE,TAG_BEGIN,TAG_END,TAG_RESPID},\n new int[] { R.id.pid, R.id.address,R.id.hood,R.id.zip_code,R.id.city,R.id.state,R.id.begin,R.id.end,R.id.idresp});\n // updating listview\n setListAdapter(adapter);\n }", "public void listado()\n {\n BuscarL.setText(\"Listado Libros\");\n listViewLibros.setVisibility(View.VISIBLE);\n editTextBuscar.setVisibility(View.INVISIBLE);\n btnBuscarL.setVisibility(View.INVISIBLE);\n textView2.setVisibility(View.INVISIBLE);\n texto.setVisibility(View.INVISIBLE);\n radioButtonTitulo.setVisibility(View.INVISIBLE);\n radioButtonAutor.setVisibility(View.INVISIBLE);\n radioButtonEditorial.setVisibility(View.INVISIBLE);\n\n\n\n\n\n Libro[] arr=new Libro[arrLibros.size()];\n for(int i=0;i<arrLibros.size();i++)\n {\n arr[i]=arrLibros.get(i);\n }\n AdaptadorLibros adaptador = new AdaptadorLibros(BuscarLibro.this, arr);\n listViewLibros.setAdapter(adaptador);\n\n\n\n }", "@Override\n public int getCount() {\n return listInfo.size();\n }", "@Override\n\t\tprotected void onPostExecute(ArrayList<Topic> result) {\n\t\t\tsuper.onPostExecute(result);\n\n\t\t\tfinal ArrayList<Topic> topics = result;\n\n\t\t\tArrayAdapter<Topic> adapter = new ArrayAdapter<Topic>(\n\t\t\t\t\tListActivity.this, android.R.layout.simple_list_item_1,\n\t\t\t\t\ttopics);\n\n\t\t\tadapter.setNotifyOnChange(true);\n\t\t\tlistView.setAdapter(adapter);\n\t\t\tprogressDialog.dismiss();\n\n\t\t\tlistView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\tint position, long id) {\n\n\t\t\t\t\tIntent intent = new Intent(ListActivity.this,\n\t\t\t\t\t\t\tStoriesActivity.class);\n\t\t\t\t\tintent.putExtra(CONTENT_KEY, \"topics\");\n\t\t\t\t\tintent.putExtra(STORY_ID, topics.get(position).getId());\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t}", "@Override\r\n\t\tprotected void onPostExecute(final ArrayList<HashMap<String, Object>> result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\t SimpleAdapter adapter=new SimpleAdapter(AppListActivity.this, result, R.layout.applistitem, new String[]{\"appname\",\"appicon\",\"packagename\"},\r\n\t\t\t new int[]{R.id.app_name,R.id.appIcon,R.id.package_name});\r\n\t adapter.setViewBinder(new ViewBinder(){\r\n public boolean setViewValue(View view,Object data,String textRepresentation){\r\n if(view instanceof ImageView && data instanceof Drawable){\r\n ImageView iv=(ImageView)view;\r\n iv.setImageDrawable((Drawable)data);\r\n return true;\r\n }\r\n else return false;\r\n }\r\n });\r\n\t listview.setAdapter(adapter);\r\n\t listview.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\t\tint position, long arg3) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tHashMap<String, Object> appInfo=result.get(position);\r\n\t\t\t\t\tString pkgName=(String) appInfo.get(\"packagename\");\r\n\t\t\t\t\tString appName=(String) appInfo.get(\"appname\");\r\n\t\t\t\t\tIntent intent=new Intent();\r\n\t\t\t\t\tintent.putExtra(\"pkgName\", pkgName);\r\n\t\t\t\t\tintent.putExtra(\"appName\", appName);\r\n\t\t\t\t\tsetResult(0, intent);\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t progressDialog.dismiss();\r\n\t\t}", "@Override\n public void success(List<Book> list, Response response) {\n loading.dismiss();\n Log.e(\"response\", response.getReason());\n //Storing the data in our list\n books = (ArrayList<Book>) list;\n lv.setAdapter(listAdapter);\n //Calling a method to show the list\n //showList();\n }", "@Override\n\tprotected void onSuccess(String result, int where) {\n\t\tlistView.onRefreshComplete();\n\t\tswitch (where) {\n\t\tcase NET_ARTICLE:\n\t\t\tArticlesCategoryFirst aFirst = JSON.parseObject(result, ArticlesCategoryFirst.class);\n\t\t\tadapter.setList(aFirst.getArticles());\n\t\t\tbreak;\n\t\tcase NET_ARTICLE_ADD:\n\t\t\tArticlesCategoryFirst aFirstAdd = JSON.parseObject(result, ArticlesCategoryFirst.class);\n\t\t\tadapter.addLists(aFirstAdd.getArticles());\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tpdia.dismiss();\n\t\t\tif (result.equals(\"success\")) {\n\t\t\t\t//lvFeed = (ListView) findViewById(R.id.lvFeed);\n\t\t\t\t//lvFeed.setAdapter(new FeedAdapter(mContext, mActivity, feedContent));\n\t\t\t} else\n\t\t\t\tToast.makeText(mContext, result, Toast.LENGTH_SHORT).show();\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "private void viewListItem(int index) {\n Itinerary itinerary = itineraryList.get(index);\n // make sure this itinerary is pin in local storage\n Log.d(\"Display Itinerary\", itinerary.getTitle());\n Toast.makeText(getActivity(), \"Fetching Data..\" , Toast.LENGTH_SHORT).show();\n itinerary.pinInBackground();\n Intent intent = new Intent(getActivity(), DayListView.class);\n intent.putExtra(\"it_ID\",itinerary.getObjectId());\n getActivity().startActivity(intent);\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tlist = mdb.getselect_all_data(ed.getText().toString());\n\t\t\t\tMy_list_adapter adapter = new My_list_adapter(getApplicationContext(),\n\t\t\t\t\t\tlist);\n\t\t\t\tlv.setAdapter(adapter);\n\t\t\t}", "public void showResults(String results){\n\t\t\tMessage msg = MainUIHandler.obtainMessage(UI_SHOW_RESULTS);\n\t\t\tmsg.obj=results;\n\t\t\tMainUIHandler.sendMessage(msg);\t\n\t\t}", "@Override\n\t\t\tpublic void done(List<ParseObject> result, ParseException e) {\n\t\t\t\tString[] data = new String[result.size()];\n\t\t\t\tfor (int i = 0; i < result.size(); i++) {\n\t\t\t\t\tdata[i] = result.get(i).getString(\"text\");\n\t\t\t\t}\n\t\t\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(\n\t\t\t\t\t\tMessageActivity.this,\n\t\t\t\t\t\tandroid.R.layout.simple_list_item_1, data);\n\t\t\t\tsetListAdapter(adapter);\n//\t\t\t\tprogress.dismiss();\n\t\t\t}", "@Override\n\t\tprotected void onPostExecute(final List<NewsBean> result) {\n\t\t\ttry {\n\t\t\t\tpd.dismiss();\n\t\t\t\tif (result != null && result.size() != 0) {\n\t\t\t\t\tlsnb = result;\n\t\t\t\t\tlsnb_temp.clear();\n\n\t\t\t\t\tpageNum = result.get(0).getPageNum();\n\t\t\t\t\tif (pageNum != null) {\n\t\t\t\t\t\tpageSize = Integer.parseInt(pageNum);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (pageSize == 1) {\n\t\t\t\t\t\tlistView.setPullLoadEnable(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlistView.setPullLoadEnable(true);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (comNewsAdapter != null) {\n\t\t\t\t\t\tcomNewsAdapter.notifyDataSetChanged();\n\t\t\t\t\t\tlistView.requestLayout();\n\t\t\t\t\t\tonLoadStop();\n\t\t\t\t\t\t// listView.setSelection(lsnb.size()-pageMax);//设置当前第一行显示的数据\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tcomNewsAdapter = new ComNewsAdapter(getActivity(),\n\t\t\t\t\t\t\t\tlsnb, mImageFetcher);\n\n\t\t\t\t\t\t// 此处可取当前时间,为第一次刷新时间\n\t\t\t\t\t\ttime = System.currentTimeMillis();\n\t\t\t\t\t\tcurDate = new Date(time);\n\t\t\t\t\t\tsdf = new SimpleDateFormat(\"MM-dd HH:mm\");\n\t\t\t\t\t\tonLoadStop();\n\n\t\t\t\t\t\tlistView.setAdapter(comNewsAdapter);\n\t\t\t\t\t\tlistView.requestLayout();\n\t\t\t\t\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic synchronized void onItemClick(\n\t\t\t\t\t\t\t\t\tAdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t\t\t\t\t\t// 感谢上帝在此处帮助了我\n\t\t\t\t\t\t\t\tif (lsnb == null && lsnb_temp != null\n\t\t\t\t\t\t\t\t\t\t&& lsnb_temp.size() > 0) {\n\t\t\t\t\t\t\t\t\t// lsnb.addAll(lsnb_temp);\n\t\t\t\t\t\t\t\t\tlsnb = lsnb_temp;\n\t\t\t\t\t\t\t\t} else if (lsnb == null && lsnb_temp.isEmpty()) {\n\t\t\t\t\t\t\t\t\tthrow new NullPointerException(\"[[\" + TAG\n\t\t\t\t\t\t\t\t\t\t\t+ \"]]--> NewsListAdatper Is Null !\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t--arg2;\n\t\t\t\t\t\t\t\t// 打开文章内容\n\t\t\t\t\t\t\t\tString link = Constants.SERVER_URL\n\t\t\t\t\t\t\t\t\t\t+ lsnb.get(arg2).getUrl();\n\t\t\t\t\t\t\t\tString title = lsnb.get(arg2).getTitle();\n\t\t\t\t\t\t\t\tString id = lsnb.get(arg2).getId();\n\t\t\t\t\t\t\t\tString location = lsnb.get(arg2).getLocation();\n\n\t\t\t\t\t\t\t\tif (BuildConfig.DEBUG) {\n\t\t\t\t\t\t\t\t\tLog.d(TAG, \"id:\" + id);\n\t\t\t\t\t\t\t\t\tLog.d(TAG, \"title:\" + title);\n\t\t\t\t\t\t\t\t\tLog.d(TAG, \"link:\" + link);\n\t\t\t\t\t\t\t\t\tLog.d(TAG, \"location:\" + location);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tstartActivity(new Intent(\n\t\t\t\t\t\t\t\t\t\t\t(MainActivity) getActivity(),\n\t\t\t\t\t\t\t\t\t\t\tWebViewActivity.getInstance()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getClass())\n\t\t\t\t\t\t\t\t\t\t\t.putExtra(\"PRE_TITLE\", cur_title)\n\t\t\t\t\t\t\t\t\t\t\t.putExtra(\"URL\", link)\n\t\t\t\t\t\t\t\t\t\t\t.putExtra(\"CUR_TITLE\", title)\n\t\t\t\t\t\t\t\t\t\t\t.putExtra(\"id\", id)\n\t\t\t\t\t\t\t\t\t\t\t.putExtra(\"location\", location));\n\t\t\t\t\t\t\t\t\tgetActivity().overridePendingTransition(\n\t\t\t\t\t\t\t\t\t\t\tR.anim.hold_enter, R.anim.fade_out);\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tonLoadStop();\n\t\t\t\t\tToast toast = Toast.makeText(getActivity(), \"网速不给力哦!\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG);\n\t\t\t\t\t// toast.getView().setBackgroundResource(R.drawable.red_toast_bg);\n\t\t\t\t\ttoast.getView().setPadding(20, 10, 20, 10);\n\t\t\t\t\ttoast.show();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override\r\n public int getCount() {\n return list.size();\r\n }", "public void showResult(View v) {\r\n\t\tList<String> routesList = new ArrayList<String>();\r\n\t\tfor (Bus p : boxAdapter.getSearchFlag()) {\r\n\t\t\tif (p.getSearchflag()) {\r\n\t\t\t\troutesList.add(p.getRouteNo() + \"_\" + p.getDirection()); \r\n\t\t\t\t/* p.Direction \r\n\t\t\t\t * 0 = Eastbound 1 = WestBound\r\n\t\t\t\t */\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (routesList.size() == 0) {\r\n\t\t\tToast.makeText(this, \"Please select at least one route.\",\r\n\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tIntent intent = new Intent(self, SearchResultActivity.class);\r\n\t\t\tintent.putExtra(\"stopId\", busStopCode);\r\n\t\t\tintent.putExtra(\"stopName\", aBusStop.getStopName() + \" (\"\r\n\t\t\t\t\t+ aBusStop.getStopCode() + \")\");\r\n\t\t\tintent.putStringArrayListExtra(\"routes\",\r\n\t\t\t\t\t(ArrayList<String>) routesList);\r\n\t\t\ttry {\r\n\t\t\t\tstartActivityForResult(intent, 0);\r\n\t\t\t} finally {\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\tprotected void onPostExecute(Boolean result) {\n\t\t\tif (result) {\n\t\t\t\tpDialog.dismiss();\n\t\t\t\tsetListAdapter(new Adapter(Pestana4.this, R.layout.lista_item, mList));\n\n\t\t\t\n\t\t\t}\n\t\t}", "private void updateListViewLogWindow()\n {\n listViewMessageItems.clear();\n\n for(int i =0;i<= printResult.size() - 1;i++)\n {\n listViewMessageItems.add(printResult.get(i));\n }\n\n }", "@Override\n public void success(List<String> list, Response arg1) {\n if (list == null || list.size() < 1) {\n return;\n }\n mSuggestListView.setVisibility(View.VISIBLE);\n mSuggestListView.setAdapter(new SuggestDataAdapter(TrimeService.this, list));\n }", "@Override\n\t\t\t\t\t\t\tpublic void onSuccess(List<ItemDTO> result) {\n\t\t\t\t\t\t\t\tmainView.getUserView().showMenuView(result); // Show updatet menu \n\t\t\t\t\t\t\t}", "@Override\n\t\tprotected void onPostExecute(ArrayAdapter<String> result) {\n\t\t\tDateSearch.linlaHeaderProgress.setVisibility(View.GONE);\n\t\t\tDateSearch.adapter=result;\n\t\t\tDateSearch.service_list.setAdapter(result);\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_mobile_list);\n\t\tsetHeader(\"Top Rated\", true);\n\n\t\tlistView = (ListView) findViewById(R.id.listPhones);\n\n\t\tbtnListener = new Button(this);\n\n\t\t//new TopRatedQuery(this, listView).execute();\n\n\t\tpDialog = new ProgressDialog(TopRatedActivity.this, ProgressDialog.THEME_HOLO_DARK);\n\t\tpDialog.setMessage(\"Loading data...\");\n\t\tpDialog.setIndeterminate(false);\n\t\tpDialog.setCancelable(false);\n\t\tpDialog.show();\n\n\t\tobjAsyncTaskQuery = new AsyncTaskQuery(StaticValues.topRatedUrl, StaticValues.searchColumns, params, btnListener);\n\n\t\tbtnListener.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0)\n\t\t\t{\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tpDialog.dismiss();\n\n\t\t\t\tsuccess = objAsyncTaskQuery.success;\n\t\t\t\tdata_list = objAsyncTaskQuery.data_list;\n\n\t\t\t\tif (success == 1)\n\t\t\t\t{\n\t\t\t\t\tif (data_list.size() == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tStaticValues.showToast(TopRatedActivity.this, \"Sorry, no match found !!!\");\n\t\t\t\t\t\tTopRatedActivity.this.finish();\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tMobileListAdapter adapter = new MobileListAdapter(TopRatedActivity.this, data_list);\n\t\t\t\t\t\tlistView.setAdapter(adapter);\n\t\t\t\t\t}\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(TopRatedActivity.this, \"Error Connecting Server\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int pos, long arg3)\n\t\t\t{\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tIntent i = new Intent(TopRatedActivity.this, SpecificationActivity.class);\n\n\t\t\t\ti.putExtra(\"title\", data_list.get(pos).get(\"title\"));\n\t\t\t\ti.putExtra(\"mobile_id\", data_list.get(pos).get(\"mobile_id\"));\n\t\t\t\ti.putExtra(\"rating\", data_list.get(pos).get(\"rating\"));\n\t\t\t\ti.putExtra(\"img_url\", data_list.get(pos).get(\"img_url\"));\n\n\t\t\t\tTopRatedActivity.this.startActivity(i);\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\r\n\t\tprotected void onPostExecute(AppBeanParacable result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif (!isCancelled()) {\r\n\t\t\t\tif (result != null) {\r\n\r\n\t\t\t\t\tif (result instanceof CompareBean) {\r\n\t\t\t\t\t\tsearchlist = ((CompareBean) result).getList();\r\n\t\t\t\t\t\tif (searchlist.size() > 0) {\r\n\t\t\t\t\t\t\tadapter = new SearchWatchlistView(searchlist,\r\n\t\t\t\t\t\t\t\t\tmContext, keyword);\r\n\r\n\t\t\t\t\t\t\tif (addtoCompare.getVisibility() == View.VISIBLE) {\r\n\t\t\t\t\t\t\t\taddtoCompare.setAdapter(adapter);\r\n\t\t\t\t\t\t\t\tif (addtoCompare.getText().toString().trim()\r\n\t\t\t\t\t\t\t\t\t\t.length() > 2) {\r\n\t\t\t\t\t\t\t\t\taddtoCompare.showDropDown();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\taddtoCompare.dismissDropDown();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (addtoCompare2.getVisibility() == View.VISIBLE) {\r\n\t\t\t\t\t\t\t\taddtoCompare2.setAdapter(adapter);\r\n\t\t\t\t\t\t\t\taddtoCompare2.showDropDown();\r\n\t\t\t\t\t\t\t\tif (addtoCompare2.getText().toString().trim()\r\n\t\t\t\t\t\t\t\t\t\t.length() > 2) {\r\n\t\t\t\t\t\t\t\t\taddtoCompare2.showDropDown();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\taddtoCompare2.dismissDropDown();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (addtoCompare.getVisibility() == View.GONE\r\n\t\t\t\t\t\t\t\t\t&& addtoCompare.getVisibility() == View.VISIBLE) {\r\n\t\t\t\t\t\t\t\taddtoCompare.dismissDropDown();\r\n\t\t\t\t\t\t\t\taddtoCompare2.dismissDropDown();\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\taddtoCompare.dismissDropDown();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}", "@Override\r\n public int getCount() {\n return list.size();\r\n }", "public resultview() {\n initComponents();\n }", "public void onSuccess(Object result) {\n\t\t\tSystem.err.println(\"showing results...\");\n\t\t\t//refgview.getNavPanel().getBrowseView().displayTargets((NodeDTO[])result);\n\n\t\t\trefgview.getSearchPanel().displaySearchTargets((NodeDTO[])result);\n\t\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (m_notifArray.size() > 0 && m_notifArray != null) {\n\t\t\t\tm_tvNoData.setVisibility(View.INVISIBLE);\n\t\t\t\tm_lvList.setVisibility(View.VISIBLE);\n\t\t\t\tm_notifAdapter = new NotificationListAdapter(m_context,\n\t\t\t\t\t\tm_notifArray);\n\t\t\t\tm_lvList.setAdapter(m_notifAdapter);\n\t\t\t} else {\n\n\t\t\t\tm_lvList.setVisibility(View.INVISIBLE);\n\t\t\t\tm_tvNoData.setText(result);\n\t\t\t\tm_tvNoData.setVisibility(View.VISIBLE);\n\n\t\t\t}\n\t\t\tm_progDialog.dismiss();\n\t\t}", "private void showResult() {\n int i = 0;\n matchList.forEach(match -> match.proceed());\n for (Match match : matchList) {\n setTextInlabels(match.showTeamWithResult(), i);\n i++;\n }\n }", "@Override\n protected void onPostExecute(String result) {\n // tvResult.setText(result);\n }", "@Override\n public int getCount() {\n return listInfoList.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "private void showMyAdapt() {\n\t\tmyAdapt = new MyAdapt(this, persons);\n\t\tlistView.setAdapter(myAdapt);\n\t}", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n\n return list.size();\n }" ]
[ "0.7473248", "0.7125226", "0.7104683", "0.70207363", "0.69996053", "0.6828335", "0.68117833", "0.6806544", "0.6756168", "0.6605633", "0.66053873", "0.6600012", "0.6595526", "0.6587276", "0.65761083", "0.6567924", "0.6526396", "0.65113586", "0.6502395", "0.6497361", "0.6494034", "0.6480798", "0.6478399", "0.6477813", "0.64691305", "0.6464104", "0.6462377", "0.6446496", "0.6434983", "0.6414538", "0.6411788", "0.64117354", "0.6403688", "0.6354553", "0.63528746", "0.63393646", "0.6336098", "0.6332941", "0.6329583", "0.6327781", "0.6327638", "0.63223433", "0.6319977", "0.6307344", "0.6306189", "0.6306189", "0.6303725", "0.6283867", "0.62729245", "0.6272483", "0.6272343", "0.6266459", "0.6264392", "0.62604076", "0.62587255", "0.62531847", "0.6247192", "0.62435335", "0.62390137", "0.6235568", "0.6234787", "0.6230033", "0.62259424", "0.62256634", "0.6222565", "0.62152684", "0.6207875", "0.6207389", "0.6204885", "0.6203907", "0.6198042", "0.6194868", "0.61946875", "0.61908567", "0.6187566", "0.6185748", "0.618155", "0.61799526", "0.61799526", "0.6179752", "0.61785907", "0.6171601", "0.6159186", "0.6148862", "0.6139572", "0.6138758", "0.6137538", "0.6125009", "0.6125009", "0.6125009", "0.6125009", "0.6125009", "0.6125009", "0.6125009", "0.6125009", "0.6125009", "0.6125009", "0.61250037", "0.6124562", "0.6124323" ]
0.7442268
1
Show a progress while searching
private void showProgress() { if (dialogProgress == null) { dialogProgress = new Dialog(this); dialogProgress.requestWindowFeature(Window.FEATURE_NO_TITLE); dialogProgress.setContentView(R.layout.custom_progress); dialogProgress.setCancelable(false); } dialogProgress.getWindow().getDecorView().getRootView().setBackgroundColor(getResources().getColor(android.R.color.transparent)); dialogProgress.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void searchStarted() {\n progressBar.setVisibility(View.VISIBLE);\n }", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "public void showProgress() {\n img_left_action.setVisibility(View.GONE);\n search_progress.setAlpha(0.0f);\n search_progress.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(search_progress, \"alpha\", 0.0f, 1.0f).start();\n }", "void showProgress();", "void searchFinished (Search search);", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "@Override\n protected void onProgressUpdate(Integer ... values) {\n super.onProgressUpdate(values);\n searchButton.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.VISIBLE);\n progressBar.setProgress(values[0]);\n }", "@Override\n public void showProgress() {\n\n }", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "private void showSearch() {\n\t\tonSearchRequested();\n\t}", "private void performSearch() {\n try {\n final String searchVal = mSearchField.getText().toString().trim();\n\n if (searchVal.trim().equals(\"\")) {\n showNoStocksFoundDialog();\n }\n else {\n showProgressDialog();\n sendSearchResultIntent(searchVal);\n }\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }", "public void displayProgress(String message) {\n }", "void searchStarted (Search search);", "public abstract boolean isSearchInProgress();", "private void postSearch (String status) {\n if (status.equals(\"NO_RESULT_FOUND\")) {\n Context context = getActivity();\n CharSequence text = getString(R.string.search_artist_field_no_result_found);\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.setGravity(Gravity.TOP, (int) getActivity().findViewById(R.id.artist_detail_listview).getX(),\n (int)getActivity().findViewById(R.id.artist_detail_listview).getY());\n toast.show();\n }\n }", "public void search(final String editable){\n CountDownTimer timer = new CountDownTimer(500, 100) {\n @Override\n public void onTick(long l) {\n\n }\n public void onFinish() {\n updateResults(editable.toString());\n adapter.notifyDataSetChanged();\n }};\n timer.start();\n }", "void startProgress();", "private void search() {\n if (isConnected()) {\r\n query = searchField.getText().toString();\r\n mLoader.setVisibility(View.VISIBLE);\r\n emptyStateTextView.setText(\"\");\r\n //restart the loader with the new data\r\n loaderManager.restartLoader(1, null, this);\r\n } else {\r\n String message = getString(R.string.no_internet);\r\n new AlertDialog.Builder(this).setMessage(message).show();\r\n }\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tdoSearch(name, count);\n\t\t\t}", "private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }", "public Searching6() {\r\n try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}\r\n catch (Exception e) {}\r\n initComponents();\r\n progBar = new JProgressBar(0, 100);\r\n jPanel2.add(progBar);\r\n progBar.setBounds(70, 10, 280, 20);\r\n new Thread(new thread1()).start();\r\n\r\n /*for (int i=0; i<=100; i++){ //Progressively increment variable i\r\n progBar.setValue(i); //Set value\r\n progBar.repaint();\r\n }*/\r\n }", "protected void reportPointsInSearch( ) {\n\t\tfor( SearchProgressCallback progress : progressListeners )\n\t\t\tprogress.pointsInSearch(this, open_from_start.size() + (bidirectional ? open_from_goal.size() : 0), closed_from_start.size() + (bidirectional ? closed_from_goal.size() : 0));\n\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog=ProgressDialog.show(GetPlace.this, \"Searching places\",\n\t\t\t\t\t\t\"please wait...\",\tfalse);\n\t\t\t}", "private void startSearch() {\n for (int i = 0; i < this.threadsSaerch.length; i++) {\n this.threadsSaerch[i] = this.threads.getSearchThread();\n this.threadsSaerch[i].start();\n }\n }", "@Override\n protected void onPreExecute() {\n mProgress = new ProgressDialog(ctx);\n mProgress.setMessage(\"Finding current location\");\n mProgress.show();\n super.onPreExecute();\n }", "public void search() {\r\n \t\r\n }", "void onShowProgress();", "@Override\n protected void onPostExecute(String sentFromDoInBackground) {\n super.onPostExecute(sentFromDoInBackground);\n searchButton.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n myAdapter.notifyDataSetChanged();\n }", "@Override\n public void showProgressSync() {\n }", "void showModalProgress();", "private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}", "void showQueuingBuildProgress();", "public void startSearch() {\n if (solving) {\n Alg.Dijkstra();\n }\n pause(); //pause state\n }", "@Override\n\tpublic boolean onSearchRequested()\n\t{\n \tstartSearch(getCurSearch(), true, null, false);\n \treturn true;\n\t}", "private void showSearchProgressDialog(){\n\n searchButton.setEnabled(false);\n\n if(searchDialogFragment == null){\n searchDialogFragment = new SearchIndicatorDialogFragment();\n\n searchDialogFragment.setOnDialogDismissedListener(new GoogleApiHelper.OnDialogDismissedListener() {\n @Override\n public void onDialogDismissed() {\n cancelSearch = true;\n Log.d(TAG, \"Requesting Search cancellation on Search Progress dialog dismissal\");\n EventBus.getDefault().postSticky(new SearchService.CancelSearchEvent(SearchService.SEARCH_TUTORS));\n // Try cancelling the search\n }\n });\n\n }\n\n searchDialogFragment.show(getFragmentManager(), SearchIndicatorDialogFragment.FRAGMENT_TAG);\n\n /*if(searchProgressDialog == null){\n searchProgressDialog = new ProgressDialog(getContext());\n searchProgressDialog.setIndeterminate(true);\n searchProgressDialog.setCancelable(true);\n searchProgressDialog.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n cancelSearch = true;\n Log.d(TAG, \"Requesting Search cancellation on Search Progress dialog dismissal\");\n EventBus.getDefault().postSticky(new SearchService.CancelSearchEvent(SearchService.SEARCH_TUTORS));\n // Try cancelling the search\n }\n });\n }\n if(!searchProgressDialog.isShowing()){\n Log.d(TAG, \"Showing the search progress dialog...\");\n searchProgressDialog.show();\n }*/\n }", "private void showSpinerProgress() {\n dialog.setMessage(\"Loading\");\n//\n// dialog.setButton(ProgressDialog.BUTTON_POSITIVE, \"YES\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n//\n// }\n// });\n\n //thiet lap k the huy - co the huy\n dialog.setCancelable(false);\n\n //show dialog\n dialog.show();\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n dialog.dismiss();\n }\n }, 20000000);\n }", "public static int search (String searching)\n {\n ListAlbum listAlbum = new ListAlbum(true, false, false);\n AlbumXmlFile.readAllAlbumsFromDataBase(listAlbum, true);\n Iterator albumIterator = listAlbum.iterator();\n Album actualAlbum;\n int actualAlbumIndex=0;\n while (albumIterator.hasNext())\n {\n \n actualAlbum = (Album) albumIterator.next();\n \n if (actualAlbum.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n else if (actualAlbum.getArtist().getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n actualAlbum.getSongs();\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n int actualSongIndex = 0;\n\n while (songsIterator.hasNext())\n {\n /* Se añade el número de la canción al modelo de la lista */\n Song song = (Song) songsIterator.next();\n if (song.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showSongResults(true, false, false, actualAlbum,song,actualSongIndex);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n indexFromSearchedSong=actualSongIndex;\n if (alreadyPlaying)\n {\n JSoundsMainWindowViewController.stopSong();\n alreadyPlaying=false;\n dontInitPlayer=true;\n }\n //playListSongs(true);\n return 1;\n }\n actualSongIndex++;\n }\n actualAlbumIndex++;\n }\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Not Found :( \");\n return 0;\n }", "void searchUI();", "protected void startQuery() {\n final EditText editSearch = (EditText) findViewById(R.id.editTextSearchWord);\n final String searchWord = editSearch.getText().toString(); //EditText.getText() returns Editable\n //new DDGAsyncQuery(this).execute(searchWord);\n //DDGLoader implementation does not have a\n try {\n this.dialog = new ProgressDialog(this);\n this.dialog.setCancelable(true);\n this.dialog.setIndeterminate(true);\n this.dialog.setTitle(getText(R.string.queryStartedDialogTitle));\n this.dialog.setMessage(getText(R.string.queryStartedDialogText));\n this.dialog.show();\n } catch (Exception e) {\n Log.w(TAG, \"startQuery(): unable to show dialog\");\n }\n\n //Create the actual loader that will perform the query submission to remote server\n Bundle args = new Bundle(1);\n args.putString(DDGLoader.KEY_SEARCH_WORD, searchWord);\n /* Quirk in support library implementation of AsyncTaskLoader which baffled me before\n * requires this .forceLoad() method to actually start the loader. This should not be\n * necessary if using the API11+ framework implementation but I haven't tried it.\n * See http://stackoverflow.com/questions/10524667/android-asynctaskloader-doesnt-start-loadinbackground\n * Also, I found for this application .restartLoader makes sure it fetches new data for every\n * query; with .initLoader on subsequent queries it would return data from the previous query\n * seemingly without even accessing the network */\n getSupportLoaderManager().restartLoader(queryLoaderId, args, this).forceLoad();\n }", "public void showProgressDialog() {\n pd = new ProgressDialog(this);\n pd.setMessage(\"Renting film...\");\n pd.show();\n }", "@Override\n public void onResults(List<LocationClass> results) {\n searchView.swapSuggestions(results);\n\n //let the users know that the background\n //process has completed\n }", "@FXML\n private void btnSearchClick() {\n\n // Check if search field isn't empty\n if (!txtSearch.getText().equals(\"\")) {\n\n // Display the progress indicator\n resultsProgressIndicator.setVisible(true);\n\n // Get query results\n MovieAPIImpl movieAPIImpl = new MovieAPIImpl();\n movieAPIImpl.getMovieList(Constants.SERVICE_API_KEY, txtSearch.getText(), this);\n }\n }", "@NlsContexts.ProgressText\n String getRootsScanningProgressText();", "public void search() {\n }", "@Override\n public void run() {\n try {\n File file;\n while ((file = queue.poll(100, TimeUnit.MILLISECONDS)) != null) {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.contains(searchString)) {\n // Synchronization requires because of many threads are writing into results.\n synchronized (results) {\n results.add(file.getAbsolutePath());\n break;\n }\n }\n }\n }\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n }", "private void find(boolean forward) {\n \tif (this.currentFindResultPage != null) {\n \t\t/* searching again */\n \t\tint nextResultNum = forward ? this.currentFindResultNumber + 1 : this.currentFindResultNumber - 1;\n \t\tif (nextResultNum >= 0 && nextResultNum < this.pagesView.getFindResults().size()) {\n \t\t\t/* no need to really find - just focus on given result and exit */\n \t\t\tthis.currentFindResultNumber = nextResultNum;\n \t\t\tthis.pagesView.scrollToFindResult(nextResultNum);\n \t\t\tthis.pagesView.invalidate();\n \t\t\treturn;\n \t\t}\n \t}\n\n \t/* finder handles next/prev and initial search by itself */\n \tFinder finder = new Finder(this, forward);\n \tThread finderThread = new Thread(finder);\n \tfinderThread.start();\n }", "void searchProbed (Search search);", "public void run()\r\n {\n\ttopLevelSearch=FIND_TOP_LEVEL_PAGES;\r\n\ttopLevelPages=new Vector();\r\n\tnextLevelPages=new Vector();\r\n \r\n\t// Check to see if a proxy is being used. If so then we use IP Address rather than host name.\r\n\tproxyDetected=detectProxyServer();\r\n\t \r\n\tstartSearch();\r\n \r\n\tapp.enableButtons();\r\n\tapp.abort.disable();\r\n \r\n\tif(hitsFound == 0 && pageOpened == true)\r\n\t app.statusArea.setText(\"No Matches Found\");\r\n else if(hitsFound==1)\r\n\t app.statusArea.setText(hitsFound+\" Match Found\");\r\n else app.statusArea.setText(hitsFound+\" Matches Found\");\r\n }", "public void onSearchStarted();", "void search();", "void search();", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "public void actionPerformed(ActionEvent e) {\n displayInfoText(\" \");\n // Turn the search string into a Query\n String queryString = queryWindow.getText().toLowerCase().trim();\n query = new Query(queryString);\n // Take relevance feedback from the user into account (assignment 3)\n // Check which documents the user has marked as relevant.\n if (box != null) {\n boolean[] relevant = new boolean[box.length];\n for (int i = 0; i < box.length; i++) {\n if (box[i] != null)\n relevant[i] = box[i].isSelected();\n }\n query.relevanceFeedback(results, relevant, engine);\n }\n // Search and print results. Access to the index is synchronized since\n // we don't want to search at the same time we're indexing new files\n // (this might corrupt the index).\n long startTime = System.currentTimeMillis();\n synchronized (engine.indexLock) {\n results = engine.searcher.search(query, queryType, rankingType);\n }\n long elapsedTime = System.currentTimeMillis() - startTime;\n // Display the first few results + a button to see all results.\n //\n // We don't want to show all results directly since the displaying itself\n // might take a long time, if there are many results.\n if (results != null) {\n displayResults(MAX_RESULTS, elapsedTime / 1000.0);\n } else {\n displayInfoText(\"Found 0 matching document(s)\");\n\n if (engine.speller != null) {\n startTime = System.currentTimeMillis();\n SpellingOptionsDialog dialog = new SpellingOptionsDialog(50);\n String[] corrections = engine.speller.check(query, 10);\n elapsedTime = System.currentTimeMillis() - startTime;\n System.err.println(\"It took \" + elapsedTime / 1000.0 + \"s to check spelling\");\n if (corrections != null && corrections.length > 0) {\n String choice = dialog.show(corrections, corrections[0]);\n if (choice != null) {\n queryWindow.setText(choice);\n queryWindow.grabFocus();\n\n this.actionPerformed(e);\n }\n }\n }\n }\n }", "private void search() {\n \t\tString searchString = m_searchEditText.getText().toString();\n \n \t\t// Remove the refresh if it's scheduled\n \t\tm_handler.removeCallbacks(m_refreshRunnable);\n \t\t\n\t\tif ((searchString != null) && (!searchString.equals(\"\"))) {\n \t\t\tLog.d(TAG, \"Searching string: \\\"\" + searchString + \"\\\"\");\n \n \t\t\t// Save the search string\n \t\t\tm_lastSearch = searchString;\n \n \t\t\t// Disable the Go button to show that the search is in progress\n \t\t\tm_goButton.setEnabled(false);\n \n \t\t\t// Remove the keyboard to better show results\n \t\t\t((InputMethodManager) this\n \t\t\t\t\t.getSystemService(Service.INPUT_METHOD_SERVICE))\n \t\t\t\t\t.hideSoftInputFromWindow(m_searchEditText.getWindowToken(),\n \t\t\t\t\t\t\t0);\n \n \t\t\t// Start the search task\n \t\t\tnew HTTPTask().execute(searchString);\n \t\t\t\n \t\t\t// Schedule the refresh\n \t\t\tm_handler.postDelayed(m_refreshRunnable, REFRESH_DELAY);\n \t\t} else {\n \t\t\tLog.d(TAG, \"Ignoring null or empty search string.\");\n \t\t}\n \t}", "@Override\r\n\tprotected void onProgressUpdate(String... s) {\r\n\t\tactivity.addToGUI(s[0]);\r\n\t}", "@Override\n protected void search() {\n \n obtainProblem();\n if (prioritizedHeroes.length > maxCreatures){\n frame.recieveProgressString(\"Too many prioritized creatures\");\n return;\n }\n bestComboPermu();\n if (searching){\n frame.recieveDone();\n searching = false;\n }\n }", "public void doSearch(String query)\n \t{\n \t\tlistener.onQueryTextSubmit(query);\n \t}", "private void searchFunction() {\n\t\t\r\n\t}", "private void displaySearch() throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"\\nPlease enter the name of the club you would \" +\r\n \"like to search for or 'back' to return to initial prompt:\");\r\n \r\n // club name that user searches for\r\n String club = in.nextLine();\r\n \r\n // exit if user chooses to do so, otherwise search database\r\n if (\"back\".equalsIgnoreCase(club))\r\n displayOpen();\r\n else\r\n searchClub(club);\r\n }", "@Override\n public void onSearchConfirmed(CharSequence text) {\n startSearch(text);\n }", "@Override\n public void onSearchConfirmed(CharSequence text) {\n startSearchResults(text);\n }", "@Override\n protected void onProgressUpdate(String... values) {\n wordMatches.getMatches().add(values[0]);\n //only update the UI for the first page or so of results\n if (wordMatches.getMatches().size()<=TABLE_MAX_COUNT_TO_RELOAD)\n {\n matchObservable.setValue(values[0]);\n }\n }", "private void search(ActionEvent x) {\n\t\tString text = this.searchText.getText();\n\t\tif (text.equals(\"\")) {\n\t\t\tupdate();\n\t\t\treturn;\n\t\t}\n\t\tboolean flag = false;\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p.getName().indexOf(text) != -1) {\n\t\t\t\tif (!flag) {\n\t\t\t\t\tthis.projects.clear();\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) {\n\t\t\tINSTANCE.getCurrentUser().sendNotification(new Notification((Object) INSTANCE, \"No results\"));\n\t\t\tthis.searchText.setText(\"\");\n\t\t}\n\t}", "@Override\n public void onSearchConfirmed(CharSequence text) {\n startSearch(text);\n\n }", "private void progressStuff() {\n cd = new ConnectionDetector(getActivity());\n parser = new JSONParser();\n progress = new ProgressDialog(getActivity());\n progress.setMessage(getResources().getString(R.string.loading));\n progress.setIndeterminate(false);\n progress.setCancelable(true);\n // progress.show();\n }", "@NlsContexts.ProgressText\n String getIndexingProgressText();", "private void progressBar()\n {\n int amount = 0;\n for(Movie a:\n baseMovieList)\n if(a.isWatched())\n amount++;\n int fill = 100 / baseMovieList.size() * amount;\n progressBar.setProgress(fill);\n }", "public void searchFinished(Search search)\r\n {\r\n if (this.filename.equals(\"\"))\r\n return;\r\n this.writeTrace();\r\n }", "public String search() {\r\n\t\tgetNavigationPanel(3);\r\n\t\treturn SUCCESS;\r\n\t}", "public void performSearch()\r\n {\r\n setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) );\r\n\r\n try\r\n {\r\n // Create the search pattern.\r\n String SearchPatternString = SearchPatternField.getText();\r\n if ( SearchPatternString == null\r\n || SearchPatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No search pattern entered\",\r\n SearchPatternField);\r\n SearchPattern = new Regex(SearchPatternString);\r\n SearchPattern.optimize();\r\n\r\n // Build the definition of the root directory to search.\r\n String FilePatternString = FilePatternField.getText();\r\n if ( FilePatternString == null\r\n || FilePatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No file pattern entered\",\r\n FilePatternField);\r\n\r\n String DirPathString = DirPatternField.getText();\r\n if ( DirPathString == null\r\n || DirPathString.equals(\"\") )\r\n throw new ScreenInputException(\"No directory specified\",\r\n DirPatternField);\r\n File DirectoryFile = new File(DirPathString);\r\n if (!DirectoryFile.exists() )\r\n throw new ScreenInputException(\"Directory '\" + DirPathString + \"'does not exist\",\r\n DirPatternField);\r\n\r\n // Prepare the walker that performs the grep on each directory.\r\n GrepSubDirWalker.prepareSearch(SearchPattern,\r\n FilePatternString,\r\n DirPathString,\r\n ResultsDocument);\r\n\r\n if (SubDirsTooCheckBox.isSelected() )\r\n {\r\n // Process named directory and its sub-directories.\r\n Directory RootDirectory = new Directory(DirPathString);\r\n RootDirectory.walk(GrepSubDirWalker);\r\n }\r\n else\r\n // Process just the named directory.\r\n GrepSubDirWalker.processDirectory(DirPathString);\r\n\r\n GrepSubDirWalker.appendStatistics(); // Show statistics\r\n }\r\n catch (NoClassDefFoundError InputException)\r\n {\r\n showPatMissingDialog();\r\n }\r\n catch (ScreenInputException InputException)\r\n {\r\n InputException.requestComponentFocus();\r\n showExceptionDialog(InputException);\r\n }\r\n catch (Exception InputException)\r\n {\r\n showExceptionDialog(InputException);\r\n }\r\n setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR) );\r\n }", "@Override public void searchStopped() {\n progressBar.setVisibility(View.GONE);\n if(userAdapter.getItemCount() == 0){\n Snackbar.make(recyclerView, R.string.string_no_any_user, Snackbar.LENGTH_SHORT).show();\n }\n}", "private void startSearch()\n {\n model.clear();\n ArrayList<String> result;\n if (orRadio.isSelected())\n {\n SearchEngine.search(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n else\n {\n SearchEngine.searchAnd(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n for (String s : result)\n {\n model.addElement(s);\n }\n int paragraphsRetrieved = result.size();\n reviewedField.setText(\" Retrieved \" + paragraphsRetrieved + \" paragraphs\");\n }", "@Override\n public void onSearchConfirmed(CharSequence text) {\n startSearch(text);\n\n }", "@Override\n public void onSearchConfirmed(CharSequence text) {\n startSearch(text);\n\n }", "private void search() {\n String result = \"<body bgcolor=\\\"black\\\"> \" +\n \"<font color=\\\"#009933\\\"\";\n gs.setQueryString(txtQueury.getText());\n try {\n gsr = gs.doSearch();\n txtCountRes.setText(\"\" + gsr.getEstimatedTotalResultsCount());\n gsre = gsr.getResultElements();\n\n for (int i = 0; i < gsre.length; i++) {\n if (googleTitle.isSelected()) {\n result +=\n \"<font color=\\\"red\\\"><u><b>Title: </u></b><a href=\\\"\" +\n gsre[i].getURL() + \"\\\">\"\n + gsre[i].getTitle() + \"</a><br>\" +\n \"<br><b>URL: \" +\n gsre[i].getHostName() + gsre[i].getURL() +\n \"</b></font><br>\";\n }\n if (googleSummary.isSelected()) {\n result += \"<u><b>Summary: </u></b>\" +\n gsre[i].getSummary() +\n \"<br>\";\n }\n if (googleSnippet.isSelected()) {\n result += \"<u><b>Snippet: </u></b>\" +\n gsre[i].getSnippet() +\n \"<br>\";\n }\n if (googleHostName.isSelected()) {\n result += \"<u><b>Host: </u></b>\" + gsre[i].getHostName() +\n \"<br>\";\n }\n if (googleDirectoryTitle.isSelected()) {\n result += \"<u><b>Directory Title: </u></b>\" +\n gsre[i].getDirectoryTitle() + \"<br>\";\n }\n if (googleCachedSize.isSelected()) {\n result += \"<u><>Cached Size: </u></b>\" +\n gsre[i].getCachedSize() + \"<br>\";\n }\n result += \"<br>\";\n }\n } catch (GoogleSearchFault e) {\n msg(\"Erreur d'exécution \" + e.getMessage(), \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n\n //affichage de la recherche\n editor.setText(result);\n }", "private void searchCommunities(String searchString)\n {\n progressBar.setVisibility(View.VISIBLE);\n controller.searchCommunities(new AuthenticationAPIController(this).getTokken()\n ,searchString\n , new GetCommunitiesCallback()\n {\n @Override\n public void success(List<Community> communityList)\n {\n progressBar.setVisibility(View.GONE);\n\n // show the communities in the fragment\n textViewMyCommunities.setVisibility(View.GONE);\n if (communitiesListFragment != null)\n communitiesListFragment.setData(communityList);\n }\n\n @Override\n public void fail(String errorMessage)\n {\n progressBar.setVisibility(View.GONE);\n Snackbar.make(content, errorMessage, Snackbar.LENGTH_SHORT).show();\n }\n });\n\n }", "private void checking() {\n checkProgress = new ProgressDialog(DownloadActivity.this);\n checkProgress.setCancelable(false);\n checkProgress.setMessage(getResources().getString(R.string.checking_message));\n checkProgress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n checkProgress.setIndeterminate(true);\n checkProgress.show();\n new Thread(new Runnable() {\n public void run() {\n while (check == 0) {}\n checkProgress.dismiss();\n }\n }).start();\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressDialog = ProgressDialog.show(SearchView.this, \"Espere...\", \"Recebendo dados\", true, true);\n\t\t\tprogressDialog.setOnCancelListener(new CancelTaskOnCancelListener(this));\n\t\t}", "@Override\n\t\tpublic void search() {\n\t\t\tSystem.out.println(\"새로운 조회\");\n\t\t}", "private void showProgressDialogWithTitle(String substring) {\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.setCancelable(false);\n progressDialog.setMessage(substring);\n progressDialog.show();\n }", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }", "public void progressMade();", "@Override\n public void run() {\n\t\t\t\t\ttable.getDisplay().timerExec(100, new Runnable() {\n\t\t\t\t\t\t@Override\n public void run() {\n//\t\t\t\t\t\t\tfindText.setBackground(PropertyChangeListener.getColor(found == null && matchCount == 0 ? new RGB(255, 0, 0) : new RGB(255, 255, 255)));\n\t\t\t\t\t\t\tif (!wrapped)\n\t\t\t\t\t\t\t\thexEditor.getEditorSite().getActionBars().getStatusLineManager().setMessage(found == null && matchCount == 0 ? Messages.HexEditorControl_7 : matchCount > 0 ? Messages.HexEditorControl_8 + matchCount + Messages.HexEditorControl_9 : null);\n\t\t\t\t\t\t\tupdateStatusPanel();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n String turnToString2 = txt_search.getText();\n\n try {\n\n if(begSearch != -1){\n txt_area.setCaretPosition(begSearch);\n begSearch = txt_area.getText().indexOf(turnToString2,begSearch);\n lbl_search_res.setText(\"\");\n }\n if(begSearch != -1){\n txt_area.getHighlighter().addHighlight(begSearch,begSearch + turnToString2.length(),new DefaultHighlighter.DefaultHighlightPainter(Color.yellow));\n }\n else if (begSearch <= txt_area.getText().length() && begSearch >= 0){\n txt_area.getHighlighter().addHighlight(begSearch,begSearch + turnToString2.length(),new DefaultHighlighter.DefaultHighlightPainter(Color.yellow));\n }\n if(begSearch == -1){\n lbl_search_res.setText(\"Can not found.\");\n }\n begSearch = begSearch + 1;\n\n //System.out.print(\" \"+begSearch);\n\n }\n catch (BadLocationException ex) {\n begSearch = -1;\n }\n\n }", "private void searchQuery() {\n edit_search.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n if (paletteComposition.getVisibility() == View.VISIBLE){\n paletteComposition.setVisibility(View.GONE);\n setComposer.setVisibility(View.VISIBLE);\n }\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n setContactThatNameContains(s.toString().trim());\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "private void getWords(String input) {\r\n\t\tSystem.out.print(\"Searching.\");\r\n\t\tSolution solution = null;\r\n\t\twhile ((solution = controller.getAnswer(input)) == null) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(200);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// XXX don't know what to do here...\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\".\");\t// progress dots\r\n\t\t}\r\n\t\tSystem.out.println();\t\t// new line for progress dots\r\n\t\tresults.setSolution(solution);\r\n\t\tdisplayWords();\r\n\t}", "public void showProgressDialog() {\r\n progressDialog.setMessage(getResources().getString(R.string.text_loading));\r\n progressDialog.setCancelable(false);\r\n progressDialog.show();\r\n }", "@Nullable\n @NlsContexts.ProgressText\n String getRootsScanningProgressText();", "String progressMessage();", "public CommandResult execute() {\n int i = 0;\n int found = 0;\n for (Task task : Duke.taskList) {\n i++;\n if (task.description.contains(keyword)) {\n System.out.println(i + \".[\" + task.getTaskID() + \"]\" +\n \"[\" + task.getStatusIcon() +\n \"] \" + task.description + \" \" + task.getDate());\n found++;\n }\n }\n if (found == 0) {\n return new CommandResult(\"No results found :(\");\n } else {\n return new CommandResult(System.lineSeparator() + found + \" results found!\");\n }\n }", "private void paginate(int pageNum, int resultsPerPage)\n {\n workingLabel.setVisible(true);\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n List<IndexNode> results = searchEngine.search(searchTerm, !searchWeb);\n \n //No results, show NO_RESULTS view\n if(results.isEmpty())\n {\n showResultsView(false);\n return;\n }\n \n Timer task = new Timer(500, (ActionEvent e) ->\n { \n int numResults = results.size();\n int maxPages = getMaxPages(numResults, resultsPerPage);\n int pageOffset = getPageOffset(pageNum, resultsPerPage, maxPages);\n int numCols = 4;\n \n SwingUtilities.invokeLater(() -> \n {\n //Searching web\n //Clear resultModel\n //Add numResultsPerPage to the resultModel\n if(searchWeb)\n {\n resultModel.setRowCount(0);\n for(int i = pageOffset, j = 0; i < numResults && j < resultsPerPage; i++, j++)\n resultModel.addRow(new IndexNode[] { results.get(i) });\n }\n \n //Searching images\n //Clear resultImageModel (rendering handled)\n //Clear the stored images\n //Add new IndexNodes images to stored images\n else\n {\n resultImageModel.setRowCount(0);\n currentSearchImages.clear();\n \n for(int i = pageOffset; i < numResults; i++)\n addNodesImages(results.get(i));\n \n //Gets row data images from currentSearchImages\n //Fills unused columns with null\n //Adds up to numCols images per row\n //Images are already read and can be quickly rendered\n for(int i = 0; i < currentSearchImages.size();)\n {\n List<ImageNode> rowData = new ArrayList<>();\n for(int j = 0; j < numCols; j++)\n {\n ImageNode node = (i < currentSearchImages.size() - 1)? currentSearchImages.get(i) : null;\n rowData.add(node);\n i++;\n }\n resultImageModel.addRow(rowData.toArray(new ImageNode[numCols]));\n }\n }\n \n //Update the number of results with new search result count\n updateNumResults(results.size());\n \n //Update page info\n int numPages = getMaxPages(results.size(), getResultsPerPage());\n maxPage = numPages;\n updatePageLabel(currentPage, numPages);\n \n });\n \n workingLabel.setVisible(false);\n });\n \n task.setRepeats(false);\n task.start();\n }", "private void setUpProgressBar() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n int totalLocationCount = 0;\n double visitedCount = 0;\n\n while (cursor.moveToNext()) {\n totalLocationCount++;\n int visited = cursor.getInt(cursor.getColumnIndex(database.COL_VISITED));\n if (visited == 1) visitedCount++;\n }\n\n int progress = (int) (visitedCount / totalLocationCount * 100);\n ProgressBar progressBar = findViewById(R.id.progress);\n TextView progressText = findViewById(R.id.progress_text);\n progressBar.setProgress(progress);\n progressText.setText(\" \" + progress + \"%\");\n }", "void showProgressDialog();", "void showProgressDialog();", "void showTarProgressMessage(String msg);", "public synchronized void progress(String s){\n\t\tif(printStdErr){\n\t\t\tSystem.err.println(\"[PROGRESS] \" + s);\n\t\t}\n\t}", "private void showProgressIndication() {\n Log.i(TAG, \"loading contacts... \");\n // TODO: make this be a no-op if the progress indication is\n // already visible with the exact same title and message.\n\n dismissProgressIndication(); // Clean up any prior progress indication\n\n mProgressDialog = new ProgressDialog(this);\n mProgressDialog.setMessage(this.getResources().getString(R.string.contact_list_loading));\t\n mProgressDialog.setIndeterminate(true);\n mProgressDialog.setCancelable(false);\n mProgressDialog.show();\n }", "public void executeDisplaySearch(String indexfile, String queryString) {\n\t\tif (queryString.trim().length() < 1) {\n\t\t\tJOptionPane.showMessageDialog(this, \"No text given to seach!\", \"Search issues\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//System.out.println(\"going to open: \" + indexfile);\n\n\t\t\n\t\t\n\t\t//lets see if it exists at all:\n\t\tFile test = new File(indexfile);\n\t\tif (!test.exists()) {\n\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\"No such index file present\\nAre you sure you have created an index file?\", \"Missing Index\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\tString minDate = new String(\"2020-11-11\");\n\t\tString MaxDate = new String(\"0000-00-00\");\n\t\tBusyWindow bw = new BusyWindow(\"Setup\", \"Adding results\",true);\n\t\ttry {\n\t\t\tSearcher searcher = new IndexSearcher(indexfile);\n\t\t\t//standardanalyser\n\t\t\tQueryParser qp = new QueryParser(\"contents\", analyzer);\n\t\t\tQuery query = qp.parse(queryString);\n\t\t\tSystem.out.println(\"Searching for: \" + query.toString(\"contents\"));\n\t\t\tdatecal.clear();\n\t\t\tresultHits = searcher.search(query);\n\t\t\tSystem.out.println(resultHits.length() + \" total matching documents\");\n\n\t\t\tbw.setMax(resultHits.length());\n\t\t\tbw.setVisible(true);\n\t\t\t// reset the table length\n\n\t\t\tresultTableModel.setRowCount(0);\n\n\t\t\tfor (int i = 0; i < resultHits.length(); i++) {\n\t\t\t\tbw.progress(i);\n\t\t\t\tVector rowvalue = new Vector();\n\t\t\t\tDocument doc = resultHits.doc(i);\n\t\t\t\tfloat score = resultHits.score(i);\n\t\t\t\tString path = doc.get(\"path\");\n\t\t\t\tString curDate = doc.get(\"Date\");\n\t\t\t\tdatecal.addDate(curDate);\n\t\t\t\tif (path != null) {\n\t\t\t\t\trowvalue.add(\"\" + score);\n\n\t\t\t\t\t// we need to get the date and subject from the db\n\t\t\t\t\t// based on the mailref encode in the path with a space\n\t\t\t\t\t// afterwards\n\t\t\t\t\tString mailref = doc.get(\"Mailref\");\n\t\t\t\t\trowvalue.add(curDate);\n\t\t\t\t\tif (compareDatesString(MaxDate, curDate) < 0) {\n\t\t\t\t\t\tMaxDate = curDate;\n\t\t\t\t\t} else if (compareDatesString(minDate, curDate) > 0) {\n\t\t\t\t\t\tminDate = curDate;\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tString data[][] = DBConnect.getSQLData(\"select subject from email where mailref = '\" + mailref\n\t\t\t\t\t\t\t\t+ \"'\");\n\n\t\t\t\t\t\tif (data.length > 0) {\n\t\t\t\t\t\t\trowvalue.add(data[0][0]);\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (SQLException see) {\n\t\t\t\t\t\tsee.printStackTrace();\n\n\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t}\n\n\t\t\t\t\trowvalue.add(mailref);\n\t\t\t\t\t// System.out.println(i + \". =\"+score+\"= \" +\n\t\t\t\t\t// doc.get(\"contents\").substring(0,20));//path );\n\t\t\t\t} else {\n\t\t\t\t\tString url = doc.get(\"url\");\n\t\t\t\t\tif (url != null) {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + url);\n\t\t\t\t\t\tSystem.out.println(\" - \" + doc.get(\"title\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + \"No path nor URL for this document\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\trowvalue.add(-1);\n\t\t\t\trowvalue.add(i);\n\t\t\t\tresultTableModel.addRow(rowvalue);\n\t\t\t}\n\n\t\t} catch (ParseException pe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem with query \" + queryString);\n\t\t\tpe.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem opening \" + indexfile);\n\t\t\tioe.printStackTrace();\n\n\t\t}\n\t\tbw.setVisible(false);\n\t\t// System.out.println(\"Max:\" + MaxDate + \" Min:\"+ minDate);\n\n\t\tm_status.setText(\"Number of results: \" + resultHits.length() + \" From \" + minDate + \" to \" + MaxDate);\n\n\t\tdatecal.setDateRange(minDate, MaxDate);\n\t\tdatecal.paintComponent(datecal.getGraphics());\n\n\t}", "void startRepeatingDeletionSearch() {\n handler.postDelayed(deletionSearch,1000);\n }", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }" ]
[ "0.76943785", "0.71346265", "0.68252414", "0.67991894", "0.6580276", "0.63790697", "0.6315713", "0.6285827", "0.6241327", "0.6230253", "0.6203739", "0.6178385", "0.61700416", "0.61483216", "0.6128251", "0.61119115", "0.6109877", "0.60556424", "0.6049437", "0.6047641", "0.6019949", "0.6017956", "0.60120386", "0.5983248", "0.5960177", "0.5959864", "0.59588957", "0.59501374", "0.5946787", "0.59229136", "0.5910791", "0.59015834", "0.58999634", "0.58970135", "0.5886299", "0.58807325", "0.58560306", "0.58548886", "0.58544415", "0.585119", "0.5828658", "0.58183706", "0.58149314", "0.5814455", "0.58138734", "0.5810025", "0.5808556", "0.5787459", "0.57859004", "0.5780227", "0.5780227", "0.57770324", "0.5763586", "0.57627624", "0.5760669", "0.57598156", "0.5752742", "0.57237035", "0.5721326", "0.57209444", "0.5714485", "0.5714254", "0.57095414", "0.5689918", "0.56709176", "0.5668749", "0.56511855", "0.5648126", "0.5648022", "0.5644668", "0.5636619", "0.5633895", "0.56233144", "0.56233144", "0.56027377", "0.5591762", "0.5588808", "0.5588511", "0.5586263", "0.5581", "0.5578573", "0.5562852", "0.5552843", "0.55491084", "0.55390704", "0.5538791", "0.5536754", "0.5532776", "0.5527355", "0.5522772", "0.55117", "0.5505534", "0.5495826", "0.5494376", "0.5494376", "0.5485054", "0.5481863", "0.5470913", "0.54705465", "0.5468301", "0.54646724" ]
0.0
-1
Hide the progress after the searching
private void hideProgress() { if (dialogProgress != null) { dialogProgress.dismiss(); dialogProgress = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void searchStarted() {\n progressBar.setVisibility(View.VISIBLE);\n }", "public void showProgress() {\n img_left_action.setVisibility(View.GONE);\n search_progress.setAlpha(0.0f);\n search_progress.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(search_progress, \"alpha\", 0.0f, 1.0f).start();\n }", "public void hideProgress() {\n search_progress.setVisibility(View.GONE);\n img_left_action.setAlpha(0.0f);\n img_left_action.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(img_left_action, \"alpha\", 0.0f, 1.0f).start();\n }", "void hideProgress();", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "@Override\n protected void onProgressUpdate(Integer ... values) {\n super.onProgressUpdate(values);\n searchButton.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.VISIBLE);\n progressBar.setProgress(values[0]);\n }", "private void findHide() {\n \tif (this.pagesView != null) this.pagesView.setFindMode(false);\n \tthis.currentFindResultNumber = null;\n \tthis.currentFindResultPage = null;\n \tthis.findButtonsLayout.setVisibility(View.GONE);\n }", "private void hideProgress() {\n\n if(null != mErrorTextView) {\n mErrorTextView.setVisibility(View.GONE);\n }\n }", "@Override\n protected void onPostExecute(String sentFromDoInBackground) {\n super.onPostExecute(sentFromDoInBackground);\n searchButton.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n myAdapter.notifyDataSetChanged();\n }", "void hideQueuingBuildProgress();", "void hideModalProgress();", "void hideSearch() {\r\n AccelerateDecelerateInterpolator interpolator = new AccelerateDecelerateInterpolator();\r\n\r\n // Setup the animation for mSearchView\r\n mSearchView.setPivotY(mSearchView.getHeight());\r\n ObjectAnimator searchAnim = ObjectAnimator.ofFloat(mSearchView, \"scaleY\", 1.0f, 0.0f);\r\n searchAnim.setDuration(100);\r\n searchAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n // Set the visibility of the SearchView\r\n mSearchView.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n\r\n // Setup the animation for mTitle\r\n mTitle.setPivotY(mTitle.getHeight());\r\n ObjectAnimator titleAnim = ObjectAnimator.ofFloat(mTitle, \"scaleY\", 0.1f, 1.0f);\r\n searchAnim.setDuration(100);\r\n\r\n AnimatorSet animSet = new AnimatorSet();\r\n animSet.playSequentially(searchAnim, titleAnim);\r\n animSet.setInterpolator(interpolator);\r\n animSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n // Hide the app title\r\n mTitle.setVisibility(View.VISIBLE);\r\n }\r\n });\r\n animSet.start();\r\n\r\n // Hide the SearchView and show the search icon\r\n mSearchIcon.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.ic_menu_search));\r\n\r\n // Hide the Card allowing the user to search additional recipes online\r\n mSearchMore.setVisibility(View.GONE);\r\n\r\n if (mSearchListener != null) {\r\n // Reset the search filter\r\n mSearchView.setText(\"\");\r\n mSearchListener.onSearch(\"\");\r\n }\r\n\r\n // Hide the soft keyboard\r\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), 0);\r\n }", "private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}", "void hideProgress() {\n removeProgressView();\n removeScreenshotView();\n }", "@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }", "public void hideProgressDialog() {\r\n\t\trunOnUiThread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (progress.isShowing())\r\n\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t} catch (Throwable e) {\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public void hideProgressBar() {\n MainActivity.sInstance.hideProgressBar();\n }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t}", "@Override\r\n public void onAnimationEnd(Animator animation) {\n mSearchView.setVisibility(View.INVISIBLE);\r\n }", "private void showSearchProgressDialog(){\n\n searchButton.setEnabled(false);\n\n if(searchDialogFragment == null){\n searchDialogFragment = new SearchIndicatorDialogFragment();\n\n searchDialogFragment.setOnDialogDismissedListener(new GoogleApiHelper.OnDialogDismissedListener() {\n @Override\n public void onDialogDismissed() {\n cancelSearch = true;\n Log.d(TAG, \"Requesting Search cancellation on Search Progress dialog dismissal\");\n EventBus.getDefault().postSticky(new SearchService.CancelSearchEvent(SearchService.SEARCH_TUTORS));\n // Try cancelling the search\n }\n });\n\n }\n\n searchDialogFragment.show(getFragmentManager(), SearchIndicatorDialogFragment.FRAGMENT_TAG);\n\n /*if(searchProgressDialog == null){\n searchProgressDialog = new ProgressDialog(getContext());\n searchProgressDialog.setIndeterminate(true);\n searchProgressDialog.setCancelable(true);\n searchProgressDialog.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n cancelSearch = true;\n Log.d(TAG, \"Requesting Search cancellation on Search Progress dialog dismissal\");\n EventBus.getDefault().postSticky(new SearchService.CancelSearchEvent(SearchService.SEARCH_TUTORS));\n // Try cancelling the search\n }\n });\n }\n if(!searchProgressDialog.isShowing()){\n Log.d(TAG, \"Showing the search progress dialog...\");\n searchProgressDialog.show();\n }*/\n }", "void hideNextEventsLoadingWheel();", "public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }", "void hideMainLoadingWheel();", "@Override public void searchStopped() {\n progressBar.setVisibility(View.GONE);\n if(userAdapter.getItemCount() == 0){\n Snackbar.make(recyclerView, R.string.string_no_any_user, Snackbar.LENGTH_SHORT).show();\n }\n}", "@Override\n public void hideLoading() {\n if (progressDialog!=null && progressDialog.isShowing()){\n progressDialog.dismiss();\n }\n }", "private void hideProgressIndicator() {\n setProgressBarIndeterminateVisibility(false);\n setProgressBarIndeterminate(false);\n }", "@Override\n\tpublic void hideProgress() {\n\t\tprogress.dismiss();\n\t}", "private void hideProgress() {\n \tif(mProgress!=null){\n \t\tmProgress.dismiss();\n \tmProgress=null;\n \t}\n }", "public void showProgress(){\n loadMainActivity.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.INVISIBLE);\n }", "private void showSearch() {\n\t\tonSearchRequested();\n\t}", "private void hideLoadingAndUpdate() {\n image.setVisibility(View.VISIBLE);\n loadingBar.setVisibility(View.INVISIBLE);\n shareBtn.setVisibility(shareBtnVisibility);\n\n }", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "public void hideProgress() {\n // if (progressDialog != null && progressDialog.isShowing())\n try {\n progressDialog.dismiss();\n } catch (Exception e) {\n\n }\n }", "void showProgress();", "private void hideProgressDialogWithTitle() {\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.dismiss();\n }", "void hidePreviousEventsLoadingWheel();", "@Override\n public void hideProgressBar() {\n if (getActivity() != null) {\n getActivity().runOnUiThread(() -> {\n if (progressBarLayout != null && progressBar != null) {\n progressBar.setVisibility(View.GONE);\n progressBarLayout.setVisibility(View.GONE);\n }\n });\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mSearchFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mSearchFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mSearchFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mSearchFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "@Override\n public void showProgress() {\n\n }", "public void hideProgress() {\n if (progressDialog != null && progressDialog.isShowing())\n progressDialog.dismiss();\n }", "private void showNothing(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(false);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "private void showLoading() {\n hideNoNetwork();\n mRecipesBinding.fragmentRecipesProgressBar.setVisibility(View.VISIBLE);\n }", "public void infoProgressOn (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.VISIBLE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.GONE);\n }\n }\n });\n }", "@Override\r\n\t\tpublic void onIndexUp() {\n\t\t\tsearch_contact_suoyin.setVisibility(View.GONE);\r\n\t\t}", "public void mapProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourMapBinding.mapProgress.getVisibility() != View.GONE) {\n tabTourMapBinding.mapProgress.setVisibility(View.GONE);\n }\n if (tabTourMapBinding.mapLayout.getVisibility() != View.VISIBLE) {\n tabTourMapBinding.mapLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "@Override\r\n public void beforeTaskComplete() {\r\n if (recyclerView.getChildCount() < 1) {\r\n recyclerView.setVisibility(View.GONE);\r\n }\r\n progressBar.setVisibility(View.VISIBLE);\r\n }", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog=ProgressDialog.show(GetPlace.this, \"Searching places\",\n\t\t\t\t\t\t\"please wait...\",\tfalse);\n\t\t\t}", "@FXML\n private void btnSearchClick() {\n\n // Check if search field isn't empty\n if (!txtSearch.getText().equals(\"\")) {\n\n // Display the progress indicator\n resultsProgressIndicator.setVisible(true);\n\n // Get query results\n MovieAPIImpl movieAPIImpl = new MovieAPIImpl();\n movieAPIImpl.getMovieList(Constants.SERVICE_API_KEY, txtSearch.getText(), this);\n }\n }", "private static void waitForProgressBarToDisappear(){\n\t\tBy androidProgressBar = By.xpath(\"//*[@class=\\\"android.widget.ProgressBar\\\"]\");\n\t\tSystem.out.println(\"----->inside waitForProgressBarToDisappear\");\n\t\t//progress may flicker causing failures\n\t\ttry {\n\t\t\tThread.sleep(500);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(LocalDriverManagerMobile.INSTANCE.getDriver().findElements(androidProgressBar).size() > 0){\n\t\t\tSystem.out.println(\"----->inside waitForProgressBarToDisappear - progress Bar found and waiting for it to clear\");//TODO delete\n\t\t\ttry{\n\t\t\t\tnew WebDriverWait(LocalDriverManagerMobile.INSTANCE.getDriver(),20)\n\t\t\t\t\t\t.until(ExpectedConditions.invisibilityOfElementLocated(androidProgressBar));\n\t\t\t}catch (TimeoutException t){\n\t\t\t\tSystem.err.println(\"-----> Progress bar flickered or got stucked!!!\");\n\t\t\t}\n\t\t}\n\t}", "private void toggleProgress() {\n if (progWheel.getVisibility() == View.VISIBLE) {\n // Needs its own thread for timing control\n Handler handler = new Handler();\n final Runnable r = new Runnable() {\n public void run() {\n if (progWheel.getVisibility()\n == View.VISIBLE) {\n progWheel.setVisibility(View.GONE);\n }\n }\n };\n handler.postDelayed(r, 1);\n } else if (progWheel.getVisibility() == View.GONE) {\n progWheel.spin();\n progWheel.setVisibility(View.VISIBLE);\n }\n }", "private void hideElements(){\n question.setVisibility(View.GONE);\n yes_for_joke.setVisibility(View.GONE);\n no_for_joke.setVisibility(View.GONE);\n progressBar.setVisibility(View.VISIBLE);\n }", "public void hide_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(!selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "private void hideDialog() {\n if (progressDialog.isShowing())\n progressDialog.dismiss();\n }", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "public void searchByUser(View v){\n if(connection.isOnline(this)){\n new SearchByUserAsync().execute();\n }\n hideFABToolbar(new View(getApplicationContext()));\n }", "private void hideLoading()\n {\n relLoadingPanel.setVisibility(View.GONE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, true);\n }", "public static void hideProgressDialog() {\n try {\n if (PROGRESS_DIALOG != null) {\n PROGRESS_DIALOG.dismiss();\n }\n } catch(Exception ignored) {}\n }", "private void showSpinerProgress() {\n dialog.setMessage(\"Loading\");\n//\n// dialog.setButton(ProgressDialog.BUTTON_POSITIVE, \"YES\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n//\n// }\n// });\n\n //thiet lap k the huy - co the huy\n dialog.setCancelable(false);\n\n //show dialog\n dialog.show();\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n dialog.dismiss();\n }\n }, 20000000);\n }", "private void searchQuery() {\n edit_search.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n if (paletteComposition.getVisibility() == View.VISIBLE){\n paletteComposition.setVisibility(View.GONE);\n setComposer.setVisibility(View.VISIBLE);\n }\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n setContactThatNameContains(s.toString().trim());\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n }", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "@Override\n\tpublic void hide() {\n\t\tmDismissed = true;\n\t\tremoveShowCallback();\n\t\tlong diff = System.currentTimeMillis() - mStartTime;\n\t\tif (diff >= mShowTime || mStartTime == -1) {\n\t\t\t// The progress spinner has been shown long enough\n\t\t\t// OR was not shown yet. If it wasn't shown yet,\n\t\t\t// it will just never be shown.\n\t\t\tsuper.hide();\n\t\t} else {\n\t\t\t// The progress spinner is shown, but not long enough,\n\t\t\t// so put a delayed message in to hide it when its been\n\t\t\t// shown long enough.\n\t\t\tif (!mPostedHide) {\n\t\t\t\tpostDelayed(mDelayedHide, mShowTime - diff);\n\t\t\t\tmPostedHide = true;\n\t\t\t}\n\t\t}\n\t}", "void showSearch() {\r\n AccelerateDecelerateInterpolator interpolator = new AccelerateDecelerateInterpolator();\r\n // Setup the animation for mSearchView\r\n mSearchView.setPivotY(mSearchView.getHeight());\r\n ObjectAnimator searchAnim = ObjectAnimator.ofFloat(mSearchView, \"scaleY\", 0.1f, 1.0f);\r\n searchAnim.setDuration(100);\r\n searchAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n // Set the visibility of the SearchView\r\n mSearchView.setVisibility(View.VISIBLE);\r\n\r\n // Request focus\r\n mSearchView.requestFocus();\r\n }\r\n });\r\n\r\n // Setup the animation for mTitle\r\n mTitle.setPivotY(mTitle.getHeight());\r\n ObjectAnimator titleAnim = ObjectAnimator.ofFloat(mTitle, \"scaleY\", 1.0f, 0.0f);\r\n searchAnim.setDuration(50);\r\n\r\n AnimatorSet animSet = new AnimatorSet();\r\n animSet.playSequentially(titleAnim, searchAnim);\r\n animSet.setInterpolator(interpolator);\r\n animSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n // Hide the app title\r\n mTitle.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n animSet.start();\r\n\r\n // Change the search icon to a cancel icon\r\n mSearchIcon.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.ic_menu_close_clear_cancel));\r\n\r\n // Show the soft keyboard\r\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.showSoftInput(this.getCurrentFocus(), 0);\r\n }", "public void showProgressDialog() {\n showProgressDialog(null);\n }", "public void hideDownloadProgressDialog()\n {\n if(mDownloadProgress != null)\n {\n mDownloadProgress.dismiss();\n }\n mDownloadProgress = null;\n }", "private void showLoadedResults() {\n recyclerView.setVisibility(View.VISIBLE);\n errorMessageDisplayView.setVisibility(View.INVISIBLE);\n }", "@Override\n public void showProgress() {\n mCircleProgressThemeDetail.setVisibility(View.VISIBLE);\n mCircleProgressThemeDetail.spin();\n mRecyclerThemeDaily.setVisibility(View.GONE);\n }", "@Override\n public void result(Event event, boolean success) {\n mAnnotPanel.prepare();\n mClearView.setEnabled(false);\n mAnnotPanel.startSearch(0);\n }", "void onFinishHiding();", "private void search() {\n if (isConnected()) {\r\n query = searchField.getText().toString();\r\n mLoader.setVisibility(View.VISIBLE);\r\n emptyStateTextView.setText(\"\");\r\n //restart the loader with the new data\r\n loaderManager.restartLoader(1, null, this);\r\n } else {\r\n String message = getString(R.string.no_internet);\r\n new AlertDialog.Builder(this).setMessage(message).show();\r\n }\r\n }", "public void dismissProgressBar() {\n\t\tmProgressBarVisible = false;\n\t\tif (getView() != null) {\n\t\t\tLinearLayout progressLayout = (LinearLayout) getView()\n\t\t\t\t\t.findViewById(R.id.severity_list_progress_layout);\n\t\t\tif (progressLayout != null) {\n\t\t\t\tprogressLayout.setVisibility(View.GONE);\n\t\t\t}\n\t\t\tProgressBar listProgress = (ProgressBar) getView().findViewById(\n\t\t\t\t\tR.id.severity_list_progress);\n\t\t\tlistProgress.setProgress(0);\n\t\t}\n\t}", "@Override\n protected void onPreExecute() {\n mProgressbar.setVisibility(View.VISIBLE);\n }", "public void mapImageProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourMapImageBinding.tourMapImageProgress.getVisibility() != View.GONE) {\n tabTourMapImageBinding.tourMapImageProgress.setVisibility(View.GONE);\n }\n if (tabTourMapImageBinding.tourMapImageLayout.getVisibility() != View.VISIBLE) {\n tabTourMapImageBinding.tourMapImageLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "void onShowProgress();", "private void toggleSearch () {\n\t\tsearchMode = !searchMode;\n\t\t\n\t\tif (searchMode) {\n\t\t\t// Go into search mode\n\t\t\t/*\n\t\t\t * Tween in the search bar and keep visible\n\t\t\t */\n\t\t\tif (flyRevealDown == null)\n\t\t\t\tflyRevealDown = AnimationUtils.loadAnimation(this, R.anim.fly_reveal_down);\n\t\t\tsearch.startAnimation(flyRevealDown);\n\t\t\tsearch.setVisibility(View.VISIBLE);\n\t\t\tfilter.requestFocus();\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween out the new memo bar\n\t\t\t */\n\t\t\tif (fadeOut == null)\n\t\t\t\tfadeOut = AnimationUtils.loadAnimation(this, R.anim.fade_out);\n\t\t\tnewMemo.startAnimation(fadeOut);\n\t\t\tnewMemo.setVisibility(View.GONE);\n\t\t\t\n\t\t\t/*\n\t\t\t * Show the keyboard\n\t\t\t */\n\t\t\tinputMethodManager.showSoftInput(filter, 0);\n\t\t} else {\n\t\t\t// Go out of search mode\n\t\t\t/*\n\t\t\t * Hide the keyboard\n\t\t\t */\n\t\t\tinputMethodManager.hideSoftInputFromInputMethod(filter.getWindowToken(), 0);\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween out the search bar and keep invisible\n\t\t\t */\n\t\t\tif (flyConcealUp == null)\n\t\t\t\tflyConcealUp = AnimationUtils.loadAnimation(this, R.anim.fly_conceal_up);\n\t\t\tfilter.setText(\"\");\n\t\t\tsearch.startAnimation(flyConcealUp);\n\t\t\tsearch.setVisibility(View.GONE);\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween in the new memo bar\n\t\t\t */\n\t\t\tif (fadeIn == null)\n\t\t\t\tfadeIn = AnimationUtils.loadAnimation(this, R.anim.fade_in);\n\t\t\tnewMemo.startAnimation(fadeIn);\n\t\t\tnewMemo.setVisibility(View.VISIBLE);\n\t\t}\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressDialog = ProgressDialog.show(SearchView.this, \"Espere...\", \"Recebendo dados\", true, true);\n\t\t\tprogressDialog.setOnCancelListener(new CancelTaskOnCancelListener(this));\n\t\t}", "public void updateBtnClearSearchView() {\n this.mBtnClearSearchView.setVisibility(this.mEdtSearch.getText().length() > 0 ? 0 : 8);\n }", "void showModalProgress();", "@Override\r\n public void onAnimationStart(Animator animation) {\n mSearchView.setVisibility(View.VISIBLE);\r\n\r\n // Request focus\r\n mSearchView.requestFocus();\r\n }", "protected void hideLoader() {\n\n if (progressBar != null) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n if(getActivity()!=null) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n }\n\n }", "@Override\r\n public void done() {\r\n \t\r\n \tjdp.setVisible(false);\r\n }", "@Override\n protected void onPreExecute() {\n mProgressBar.setVisibility(View.VISIBLE);\n }", "void searchUI();", "void showLoading(boolean visible);", "private void postSearch (String status) {\n if (status.equals(\"NO_RESULT_FOUND\")) {\n Context context = getActivity();\n CharSequence text = getString(R.string.search_artist_field_no_result_found);\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.setGravity(Gravity.TOP, (int) getActivity().findViewById(R.id.artist_detail_listview).getX(),\n (int)getActivity().findViewById(R.id.artist_detail_listview).getY());\n toast.show();\n }\n }", "private void showProgressIndicator() {\n setProgressBarIndeterminateVisibility(true);\n setProgressBarIndeterminate(true);\n }", "@Override\n public void showProgressSync() {\n }", "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n\n spinner.setVisibility(View.VISIBLE);\n // dialog.dismiss();\n // Do things like hide the progress bar or change a TextView\n }", "public void onFinish() {\n\n tvGroupSwipingBar.setVisibility(View.GONE);\n }", "public void showLoading() {\n }", "@Override\n protected void onPostExecute(Void result) {\n super.onPostExecute(result);\n\n listBook.setAdapter(adapter);\n\n /** HIDE PROGRESS AFTER LOADING DATA **/\n linlaHeaderProgress.setVisibility(View.GONE);\n\n\n }", "public void searchSwitch() {\r\n\t\tif (searchEmails) {\r\n\t\t\tsearchEmails = false;\r\n\t\t\tlblNewLabel_1.setText(srchPatrons);\r\n\t\t} else {\r\n\t\t\tsearchEmails = true;\r\n\t\t\tlblNewLabel_1.setText(srchEmails);\r\n\t\t}\r\n\t}", "private void hideComputation() {\r\n\t\tshiftLeftSc.hide();\r\n\t\tshiftRowSc.hide();\r\n\t\ttmpMatrix.hide();\r\n\t\ttmpText.hide();\r\n\t}", "@Override\n public void showProgressBar() {\n MainActivity.sInstance.showProgressBar();\n }", "public void mapProgressOn (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourMapBinding.mapProgress.getVisibility() != View.VISIBLE) {\n tabTourMapBinding.mapProgress.setVisibility(View.VISIBLE);\n }\n if (tabTourMapBinding.mapLayout.getVisibility() != View.GONE) {\n tabTourMapBinding.mapLayout.setVisibility(View.GONE);\n }\n }\n });\n }", "@Override\n public void hiddenLoading() {\n Log.i(Tag, \"hiddenLoading\");\n }", "protected void hideNotify() {\n try {\n myJump.systemPauseThreads();\n } catch (Exception oe) {\n myJump.errorMsg(oe);\n }\n }", "public void run() {\n\n if(progressDialog.isShowing()) {\n progressDialog.dismiss();\n }\n searchView.clearFocus();\n imageButtonBack.clearFocus();\n// getCurrentFocus().clearFocus();\n listStoryRecycle.setVisibility(View.VISIBLE);\n }" ]
[ "0.7996456", "0.7502119", "0.7488516", "0.73468417", "0.7044022", "0.70332825", "0.68130106", "0.6753922", "0.6746259", "0.6666178", "0.6637271", "0.6597214", "0.6583345", "0.64773643", "0.6449378", "0.64478177", "0.6435588", "0.6418269", "0.6406049", "0.640579", "0.64002496", "0.6395986", "0.63742834", "0.63639915", "0.63237226", "0.63133234", "0.6311515", "0.630635", "0.62980825", "0.6286794", "0.62710077", "0.6263829", "0.61857647", "0.6160465", "0.6157442", "0.6138144", "0.60908526", "0.6058647", "0.6056099", "0.6022859", "0.5997425", "0.5980914", "0.59642804", "0.59616435", "0.5952319", "0.5940596", "0.5939522", "0.5917809", "0.59163374", "0.59043396", "0.5900259", "0.587844", "0.5871963", "0.5867909", "0.5859803", "0.5854767", "0.58483267", "0.5843286", "0.5841762", "0.58202714", "0.58200693", "0.5804979", "0.5804283", "0.57879007", "0.57870495", "0.5783424", "0.5777808", "0.57777673", "0.5774709", "0.5760669", "0.57529557", "0.574583", "0.5743905", "0.5742723", "0.57374215", "0.5725049", "0.57217723", "0.5721231", "0.5701227", "0.56999224", "0.569785", "0.568546", "0.56847215", "0.5680205", "0.56775874", "0.5662314", "0.5660838", "0.56559515", "0.5649038", "0.56450933", "0.5637468", "0.56292826", "0.5627085", "0.56155074", "0.561068", "0.56100756", "0.56088173", "0.56053394", "0.5605265", "0.5591017" ]
0.6377609
22
region Set the servlet container Set the servlet container
@Bean public ServletWebServerFactory servletContainer() { TomcatServletWebServerFactory tomcatServer = new TomcatServletWebServerFactory() { @Override protected void postProcessContext(Context context) { SecurityConstraint securityConstraint = new SecurityConstraint(); securityConstraint.setUserConstraint("CONFIDENTIAL"); SecurityCollection collection = new SecurityCollection(); collection.addPattern("/*"); securityConstraint.addCollection(collection); context.addConstraint(securityConstraint); } }; tomcatServer.addAdditionalTomcatConnectors(initiateHttpConnector()); return tomcatServer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setContainer(RuntimeContainer container)\n {\n this.container = container;\n }", "void setServletContext(ServletContext servletContext);", "void setServletContext(ServletContext servletContext);", "@Override\n\tpublic void setServletContext(ServletContext servletContext) {\n\tthis.servletContext = servletContext;\t\n\t\t\n\t}", "@Override\r\n\tpublic void setServletContext(ServletContext servletContext) {\n\t\tthis.servletContext = servletContext;\r\n\t}", "@Override\r\n\tpublic void setServletContext(ServletContext servletContext) {\n\t\tthis.servletContext = servletContext;\r\n\t}", "@Reference\n protected void setServerContainerContainer(ServerContainer serverContainer) {\n this.serverContainer = serverContainer;\n }", "@Override\n\tpublic void setServletContext(ServletContext servletContext) {\n\t\tthis.servletContext = servletContext;\n\t}", "public void setAppServletContext(ServletContext servletContext)\n {\n if (servletContext != null)\n {\n this.servletContext = servletContext;\n }\n }", "@Override\r\n public void setServletContext(ServletContext arg0) {\n \r\n }", "public void setContainer(String container) {\n this.container = container;\n }", "@Bean\n public ServletWebServerFactory servletContainer() {\n TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();\n\n if (httpPort > 0) {\n tomcat.addAdditionalTomcatConnectors(getHttpConnector(httpPort));\n }\n return tomcat;\n }", "public void setServletRequest(HttpServletRequest request) {\n\t\t\tthis.request = request;\r\n\t\t\t\r\n\t\t}", "public void setServletRequest(HttpServletRequest request) {\n\t\tthis.request = request;\n\t}", "@Autowired\n public void setWebApp( WebApp sysDesc ) {\n webapp = sysDesc;\n }", "@Override\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request=request;\n\t}", "@Override\n\tpublic void setServletRequest(HttpServletRequest arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request = request;\r\n\t}", "@Override\n\tpublic void customize(ConfigurableEmbeddedServletContainer container) {\n\t\tcontainer.setPort(8888); \n\t}", "public void setServletContext(ServletContext context) {\n this.context = context;\n }", "@Override\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request = request;\n\t}", "@Override\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request = request;\n\t}", "@Override\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request = request;\n\t}", "@Override\r\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t this.request = request;\r\n\t}", "@Override\n public void setServletRequest(HttpServletRequest arg0) {\n\n }", "public void setServletURL (String aServletURL)\n\t{\n\t\tservletURL = aServletURL;\n\t}", "public GenericContainer<?> applicationContainer() {\n return applicationContainer;\n }", "@Override\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request=request;\n\t\tthis.session=request.getSession();\n\t}", "public void init()\n {\n context = getServletContext();\n parameters = (Siu_ContainerLabel)context.getAttribute(\"parameters\");\n }", "public void setContainerDb(String containerDb) {\n this.containerDb = containerDb == null ? null : containerDb.trim();\n }", "@Override\r\n\tpublic void setServletResponse(HttpServletResponse arg0) {\n\t\tthis.response = arg0;\r\n\t}", "@Override\r\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\r\n\t}", "@Override\r\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\r\n\t}", "public void checkContainer() {\n // http://stackoverflow.com/questions/2976884/detect-if-running-in-servlet-container-or-standalone\n try {\n new InitialContext().lookup(\"java:comp/env\");\n log.info(\"Running inside servlet container. Explicit server creation skipped\");\n return;\n } catch (NamingException ex) {\n // Outside of container\n }\n\n }", "public static void setExecutionContext(final HttpServlet servlet) {\r\n\t\tServletLoggingOutput.servlets.set(servlet);\r\n\t}", "@Override\n public void setServletResponse(HttpServletResponse arg0) {\n this.response = arg0;\n }", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "public void setContainerEnv(String containerEnv) {\n this.containerEnv = containerEnv == null ? null : containerEnv.trim();\n }", "public interface ServletContextAware {\r\n\r\n /**\r\n * Called by GuiceContainerFactory when initialize module.\r\n *\r\n * @param servletContext ServletContext object to be used by this object\r\n */\r\n void setServletContext(ServletContext servletContext);\r\n\r\n}", "public void setContainerName(String name) {\r\n this.containerName = name == null ? null : name.substring(name.lastIndexOf(File.separator) + 1);\r\n }", "public void setApplication(String attName, Object value) {\n servletRequest.getServletContext().setAttribute(attName, value);\n }", "private static void initJspContext(WebAppContext webapp) throws IOException {\n File tempDir = new File(System.getProperty(\"java.io.tmpdir\"));\n File scratchDir = new File(tempDir.toString(),\"embedded-jetty-jsp\");\n\n if (!scratchDir.exists()) {\n if (!scratchDir.mkdirs()) {\n throw new IOException(\"Unable to create scratch directory: \" + scratchDir);\n }\n }\n\n webapp.setAttribute(\"javax.servlet.context.tempdir\",scratchDir);\n webapp.setAttribute(InstanceManager.class.getName(), new SimpleInstanceManager());\n \n\n //Ensure the jsp engine is initialized correctly\n JettyJasperInitializer sci = new JettyJasperInitializer();\n ServletContainerInitializersStarter sciStarter = new ServletContainerInitializersStarter(webapp);\n ContainerInitializer initializer = new ContainerInitializer(sci, null);\n List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();\n initializers.add(initializer);\n\n webapp.setAttribute(\"org.eclipse.jetty.containerInitializers\", initializers);\n webapp.addBean(sciStarter, true);\n\n // Add JSP Servlet (must be named \"jsp\")\n ServletHolder holderJsp = new ServletHolder(\"jsp\",JspServlet.class);\n holderJsp.setInitOrder(0);\n holderJsp.setInitParameter(\"logVerbosityLevel\",\"DEBUG\");\n holderJsp.setInitParameter(\"fork\",\"false\");\n holderJsp.setInitParameter(\"xpoweredBy\",\"false\");\n holderJsp.setInitParameter(\"compilerTargetVM\",\"1.7\");\n holderJsp.setInitParameter(\"compilerSourceVM\",\"1.7\");\n holderJsp.setInitParameter(\"keepgenerated\",\"true\");\n webapp.addServlet(holderJsp,\"*.jsp\");\n //context.addServlet(holderJsp,\"*.jspf\");\n //context.addServlet(holderJsp,\"*.jspx\");\n\t}", "public void setContainerPort(String containerPort) {\n this.containerPort = containerPort == null ? null : containerPort.trim();\n }", "void setRequest(HttpServletRequest req) {\r\n\t\t_req = req;\r\n\t\t_preq=null;\r\n\t}", "public void setContainerActivity(Activity containerActivity) {\n this.containerActivity = containerActivity;\n }", "@Override\n public Dynamic addServlet(String servletName, Servlet servlet) {\n return null;\n }", "@Override\n\tpublic void contextInitialized(ServletContextEvent sce) {\n\t\tstartupEvt.fire(new ContainerStartupEvent());\n\t}", "public void setReq(HttpServletRequest req) {\r\n\t\t_req = req;\r\n\t}", "void setCurrentHTTP(HttpServletRequest request, HttpServletResponse response);", "public AddServlet() {\n\t\tsuper();\n\t}", "public ServletRackEnvironment(HttpServletRequest request, HttpServletResponse response, RackContext context) {\n super(request);\n this.response = response;\n this.context = context;\n }", "@Override\n public void init() throws ServletException {\n this.manager = (DBManager)super.getServletContext().getAttribute(\"dbmanager\");\n }", "public DockContainer getContainer() {\n return container;\n }", "public void setContainerUser(String containerUser) {\n this.containerUser = containerUser == null ? null : containerUser.trim();\n }", "public void init(ServletConfig config) throws ServletException {\n\t\tcontext = config.getServletContext();\n\t}", "@Override\n public void onStartup(ServletContext container) {\n AnnotationConfigWebApplicationContext rootContext =\n new AnnotationConfigWebApplicationContext();\n rootContext.register(ApplicationConfig.class);\n rootContext.setConfigLocation(\"example.spring\");\n\n // Manage the lifecycle of the root application context\n container.addListener(new ContextLoaderListener(rootContext));\n container.addListener(new RequestContextListener());\n\n // The following line is required to avoid having jersey-spring3 registering it's own Spring root context.\n container.setInitParameter(\"contextConfigLocation\", \"\");\n\n }", "private void setupJspHandler(WebAppContext context) throws IOException {\n JettyJasperInitializer sci = new JettyJasperInitializer();\n\n ServletContainerInitializersStarter sciStarter = new ServletContainerInitializersStarter(context);\n ContainerInitializer initializer = new ContainerInitializer(sci, null);\n List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();\n initializers.add(initializer);\n context.setAttribute(\"org.eclipse.jetty.containerInitializers\", initializers);\n context.addBean(sciStarter, true);\n System.setProperty(\"org.apache.jasper.compiler.disablejsr199\",\"false\");\n\n // Set Classloader of Context to be sane (needed for JSTL)\n // JSP requires a non-System classloader, this simply wraps the\n // embedded System classloader in a way that makes it suitable\n // for JSP to use\n ClassLoader jspClassLoader = new URLClassLoader(new URL[0], this.getClass().getClassLoader());\n context.setClassLoader(jspClassLoader);\n\n // Add JSP Servlet (must be named \"jsp\")\n ServletHolder holderJsp = new ServletHolder(\"jsp\", JettyJspServlet.class);\n holderJsp.setInitOrder(0);\n holderJsp.setInitParameter(\"logVerbosityLevel\",\"INFO\");\n holderJsp.setInitParameter(\"fork\",\"false\");\n holderJsp.setInitParameter(\"xpoweredBy\",\"false\");\n holderJsp.setInitParameter(\"compilerTargetVM\",\"1.8\");\n holderJsp.setInitParameter(\"compilerSourceVM\",\"1.8\");\n holderJsp.setInitParameter(\"keepgenerated\",\"true\");\n context.addServlet(holderJsp, \"*.jsp\");\n }", "public Container getContainer() {\r\n return container;\r\n }", "@Override\n public void onStartup(ServletContext servletContext) throws ServletException {\n this.addServlet(servletContext);\n }", "public void initialize(ServletConfig servletconfig, HttpServletRequest httpservletrequest,\r\n\t\t\tHttpServletResponse httpservletresponse) {\n\t\t\r\n\t}", "@Override\n\tpublic ServletContext getServletContext() {\n\t\treturn null;\n\t}", "@Override\n\tpublic ServletContext getServletContext() {\n\t\treturn null;\n\t}", "@Override\r\n public ServletConfig getServletConfig() {\n return null;\r\n }", "@Override\n public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException {\n \n CDI<Object> cdi;\n try {\n cdi = CDI.current();\n \n if (logger.isLoggable(INFO)) {\n String version = getClass().getPackage().getImplementationVersion();\n logger.log(INFO, \"Initializing Soteria {0} for context ''{1}''\", new Object[]{version, ctx.getContextPath()});\n }\n \n } catch (IllegalStateException e) {\n // On GlassFish 4.1.1/Payara 4.1.1.161 CDI is not initialized (org.jboss.weld.Container#initialize is not called), \n // and calling CDI.current() will throw an exception. It's no use to continue then.\n // TODO: Do we need to find out *why* the default module does not have CDI initialized?\n logger.log(FINEST, \"CDI not available for app context id: \" + Jaspic.getAppContextID(ctx), e);\n \n return;\n }\n \n CdiExtension cdiExtension = cdi.select(CdiExtension.class).get();\n\n if (cdiExtension.isHttpAuthenticationMechanismFound()) {\n\n // A SAM must be registered at this point, since the programmatically added\n // Listener is for some reason restricted (not allow) from calling\n // getVirtualServerName. At this point we're still allowed to call this.\n \n // TODO: Ask the Servlet EG to address this? Is there any ground for this restriction???\n \n CDIPerRequestInitializer cdiPerRequestInitializer = null;\n \n if (!isEmpty(System.getProperty(\"wlp.server.name\"))) {\n // Hardcode server check for now. TODO: design/implement proper service loader/SPI for this\n cdiPerRequestInitializer = new LibertyCDIPerRequestInitializer();\n logger.log(INFO, \"Running on Liberty - installing CDI request scope activator\");\n }\n \n registerServerAuthModule(new HttpBridgeServerAuthModule(cdiPerRequestInitializer), ctx);\n \n // Add a listener so we can process the context destroyed event, which is needed\n // to de-register the SAM correctly.\n ctx.addListener(this);\n }\n\n }", "public void initEasyJWeb() {\r\n\t\tlogger.info(I18n.getLocaleMessage(\"core.execute.EasyJWeb.initialization.applications\"));\r\n\t\tif (resourceLoader == null) {\r\n\t\t\tif (servletContext != null)\r\n\t\t\t\tresourceLoader = new ServletContextResourceLoader(\r\n\t\t\t\t\t\tservletContext);\r\n\t\t\telse\r\n\t\t\t\tresourceLoader = new FileResourceLoader();\r\n\t\t}\r\n\t\tinitContainer();\r\n\t\tFrameworkEngine.setWebConfig(webConfig);// 初始化框架工具\r\n\t\tFrameworkEngine.setContainer(container);// 在引擎中安装容器\r\n\t\tAjaxUtil.setServiceContainer(new AjaxServiceContainer(container));// 初始化Ajax容器服务\r\n\t\tinitTemplate(); // 初始化模版\r\n\t\tinvokeApps();// 在应用启动的时候启动一些配置好的应用\r\n\t\thaveInitEasyJWeb = true;\r\n\t\tlogger.info(I18n.getLocaleMessage(\"core.EasyJWeb.initialized\"));\r\n\t}", "@Override\n public void contextInitialized(ServletContextEvent servletContextEvent) {\n super.contextInitialized(servletContextEvent);\n\n try {\n ServletContext servletContext = servletContextEvent.getServletContext();\n RemotingServlet remotingServlet = new RemotingServlet();\n try {\n remotingServlet.init(new CubaServletConfig(\"remoting\", servletContext));\n } catch (ServletException e) {\n throw new RuntimeException(\"An error occurred while initializing remoting servlet\", e);\n }\n ServletRegistration.Dynamic remotingReg = servletContext.addServlet(\"remoting\", remotingServlet);\n remotingReg.addMapping(\"/remoting/*\");\n remotingReg.setLoadOnStartup(0);\n\n FilterRegistration.Dynamic filterReg = servletContext.addFilter(\"CoreSingleWarHttpFilter\", new SetClassLoaderFilter());\n filterReg.addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST), false, \"/remoting/*\");\n\n } catch (RuntimeException e) {\n log.error(\"Error initializing core servlets\", e);\n\n try {\n ApplicationContext springContext = AppContext.getApplicationContext();\n if (springContext != null) {\n ((ConfigurableApplicationContext) springContext).close();\n }\n } catch (Exception e1) {\n log.debug(\"Error closing application context: {}\", e1.toString());\n }\n\n throw e;\n }\n }", "@Override\n public Dynamic addServlet(String servletName, Class<? extends Servlet> servletClass) {\n return null;\n }", "@Override\r\n\tpublic ServletConfig getServletConfig() {\n\t\treturn null;\r\n\t}", "public String getContainer() {\n return this.container;\n }", "public void init(HttpServletRequest request) throws ServletException {\n\t}", "@Bean\n public TomcatServletWebServerFactory servletWebServerFactory() {\n return new TomcatServletWebServerFactory() {\n\n @Override\n protected void prepareContext(Host host,\n ServletContextInitializer[] initializers) {\n super.prepareContext(host, initializers);\n StandardContext child = new StandardContext();\n child.addLifecycleListener(new Tomcat.FixContextListener());\n child.setPath(\"/cloudfoundryapplication\");\n ServletContainerInitializer initializer = getServletContextInitializer(\n getContextPath());\n child.addServletContainerInitializer(initializer, Collections.emptySet());\n child.setCrossContext(true);\n host.addChild(child);\n }\n\n };\n }", "public static ContainerWrapper getContainer(HttpServletRequest request) throws Exception {\r\n\t\tContainerFinderImp scf = new ContainerFinderImp();\r\n\t\tServletContext sc = request.getSession().getServletContext();\r\n\t\treturn scf.findContainer(new ServletContextWrapper(sc));\r\n\t}", "public ServletConfig getServletConfig() {\n\t\treturn null;\r\n\t}", "public TestState applicationContainer(GenericContainer<?> applicationContainer) {\n this.applicationContainer = applicationContainer;\n return this;\n }", "@Override\n public Dynamic addServlet(String servletName, String className) {\n return null;\n }", "public void setServletPath(String newServletPath) {\n if (newServletPath == null) servletPath = \"\";\n else servletPath = newServletPath;\n }", "public interface WebappRuntime extends ServletRequestListener, HttpSessionListener, SCA4JRuntime<WebappHostInfo> {\n\n /**\n * Activates a composite in the domain.\n *\n * @param qName the composite qualified name\n * @param componentId the id of the component that should be bound to the webapp\n * @throws DeploymentException if there was a problem initializing the composite\n * @throws ContributionException if an error is found in the contribution. If validation errors are encountered, a ValidationException will be\n * thrown.\n */\n void activate(QName qName, URI componentId) throws ContributionException, DeploymentException;\n\n /**\n * Returns the ServletRequestInjector for the runtime.\n *\n * @return the ServletRequestInjector for the runtime\n */\n ServletRequestInjector getRequestInjector();\n\n}", "public BdgServlet() {\r\n\t\tsuper();\r\n\t}", "public RhinoServlet() {\r\n if (!ContextFactory.hasExplicitGlobal())\r\n ContextFactory.initGlobal(new DynamicFactory());\r\n globalScope = new GlobalScope(this);\r\n }", "public External withContainer(String container) {\n this.container = container;\n return this;\n }", "public ServletConfig getServletConfig() {\n\t\treturn null;\n\t}", "public void setContainerName(String name) {\n this.name = name;\n }", "public void init(ServletConfig config) throws ServletException {\r\n\t\tServletContext servletContext = config.getServletContext();\r\n\t\tthis.wac = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);\r\n\t\tthis.bdgInfoMgmFacade = (BdgInfoMgmFacade) this.wac.getBean(\"bdgInfoMgm\");\r\n\t\tthis.baseMgm = (BaseMgmFacade) Constant.wact.getBean(\"baseMgm\");\r\n\t\tthis.conclaMgm = (ConClaMgmFacade) Constant.wact.getBean(\"conclaMgm\");\r\n\t\tthis.conchaMgm=(ConChaMgmFacade)Constant.wact.getBean(\"conchaMgm\");\r\n\t\tthis.conbreMgm=(ConBreMgmFacade)Constant.wact.getBean(\"conbreMgm\");\r\n\t\tthis.conpayMgm=(ConPayMgmFacade)Constant.wact.getBean(\"conpayMgm\");\r\n\t\tthis.bdgProjectMgm=(BdgProjectMgmFacade)Constant.wact.getBean(\"bdgProjectMgm\");\r\n\t}", "@Override\n public ServletConfig getServletConfig() {\n return null;\n }", "private AppServlet() {\r\n\r\n }", "@Override\n\tpublic void init(ServletConfig config) throws ServletException {\n\t\tsuper.init(config);\n\t\trutaJsp=config.getInitParameter(\"rutaJsp\");\n\t\tSystem.out.println(rutaJsp);\n\t\ttry {\n\t\t\tInitialContext initContext =new InitialContext();\n\t\t\tContext env=(Context)initContext.lookup(\"java:comp/env\");\n\t\t\tds=(DataSource) env.lookup(\"jdbc/DB1LS221\");\n\t\t} catch (NamingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void setUpServletObjects() throws Exception\n {\n servletContext = new MockServletContext();\n config = new MockServletConfig(servletContext);\n session = new MockHttpSession();\n session.setServletContext(servletContext);\n request = new MockHttpServletRequest(session);\n request.setServletContext(servletContext);\n response = new MockHttpServletResponse();\n }", "@Bean\n public UndertowEmbeddedServletContainerFactory embeddedServletContainerFactory() {\n\n UndertowEmbeddedServletContainerFactory factory = new UndertowEmbeddedServletContainerFactory();\n factory.addDeploymentInfoCustomizers((UndertowDeploymentInfoCustomizer) deploymentInfo -> deploymentInfo.setAllowNonStandardWrappers(true));\n return factory;\n }", "@Override\n\tpublic ServletConfig getServletConfig() {\n\t\treturn null;\n\t}", "@Override\n\tpublic ServletConfig getServletConfig() {\n\t\treturn null;\n\t}", "@Override\n\tpublic ServletConfig getServletConfig() {\n\t\treturn null;\n\t}", "public void setHttpRequest( HttpRequest req ) {\r\n\trequest=req;\r\n }", "public interface Servlet {\n\n /**\n * Called by the servlet container to indicate to a servlet that the servlet is being placed into service.\n * <p>\n * The servlet container calls the <code>init</code> method exactly once after instantiating the servlet. The\n * <code>init</code> method must complete successfully before the servlet can receive any requests.\n * <p>\n * The servlet container cannot place the servlet into service if the <code>init</code> method\n * <ol>\n * <li>Throws a <code>ServletException</code>\n * <li>Does not return within a time period defined by the Web server\n * </ol>\n *\n * @param config a <code>ServletConfig</code> object containing the servlet's configuration and initialization\n * parameters\n *\n * @exception ServletException if an exception has occurred that interferes with the servlet's normal operation\n *\n * @see UnavailableException\n * @see #getServletConfig\n */\n void init(ServletConfig config) throws ServletException;\n\n /**\n * Returns a {@link ServletConfig} object, which contains initialization and startup parameters for this servlet.\n * The <code>ServletConfig</code> object returned is the one passed to the <code>init</code> method.\n * <p>\n * Implementations of this interface are responsible for storing the <code>ServletConfig</code> object so that this\n * method can return it. The {@link GenericServlet} class, which implements this interface, already does this.\n *\n * @return the <code>ServletConfig</code> object that initializes this servlet\n *\n * @see #init\n */\n ServletConfig getServletConfig();\n\n /**\n * Called by the servlet container to allow the servlet to respond to a request.\n * <p>\n * This method is only called after the servlet's <code>init()</code> method has completed successfully.\n * <p>\n * The status code of the response always should be set for a servlet that throws or sends an error.\n * <p>\n * Servlets typically run inside multithreaded servlet containers that can handle multiple requests concurrently.\n * Developers must be aware to synchronize access to any shared resources such as files, network connections, and as\n * well as the servlet's class and instance variables. More information on multithreaded programming in Java is\n * available in <a href=\"http://java.sun.com/Series/Tutorial/java/threads/multithreaded.html\"> the Java tutorial on\n * multi-threaded programming</a>.\n *\n * @param req the <code>ServletRequest</code> object that contains the client's request\n * @param res the <code>ServletResponse</code> object that contains the servlet's response\n *\n * @exception ServletException if an exception occurs that interferes with the servlet's normal operation\n * @exception IOException if an input or output exception occurs\n */\n void service(ServletRequest req, ServletResponse res) throws ServletException, IOException;\n\n /**\n * Returns information about the servlet, such as author, version, and copyright.\n * <p>\n * The string that this method returns should be plain text and not markup of any kind (such as HTML, XML, etc.).\n *\n * @return a <code>String</code> containing servlet information\n */\n String getServletInfo();\n\n /**\n * Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. This\n * method is only called once all threads within the servlet's <code>service</code> method have exited or after a\n * timeout period has passed. After the servlet container calls this method, it will not call the\n * <code>service</code> method again on this servlet.\n * <p>\n * This method gives the servlet an opportunity to clean up any resources that are being held (for example, memory,\n * file handles, threads) and make sure that any persistent state is synchronized with the servlet's current state\n * in memory.\n */\n void destroy();\n}", "public HttpServlet createServlet(String servletname, Context con){\n\t\t\n\t\tHttpServlet servlet = null;\n\t\tConfig config = new Config(servletname,con);\n\t\tHashMap<String,String> servletClassMap = handler.getServletClass();\n\t\t\n\t//get servlet class name through servletClass map\n\t\t\n\t\tString classname = servletClassMap.get(servletname);\n\t\t\n\t//get the exact servlet when we know servlet name\n\t\tClass servletEmptyClass = null;\n\t\ttry{\n\t\t\tlog.info(\"ServletContainer: classname is \"+classname);\n\t\t\t\n\t\t\tservletEmptyClass = Class.forName(\"edu.upenn.cis.cis455.webserver.\"+classname); // must contain the path in class\n\t\t\t\n\t\t\tservlet = (HttpServlet) servletEmptyClass.newInstance();\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tlog.info(\"ServletContainer: cannot create a servlet\");\n\t\t}\n\t\n\t//set init data in config\n\t\tHashMap<String, String> initParamsConfigMap = handler.getInitParams();\n\t\tSet<String> set = initParamsConfigMap.keySet();\n\t\tfor(String key : set){\n\t\t\tString value = initParamsConfigMap.get(key);\n\t\t\tconfig.setInitParameter(key, value);\t\t\t\n\t\t}\n\t\t\n\t// init servlet\t\n\t\ttry{\n\t\t\tservlet.init(config);\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tlog.info(\"ServletContainer: cannot init servlet\");\n\t\t}\n\t\t\n\t\treturn servlet;\n\t\t\t\n\t}", "public void setContainerPasswd(String containerPasswd) {\n this.containerPasswd = containerPasswd == null ? null : containerPasswd.trim();\n }", "@Override\n protected void setUp() throws Exception {\n super.setUp();\n if (container == null) {\n String resource = System.getProperty(\"jest.web.xml\", DEFAULT_WEB_XML);\n System.err.println(\"Starting Servlet Container from \" + resource);\n InputStream wdesc = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource);\n assertNotNull(resource + \" not loadable at thread context classpath\", wdesc);\n container = new ServletRunner(wdesc);\n assertNotNull(\"Servlet engine could not be started\", container);\n\n baseURI = System.getProperty(\"jest.base.uri\", DEFAULT_BASE_URI);\n System.err.println(\"Base URI \" + baseURI);\n\n _xmlParser = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n _xpathFactory = XPathFactory.newInstance();\n }\n HttpUnitOptions.setExceptionsThrownOnErrorStatus(true);\n HttpUnitOptions.setScriptingEnabled(false);\n HttpUnitOptions.setExceptionsThrownOnScriptError(false);\n }", "@Override\r\npublic void init(ServletConfig config) throws ServletException {\r\n super.init(config);\r\n}" ]
[ "0.6588855", "0.6428926", "0.6428926", "0.6273586", "0.62253106", "0.62253106", "0.6185771", "0.6167904", "0.61421543", "0.6112659", "0.6038733", "0.6024684", "0.5937306", "0.5922956", "0.587062", "0.5837805", "0.58122975", "0.5811973", "0.5811738", "0.5790565", "0.577224", "0.577224", "0.577224", "0.57596487", "0.5750622", "0.57410896", "0.5617199", "0.55514055", "0.5529275", "0.5482989", "0.5337816", "0.5295261", "0.5295261", "0.5273629", "0.52700514", "0.52503383", "0.52494955", "0.52494955", "0.52494955", "0.52494955", "0.5225926", "0.52134854", "0.5207393", "0.5178092", "0.5150858", "0.51508284", "0.514548", "0.51422685", "0.5134447", "0.5103813", "0.5102363", "0.50977206", "0.50920963", "0.508273", "0.5075949", "0.5071195", "0.506733", "0.5056994", "0.50520635", "0.50483555", "0.5034425", "0.49820355", "0.49669814", "0.49651414", "0.49651414", "0.49536538", "0.4947459", "0.49407408", "0.49326867", "0.49314344", "0.4920913", "0.49190888", "0.49150985", "0.49044243", "0.49027586", "0.48997492", "0.4896346", "0.48957938", "0.48913234", "0.48870888", "0.48836023", "0.4879578", "0.48790917", "0.4877208", "0.48730707", "0.4862662", "0.4858266", "0.4856129", "0.48350978", "0.48343208", "0.48327175", "0.4831079", "0.4831079", "0.4831079", "0.48201233", "0.48174667", "0.48117563", "0.48099634", "0.4807537", "0.48029473" ]
0.5352041
30
endregion region Set rest template bean Set the rest template bean (including the security configuration)
@Bean public RestTemplate restTemplate() throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException { TrustStrategy acceptingTrustStrategy = (X509Certificate[] chain, String authType) -> true; SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom() .loadTrustMaterial(null, acceptingTrustStrategy) .build(); SSLConnectionSocketFactory csf = new SSLConnectionSocketFactory(sslContext); CloseableHttpClient httpClient = HttpClients.custom() .setSSLSocketFactory(csf) .build(); HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory(); requestFactory.setHttpClient(httpClient); RestTemplate restTemplate = new RestTemplate(requestFactory); return restTemplate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Autowired\n\tpublic void setRestTemplate(RestTemplateBuilder restTemplateBuilder) {\n\t\tthis.restTemplate = restTemplateBuilder.build();\n\t}", "@Bean(name = \"testRestTemplateRoleAdmin\")\n public TestRestTemplate testRestTemplateRoleAdminCreator(@Value(\"${local.server.port}\") int port) {\n RestTemplateBuilder restTemplateBuilder = new RestTemplateBuilder()\n .rootUri(\"http://localhost:\" + port)\n .basicAuthentication(\"admin\", \"devdojo-pass\");\n\n return new TestRestTemplate(restTemplateBuilder);\n }", "@Bean(name = \"testRestTemplateRoleUser\")\n public TestRestTemplate testRestTemplateRoleUserCreator(@Value(\"${local.server.port}\") int port) {\n RestTemplateBuilder restTemplateBuilder = new RestTemplateBuilder()\n .rootUri(\"http://localhost:\" + port)\n .basicAuthentication(\"devdojo\", \"devdojo-pass\");\n\n return new TestRestTemplate(restTemplateBuilder);\n }", "@Bean\n\tpublic RestTemplate restTemplate() {\n\t\treturn new RestTemplate();\n\t}", "@Bean\n\tRestTemplate getRestTemplate() {\n\t\treturn new RestTemplate();\n\t}", "@Bean\n public OAuth2RestTemplate oAuth2RestTemplate() {\n\n\n OAuth2RestTemplate template = this.applicationContext.getBean(UserInfoRestTemplateFactory.class).getUserInfoRestTemplate();\n ResourceOwnerPasswordAccessTokenProvider resourceOwnerPasswordAccessTokenProvider = new ResourceOwnerPasswordAccessTokenProvider();\n\n template.setAccessTokenProvider(resourceOwnerPasswordAccessTokenProvider);\n\n return template;\n }", "private RestTemplate getRestTemplateForPatch() {\n HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();\n return new RestTemplate(requestFactory);\n }", "@Override\n\tpublic void setBeanDefinitionContext(String beanDefinitionContextName,\n\t\t\tString resource) {\n\n\t}", "@Bean\n RestTemplate restTemplate(){\n return new RestTemplate();\n }", "@Bean\n public RestTemplate restTemplate(){\n return new RestTemplate();\n }", "@Bean\n public WebServiceTemplate webServiceTemplate(){\n WebServiceTemplate webServiceTemplate = new WebServiceTemplate();\n webServiceTemplate.setMarshaller(jaxb2Marshaller());\n webServiceTemplate.setUnmarshaller(jaxb2Marshaller());\n webServiceTemplate.setDefaultUri(defaultUri);\n return webServiceTemplate;\n }", "@LoadBalanced\n\t @Bean\n\t public RestTemplate makeTemp(RestTemplateBuilder builder) {\n\t\t\n\t\t return builder.build();\n\t\t \n\t }", "@Override\n @Bean\n public RestTemplate restTemplate(RestTemplateBuilder builder) {\n return builder.build();\n }", "RESTClient(String serverName, String omasServerURL, String userId, String password)\n {\n this.serverName = serverName;\n this.omasServerURL = omasServerURL;\n\n RestTemplateBuilder restTemplateBuilder = new RestTemplateBuilder();\n\n this.restTemplate = restTemplateBuilder.basicAuthentication(userId, password).build();\n }", "@Bean\r\n public RestTemplate restTemplate(RestTemplateBuilder builder) {\r\n return builder.build();\r\n }", "public RestTemplate getRestTemplate();", "public void setTemplate(Template template)\n/* */ {\n/* 62 */ this.template = template;\n/* */ }", "@Bean\n @ConditionalOnMissingBean\n public RestTemplate restTemplate() {\n return new RestTemplate();\n }", "@Bean\n\tpublic RestTemplate restTemplate(RestTemplateBuilder builder) {\n\t\treturn builder.build();\n\t}", "@Bean\n\tpublic RestTemplate restTemplate(RestTemplateBuilder builder) {\n\t\treturn builder.build();\n\t}", "@Autowired\r\n\tpublic RegisterImpl(RestTemplateBuilder restTemplateBuilder, @Value(\"${applicationserver.rest.url}\") String applicationServerUrl) {\r\n\t\tthis.restTemplate = restTemplateBuilder.build();\r\n\t\tthis.applicationServerUrl = applicationServerUrl;\r\n\t}", "@Bean\n public RestTemplate restTemplate() throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n TrustStrategy acceptingTrustStrategy = (X509Certificate[] chain, String authType) -> true;\n\n SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom()\n .loadTrustMaterial(null, acceptingTrustStrategy)\n .build();\n\n SSLConnectionSocketFactory csf = new SSLConnectionSocketFactory(sslContext);\n\n CloseableHttpClient httpClient = HttpClients.custom()\n .setSSLSocketFactory(csf)\n .build();\n\n HttpComponentsClientHttpRequestFactory requestFactory =\n new HttpComponentsClientHttpRequestFactory();\n\n requestFactory.setHttpClient(httpClient);\n RestTemplate restTemplate = new RestTemplate(requestFactory);\n restTemplate = contentTypeHelper(restTemplate);\n return restTemplate;\n }", "@Bean public RestTemplate createRestTemplate() {\n RestTemplate restTemplate = new RestTemplate();\n List<HttpMessageConverter<?>> converters = new ArrayList<>();\n MappingJackson2HttpMessageConverter jsonConverter = new MappingJackson2HttpMessageConverter();\n jsonConverter.setObjectMapper(objectMapper);\n converters.add(jsonConverter);\n restTemplate.setMessageConverters(converters);\n\n return restTemplate;\n }", "@Bean\n public RestTemplate pcfRestTemplate(RestTemplate restTemplate) {\n restTemplate.getInterceptors().add(distributedLoggingHeaderInterceptor);\n restTemplate.setErrorHandler(pcfRestErrorResponseHandler);\n return restTemplate;\n }", "public void setTemplate(JdbcTemplate template) {\n\t\tthis.template = template;\n\t}", "public void setRestService(RestService restService) {\n this.restService = restService;\n }", "public BeerServiceClient(RestTemplateBuilder restTemplateBuilder) {\n this.restTemplate = restTemplateBuilder.build();\n }", "private RestTemplate getRestTemplate() {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n mapper.registerModule(new Jackson2HalModule());\n\n MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();\n converter.setSupportedMediaTypes(MediaType.parseMediaTypes(\"application/haljson,*/*\"));\n converter.setObjectMapper(mapper);\n\n return new RestTemplate(Collections.<HttpMessageConverter<?>>singletonList(converter));\n }", "protected void setContext(RestContext context) throws ServletException {\n\t\tthis.context.set(context);\n\t}", "@Autowired\r\n\tpublic RestTemplate restTemplate() throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n\t TrustStrategy acceptingTrustStrategy = (X509Certificate[] chain, String authType) -> true;\r\n\t //Create SSLContext with null key store and override.\r\n\t SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom().loadTrustMaterial(null, acceptingTrustStrategy).build();\r\n\t //Remember the NoopHostNameVerifier for nothrow of alternate name SSLException\r\n\t SSLConnectionSocketFactory csf = new SSLConnectionSocketFactory(sslContext, NoopHostnameVerifier.INSTANCE);\r\n\t CloseableHttpClient httpClient = HttpClients.custom().setSSLSocketFactory(csf).build();\r\n\t //Set httpclient with custom ssl verification inside request factory.\r\n\t HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory(httpClient);\r\n\t //Return rest template with custom requestfactory.\r\n\t RestTemplate restTemplate = new RestTemplate(requestFactory);\r\n\t return restTemplate;\r\n\t }", "public void init(){\n\t\tcfg = new Configuration();\r\n\t\tcfg.setServletContextForTemplateLoading(getServletContext(), \"WEB-INF/templates\");\r\n }", "@Required\n\tpublic void setBundleTemplateService(final BundleTemplateService bundleTemplateService)\n\t{\n\t\tthis.bundleTemplateService = bundleTemplateService;\n\t}", "@Bean\n public RestTemplate restTemplate()\n throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n // use the TrustSelfSignedStrategy to allow Self Signed Certificates\n SSLContext sslContext = SSLContextBuilder\n .create()\n .loadTrustMaterial(new TrustSelfSignedStrategy())\n .build();\n\n HostnameVerifier allowAllHosts = new NoopHostnameVerifier();\n SSLConnectionSocketFactory connectionFactory = new SSLConnectionSocketFactory(sslContext, allowAllHosts);\n CloseableHttpClient client = HttpClients\n .custom()\n .setSSLSocketFactory(connectionFactory)\n .build();\n HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();\n requestFactory.setHttpClient(client);\n\n return new RestTemplate(requestFactory);\n }", "@Override\n protected Settings restClientSettings() {\n return RestSqlIT.securitySettings();\n }", "public void setSecurityContext() {\n ctx = SecurityContextHolder.getContext();\n SecurityContextHolder.getContext();\n final Authentication authentication = ctx.getAuthentication();\n setName(authentication.getName()); //NOPMD\n }", "public void setLdapTemplate(final LdapTemplate ldapTemplateObj) {\r\n m_ldapTemplate = ldapTemplateObj;\r\n }", "@Role\npublic interface WebContext\n{\n Tenant getTenant();\n\n User getUser();\n\n void setUser(User user);\n\n void setTenant(Tenant tenant);\n\n Theme getTheme();\n\n void setTheme(Theme theme);\n\n void setSettings(Map<Class, Object> settings);\n\n <T extends ExposedSettings> T getSettings(Class<T> c);\n\n Locale getLocale();\n\n void setLocale(Locale locale);\n\n boolean isAlternativeLocale();\n\n void setAlternativeLocale(boolean alternativeLocale);\n\n Session getSession();\n\n void setSession(Session session);\n\n void setFlash(Flash flash);\n\n Flash getFlash();\n\n void flash(String name, Serializable value);\n\n void session(String name, Serializable value);\n\n WebRequest getRequest();\n\n void setRequest(WebRequest request);\n}", "public final void setBean(String bean) {\n this.bean = bean;\n }", "@Bean\n public RestTemplate restTemplate(RestTemplateBuilder builder) throws Exception {\n\n HttpClient client = HttpClients.custom().setSSLContext(sslContext).build();\n\n RestTemplate restTemplate = builder\n .requestFactory(() -> new HttpComponentsClientHttpRequestFactory(client))\n .build();\n\n restTemplate.getInterceptors().add(restTemplateInterceptor);\n\n return restTemplate;\n }", "@Autowired\n public UserRestController(UserService service) {\n super( service);\n }", "public void setRESTConfig(String clusterName, RESTConfig restConfig) {\n updateRESTConfig(clusterName, restConfig, true);\n }", "public RestTemplate contentTypeHelper(RestTemplate restTemplatex) {\n restTemplatex = new RestTemplateBuilder().build();\n List<HttpMessageConverter<?>> messageConverters = new ArrayList<>();\n MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();\n converter.setSupportedMediaTypes(Collections.singletonList(MediaType.ALL));\n messageConverters.add(converter);\n restTemplatex.setMessageConverters(messageConverters);\n return restTemplatex;\n }", "@RequestMapping(value = ViewNameConstants.TEMPLATE)\n\tpublic void Viewtemplate() {\n\t}", "protected BundleTemplateService getBundleTemplateService()\n\t{\n\t\treturn bundleTemplateService;\n\t}", "@Override\n\tpublic RestTemplate getRestTemplate(String ip, int port) {\n\t\tSimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory();\n\t\tInetSocketAddress address = new InetSocketAddress(ip, port);\n\t\tProxy proxy = new Proxy(Proxy.Type.HTTP, address);\n\n\t\tfactory.setProxy(proxy);\n\n\t\treturn new RestTemplate(factory);\n\t}", "@Path(\"property\")\n@Tag(name = \"Property\", description = \"This endpoint is used for sharing properties between different data\")\npublic interface PropertyControllerDefinition extends IPropertyControllerJaxRS {\n\n @Override\n @Operation(summary = \"Get JSON\", description = \"GET a JSON document.\")\n String getJsonConfiguration(String name) throws RemoteException;\n\n @Override\n @Operation(summary = \"Save JSON\", description = \"Saves a JSON document.\")\n void setJsonConfiguration(String name, String json) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Property\", description = \"Gets property's value\")\n String getProperty(String name) throws RemoteException;\n\n @Override\n @Operation(summary = \"Set Property\", description = \"Updates the property's value\")\n void setProperty(String name, String value) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Properties\", description = \"Gets all properties as key / value pairs.\")\n Map<String, String> getProperties() throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Properties\", description = \"Gets properties as key / value pairs of specified properties.\")\n Map<String, String> getProperties(String[] names) throws RemoteException;\n\n @Override\n @Operation(summary = \"Set Properties\", description = \"Updates the values of multiple properties.\")\n void setProperties(Map<String, String> values) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Principal\", description = \"Returns user's principal used by front-ends for queries or to determine what to display.\")\n ICoalescePrincipal whoami();\n}", "@Override\n\tpublic void setTemplateEngine(TemplateEngine templateEngine) {\n\n\t}", "@Autowired\n public LecturerMailCreationService(TemplateEngine templateEngine) {\n this.templateEngine = templateEngine;\n }", "public interface ElasticsearchTemplate {\n\n /**\n * Logback logger.\n */\n final static Logger logger = LoggerFactory.getLogger(ElasticsearchTemplate.class);\n\n /**\n * Constant prefix.\n */\n final String PREFIX = \"_\";\n\n /**\n * Constant default doc type for default _doc.\n */\n final String DEFAULT_DOC = \"_doc\";\n\n /**\n * Constant retry on conflict for default three times.\n */\n final Integer RETRY_ON_CONFLICT = 3;\n\n /**\n * Constant elasticsearch template doc as upsert for default true.\n */\n final Boolean DOC_AS_UPSERT = true;\n\n /**\n * Constant elasticsearch template doc basic system properties.\n */\n final String [] templateProperties = {\n \"index\", \"id\", \"type\"\n };\n\n /**\n * Judge current elasticsearch template whether exists.\n * @return no exists.\n */\n default Boolean isEmpty(){\n return builder().length() == 0;\n }\n\n ThreadLocal<StringBuilder> templateBuilder = new ThreadLocal<>();\n\n /**\n * Build or Reset current elasticsearch template.\n */\n default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }\n\n /**\n * Get current elasticsearch template.\n * @return current elasticsearch template.\n */\n default StringBuilder builder() {\n return templateBuilder.get();\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param templateProperty Current elasticsearch template property.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param indexName Current elasticsearch template property.\n * @param docId Current elasticsearch template doc id.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }\n\n /**\n * Append property of Current Elasticsearch index to String builder.\n * @param propertyName property Name.\n * @param propertyValue property Value.\n */\n default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }\n\n /**\n * Append current template properties of Current Elasticsearch index to String builder.\n * @param cursor a query cursor.\n * @param templateProperties current template properties.\n */\n default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }\n\n /**\n * According query cursor and index name and template properties to created a elasticsearch template.\n * @param cursor a query cursor.\n * @param indexName Current index name.\n * @param templateProperties Current template properties.\n * @throws SQLException Throw SQL exception.\n */\n void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;\n\n}", "@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"users/templates\")\n Call<TemplateResource> createUserTemplate(\n @retrofit2.http.Body TemplateResource userTemplateResource\n );", "public void setAuthBean(AuthBean authBean) {\n\t\tthis.authBean = authBean;\n\t}", "public interface LignePlanningFormationRS\r\n extends GenericService<LignePlanningFormation, Long>\r\n{\r\n\r\n\t@PUT\r\n @Consumes({MediaType.APPLICATION_JSON})\r\n @Produces({MediaType.APPLICATION_JSON})\r\n @Path(\"demarre\")\r\n public LignePlanningFormation demarrer(@Context HttpHeaders headers,LignePlanningFormation entity);\r\n\t\r\n\r\n}", "public void setUserContext(UserContext userContext);", "@Test\n\tpublic void testEditUser() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/edit-user?id=4\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200,response.getStatusCodeValue());\n\t}", "RESTElement createRESTElement();", "void setFactoryBean( FactoryBean factory );", "public ChangePasswordBean() {\n }", "@Override\n\tprotected void initForEdit(AWRequestContext requestContext) {\n\n\t}", "public RegisterUserBean() {\n this.account.setGender(Boolean.TRUE);\n this.roleID = 5;\n }", "@Override public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n\n }", "public editarUsuarioBean() {\r\n }", "@Override\n public void configure(ResourceServerSecurityConfigurer resources) throws Exception {\n resources.resourceId(\"2p68s4ofsh7316ohiguem0ifir\");\n }", "void setTemplate(ITemplateKey key, Template template);", "RequestBuilder setBody(Resource resource);", "public void setTemplate(HibernateTemplate template) {\n\t\tthis.template = template;\n\t}", "@Override\n public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n }", "public updateUserRightServlet() {\r\n\t\tsuper();\r\n\t}", "@Bean\n\tpublic SpringResourceTemplateResolver templateResolver() {\n\n\t\tSystem.out.println(\"execution is reaching templateResolver()\");\n\t\tSpringResourceTemplateResolver resolver = new SpringResourceTemplateResolver();\n\t\tresolver.setApplicationContext(applicationContext);\n\t\tresolver.setPrefix(\"/WEB-INF/views/templetes/\");\n\t\tresolver.setSuffix(\".html\");\n\t\tresolver.setTemplateMode(TemplateMode.HTML);\n\t\tresolver.setCacheable(false);\n\t\treturn resolver;\n\t}", "public final void setMxSheet_Template(com.mendix.systemwideinterfaces.core.IContext context, xlsreport.proxies.MxTemplate mxsheet_template)\r\n\t{\r\n\t\tif (mxsheet_template == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_Template.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_Template.toString(), mxsheet_template.getMendixObject().getId());\r\n\t}", "@Override\n protected void initializeImpl() {\n // init templates map\n this.httpRequestTemplateMap = new HashMap<String, String>();\n\n String[] templateNames = new String[] {\n FaxJob2HTTPRequestConverterConfigurationConstants.SUBMIT_FAX_JOB_TEMPLATE_PROPERTY_KEY.toString(),\n FaxJob2HTTPRequestConverterConfigurationConstants.SUSPEND_FAX_JOB_TEMPLATE_PROPERTY_KEY.toString(),\n FaxJob2HTTPRequestConverterConfigurationConstants.RESUME_FAX_JOB_TEMPLATE_PROPERTY_KEY.toString(),\n FaxJob2HTTPRequestConverterConfigurationConstants.CANCEL_FAX_JOB_TEMPLATE_PROPERTY_KEY.toString(),\n FaxJob2HTTPRequestConverterConfigurationConstants.GET_FAX_JOB_STATUS_TEMPLATE_PROPERTY_KEY.toString() };\n\n // get templates amount\n int amount = templateNames.length;\n\n // get template encoding value\n String encoding = this.getConfigurationValue(\n FaxJob2HTTPRequestConverterConfigurationConstants.TEMPLATE_ENCODING_PROPERTY_KEY);\n\n String templateName = null;\n String urlStr = null;\n URL url = null;\n String template = null;\n for (int index = 0; index < amount; index++) {\n // get next element\n templateName = templateNames[index];\n\n // get URL string\n urlStr = this.getConfigurationValue(templateName);\n\n if (urlStr != null) {\n try {\n // create URL\n url = new URL(urlStr);\n\n // read template\n InputStream stream = url.openStream();\n Reader reader = IOHelper.createReader(stream, encoding);\n template = IOHelper.readTextStream(reader);\n\n // cache template\n this.httpRequestTemplateMap.put(templateName, template);\n } catch (Throwable throwable) {\n throw new FaxException(\"Unable to load template for URL: \" + urlStr, throwable);\n }\n }\n }\n }", "@Override\n public void passivateObject(MongoTemplate obj) throws Exception {\n \n }", "public TopTrumpsRESTAPI(TopTrumpsJSONConfiguration conf) {\n\t\t// ----------------------------------------------------\n\t\t// Add relevant initalization here\n\t\t// ----------------------------------------------------\n\t}", "public void setContext(ActionBeanContext context) {\r\n this.context = context;\r\n }", "@Headers({\n \"Content-Type:application/json\"\n })\n @PATCH(\"users/templates/{id}\")\n Call<TemplateResource> updateUserTemplate(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Body PatchResource templatePatchResource, @retrofit2.http.Query(\"test_validation\") Boolean testValidation\n );", "@Autowired\n public void setWebApp( WebApp sysDesc ) {\n webapp = sysDesc;\n }", "public void setBeanFactory(BeanFactory beanFactory)\r\n/* 35: */ {\r\n/* 36: 77 */ this.beanFactory = beanFactory;\r\n/* 37: */ }", "public void setTemplateId(int tmp) {\n this.templateId = tmp;\n }", "public AuthenticationBean(@Autowired SecurityServiceImpl securityService)\r\n {\r\n this.securityService = securityService;\r\n }", "public RestUtils setMethodPut()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.PUT);\n\t\treturn this;\n\t}", "public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }", "public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }", "public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }", "public UIUserLogginMangementBean() {\n }", "@Test(expected = ResourceAccessException.class)\n public void testReturnBookTransaction(){\n HttpEntity<Object> transaction = getHttpEntity(\n \"\");\n\n ResponseEntity<Transaction> response = template.exchange(\n \"/api/transaction/6/return\", HttpMethod.PATCH,transaction,Transaction.class);\n\n\n Assert.assertEquals(200,response.getStatusCode().value());\n\n }", "@Test\n\tpublic void test_update_user_success(){\n\t\tUser user = new User(null, \"fengt\", \"[email protected]\", \"12345678\");\n\t\ttemplate.put(REST_SERVICE_URI + \"/20\" + ACCESS_TOKEN + token, user);\n\t}", "public TemplateController()\r\n {\r\n this(false);\r\n }", "public ContactoFormBean() {\r\n setContexto();\r\n }", "@RequestMapping(method= RequestMethod.GET, value=\"/staff/login\")\n protected static String getLoginTemplate() {\n return \"staff-login\";\n }", "public void setTemplate(ProducerTemplate template) {\n this.template = template;\n }", "private void populateTemplate(String templateFile, BeanDefinition beanDefinition, File outputFile) {\r\n\t\t\r\n\t\tlogger.trace(\"enterCreateBean\");\r\n\t\t\r\n\t\t// set the serial version UID if one has not been specified.\r\n\t\tif (beanDefinition.getSerialVersionUID() == null || beanDefinition.getSerialVersionUID().isEmpty()) {\r\n\t\t\tbeanDefinition.setSerialVersionUID(new Date().getTime() + \"L\");\r\n\t\t}\r\n\t\t\r\n\t\tVelocityContext context = createContext(beanDefinition);\r\n\t\tString populatedTemplate =populateVelocityTemplate (templateFile, context); \r\n\t\t\r\n\t\ttry {\r\n\t\t\tFileWriter fw = new FileWriter(outputFile);\t\t\t\r\n\t\t\tfw.write(populatedTemplate);\r\n\t\t\tfw.flush();\r\n\t\t\tfw.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.trace(\"exitCreateBean\");\r\n\r\n\t}", "public void setTemplateId(String tmp) {\n this.setTemplateId(Integer.parseInt(tmp));\n }", "public final void setIncomingRequest_TemplateTicket(scheduling.proxies.TemplateTicket incomingrequest_templateticket)\r\n\t{\r\n\t\tsetIncomingRequest_TemplateTicket(getContext(), incomingrequest_templateticket);\r\n\t}", "public PasswordChangeRequestPage( WOContext context )\n {\n super( context );\n }", "public OAuthService(\n RestTemplate restTemplate, @Value(\"${oauth.url.userInfo}\") String userInfoUrl, Environment environment) {\n this.restTemplate = restTemplate;\n this.userInfoUrl = userInfoUrl;\n this.env = environment;\n }", "@Override\n\tpublic Router getRestlet(Context context){\n\t\tRouter router = new Router(context);\n\t\trouter.attach(\"/links/json\", LinksResource.class);\n\t\trouter.attach(\"/config/json\",FdmReq_CapResource.class);\n\t\t\n\t\t\n\t\treturn router;\n\t}", "public final void setMxSheet_Template(xlsreport.proxies.MxTemplate mxsheet_template)\r\n\t{\r\n\t\tsetMxSheet_Template(getContext(), mxsheet_template);\r\n\t}", "@Override\n public void setBean(TimeSheet t)\n {\n \n }", "default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }", "public void setTemplateStore(TemplateStore store) {\n \t\tfTemplateStore= store;\n \t}", "protected Spring() {}" ]
[ "0.6081335", "0.59227717", "0.5913412", "0.5674588", "0.5648726", "0.56006855", "0.5556048", "0.5546472", "0.5439743", "0.5426086", "0.53401923", "0.53375244", "0.5301333", "0.5242525", "0.52030116", "0.52022237", "0.5200962", "0.516031", "0.5149476", "0.5149476", "0.5101323", "0.5034075", "0.49923432", "0.49540624", "0.49458104", "0.4836041", "0.47964558", "0.4792127", "0.47854877", "0.477643", "0.47425082", "0.4740058", "0.4734759", "0.4714166", "0.47135603", "0.4658204", "0.46165702", "0.4614603", "0.45864794", "0.45853338", "0.4584305", "0.45727685", "0.45701975", "0.45675188", "0.45572257", "0.45379996", "0.45354235", "0.4521965", "0.44980106", "0.44955015", "0.44886738", "0.4465112", "0.4460493", "0.44579116", "0.44434717", "0.4427205", "0.4422385", "0.44207248", "0.44192326", "0.44057143", "0.44037628", "0.43961692", "0.4388303", "0.43849388", "0.43730977", "0.4372018", "0.4371517", "0.4365398", "0.43644404", "0.43635884", "0.4358014", "0.43528554", "0.4349458", "0.43494287", "0.43462008", "0.4340408", "0.43390253", "0.43332082", "0.43306074", "0.43284252", "0.43284252", "0.43284252", "0.43261606", "0.4324319", "0.43194142", "0.43126017", "0.4307002", "0.43063238", "0.4305346", "0.43030274", "0.43010285", "0.4298639", "0.42970556", "0.42965224", "0.42956507", "0.4293025", "0.42869988", "0.42740783", "0.42698726", "0.42676556" ]
0.46816334
35
TODO Autogenerated method stub
@Override public PageBean<Books> findByPage(Integer page) { if(page == null || page < 1){ throw new RuntimeException("页码数据有误"); } PageBean<Books> pageBean = new PageBean<>(); pageBean.setCurrentPage(page); //获取所有的记录数 int count = 0; try { count = bookDao.count(); pageBean.setCount(count); } catch (Exception e1) { // TODO Auto-generated catch block e1.printStackTrace(); throw e1; } //计算总页数 if(count % pageBean.getSize() == 0){ pageBean.setTotalPage(count / pageBean.getSize()); }else { pageBean.setTotalPage(count / pageBean.getSize() + 1); } Map<String, Object> map = new HashMap<>(); map.put("size", pageBean.getSize());//每页显示的记录数 int index = (page-1)*pageBean.getSize();//根据页码计算分页查询时开始的索引 map.put("index", index); //设置分页时的开始索引 try { List<Books> books = bookDao.findByIndex(map); pageBean.setPageInfos(books); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); throw e; } return pageBean; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Get all the preferences.
Page<Preferences> findAll(Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Collection<String> getPreferences(){\n\t\treturn preferences;\n\t}", "public Map<String, ?> getAll() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n return sharedPreferences.getAll();\r\n }", "@Override\n\tpublic List<JobPreferences> findAll() {\n\t\treturn jobPreferenceDao.findAll();\n\t}", "public PreferenceBean[] loadAll() throws SQLException \n {\n Connection c = null;\n PreparedStatement ps = null;\n try \n {\n c = getConnection();\n ps = c.prepareStatement(\"SELECT \" + ALL_FIELDS + \" FROM preference\",ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n return loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public Preferences getPrefs() {\n return _prefs;\n }", "public ArrayList<Color> getPreferences() {\n\t\treturn preferences;\n\t}", "public SharedPreferences getPrefs() { return this.prefs; }", "public ArrayList<String> readSparqlPreferences() {\n\n ArrayList<String> preferences = new ArrayList<>();\n String orderType = \"\";\n String orderProperty = \"\";\n String limitValue = \"0\";\n String offsetValue = \"0\";\n\n // Get the preferences\n final SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences( context );\n\n Boolean orderEnabled = sharedPreferences.getBoolean(\"order_by_check\", false);\n Boolean limitEnabled = sharedPreferences.getBoolean( \"limit_check\", false );\n Boolean offsetEnabled = sharedPreferences.getBoolean( \"offset_check\", false );\n\n if ( orderEnabled ) {\n if ( sharedPreferences.getString( \"order_by_type\", \"\" ).equals( \"Ascendentemente\" ) ) {\n orderType = \"ASC\";\n }\n else if ( sharedPreferences.getString( \"order_by_type\", \"\" ).equals( \"Descendentemente\" ) ) {\n orderType = \"DESC\";\n }\n orderProperty = sharedPreferences.getString( \"order_by_property\", \"\" );\n }\n\n if ( limitEnabled ) {\n limitValue = sharedPreferences.getString( \"limit\", \"\" );\n }\n\n if ( offsetEnabled ) {\n offsetValue = sharedPreferences.getString( \"offset\", \"\" );;\n }\n\n preferences.add( orderType );\n preferences.add( orderProperty );\n preferences.add( limitValue );\n preferences.add( offsetValue );\n\n return preferences;\n }", "public GamePreferences getPrefs() {\n\t\treturn prefs;\n\t}", "private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEditing = SharedPrefs.readSharedPreferences(getActivity(), \"IsEditing\", \"0\");\n tTrainerId = SharedPrefs.readSharedPreferences(getActivity(), \"ttrainerId\", \"-1\");\n vslaId = SharedPrefs.readSharedPreferences(getActivity(), \"vslaId\", \"-1\");\n\n vslaName = DataHolder.getInstance().getVslaName();\n representativeName = DataHolder.getInstance().getGroupRepresentativeName();\n representativePost = DataHolder.getInstance().getGroupRepresentativePost();\n repPhoneNumber = DataHolder.getInstance().getGroupRepresentativePhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n physAddress = DataHolder.getInstance().getPhysicalAddress();\n regionName = DataHolder.getInstance().getRegionName();\n grpPhoneNumber = DataHolder.getInstance().getGroupPhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n locCoordinates = DataHolder.getInstance().getLocationCoordinates();\n grpSupportType = DataHolder.getInstance().getSupportTrainingType();\n numberOfCycles = DataHolder.getInstance().getNumberOfCycles();\n }", "private void getPreferences() {\n Account rootAccount = book.getRootAccount();\n displayedSecuritiesList = rootAccount.getPreference(\"StockGlance_displayedSecurities\", \"\");\n allowMissingPrices = rootAccount.getPreferenceBoolean(\"StockGlance_DisplayMissingPrices\", false);\n timelySnapshotInterval = rootAccount.getPreferenceInt(\"StockGlance_TimelyWindow\", 7);\n }", "public static BleTrackerPreferences getPreferences() {\n return preferences;\n }", "public List<Settings> getAllSettings() {\n return this.settingsRepository.findAll();\n }", "public ReactivePreferences preferences() {\n\t\treturn ReactivePreferences.userRoot();\n\t}", "@Override\n\tpublic List<Setting> queryall() {\n\t\treturn SettingMapper.queryall();\n\t}", "public NetworkCallInformation getPreferences() {\n return preferencesModel.getPreferences();\n\n }", "public List<Setting> getSettings() {\n // Usuario logeado\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n\n // Entidad del usuario\n User user = userRepository.findByUsername((username)).orElseThrow();\n\n return settingRepository.findByUserId(user.getId());\n }", "public Set<Preference> toSet() {\n assert CollectionUtil.elementsAreUnique(internalList);\n return new HashSet<>(internalList);\n }", "public String getPreferences(String key) {\n return getPreferencesImpl(key);\n }", "public String getPreferences(String key) {\n return getPreferencesImpl(key);\n }", "public PropertySet getViewProperties() {\r\n return prefs;\r\n }", "private void showPreferenceSettings() {\n \tfor(PrefKeysE k: PrefKeysE.values()) {\n \t\tString key = k.getKey();\n \t\tboolean isFound = Tt.isPreferencePresent(key);\n \t\tint prtFlags = 0; //don't print from getPreference()\n// \t\tboolean valB;\n// \t\tint valI;\n// \t\tdouble valD;\n \t\tString valFoundStr = \"\";\n \t\tString prefix = String.format(\"%-40s: %-7s: found? %s, default \", key, k.getType().name(), (isFound ? \"Y\" : \"N\"));\n \t\tswitch(k.getType()) {\n \t\tcase BOOLEAN:\n \t\t\tboolean dfltB = k.getDefaultBoolean();\n \t\t\tvalFoundStr += dfltB;\n \t\t\tif(isFound) {\n \t\t\t\tboolean val = Tt.getPreference(k, dfltB, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase INT:\n \t\t\tint dfltI = k.getDefaultInt();\n \t\t\tvalFoundStr += dfltI;\n \t\t\tif(isFound) {\n \t\t\t\tint val = Tt.getPreference(k, dfltI, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase DOUBLE:\n \t\t\tdouble dfltD = k.getDefaultDouble();\n \t\t\tvalFoundStr = String.format(\"% 1.4f\", dfltD);\n \t\t\tif(isFound) {\n \t\t\t\tdouble val = Tt.getPreference(k, dfltD, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += String.format(\", current % 1.4f\", val);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase STRING:\n \t\t\tString dfltS = k.getDefaultString();\n\t\t\t\tvalFoundStr += \"'\" + dfltS + \"'\";\n \t\t\tif(isFound) {\n \t\t\t\tString val = Tt.getPreference(k, dfltS, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current '\" + val + \"'\";\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n\t\t\tP.println(prefix + valFoundStr);\n\n// \t\tif(k.getType().equals(PrefTypeE.BOOLEAN)) \n \t}\n }", "public SharedPreferences GetSettings() {\n return mSettings;\n }", "public synchronized Set<String> getFavorites() {\r\n return new HashSet<>(settings.getList(FAVORITES_SETTING));\r\n }", "private void getSharedPreferenceValues(){\n // retrieve values\n // note: second item is the default value\n sortOrderOfResults = sharedPreferences.getString(DEFAULT_QUERY_PATH, AppUtilities.QUERY_PATH_POPULAR);\n preferredMovieGenre = sharedPreferences.getString(getString(R.string.pref_genre_key),\n getString(R.string.pref_genre_any_value));\n preferredStartYear = sharedPreferences.getString(getString(R.string.pref_earliest_year_key),\n getString(R.string.pref_earliest_year_default));\n preferredEndYear = sharedPreferences.getString(getString(R.string.pref_latest_year_key),\n getString(R.string.pref_latest_year_default));\n }", "@Api(1.0)\n @NonNull\n private SharedPreferences getSharedPreferences() {\n return mContext.getSharedPreferences(mPreferencesId, Context.MODE_PRIVATE);\n }", "private MinesweeperPreferences getPrefs() {\n return Main.getPrefs();\n }", "public SharedPreferences prefs() {\n\n SharedPreferences prefs = context.getSharedPreferences(APP_IDS_PREFS_NAME, Context.MODE_PRIVATE); // Private because it can still be accessed from other apps with the same User ID\n return prefs;\n }", "public List<Configuration> getAll();", "public BwPreferences getUserPreferences() {\n return userPreferences;\n }", "private void getPreferences(RoutingContext routingContext) {\n String id = routingContext.request().getParam(\"deviceid\");\n \n if (id == null) {\n routingContext.response().setStatusCode(400).end();\n return;\n }\n\n Preferences preferences = dataAccessor.getPrimaryIndex().get(id);\n \n if (preferences == null) {\n routingContext.response().setStatusCode(404).end();\n return;\n }\n \n logger.debug(preferences.toString());\n \n response(routingContext, 200, preferences);\n\n }", "public List<Poruke> getAllPoruke(){\r\n return porukeBeanLocal.getAllPoruke();\r\n }", "public List<UserProfile> getProfili() {\r\n\t\t// return upDao.findAll();\r\n\t\treturn upDao.getAllUserProfile();\r\n\t}", "private void readPreferences() {\n configAutonomousCommand();\n }", "protected abstract IPreferenceStore getPreferenceStore();", "public IPreferencesService getPreferncesService() {\n\n return preferncesService;\n }", "@RequestMapping(value = \"/all\")\n public List<Account> getAll(){\n return new ArrayList<>(accountHelper.getAllAccounts().values());\n }", "private void getAutonomousPrefs() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(hardwareMap.appContext);\n alliance = preferences.getString(\"AllianceColor\", \"error\");\n frontBack = preferences.getString(\"FrontBack\", \"error\");\n getPartnerGlyph = preferences.getBoolean(\"PickupAllianceGlyph\", false);\n getPitGlyph = preferences.getBoolean(\"PickupPitGlyph\", false);\n }", "@Override\n\tpublic List<PruneSetting> getAllPruneSetting() throws Exception {\n\t\treturn null;\n\t}", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "public List findAll() {\n\t\ttry {\n\t\t\tString queryString = \"from Procurator\";\n\t\t\tQuery queryObject = getSession().createQuery(queryString);\n\t\t\treturn queryObject.list();\n\t\t} catch (RuntimeException re) {\n\t\t\tthrow re;\n\t\t}\n\t}", "FavoriteQuestions() {\n list = SharedPrefs.getFavList();\n }", "private SharedPreferences GetPreferences( Context context )\n\t{\n\t\treturn context.getSharedPreferences( CACHE_NAME, Context.MODE_PRIVATE );\n\t}", "private SharedPreferences getSharedPrefs() {\n return Freelancer.getContext().getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);\n }", "@Override\n\tpublic List<Playlist> getAll() {\n\t\treturn playlistRepository.findAll();\n\t}", "public static void clearAllPreferences(Context context){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = preferences.edit();\n editor.clear();\n editor.commit();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Profilo> getAll() {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Creo la query usando il linguaggio HQL (Hibernate Query Language)\r\n\t\tQuery query = session.createQuery(\"FROM Vocelicenza\");\r\n\t\t\t\r\n\t\t//Restituisco la lista di Profili\r\n\t\treturn query.list();\r\n\t}", "private Map<String,Boolean> copyMapFromPreferenceStore(){\n \tMap<String,Boolean> preferences = new HashMap<String,Boolean>();\n \tIPreferenceStore store = EMFTextEditUIPlugin.getDefault().getPreferenceStore();\n \tpreferences.put(ResourcePackageGenerator.GENERATE_PRINTER_STUB_ONLY_NAME,store.getBoolean(ResourcePackageGenerator.GENERATE_PRINTER_STUB_ONLY_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_ANTLR_SPEC_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_ANTLR_SPEC_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_PRINTER_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_PRINTER_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_PROXY_RESOLVERS_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_PROXY_RESOLVERS_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_TOKEN_RESOLVER_FACTORY_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_TOKEN_RESOLVER_FACTORY_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_TOKEN_RESOLVERS_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_TOKEN_RESOLVERS_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_TREE_ANALYSER_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_TREE_ANALYSER_NAME));\n \treturn preferences;\n }", "private void getSettings(){\n SharedPreferences sp = getSharedPreferences(\"PACERUNNER_SETTINGS\", Activity.MODE_PRIVATE);\n AMOUNT_OF_SECONDS_WHEN_TRIGGERING_NOTIFICATION = sp.getInt(\"NOTIFICATION_SENSITIVITY\", -15);\n REQUIRED_METERS_BEFORE_SHOWING_AVGPACE = sp.getInt(\"NOTIFICATION_METERS_BEFORE_START\", 500);\n }", "public static List<String> getAllUserIds(Context context) {\r\n\t\tList<String> result = new ArrayList<String>();\r\n\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\tif (prefs != null) {\r\n\t\t\tSet<String> keys = prefs.getAll().keySet();\r\n\t\t\tfor (String key : keys) {\r\n\t\t\t\tif (key.startsWith(\"user-\")) {\r\n\t\t\t\t\tString value = prefs.getString(key, \"\");\r\n\t\t\t\t\tif (!TextUtils.isEmpty(value)) {\r\n\t\t\t\t\t\tresult.add(value);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public Result getAll() {\n List<models.Preset> presetList = models.Preset.find.all();\n return ok(Json.toJson(presetList));\n }", "Collection<T> getAll() {\n _readLock.lock();\n try {\n return ImmutableList.copyOf(_toMap.values());\n } finally {\n _readLock.unlock();\n }\n }", "Map<String, String> getAllAsMap() {\n return Collections.unmodifiableMap(settings);\n }", "Map<String, String> getAllAsMap() {\n return Collections.unmodifiableMap(settings);\n }", "@Override\n\tpublic List<Policy> showAllPolicies() {\n\t\t// TODO Auto-generated method stub\n\t\tList<Policy> policy=policyDao.findAll();\n\t\treturn policy;\n\t}", "public void clearAllPreferenceData() {\n sharedPreferences.edit().clear().apply();\n }", "private void fetchPreferences() {\n macAddress = prefs.getString(getString(R.string.pref_mac), DEF_VALUE);\n macSet = prefs.getBoolean(getString(R.string.mac_set), false);\n //fetch previous values for temp, max, min\n tempMeasured = Double.parseDouble(prefs.getString(getString(R.string.text_temp), \"0\"));\n tempMax = Double.parseDouble(prefs.getString(getString(R.string.text_max), \"0\"));\n tempMin = Double.parseDouble(prefs.getString(getString(R.string.text_min), \"0\"));\n }", "public QuerySet<Perfil> getPerfilSet() {\n QuerySet<Perfil> perfilList = new QuerySet<Perfil>();\n Perfil perfil = null;\n for (Privilegio privilegio : getPrivilegioSet()) {\n perfil = Perfil.objects.<Perfil>get(\"id\", privilegio.getPerfil().getId());\n perfil.getPermissoes();\n perfilList.add(perfil);\n }\n return perfilList;\n }", "private void getPreferences() {\n\n if(sharedpreferences.getBoolean(\"usaGPU\", true)) {\n mUtilizzoGPU.setChecked(true);\n }\n else{\n mUtilizzoGPU.setChecked(false);\n }\n\n }", "public List<ProgressConfigurationType> getAllConfigurations();", "List<SettingDTO> getSettings();", "public List<AlternateConf> listAll(){\n\t\treturn altRepo.findAll();\n\t}", "public List<Playlist> getAllPlaylists() {\n\t\tList<Playlist> pList = DAO.getInstance().getPlaylists().getPlist();\n\t\treturn pList;\n\t}", "public static Properties getProperties() {\r\n return getProperties(false);\r\n }", "private GlobalPrefs() {\n\t\tprops = new Properties();\n\t}", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "@Override\n\tpublic List<Pizza> getAllPizzas() {\n\t\treturn mongoTemplate.findAll(Pizza.class);\n\t}", "void loadPreferences() throws OntimizeJEERuntimeException;", "public List<Pokemon> showAllPokemon() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Pokemon> allPokemon = em.createQuery(\"SELECT p FROM Pokemon p\").getResultList();\r\n\t\treturn allPokemon;\r\n\t}", "private void readPreferences() {\r\n \t\tSharedPreferences sp = getSharedPreferences(SPN, MODE_PRIVATE);\r\n \t\t// set listener to this\r\n \t\tsp.registerOnSharedPreferenceChangeListener(this);\r\n \t\t// read shared preferences to get data file\r\n \t\tdataFile = sp.getString(res.getString(R.string.pref_data_file_key),\r\n \t\t\t\tnull);\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Data file is \" + dataFile);\r\n \t\t}\r\n \t\tif (dataFile == null)\r\n \t\t\treturn;\r\n \t\t// read if data file is compressed\r\n \t\tgzipFile = sp.getBoolean(res.getString(R.string.pref_data_file_gzip),\r\n \t\t\t\tfalse);\r\n \t}", "public List<Prodotto> getListaProdotti() {\n\t\treturn Shop.getInstance().getProdotti();\n\t}", "public ArrayList<String> loadFavorites() {\n\n\t\tSAVE_FILE = FAVORITE_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "@Override\n\tpublic List<Config_Entity> get_all_config() {\n\t\treturn config.get_all_config();\n\t}", "public List<Pizza> getPizzas(){\n return new ArrayList<>(pizzas);\n }", "protected abstract IEditorPreferences getPreferences();", "public PreferenceService getPreferenceService() {\n return preferenceService;\n }", "@Override\n\tpublic List<Property> findAll() {\n\t\treturn pr.findAll();\n\t}", "private void getPrefStatus() {\n Log.i(TAG, \"getPrefStatus()\");\n mPref = getSharedPreferences(PREF_NAME, Context.MODE_WORLD_READABLE\n | Context.MODE_WORLD_WRITEABLE);\n mHasGotPref = true;\n for (int i = SPEED_DIAL_MIN; i < SPEED_DIAL_MAX + 1; ++i) {\n mPrefNumState[i] = mPref.getString(String.valueOf(i), \"\");\n mPrefMarkState[i] = mPref.getInt(String.valueOf(offset(i)), -1);\n }\n }", "@Override\r\n public List<Map<String, PrimitiveTypeProvider>> getAll() {\r\n ListenableFuture<PropertiesMessage> future = this.adampro.getProperties(\r\n EntityPropertiesMessage.newBuilder().setEntity(fromBuilder.getEntity()).build());\r\n int count = 1_000;\r\n PropertiesMessage propertiesMessage;\r\n try {\r\n propertiesMessage = future.get();\r\n } catch (InterruptedException | ExecutionException e) {\r\n LOGGER.error(\"error in getAll: {}\", LogHelper.getStackTrace(e));\r\n return new ArrayList<>(0);\r\n }\r\n try {\r\n count = Integer.parseInt(propertiesMessage.getPropertiesMap().get(\"count\"));\r\n } catch (Exception e) {\r\n LOGGER.error(\"error in getAll: {}\", LogHelper.getStackTrace(e));\r\n }\r\n return preview(count);\r\n }", "public List<HashMap<String, Object>> PromoList() {\n\t\treturn sqlSession.selectList(\"main.PromoList\");\r\n\t}", "public static SharedPreferences getSharedPrefs() {\n return App.getAppContext().getSharedPreferences(PREFS_LABEL, Context.MODE_PRIVATE);\n }", "private void loadPreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n\n int entreeIndex = sp.getInt(\"entreeIndex\", 0);\n int drinkIndex = sp.getInt(\"drinkIndex\", 0);\n int dessertIndex = sp.getInt(\"dessertIndex\", 0);\n\n // Setting inputs from SharedPreferences\n spEntree.setSelection(entreeIndex);\n spDrink.setSelection(drinkIndex);\n spDessert.setSelection(dessertIndex);\n\n edtTxtEntreePrice.setText(alEntreePrices.get(entreeIndex));\n edtTxtDrinkPrice.setText(alDrinkPrices.get(drinkIndex));\n edtTxtDessertPrice.setText(alDessertPrices.get(dessertIndex));\n }", "@GET()\n\t@Produces(\"application/json\")\n\tpublic List<Pizzerias> getAllPizzerias() {\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tSystem.out.println(\"Hi..\");\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\t\tMongoCursor<Document> cursor = pizzerias.find().iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\n\t\treturn allPizzeriasList;\n\t}", "private static SharedPreferences getSharedPreferences() {\n Context ctx = AppUtils.getAppContext();\n return ctx.getSharedPreferences(\"pref_user_session_data\", Context.MODE_PRIVATE);\n }", "public AudibleAccountPrefs getAccountPrefs(AudibleAccountPrefs in) {\n\t\tAudibleAccountPrefs out = in;\n\t\t\n\t\tfor (ConnectionListener l : getListeners()) {\n\t\t\tout = l.getAccountPrefs(out);\n\t\t\tif (out == null) return null; // canceled\n\t\t}\n\t\treturn out;\n\t}", "private List<PwPair> getPwPairs() {\n List<PwPair> allPwPairs = new ArrayList<>();\n for (UrlDevice urlDevice : mDeviceIdToUrlDeviceMap.values()) {\n PwsResult pwsResult = mBroadcastUrlToPwsResultMap.get(urlDevice.getUrl());\n if (pwsResult != null) {\n allPwPairs.add(new PwPair(urlDevice, pwsResult));\n }\n }\n return allPwPairs;\n }", "@Override\n\tpublic List<Pais> findAll() {\n\t\treturn (List<Pais>)paisRepository.findAll();\n\t}", "@Transactional(readOnly = true)\n public List<DiscordUserProfile> findAll() {\n log.debug(\"Request to get all DiscordUserProfiles\");\n return discordUserProfileRepository.findAll();\n }", "@Override\n public List<PreferenceSettingsDialogItem> getOptionList() {\n\n return null;\n\n }", "public Map<String, String> getAllProperties()\n {\n return _propertyEntries;\n }", "public IPreferenceStore getPreferenceStore(String name);", "public IPreferenceStore getTextPreferenceStore() {\n return fPreferenceStore;\n }", "public ArrayList<T> getAll() {\n\t\treturn new ArrayList<T>(this.data.values());\n\t}", "@Override\n\tpublic List<Setting> findsetting() {\n\t\treturn SettingMapper.findsetting();\n\t}", "public ArrayList<Integer> getProfs(){\r\n\t\treturn this.listeProfs;\r\n\t}", "@Override\r\n\tpublic List<TypeModePaiement> listeAll() {\n\t\tList<TypeModePaiement> list = repository.findAll();\r\n\t\treturn list;\r\n\t}", "public static void setOrePreferences() {\n // list of orePreferences, to be filled by the config\n }" ]
[ "0.77913964", "0.7621119", "0.738161", "0.71872705", "0.7157838", "0.6883627", "0.6863696", "0.67988545", "0.6579498", "0.65533787", "0.6534928", "0.6470365", "0.6288211", "0.6284131", "0.623002", "0.6209984", "0.61946917", "0.6021173", "0.600977", "0.600977", "0.59580773", "0.59435505", "0.592549", "0.59239244", "0.58734924", "0.5868008", "0.5853447", "0.581121", "0.58061755", "0.58053625", "0.57546175", "0.5754387", "0.57326895", "0.57307047", "0.56872356", "0.56715536", "0.5666784", "0.56559753", "0.5651956", "0.56491286", "0.56491286", "0.56491286", "0.56491286", "0.5632445", "0.56045884", "0.5603728", "0.55739033", "0.55690145", "0.5557497", "0.55262464", "0.55252916", "0.55090773", "0.54974985", "0.5496122", "0.54938567", "0.54915977", "0.54915977", "0.5490263", "0.54868823", "0.54803705", "0.54674447", "0.5456559", "0.5445559", "0.5433856", "0.5432617", "0.54227126", "0.54196364", "0.54148716", "0.5414498", "0.54036057", "0.53987", "0.5383444", "0.53821754", "0.53768146", "0.53632146", "0.5357018", "0.53519934", "0.5351905", "0.53473073", "0.5347032", "0.53456485", "0.5343632", "0.5341872", "0.5336832", "0.5336295", "0.5323958", "0.5320621", "0.5312812", "0.53119636", "0.52919245", "0.5291364", "0.52783453", "0.5266924", "0.5249811", "0.52488023", "0.5241927", "0.5237529", "0.52321136", "0.5221664", "0.5219967" ]
0.6129432
17
Get the "id" preferences.
Optional<Preferences> findOne(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Api(1.0)\n @Nullable\n public String getPreferenceId() {\n return mPreferencesId;\n }", "protected String getID(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"ID\", sharedPref.getString(\"id\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_ID, null);\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public String getId() {\n return mBundle.getString(KEY_ID);\n }", "public Integer getId() {\n return (Integer) get(\"id\");\n }", "public final String getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\n return id.get();\n }", "public final String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "TrackerPrefs getTrackerPrefs(final Integer id);", "public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public String id() {\n return definition.getString(ID);\n }", "public static String id()\n {\n return _id;\n }", "public java.lang.String getId () {\n\t\treturn id;\n\t}", "public java.lang.String getId () {\r\n\t\treturn id;\r\n\t}", "public java.lang.String getId() {\r\n return id;\r\n }", "public java.lang.String getId() {\r\n return id;\r\n }", "public java.lang.String getId() {\r\n return id;\r\n }", "public String getId() {\r\n \t\treturn id;\r\n \t}", "public String getId ()\n {\n return id;\n }", "public String getId () {\n return id;\n }", "public String getId()\r\n {\r\n return getAttribute(\"id\");\r\n }", "public String getId () {\n return id;\n }", "public String getId () {\n return id;\n }", "public String getId() {\n return id;\n }", "public String getID() {\n return (id);\n }", "public java.lang.Integer getId() {\n return id;\n }", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}", "public String getId()\n\t{\n\t\treturn id;\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public String getId() {\n\t\treturn id;\n\t}", "public java.lang.String getId() {\n return _id;\n }", "java.lang.String getID();", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }" ]
[ "0.74180764", "0.7075847", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.6769837", "0.67528653", "0.67327696", "0.67296124", "0.6727922", "0.67147875", "0.67147875", "0.67147875", "0.6705025", "0.6705025", "0.6705025", "0.66995037", "0.66986185", "0.6673152", "0.6671892", "0.6671892", "0.6663078", "0.6662121", "0.6634271", "0.66313094", "0.66207224", "0.66207224", "0.66207224", "0.6618668", "0.65961474", "0.65597713", "0.65563864", "0.65422964", "0.65422964", "0.6529689", "0.6525194", "0.6525002", "0.6514937", "0.6512476", "0.6511016", "0.6511016", "0.6511016", "0.6511016", "0.6511016", "0.6511016", "0.6511016", "0.6511016", "0.6511016", "0.6511016", "0.6511016", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.6508198", "0.64985424", "0.6492916", "0.6491524", "0.6491524", "0.6491524", "0.6491524", "0.6491524", "0.6491524", "0.6491524", "0.6491524", "0.6491524" ]
0.0
-1
Delete the "id" preferences.
void delete(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteTrackerPrefs(final Integer id);", "@Override\n\tpublic void delete(int id) {\n\t\tsettingDao.delete(id);\n\t}", "public int deleteByPrimaryKey(Integer preferenceid) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n try\n {\n c = getConnection();\n ps = c.prepareStatement(\"DELETE from preference WHERE preference.preferenceid=?\",ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n Manager.setInteger(ps, 1, preferenceid);\n return ps.executeUpdate();\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(Long id) \n {\n LOGGER.log(Level.INFO, \"Borrando preferencias con id={0}\", id);\n PreferenciasEntity entity = em.find(PreferenciasEntity.class, id);\n em.remove(entity);\n }", "public void deleteById(String id);", "public void delete(int id) {\n\n\t}", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "@Override\n public void delete(int id) {\n repr.delete(id);\n }", "@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}", "void deleteById(final String id);", "public void deleteById(Integer id) {\n\n\t}", "public static void delete(int id){\n\t\tfind.byId(id).delete();\n\t}", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}", "public void delete(int id);", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void del(Integer id) {\n\t\t\r\n\t}", "public void deleteById(long id) {\n\t\t\n\t}", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "@Override\n\tpublic int delete(String id) {\n\t\treturn st.delete(\"couplens.delete\",id);\n\t}", "void deleteFavorite(int id);", "public void delete(Integer id) {\n\r\n\t}", "public void deleteById(long id) {\n\n\t}", "@Override\n\tpublic void delete(String id) {\n\n\t}", "void deleteById(int id);", "@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete KeyConfig : {}\", id);\n keyConfigRepository.deleteById(id);\n }", "@Override\n\tpublic int deleteById(String id) {\n\t\treturn 0;\n\t}", "@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);", "@Override\r\n\tpublic void delete(String id) {\n\r\n\t}", "@Override\n\tpublic void deleteById(Long id) {\n\n\t}", "@Override\r\n\tpublic int deleteById(String id) {\n\t\treturn 0;\r\n\t}", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "@Override\n\tpublic void delete(Integer id) {\n\n\t}", "@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}", "@Override\r\n\tpublic Result delete(int id) {\n\t\treturn null;\r\n\t}", "public void delete(Long id) {\n\r\n\t}", "@Override\n\tpublic void delete(int id) {\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void deletebyid(Integer id) {\n\t\t\n\t}", "void deleteChallengeById(int id);", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "@Override\n\tpublic void deleteBySettingId(String id) {\n\t\tSettingMapper.deleteBySettingId(id);\n\t}", "public void delete(String idAvion)\n\t{\n\t}", "void deleteById(Integer id);", "void deleteById(Integer id);", "@Override\r\n\tpublic void delete(Integer id) {\n\r\n\t}", "@Override\n\tpublic String delete(Integer id) {\n\t\treturn null;\n\t}", "void unsetId();", "@Override\n\t\tpublic boolean delete(int id) {\n\t\t\t\treturn false;\n\t\t}", "@Override\n\tpublic void del(Object id) {\n\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Permiso : {}\", id);\n permisoRepository.delete(id);\n }", "@Override\n public void delete(int id) {\n }", "void delete( Integer id );", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Mode : {}\", id);\n modeRepository.delete(id);\n }", "@Override\n\tpublic void delete(Long id) {\n\t}", "@Override\r\n\tpublic void deleteById(Long id) {\n\t\tsuper.deleteById(id);\r\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "public boolean delete(String id);", "public boolean delete(String id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "@Override\n\tpublic int delete(Object id) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void Delete(long id) {\n\t\t\r\n\t}", "public void deleteById(Long id);", "void delete(Integer id);", "void delete(Integer id);", "@Override\n\tpublic void deleteById(UUID id) {\n\t\t\n\t}", "@Override\n\tpublic int deleteOne(String id) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn apkAutomaticConfigurationMapper.deleteByPrimaryKey(id);\r\n\t}", "@Override\n\tpublic int delete(Integer id) {\n\t\treturn 0;\n\t}" ]
[ "0.77413106", "0.7113058", "0.68274635", "0.6709477", "0.6709477", "0.6709477", "0.6709477", "0.6709477", "0.6668225", "0.6665157", "0.6624299", "0.66229475", "0.6615844", "0.6597843", "0.6583236", "0.65749484", "0.65635335", "0.65560067", "0.65560067", "0.65560067", "0.65560067", "0.65560067", "0.65560067", "0.65560067", "0.65560067", "0.65560067", "0.65560067", "0.65516084", "0.6542957", "0.6542763", "0.65359867", "0.65306914", "0.65167177", "0.65167177", "0.65167177", "0.6514611", "0.65079194", "0.65062815", "0.65023494", "0.64992464", "0.64905554", "0.6475095", "0.6463295", "0.6463295", "0.6452805", "0.6448937", "0.64430743", "0.6429325", "0.64292824", "0.6425154", "0.6421625", "0.6421625", "0.6421625", "0.6421625", "0.6421625", "0.6421625", "0.6415293", "0.6398429", "0.6397863", "0.63971996", "0.6390149", "0.6381525", "0.6381525", "0.6381525", "0.6381525", "0.6369829", "0.63658917", "0.63658434", "0.63588965", "0.6351904", "0.6336099", "0.6336099", "0.6335493", "0.6327911", "0.63257104", "0.63237476", "0.6322864", "0.63177264", "0.631744", "0.63171124", "0.63170373", "0.6316981", "0.6310977", "0.63085747", "0.63085747", "0.6307201", "0.6307201", "0.6301093", "0.6301093", "0.6301093", "0.6301093", "0.6301093", "0.62915486", "0.62870115", "0.62787634", "0.6266863", "0.6266863", "0.62585443", "0.6256776", "0.6248472", "0.6247133" ]
0.0
-1
Search for the preferences corresponding to the query.
Page<Preferences> search(String query, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "public String searchPreference(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, preference from \" + TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, prefer;\n prefer = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n prefer = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n\n return prefer;\n }", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public ArrayList<String> readSparqlPreferences() {\n\n ArrayList<String> preferences = new ArrayList<>();\n String orderType = \"\";\n String orderProperty = \"\";\n String limitValue = \"0\";\n String offsetValue = \"0\";\n\n // Get the preferences\n final SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences( context );\n\n Boolean orderEnabled = sharedPreferences.getBoolean(\"order_by_check\", false);\n Boolean limitEnabled = sharedPreferences.getBoolean( \"limit_check\", false );\n Boolean offsetEnabled = sharedPreferences.getBoolean( \"offset_check\", false );\n\n if ( orderEnabled ) {\n if ( sharedPreferences.getString( \"order_by_type\", \"\" ).equals( \"Ascendentemente\" ) ) {\n orderType = \"ASC\";\n }\n else if ( sharedPreferences.getString( \"order_by_type\", \"\" ).equals( \"Descendentemente\" ) ) {\n orderType = \"DESC\";\n }\n orderProperty = sharedPreferences.getString( \"order_by_property\", \"\" );\n }\n\n if ( limitEnabled ) {\n limitValue = sharedPreferences.getString( \"limit\", \"\" );\n }\n\n if ( offsetEnabled ) {\n offsetValue = sharedPreferences.getString( \"offset\", \"\" );;\n }\n\n preferences.add( orderType );\n preferences.add( orderProperty );\n preferences.add( limitValue );\n preferences.add( offsetValue );\n\n return preferences;\n }", "void findSuggestions(String query) {\n \t\tif (suggestionsLoaderClient != null) {\n \t\t\tif (query.length() == 0) {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(\"default-query\",\n \t\t\t\t\t\tlimit);\n \t\t\t} else {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(query, limit);\n \t\t\t}\n \t\t}\n \t}", "List<TypePatientPropertyCondition> search(String query);", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private void showPreferenceSettings() {\n \tfor(PrefKeysE k: PrefKeysE.values()) {\n \t\tString key = k.getKey();\n \t\tboolean isFound = Tt.isPreferencePresent(key);\n \t\tint prtFlags = 0; //don't print from getPreference()\n// \t\tboolean valB;\n// \t\tint valI;\n// \t\tdouble valD;\n \t\tString valFoundStr = \"\";\n \t\tString prefix = String.format(\"%-40s: %-7s: found? %s, default \", key, k.getType().name(), (isFound ? \"Y\" : \"N\"));\n \t\tswitch(k.getType()) {\n \t\tcase BOOLEAN:\n \t\t\tboolean dfltB = k.getDefaultBoolean();\n \t\t\tvalFoundStr += dfltB;\n \t\t\tif(isFound) {\n \t\t\t\tboolean val = Tt.getPreference(k, dfltB, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase INT:\n \t\t\tint dfltI = k.getDefaultInt();\n \t\t\tvalFoundStr += dfltI;\n \t\t\tif(isFound) {\n \t\t\t\tint val = Tt.getPreference(k, dfltI, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase DOUBLE:\n \t\t\tdouble dfltD = k.getDefaultDouble();\n \t\t\tvalFoundStr = String.format(\"% 1.4f\", dfltD);\n \t\t\tif(isFound) {\n \t\t\t\tdouble val = Tt.getPreference(k, dfltD, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += String.format(\", current % 1.4f\", val);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase STRING:\n \t\t\tString dfltS = k.getDefaultString();\n\t\t\t\tvalFoundStr += \"'\" + dfltS + \"'\";\n \t\t\tif(isFound) {\n \t\t\t\tString val = Tt.getPreference(k, dfltS, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current '\" + val + \"'\";\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n\t\t\tP.println(prefix + valFoundStr);\n\n// \t\tif(k.getType().equals(PrefTypeE.BOOLEAN)) \n \t}\n }", "public String getSearchHint();", "Search getSearch();", "private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "public static ArrayList<Result> findMatches(Query query, DataManager myVocab){\n\n\t\t//Uncomment this for logging in this class\t\n//\t\tmyLogger.setLevel(Level.INFO); \n\n\t\t// get the term we're going to search for and\n\t\t// take out any leading or trailing whitespaces\n\t\tString querystr = query.getQuery();\n\t\tquerystr = querystr.trim();\n\t\tString uncleaned = querystr;\n\t\t\n\t\t// This is in case of numeric entries. Google Refine doesn't seem\n\t\t// to have int cell types, instead it adds an invisible .0 to all\n\t\t// numbers. This fixes that issue, as it sometimes causes false negatives.\n\t\tif (querystr.endsWith(\".0\")){\n\t\t Pattern p = Pattern.compile(\"[^0-9\\\\.]+\");\n\t\t Matcher m = p.matcher(querystr);\n\t\t boolean result = m.find();\n\t\t if (!result){\n\t\t \t querystr = querystr.substring(0, querystr.length()-2);\n\t\t }\n\t\t}\n\t\t// see if it's in the synonyms map, if it is\n\t\t// replace it with the appropriate term, if it's\n\t\t// not, don't do anything. \n\n\t\tif (myVocab.subMap.get(querystr)!=null){\n\t\t\tquerystr = myVocab.subMap.get(querystr);\n\t\t\tquery.setQuery(querystr);\n\t\t}\n\t\t\n\t\t// Clean up the query string if it isn't case/punctuation sensitive\n\t\tif (!myVocab.capsSensitive()){\t\t\n\t\t\tquerystr = querystr.toLowerCase();\n\t\t}\n\t\tif (! myVocab.punctSensitive()){\t\t\n\t\t\tquerystr = querystr.replaceAll(\"[\\\\W_]\", \"\");\n\t\t}\n\t\t\n\t\t// see if it's in the synonyms map, if it is\n\t\t// replace it with the appropriate term, if it's\n\t\t// not, don't do anything. \n\t\tif(myVocab.subMap.get(querystr)!=null){\n\t\t\tquerystr = myVocab.subMap.get(querystr);\n\t\t\tquery.setQuery(querystr);\n\t\t}\n\n\t\tString type = query.getType();\n\n\t\t// This ArrayList is the results that are going to be returned. \n\t\tArrayList<Result> results = getDirectMatches(myVocab, querystr, uncleaned, type);\n\t\t\n\t\t// If there's a perfect match return it.\n\t\tif (results.size() == 1 && results.get(0).match){\n\t\t\treturn results;\n\t\t}else{\n\t\t\t// Otherwise, add the initial ones and try matching\n\t\t\t// based on distance to vocabulary terms.\n\t\t\tresults.addAll(distanceMatching(query, myVocab));\n\t\t\t\n\t\t\t// Split the original query term by space and non-alphanumeric characters \n\t\t\t// to find how many words there are.\n\t\t\t//querystr = query.getQuery().replaceAll(\"[\\\\W_]\", \" \");\n\t\t\tString [] termList = querystr.split(\" \");\n\t\t\t\n\t\t\t// if there's more than one, run bagOfWords\n\t\t\t// which tries to find a match for each of the words.\n\t\t\tif (termList.length > 1){\n\t\t\t\tresults.addAll(bagOfWords(query, myVocab));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Clean the results: no duplicates\n\t\t// no extra results to return, and sorted\n\t\t// them by score before returning them\n\t\tresults = removeDuplicates(results);\n\t\t\n\t\t// They do not need to be reduced in \n\t\t// number if there are fewer than \n\t\t// the max results.\n\t\t// The pruneResults sorts them\n\t\t// by score already.\n\t\tif(query.getLimit()!=null){\n\t\t\tresults = pruneResults(results,Integer.parseInt(query.getLimit()));\n\t\t}else{\n\t\t\tresults = pruneResults(results,MAX_RESULTS);\n\t\t}\n\t\t\t\n\t\tresults = sortByScore(results);\n\t\tfor (int i = 0; i< results.size(); i++){\n//\t\t\tmyLogger.log(Level.SEVERE,results.get(i).getScore()+ \" is bigger than 100?\");\n\t\t\tif(results.get(i).getScore() > (double)100){\n\t\t\t\tresults.get(i).setScore((double)100 - (results.get(i).getScore()-(double)100));\n//\t\t\t\tmyLogger.log(Level.SEVERE,results.get(i).getScore()+\" is bigger than 100! and was set to \"+\n//\t\t\t\t\t\t((double)100 - (results.get(i).getScore()-(double)100)));\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t}", "private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }", "@Override\r\n\t\t\tpublic List<ScoredDocument> search(Query query) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public static ArrayList<String> searchDictCommands(String query) {\n ArrayList<String> curSearch = new ArrayList<>();\n\n // Iterating through arguments of the same command\n for (int i = 0; i < commandDict.size(); i++) {\n // Checking if current Dictionary key matches what\n // the user has entered so far.\n if (commandDict.get(i).getKey().startsWith(query)) {\n curSearch.add(commandDict.get(i).getKey());\n }\n }\n\n // Returns an empty ArrayList if no match has been found.\n return curSearch;\n }", "@In String search();", "@GetMapping(\"/_search/view-policies\")\n @Timed\n public List<ViewPolicyDTO> searchViewPolicies(@RequestParam String query) {\n log.debug(\"REST request to search ViewPolicies for query {}\", query);\n return viewPolicyService.search(query);\n }", "public Iterable<JMDictEntry> getEntriesFromPron(Iterable<ForwardingToken> tokensToSearch, Mode mode, POS pos) {\n Set<String> readingsToQuery = new HashSet<>();\n List<String> acceptablePOS;\n final String restrictPOSClause;\n final String properNounsClause;\n boolean ignoreProperNouns = true;\n\n switch (mode) { // Note: most likely could search by baseForm for all of these. Not sure there's ever any difference in these cases.\n case READINGS_IN_HIRAGANA:\n tokensToSearch.forEach(forwardingToken -> {\n if (forwardingToken.isVerb()) readingsToQuery.add(forwardingToken.getBaseForm()); // search for verbsAndAux by their baseform eg. する\n else readingsToQuery.add(Utils.convertKana(forwardingToken.getReading())); // search for native words in hiragana eg. として\n });\n break;\n case READINGS_IN_KATAKANA:\n tokensToSearch.forEach(forwardingToken ->\n readingsToQuery.add(forwardingToken.getReading()) // search for possible loan words in their native katakana. eg. キャンパス\n );\n break;\n default:\n throw new NotImplementedException();\n }\n\n\n switch(pos){\n case particles:\n case conjunctions:\n// acceptablePOS = particles;\n restrictPOSClause = \"AND s.particles = 1 \";\n break;\n case adverbs:\n// acceptablePOS = adverbs;\n restrictPOSClause = \"AND s.adverbs = 1 \";\n break;\n case adjectives:\n// acceptablePOS = adjectives;\n restrictPOSClause = \"AND s.adjectives = 1 \";\n break;\n case adnominals:\n// acceptablePOS = adnominals;\n restrictPOSClause = \"AND s.adnominals = 1 \";\n break;\n case prefixes:\n// acceptablePOS = adfixes;\n restrictPOSClause = \"AND s.adfixes = 1 \";\n break;\n case nouns:\n// acceptablePOS = nouns;\n restrictPOSClause = \"AND s.nouns = 1 \";\n break;\n case properNouns:\n// acceptablePOS = properNouns;\n restrictPOSClause = \"AND s.propernouns = 1 \";\n ignoreProperNouns = false;\n break;\n case verbsAndAux:\n// acceptablePOS = verbsAndAux;\n restrictPOSClause = \"AND s.verbsandaux = 1 \";\n break;\n // Take all you can find\n case exclamations:\n case symbols:\n case fillers:\n case others:\n case unclassified:\n restrictPOSClause = \"\";\n// acceptablePOS = all;\n break;\n default:\n throw new IllegalStateException();\n }\n\n\n if(ignoreProperNouns) properNounsClause = \"WHERE a.id < \" + START_OF_PROPER_NOUNS_ID + \" \";\n else properNounsClause = \"WHERE a.id > \" + (START_OF_PROPER_NOUNS_ID - 1) + \" \";\n// restrictPOSClause = \"AND t.senseDataKey.data IN :acceptablePOS \";\n\n if(readingsToQuery.isEmpty()) return new ArrayList<>(); // bail out if nothing to search database with.\n\n List<List<String>> partitionedReadingsToQuery = Lists.partition(\n// readingsToQuery.stream().collect(Collectors.toList()), MAX_HOST_PARAMETERS - acceptablePOS.size()\n readingsToQuery.stream().collect(Collectors.toList()), MAX_HOST_PARAMETERS\n );\n\n List<JMDictEntry> resultList = new ArrayList<>();\n partitionedReadingsToQuery.parallelStream().forEach(partition -> {\n TypedQuery<JMDictEntry> query = em.createQuery(\n \"SELECT a \" + // JOIN FETCH is certainly faster (2s).\n \"FROM JMDictEntry a \" +\n \"JOIN FETCH JMDictPron p \" +\n \" ON a.id = p.idDataKey.id \" +\n \"JOIN FETCH JMDictSense s \" +\n \" ON s.id = a.id \"\n// + \"JOIN JMDictType t \" +\n// \"ON t.senseDataKey.sense = s.data \"\n + properNounsClause\n + \" AND p.idDataKey.data IN :readingsToQuery \"\n + restrictPOSClause\n + \" GROUP BY p.idDataKey.id\"\n ,\n JMDictEntry.class\n );\n query.setParameter(\"readingsToQuery\", partition);\n// query.setParameter(\"acceptablePOS\", acceptablePOS);\n resultList.addAll(query.getResultList());\n });\n\n return resultList;\n }", "List<Cemetery> search(String query);", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }", "List<SearchResult> search(SearchQuery searchQuery);", "List<TypeTreatmentPlanStatuses> search(String query);", "List<ShipmentInfoPODDTO> search(String query);", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "public void search() {\r\n \t\r\n }", "void searchProbed (Search search);", "@Override\n @Transactional(readOnly = true)\n public Page<Proposal> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Proposals for query {}\", query);\n return proposalSearchRepository.search(queryStringQuery(query), pageable);\n }", "public String getSearchKeyword() {\n return SharedPrefsUtils.getStringPreference(application.getApplicationContext(), \"KEY\");\n }", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "List<Codebadge> search(String query);", "public Map<String, DataModel> getQuery() {\n if (queries == null) {\n queries = FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<String, DataModel>() {\n @Override\n public DataModel get(Object key) {\n try {\n final FxResultSet result = EJBLookup.getSearchEngine().search((String) key, 0, -1, null);\n return new FxResultSetDataModel(result);\n } catch (FxApplicationException e) {\n throw e.asRuntimeException();\n }\n }\n }, true);\n }\n return queries;\n }", "public void searchByAccount() {\n\t\t\n\t\tlog.log(Level.INFO, \"Please Enter the account number you want to search: \");\n\t\tint searchAccountNumber = scan.nextInt();\n\t\tbankop.search(searchAccountNumber);\n\n\t}", "@Override\r\n\tpublic String popupSearch(String criteria) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String popupSearch(String criteria) {\n\t\treturn null;\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<PerSubmit> search(String query) {\n log.debug(\"Request to search PerSubmits for query {}\", query);\n return StreamSupport\n .stream(perSubmitSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "List<Corretor> search(String query);", "@Override\n\tpublic List<JobPreferences> findAll() {\n\t\treturn jobPreferenceDao.findAll();\n\t}", "private void searchBook(String query) {\n String filter = this.bookFilter.getValue();\n String sort = this.sort.getValue();\n \n // Get the user defined comparator\n Comparator<Book> c = getBookComparator(filter, sort);\n\n // Create a book used for comparison\n Book book = createBookForQuery(filter, query);\n \n // Find all matches\n GenericList<Book> results = DashboardController.library.getBookTable().findAll(book, c);\n\n // Cast results to an array\n Book[] bookResults = bookResultsToArray(results, c);\n\n // Load the results in a new scene\n this.loadBookResultsView(bookResults);\n }", "public void searchFor(View view) {\n // Get a handle for the editable text view holding the user's search text\n EditText userInput = findViewById(R.id.user_input_edit_text);\n // Get the characters from the {@link EditText} view and convert it to string value\n String input = userInput.getText().toString();\n\n // Search filter for search text matching book titles\n RadioButton mTitleChecked = findViewById(R.id.title_radio);\n // Search filter for search text matching authors\n RadioButton mAuthorChecked = findViewById(R.id.author_radio);\n // Search filter for search text matching ISBN numbers\n RadioButton mIsbnChecked = findViewById(R.id.isbn_radio);\n\n if (!input.isEmpty()) {\n // On click display list of books matching search criteria\n // Build intent to go to the {@link QueryResultsActivity} activity\n Intent results = new Intent(MainActivity.this, QueryListOfBookActivity.class);\n\n // Get the user search text to {@link QueryResultsActivity}\n // to be used while creating the url\n results.putExtra(\"topic\", mUserSearch.getText().toString().toLowerCase());\n\n // Pass search filter, if any\n if (mTitleChecked.isChecked()) {\n // User is searching for book titles that match the search text\n results.putExtra(\"title\", \"intitle=\");\n } else if (mAuthorChecked.isChecked()) {\n // User is searching for authors that match the search text\n results.putExtra(\"author\", \"inauthor=\");\n } else if (mIsbnChecked.isChecked()) {\n // User is specifically looking for the book with the provided isbn number\n results.putExtra(\"isbn\", \"isbn=\");\n }\n\n // Pass on the control to the new activity and start the activity\n startActivity(results);\n\n } else {\n // User has not entered any search text\n // Notify user to enter text via toast\n\n Toast.makeText(\n MainActivity.this,\n getString(R.string.enter_text),\n Toast.LENGTH_SHORT)\n .show();\n }\n }", "public Utwor search2(String query) {\n for (Utwor utwor : utwory) {\n if (utwor.getTitle().equals(query)) {\n return utwor;\n }\n }\n return null;\n }", "public SolrQueryResult query(Map<String, String> params) {\n SolrQuery query = new SolrQuery();\n\n /* enable facetting */\n query.setFacet(true);\n\n /* list of all filters; key: name to display, value: entity parameter */\n List<SolrQueryParameter> filter = new ArrayList<SolrQueryParameter>();\n\n /* list of partition filter */\n List<SolrQueryParameter> partitionFilter = new ArrayList<SolrQueryParameter>();\n\n /*\n * list of filter which have been set by the user (key = filtername, value =\n * list of selections)\n */\n Map<String, List<String>> activeFilterValues = new HashMap<String, List<String>>();\n\n /*\n * determine on which type is searched for (either 'Table' or 'Partition')\n */\n String typeFilterValue = params.get(TYPE);\n filter.add(new SolrQueryParameter(FILTER_TYPE, TYPE, FilterType.EXCLUSIVE, FacetSort.COUNT));\n if (typeFilterValue != null && typeFilterValue.equalsIgnoreCase(TYPE_PARTITION)) {\n typeFilterValue = TYPE_PARTITION;\n for (String parameter : metascopeParameterService.findDistinctParameters()) {\n partitionFilter.add(new SolrQueryParameter(\"Parameter: \" + parameter, parameter + \"_s\", FilterType.AND,\n FacetSort.INDEX));\n }\n for (SolrQueryParameter pFilter : partitionFilter) {\n query.addFacetField(pFilter.getName());\n query.add(\"f.\" + pFilter.getName() + \".facet.sort\", \"index\");\n String filterValue = params.get(pFilter.getName());\n if (filterValue != null && !filterValue.isEmpty()) {\n query.addFilterQuery(pFilter.getName() + \":\" + \"(\" + filterValue.replace(\",\", \" AND \") + \")\");\n }\n\n }\n } else {\n typeFilterValue = TYPE_TABLE;\n }\n query.addFilterQuery(\"{!tag=\" + TYPE + \"}\" + TYPE + \":\" + typeFilterValue);\n query.addFacetField(\"{!ex=\" + TYPE + \"}\" + TYPE);\n\n /* set solr search query parameter 'q' */\n String searchQueryValue = params.get(URLUtil.SEARCH_QUERY_PARAM);\n if (searchQueryValue == null || searchQueryValue.isEmpty()) {\n searchQueryValue = \"*\";\n query.setQuery(searchQueryValue);\n } else {\n String[] queryTerms = searchQueryValue.trim().split(\" \");\n String queryTerm = \"\";\n for (String term : queryTerms) {\n if (term.isEmpty()) {\n continue;\n }\n\n if (!queryTerm.isEmpty()) {\n queryTerm += \" AND \";\n }\n queryTerm += \"*\" + term + \"*\";\n }\n query.setQuery(queryTerm);\n query.setHighlight(true);\n query.setHighlightSimplePre(\"<b>\");\n query.setHighlightSimplePost(\"</b>\");\n query.setHighlightSnippets(100);\n query.set(\"hl.fl\", \"*\");\n }\n\n /* set the remaining filters */\n for (SolrQueryParameter queryFilter : facetFields) {\n filter.add(queryFilter);\n String value = params.get(queryFilter.getName());\n\n String filterQuery = \"\";\n String facetField = \"\";\n if (queryFilter.isExcludeFromFacet()) {\n if (value != null) {\n String[] multipleFilter = value.split(\",\");\n value = \"(\";\n for (int i = 0; i < multipleFilter.length; i++) {\n String filterValue = cleanseValue(multipleFilter[i]).replace(\" \", \"*\");\n value += \"(\" + filterValue + \")\";\n if (i < multipleFilter.length - 1) {\n value += \" \" + getOperator(queryFilter.getFilterType()) + \" \";\n }\n }\n value += \")\";\n }\n filterQuery = \"{!tag=\" + queryFilter.getName() + \"}\" + queryFilter.getName() + \":\" + value;\n facetField = \"{!ex=\" + queryFilter.getName() + \"}\" + queryFilter.getName();\n } else {\n if (value != null) {\n String[] multipleFilter = value.split(\",\");\n value = \"(\";\n for (int i = 0; i < multipleFilter.length; i++) {\n String filterValue = cleanseValue(multipleFilter[i]).replace(\" \", \"*\");\n value += \"(\" + filterValue + \")\";\n if (i < multipleFilter.length - 1) {\n value += \" \" + getOperator(queryFilter.getFilterType()) + \" \";\n }\n }\n value += \")\";\n }\n filterQuery = queryFilter.getName() + \":\" + value;\n facetField = queryFilter.getName();\n }\n\n if (value != null && !value.isEmpty()) {\n query.addFilterQuery(filterQuery);\n }\n query.addFacetField(facetField);\n\n if (queryFilter.getFacetSort().equals(FacetSort.INDEX)) {\n query.add(\"f.\" + queryFilter.getName() + \".facet.sort\", \"index\");\n }\n query.add(\"f.\" + queryFilter.getName() + \".facet.limit\", \"-1\");\n }\n\n /* set facet queries */\n Map<String, String> facetQueryMap = new HashMap<String, String>();\n long now = System.currentTimeMillis() / 1000;\n for (SolrFacetQuery solrFacetQuery : facetQueries) {\n for (SolrHourRange range : solrFacetQuery.getRanges()) {\n long from = range.getFrom() == Long.MAX_VALUE ? 0 : now - (range.getFrom() * 3600);\n String facetQueryString = solrFacetQuery.getName() + \":[\" + from + \" TO \" + now + \"]\";\n query.addFacetQuery(\"{!ex=\" + solrFacetQuery.getName() + \"}\" + facetQueryString);\n facetQueryMap.put(solrFacetQuery.getName() + range.getName(), facetQueryString);\n }\n String value = params.get(solrFacetQuery.getName());\n if (value != null) {\n String fq = \"{!tag=\" + solrFacetQuery.getName() + \"}\" + facetQueryMap.get(solrFacetQuery.getName() + value);\n query.addFilterQuery(fq);\n }\n }\n\n /* always sort the entities (for a deterministic view) */\n query.setSort(ID, ORDER.asc);\n\n /* set pagination information */\n int page = getPageParameter(params);\n int elements = getElementsParameter(params);\n query.setRows(elements);\n query.setStart((page - 1) * elements);\n\n /* execute the query */\n QueryResponse queryResponse = null;\n try {\n queryResponse = solrClient.query(query);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n SolrDocumentList list = queryResponse.getResults();\n\n /* get table / view entities from local repository */\n List<SolrQueryResultEntity> resultEntities = new LinkedList<SolrQueryResultEntity>();\n String resultType = \"\";\n for (SolrDocument solrDocument : list) {\n String id = (String) solrDocument.get(ID);\n\n if (typeFilterValue.equalsIgnoreCase(TYPE_PARTITION)) {\n if (!searchQueryValue.equals(\"*\")) {\n resultEntities.add(new SolrQueryResultEntity(metascopeViewService.findByViewId(id), queryResponse\n .getHighlighting().get(id)));\n } else {\n resultEntities.add(new SolrQueryResultEntity(metascopeViewService.findByViewId(id)));\n }\n resultType = TYPE_PARTITION;\n } else if (typeFilterValue.equalsIgnoreCase(TYPE_TABLE)) {\n if (!searchQueryValue.equals(\"*\")) {\n resultEntities.add(new SolrQueryResultEntity(metascopeTableService.findByFqdn(id), queryResponse\n .getHighlighting().get(id)));\n } else {\n resultEntities.add(new SolrQueryResultEntity(metascopeTableService.findByFqdn(id)));\n }\n }\n }\n if (resultType.isEmpty()) {\n resultType = TYPE_TABLE;\n }\n\n filter.addAll(partitionFilter);\n\n /* get the facet values and counts */\n Map<String, List<SolrFacet>> facetValues = new HashMap<String, List<SolrFacet>>();\n for (SolrQueryParameter f : filter) {\n if (!f.getName().equals(URLUtil.SEARCH_QUERY_PARAM)) {\n List<SolrFacet> values = new ArrayList<SolrFacet>();\n FacetField facet = queryResponse.getFacetField(f.getName());\n for (Count count : facet.getValues()) {\n values.add(new SolrFacet(count.getName(), count.getCount()));\n }\n facetValues.put(f.getName(), values);\n }\n }\n\n /* remove the type filter */\n filter.remove(0);\n\n for (SolrFacetQuery solrFacetQuery : facetQueries) {\n filter\n .add(new SolrQueryParameter(solrFacetQuery.getDisplayName(), solrFacetQuery.getName(), FilterType.EXCLUSIVE));\n List<SolrFacet> values = new ArrayList<SolrFacet>();\n for (SolrHourRange range : solrFacetQuery.getRanges()) {\n long facetQueryCount = getFacetQueryCount(queryResponse, \"{!ex=\" + solrFacetQuery.getName() + \"}\"\n + facetQueryMap.get(solrFacetQuery.getName() + range.getName()));\n values.add(new SolrFacet(range.getName(), facetQueryCount));\n }\n facetValues.put(solrFacetQuery.getName(), values);\n }\n\n /* get the active filter values which have been selected by the user */\n addToActiveFilterValues(activeFilterValues, params, filter);\n\n /* is a search query */\n boolean isSearchQuery = (searchQueryValue != null && !searchQueryValue.isEmpty() && !searchQueryValue.equals(\"*\"))\n || hasActiveFilters(activeFilterValues);\n\n\n /* build and return the result */\n SolrQueryResult result = new SolrQueryResult().withResultEntities(resultEntities).withResultType(resultType)\n .withFilters(filter).withFacetValues(facetValues).withActiveFilterValues(activeFilterValues)\n .withSearchQuery(searchQueryValue).withPage(page).withElements(elements)\n .withTotalPages((int) Math.ceil(((double) list.getNumFound()) / elements)).withTotalResults(list.getNumFound())\n .withIsSearchRequest(isSearchQuery);\n return result;\n }", "default CompletableFuture<List<Box>> queryVisible() {\n //Fill search Map with the Values\n final Map<String,Object> searchData = new HashMap<String,Object>() {\n {\n put(BoxPersistenceDAO.QUERY_PARAM_DELFLAG, false);\n }\n\n @Override\n public Object put(String key, Object o) {\n if (o != null) return super.put(key, o);\n return null;\n }\n };\n\n return query(searchData);\n }", "public void search() {\n }", "@Override\r\n\tpublic List<QnAVO> searchQnA(String searchOption, String keyword, int boardNum) {\n\t\treturn QnARepository.searchQnA(searchOption, keyword, boardNum);\r\n\t}", "@Override\n protected List<settingdto> doInBackground(String... _searchterm) {\n Log.e(TAG, \"doInBackground\");\n\n db = new DatabasehelperUtilz(settingslistactivity.this);\n db.openDataBase();\n lstsettingdtos = db.filtersettingsgivenname(_searchterm[0]);\n db.close();\n\n Log.e(TAG, String.valueOf(lstsettingdtos.size()));\n\n Collections.reverse(lstsettingdtos);\n\n return lstsettingdtos;\n }", "private void getSharedPreferenceValues(){\n // retrieve values\n // note: second item is the default value\n sortOrderOfResults = sharedPreferences.getString(DEFAULT_QUERY_PATH, AppUtilities.QUERY_PATH_POPULAR);\n preferredMovieGenre = sharedPreferences.getString(getString(R.string.pref_genre_key),\n getString(R.string.pref_genre_any_value));\n preferredStartYear = sharedPreferences.getString(getString(R.string.pref_earliest_year_key),\n getString(R.string.pref_earliest_year_default));\n preferredEndYear = sharedPreferences.getString(getString(R.string.pref_latest_year_key),\n getString(R.string.pref_latest_year_default));\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"userid\", globalClass.getId());\n params.put(\"folder_id\", \"0\");\n params.put(\"search_name\", search_text);\n\n Log.d(TAG, \"search \"+params);\n return params;\n }", "private void loadSearchParameters() {\n\t\t\n\t\tfinal ProgressDialog HTTPProgress = ProgressDialog.show(MainActivity.this, \"Loading Course Data ...\", \"Please wait ...\", true, false);\n\t\tlistViewSearch.setVisibility(View.INVISIBLE);\n\t\t\n\t\t(new HTMLGetter(getApplicationContext()) {\n\t\t\t@Override\n\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\tHTMLParser.parseSearchPage(result); // TODO: Parse this in the Async thread instead of the UI thread\n\t\t\t\tHTTPProgress.dismiss();\n\t\t\t\tlistViewSearch.setVisibility(View.VISIBLE);\n\t\t\t\t\n\t\t\t\t// Because the list view data (initialized in initListViewSearch()) should be the \n\t\t\t\t// same size and in the same order as the LinkedHashMap of search parameters,\n\t\t\t\t// we can walk up both of them in tandem to update the list view, instead of doing\n\t\t\t\t// a bunch of key queries on the hash map.\n\t\t\t\tassert(listData.size() == PisaHTMLModel.SEARCH_PARAMETERS.size());\n\t\t\t\tint i = 0;\n\t\t\t\tfor (Map.Entry<String, SearchParameter> entry : PisaHTMLModel.SEARCH_PARAMETERS.entrySet()) {\n\t\t\t\t\tSearchParameter param = entry.getValue();\n\t\t\t\t\tMap<String, String> listItem = listData.get(i);\n\t\t\t\t\t\n\t\t\t\t\t// The text in the ListView should match the key in the HashMap,\n\t\t\t\t\t// since that's what the HashMap is keyed on.\n\t\t\t\t\tassert(listItem.get(\"First Line\") == entry.getKey());\n\t\t\t\t\t\n\t\t\t\t\tString defaultOption;\n\t\t\t\t\tif (param.type == FieldType.MULT_CHOICE) {\n\t\t\t\t\t\t// Multiple choice search parameters should show their default option in the ListView.\n\t\t\t\t\t\t// TODO: Mark the default option instead of assuming it's at position 0 in the options LinkedHashMap\n\t\t\t\t\t\tString HTMLString = param.options.entrySet().iterator().next().getKey(); // Position 0 in the LinkedHashMap\n\t\t\t\t\t\tdefaultOption = Html.fromHtml(HTMLString).toString(); // Properly display any HTML entities\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Text entry search parameters should not show anything by default in the ListView.\n\t\t\t\t\t\tdefaultOption = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tlistItem.put(\"Second Line\", defaultOption); // Replace line in ListView data\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tlistAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t}).execute(new HttpPost(PisaHTMLModel.baseURL));\n\t}", "public void setPreferences(Search search) {\r\n\t\tSearchPreferences sp = search.getSearchPreferences();\r\n\t\tif (sp == null) {\r\n\t\t\tsp = new SearchPreferences();\r\n\t\t\tDisplayCount itemCount = new DisplayCount(9);\r\n\t\t\tDisplayCount itemBanCount = new DisplayCount(36);\r\n\t\t\tDisplayCount sellerBanCount = new DisplayCount(36);\r\n\t\t\tsp.setItemCount(itemCount);\r\n\t\t\tsp.setItemBanCount(itemBanCount);\r\n\t\t\tsp.setSellerBanCount(sellerBanCount);\r\n\t\t\tfor (ListingType lt : search.getListingTypes()) {\r\n\t\t\t\tsp.getListingTypes().add(lt);\r\n\t\t\t}\r\n\t\t\tdisplayCountRepository.saveAll(Arrays.asList(itemCount, itemBanCount, sellerBanCount));\r\n\t\t\tsearchPreferencesRepository.save(sp);\r\n\t\t\tsearch.setSearchPreferences(sp);\r\n\t\t\tsearchRepository.save(search);\r\n\t\t}\r\n\t}", "public void search(String query) {\n Log.i(TAG, \"search: \" + query);\n artistInteractor.searchInItunes(query, this);\n }", "void search();", "void search();", "@Test\n\tpublic void testSearchBasedOnRequest1() {\n\t\tsearchBasedOnRequestSetup();\n\t\t\n\t\tPreference prefs = prefManager.getUserPreference();\n\t\tprefs.setThreshold(10000);\n\t\t\n\t\tList<Suggestion> sugg = dm.searchBasedOnRequest(\"Flavorful\", prefs, true);\n\t\tassertTrue(sugg.size() > 0);\n\t\tassertTrue(sugg.get(0).getType() == Suggestion.SENTENCE);\n\t}", "private void search() {\n if (isConnected()) {\r\n query = searchField.getText().toString();\r\n mLoader.setVisibility(View.VISIBLE);\r\n emptyStateTextView.setText(\"\");\r\n //restart the loader with the new data\r\n loaderManager.restartLoader(1, null, this);\r\n } else {\r\n String message = getString(R.string.no_internet);\r\n new AlertDialog.Builder(this).setMessage(message).show();\r\n }\r\n }", "List<Revenue> search(String query);", "public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static Collection<String> getPreferences(){\n\t\treturn preferences;\n\t}", "public abstract HashMap search(String keyword);", "abstract public void search();", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "Page<Tbc_analises_componente> search(String query, Pageable pageable);", "public QueryInfoSearch getQueryInfoSearch() {\n if (queryInfoSearch != null) return queryInfoSearch;\n queryInfoSearch = new QueryInfoSearch();\n return queryInfoSearch;\n }", "public void search(Map<String, String> searchParam);", "@Override\n public boolean onQueryTextSubmit(String query) {\n if (AfterLoginActivity.this.latestBookList != null) {\n searchBookList = new ArrayList<>();\n\n for (Book book : AfterLoginActivity.this.latestBookList) {\n //str1.toLowerCase().contains(str2.toLowerCase())\n if (book.getName().toLowerCase().contains(query.toLowerCase())) {\n //add to search book list\n searchBookList.add(book);\n }\n }\n //set books to book list view\n AfterLoginActivity.this.bookListFragment.setBooks(searchBookList);\n }\n return true;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "private final List<Object> searchForResults(@Nullable String query)\n {\n ArrayList<Object> results = new ArrayList<>();\n try {\n results.addAll(crDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the cr dao for results.\", e);\n }\n\n try {\n results.addAll(customMonsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the custom monster dao for results.\", e);\n }\n\n try {\n results.addAll(monsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the standard monster dao for results.\", e);\n }\n\n return results;\n }", "public List<Page> relevantPages(String query) {\n\t\tList<Page> relevantPages = new ArrayList<>();\n\t\tfor (Page p : pTable.values()) {\n\t\t\tif (matches(query, p.getContent())) {\n\t\t\t\trelevantPages.add(p);\n\t\t\t}\n\t\t}\n\t\treturn relevantPages;\n\t}", "public TreeSet<TermFrequencyPerFile> search(Query query)\n\t\t\tthrows SearcherException, InterruptedException, ExecutionException {\n\t\tClause tempClause;\n\t\t// Clauses with (start operator|default operator)\n\t\tList<Clause> andAndClauses = new LinkedList<Clause>();\n\t\tList<Clause> andOrClauses = new LinkedList<Clause>();\n\t\tList<Clause> orAndClauses = new LinkedList<Clause>();\n\t\tList<Clause> orOrClauses = new LinkedList<Clause>();\n\t\tList<Clause> tempClauses;\n\t\t// Sets with the clauses of (start operator|default operator)\n\t\tList<Future<TreeSet<TermFrequencyPerFile>>> andSets =\n\t\t\t\tnew LinkedList<Future<TreeSet<TermFrequencyPerFile>>>();\n\t\tList<Future<TreeSet<TermFrequencyPerFile>>> orSets =\n\t\t\t\tnew LinkedList<Future<TreeSet<TermFrequencyPerFile>>>();\n\t\t// Result set from sub-query\n\t\tList<TreeSet<TermFrequencyPerFile>> subAndSet =\n\t\t\t\tnew LinkedList<TreeSet<TermFrequencyPerFile>>();\n\t\tList<TreeSet<TermFrequencyPerFile>> subOrSet =\n\t\t\t\tnew LinkedList<TreeSet<TermFrequencyPerFile>>();\n\t\tList<TreeSet<TermFrequencyPerFile>> subNotSet =\n\t\t\t\tnew LinkedList<TreeSet<TermFrequencyPerFile>>();\n\t\t// Result set\n\t\tTreeSet<TermFrequencyPerFile> result;\n\t\t\n\t\tfor (int i = 0; i < query.size(); ++i) {\n\t\t\ttempClause = query.getClause(i);\n\t\t\t\n\t\t\tif (tempClause.isQuery()) {\n\t\t\t\tassignAllWorks(andAndClauses, andOrClauses\n\t\t\t\t\t\t, orAndClauses, orOrClauses, andSets, orSets);\n\t\t\t\tif ((tempClause.getStartOP() == null)\n\t\t\t\t\t\t|| tempClause.getStartOP().equals(Operator.AND)) {\n\t\t\t\t\tsubAndSet.add(search((Query) tempClause.getComponent()));\n\t\t\t\t} else if (tempClause.getStartOP().equals(Operator.OR)) {\n\t\t\t\t\tsubOrSet.add(search((Query) tempClause.getComponent()));\n\t\t\t\t} else {\n\t\t\t\t\tsubNotSet.add(search((Query) tempClause.getComponent()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Group similar clauses\n\t\t\ttempClauses = termSearch(tempClause, andAndClauses\n\t\t\t\t\t, andOrClauses, orAndClauses, orOrClauses);\n\t\t\t\n\t\t\t// Assign work\n\t\t\tif (tempClauses != null) {\n\t\t\t\t// A clause is ready to get queried\n\t\t\t\tassignWork(tempClauses, andSets, orSets);\n\t\t\t} else {\n\t\t\t\tif ((tempClause.getStartOP() != null) \n\t\t\t\t\t\t&& tempClause.getStartOP().equals(Operator.NOT)) {\n\t\t\t\t\tTerm t = (Term)tempClause.getComponent();\n\t\t\t\t\tassert(t.size() == 1);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsubNotSet.add(notSearch(tempClause));\n\t\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassignAllWorks(andAndClauses, andOrClauses\n\t\t\t\t, orAndClauses, orOrClauses, andSets, orSets);\n\t\t\n\t\t// Wait for AND set result\n\t\tfor (Future<TreeSet<TermFrequencyPerFile>> future: andSets) {\n\t\t\tsubAndSet.add(future.get());\n\t\t}\n\t\t// Integrate All relations at current clause level\n\t\tresult = intersect(subAndSet);\n\t\t\n\t\t// Wait for OR set result\n\t\tfor (Future<TreeSet<TermFrequencyPerFile>> future: orSets) {\n\t\t\tsubOrSet.add(future.get());\n\t\t}\n\t\tfor (TreeSet<TermFrequencyPerFile> set: subOrSet) {\n\t\t\tresult.addAll(set);\n\t\t}\n\n\t\t// Exclude NOT queries\n\t\tresult.removeAll(subNotSet);\n\t\t\n\t\treturn result;\n\t}", "public Collection<OntologyTerm> findValueUriInOntology( String searchQuery ) {\n\n Collection<OntologyTerm> ontologyFound = new TreeSet<OntologyTerm>();\n for ( AbstractOntologyService ontology : this.ontologies ) {\n assert ontology != null;\n Collection<OntologyTerm> found = ontology.findTerm( searchQuery );\n if ( found != null && !found.isEmpty() ) ontologyFound.addAll( found );\n }\n\n return ontologyFound;\n }", "@FXML\r\n private void search(){\n \r\n String s = tfSearch.getText().trim(); \r\n String type = cmbType.getSelectionModel().getSelectedItem();\r\n String col = cmbFilterBy.getSelectionModel().getSelectedItem();\r\n \r\n /**\r\n * Column Filters\r\n * \r\n */\r\n \r\n \r\n if(!s.isEmpty()){\r\n if(!chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%' AND status<>'active'\", tblTrainingList);\r\n }\r\n\r\n if(chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%'\", tblTrainingList);\r\n } \r\n } \r\n }", "@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }", "private void searchQuery() {\n edit_search.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n if (paletteComposition.getVisibility() == View.VISIBLE){\n paletteComposition.setVisibility(View.GONE);\n setComposer.setVisibility(View.VISIBLE);\n }\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n setContactThatNameContains(s.toString().trim());\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n }", "default <T> SearchResult<T> searchDictionaryEntries(\n @Nonnull Dictionary dictionary, @Nonnull Query query) {\n return searchDictionaryEntries(dictionary, query, null);\n }", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "@Override\n\tpublic void search() {\n\t}", "java.lang.String getSearchValue();", "public void search() {\n\n lazyModel = new LazyDataModel<Pesquisa>() {\n private static final long serialVersionUID = -6541913048403958674L;\n\n @Override\n public List<Pesquisa> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) {\n\n pesquisarBC.searhValidation(searchParam);\n\n int count = pesquisarBC.count(searchParam);\n lazyModel.setRowCount(count);\n\n if (count > 0) {\n if (first > count) {\n // Go to last page\n first = (count / pageSize) * pageSize;\n }\n SearchFilter parameters = new SearchFilter();\n parameters.setFirst(first);\n parameters.setPageSize(pageSize);\n List<Pesquisa> list = pesquisarBC.search(searchParam, parameters);\n\n logger.info(\"END: load\");\n return list;\n } else {\n return null;\n }\n }\n };\n\n }", "@Override\n protected void onStop() {\n super.onStop();\n\n // We need an Editor object to make preference changes\n SharedPreferences.Editor editor = sharedPreferences.edit();\n // persist preferences that are not set by the Preferences Fragment\n editor.putString(DEFAULT_QUERY_PATH, sortOrderOfResults);\n // Note: for preferences that are set by the Preferences Fragment no additional\n // actions to ensure their persistance are needed. However, if the user has chosen the\n // option not to save the changes upon exit\n\n // Commit the edits\n editor.apply();\n }", "@Override\n\tpublic List<T> searchInfo(String flag, String token) {\n\t\treturn trendsDao.searchInfo(flag, token);\n\t}", "@Override\r\n\tpublic void search() {\n\r\n\t}", "@Override\n\tpublic List<TopicSummary> discoverTopics(String query) {\n\t\treturn null;\n\t}", "boolean getSearchable();", "private void performSearch() {\n try {\n final String searchVal = mSearchField.getText().toString().trim();\n\n if (searchVal.trim().equals(\"\")) {\n showNoStocksFoundDialog();\n }\n else {\n showProgressDialog();\n sendSearchResultIntent(searchVal);\n }\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }", "List<LectureDTO> search(String query);", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "@Override\n\tpublic List queryfind(String type, String query)\n\t{\n\t\treturn teataskMapper.queryfind(type, query);\n\t}", "public List<User> searchUser(String searchValue);", "public void loadPreferecences()\n {\n // Load preferences for chapter\n chapterPref = Activator.getDefault().getPluginPreferences().getBoolean(PREFERENCE_FOR_CHAPTER);\n if (controller != null)\n { \n\t\t\tcontroller.setHierarchical(chapterPref);\n\t\t}\n // Load preferences for value to recognize req\n String pref = Activator.getDefault().getPluginPreferences().getString(PREFERENCE_FOR_VALUE_TO_RECOGNIZE_REQ);\n if (pref != null && pref.length() > 0)\n {\n Serializer<RecognizedElement> serializer = new Serializer<RecognizedElement>();\n RecognizedElement element = serializer.unSerialize(pref);\n if (element != null)\n {\n valueToRecognizeReq = element;\n }\n }\n\n // Load preferences for attributes list\n pref = Activator.getDefault().getPluginPreferences().getString(PREFERENCE_FOR_LIST_RECOGNIZED_ELEMENT);\n if (pref != null && pref.length() > 0)\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n Collection<RecognizedElement> paramDecoded = serializer.unSerialize(pref);\n if (paramDecoded != null && paramDecoded.size() > 0)\n {\n for (Iterator<RecognizedElement> iterator = paramDecoded.iterator(); iterator.hasNext();)\n {\n tree.add((RecognizedElement) iterator.next());\n }\n }\n }\n \n // Load preferences for the description\n descriptionChecked = Activator.getDefault().getPluginPreferences().getBoolean(PREFERENCE_FOR_DESCRIPTION);\n }", "@Override\n public boolean onQueryTextChange(String s) {\n if(s.isEmpty() && amenList.isEmpty()){\n searchResultsCard.setVisibility(View.GONE);\n }else {\n searchResultsCard.setVisibility(View.VISIBLE);\n }\n placesAdaptor.getFilter( ).filter(s);\n //if no results available, hide the result card\n //self-checking if there is any results, as filter results only available after\n //this method ends\n boolean noResult=true;\n ArrayList<PlacesDataClass> tempFilter=placesAdaptor.getFiltered( );\n if(tempFilter.isEmpty()) {\n ArrayList<String> temp_filter=new ArrayList<String>(Arrays.asList(placesName));\n for(String a:temp_filter){\n if(a.toLowerCase().contains(s.toLowerCase())){\n noResult=false;\n }\n }\n }else {\n for (PlacesDataClass object : tempFilter) {\n // the filtering itself:\n if (object.toString( ).toLowerCase( ).contains(s.toLowerCase( )))\n noResult=false;\n }\n }//if no results available then display the no results text\n if (noResult) {\n noResultsFoundText.setVisibility(View.VISIBLE);\n } else noResultsFoundText.setVisibility(View.GONE);\n Log.i(\"results number\", \"query: \"+s+\"; no result: \"+noResult);\n // ---------------Change-----------------\n while (!origin.isEmpty( )) {\n origin.remove(0);\n }\n\n return false;\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if(key.equals(DEFAULT_QUERY_PATH)){\n sortOrderOfResults = sharedPreferences.getString(key, AppUtilities.QUERY_PATH_POPULAR);\n } else if(key.equals(getString(R.string.pref_genre_key))){\n preferredMovieGenre = sharedPreferences.getString(key,\n getString(R.string.pref_genre_any_value));\n } else if(key.equals(getString(R.string.pref_earliest_year_key))){\n preferredStartYear = sharedPreferences.getString(key,\n getString(R.string.pref_earliest_year_default));\n } else if(key.equals(getString(R.string.pref_latest_year_key))){\n preferredEndYear = sharedPreferences.getString(key,\n getString(R.string.pref_latest_year_default));\n } else if(key.equals(getString(R.string.pref_save_on_exit_key))){\n persistPreferences = sharedPreferences.getBoolean(key,\n getResources().getBoolean(R.bool.pref_save_on_exit_default));}\n\n // update boolean value\n checkForDefaultSharedPreferences();\n\n // call for reload\n // Note: reload is potentially necessary after any change, except for the preference\n // that controls change on exit\n if(!key.equals(getString(R.string.pref_save_on_exit_key))){\n performNewQuery();\n }\n }", "private void searchFunction() {\n\t\t\r\n\t}", "private void search(String query) {\n final List<Artist> foundartists = new ArrayList<Artist>();\n final String usrquery = query;\n\n spotifysvc.searchArtists(query, new Callback<ArtistsPager>() {\n @Override\n public void success(ArtistsPager artists, Response response) {\n List<Artist> artistlist = artists.artists.items;\n Log.d(LOG_TAG_API, \"found artists [\" + artistlist.size() + \"]: \" + artistlist.toString());\n datalist.clear();\n\n if (artistlist.size() > 0) {\n setListdata(artistlist);\n } else {\n Toast.makeText(getActivity(), \"no artists found by the name: \" + usrquery, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(LOG_TAG_API, \"failed to retrieve artists:\\n\" + error.toString());\n Toast.makeText(getActivity(), \"failed to retrieve artists. Possible network issues?: \", Toast.LENGTH_SHORT).show();\n }\n });\n }", "private void searchBooks(final String userQuery){\n mTTS = new TextToSpeech(this, this);\n\n //When the search Button is pressed, a query is run\n searchButton = findViewById(R.id.searchButton);\n searchButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.listLayout, LoadingFragment.newInstance()).commit();\n// query = searchEditText.getText().toString();\n new FetchData(MainActivity.this).execute(userQuery);\n speakText(userQuery);\n }\n });\n }", "entities.Torrent.SearchRequestOrBuilder getSearchRequestOrBuilder();", "public void handleSearchQuery(String query) {\n // Iterate through Spot list looking for a Spot whose name matches the search query String\n for (Spot spot : mSpotList) {\n if (spot.getName().equalsIgnoreCase(query)) {\n mMap.addCircle(new CircleOptions()\n .center(new LatLng(spot.getLatLng().latitude, spot.getLatLng().longitude))\n .radius(10)\n .strokeColor(Color.BLACK) // Border color of the circle\n // Fill color of the circle.\n // 0x represents, this is an hexadecimal code\n // 55 represents percentage of transparency. For 100% transparency, specify 00.\n // For 0% transparency ( ie, opaque ) , specify ff\n // The remaining 6 characters(00ff00) specify the fill color\n .fillColor(0x8800ff00)\n // Border width of the circle\n .strokeWidth(2)); // Todo: Make this transparent blue?\n\n // To change the position of the camera, you must specify where you want\n // to move the camera, using a CameraUpdate. The Maps API allows you to\n // create many different types of CameraUpdate using CameraUpdateFactory.\n // Animate the move of the camera position to spot's coordinates and zoom in\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(CameraPosition.fromLatLngZoom(spot.getLatLng(), 18)),\n 2000, null);\n break;\n }\n }\n }", "private void search(ActionEvent x) {\n\t\tString text = this.searchText.getText();\n\t\tif (text.equals(\"\")) {\n\t\t\tupdate();\n\t\t\treturn;\n\t\t}\n\t\tboolean flag = false;\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p.getName().indexOf(text) != -1) {\n\t\t\t\tif (!flag) {\n\t\t\t\t\tthis.projects.clear();\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) {\n\t\t\tINSTANCE.getCurrentUser().sendNotification(new Notification((Object) INSTANCE, \"No results\"));\n\t\t\tthis.searchText.setText(\"\");\n\t\t}\n\t}", "@GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);", "@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}" ]
[ "0.65603244", "0.5939767", "0.5750393", "0.5487335", "0.54243886", "0.5415432", "0.53740305", "0.5351932", "0.5351033", "0.5240702", "0.5217915", "0.5168456", "0.51129663", "0.50824016", "0.50793046", "0.50607574", "0.5031407", "0.5005697", "0.49990144", "0.49691665", "0.49576467", "0.49524948", "0.4943743", "0.49364412", "0.49349025", "0.49225336", "0.48764485", "0.48645234", "0.48419556", "0.4837826", "0.48359418", "0.48341894", "0.4832851", "0.48291647", "0.48291647", "0.48213887", "0.48183233", "0.48023033", "0.47979808", "0.47963765", "0.4793872", "0.47846198", "0.4784554", "0.47739717", "0.475596", "0.47549936", "0.47464228", "0.47460243", "0.47431654", "0.47330087", "0.47305351", "0.47271773", "0.47271773", "0.4724975", "0.47212684", "0.47083506", "0.470602", "0.4704827", "0.4695531", "0.46941096", "0.469142", "0.46897048", "0.4685206", "0.4673172", "0.46696347", "0.46689776", "0.46644393", "0.46532142", "0.46528223", "0.4652157", "0.464954", "0.46494827", "0.46410424", "0.4634355", "0.4632464", "0.46265852", "0.46224812", "0.46165177", "0.4614759", "0.46143538", "0.46126473", "0.46053421", "0.4604269", "0.4604174", "0.46036577", "0.46029335", "0.46000323", "0.45926118", "0.45916232", "0.45818996", "0.45816705", "0.45801756", "0.45760173", "0.4574894", "0.45719755", "0.45715433", "0.45681742", "0.45667258", "0.45647287", "0.4563035" ]
0.7218883
0
Created by Debasis on 14/01/17.
public interface ProfileDisplayer { void display(User user); void updateProfileImage(Bitmap bitmap); void attach(ProfileActionListener profileActionListener); void detach(ProfileActionListener profileActionListener); interface ProfileActionListener { void onUpPressed(); void onNamePressed(String hint, TextView textView); void onStatusPressed(String hint, TextView textView); void onPasswordPressed(String hint); void onImagePressed(); void onSavePressed(); void onRemovePressed(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void m50366E() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo38117a() {\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void kk12() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n public int describeContents() { return 0; }", "private static void cajas() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\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\tprotected void getExras() {\n\n\t}", "public void method_4270() {}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo12628c() {\n }", "public abstract void mo70713b();", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "public void m23075a() {\n }", "public final void mo91715d() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void m50367F() {\n }", "@Override\r\n\tpublic void init() {}", "public void mo6081a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "public void mo115190b() {\n }", "public void mo12930a() {\n }", "public void mo21779D() {\n }", "@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 gravarBd() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "public abstract void mo56925d();", "@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\r\n\tpublic void rozmnozovat() {\n\t}", "protected void mo6255a() {\n }", "public void mo21825b() {\n }", "@Override\n protected void init() {\n }", "public void mo55254a() {\n }", "@Override\n public void init() {}", "public void skystonePos4() {\n }", "public void mo21878t() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override public int describeContents() { return 0; }", "@Override\n void init() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "protected boolean func_70041_e_() { return false; }", "@Override\n public void init() {\n\n }" ]
[ "0.57634956", "0.57548624", "0.57034534", "0.56654227", "0.5637479", "0.5573661", "0.5561626", "0.55613893", "0.55582494", "0.5553565", "0.5553565", "0.55111384", "0.54987484", "0.54762954", "0.5448062", "0.54408205", "0.54315674", "0.541304", "0.5410556", "0.540894", "0.5402373", "0.53979564", "0.53979564", "0.53979564", "0.53979564", "0.53979564", "0.5396362", "0.53895956", "0.53877205", "0.53840303", "0.53840303", "0.53840303", "0.53840303", "0.53840303", "0.53840303", "0.53840303", "0.5381348", "0.536277", "0.53445727", "0.5339771", "0.5338304", "0.5326475", "0.53193086", "0.52943176", "0.52869844", "0.52844614", "0.5282577", "0.5277163", "0.52761656", "0.52761656", "0.52723676", "0.52651113", "0.5261257", "0.52591634", "0.5253776", "0.52487123", "0.5244248", "0.5243521", "0.52428794", "0.523656", "0.5234434", "0.5231051", "0.5231051", "0.5231051", "0.5230041", "0.5228473", "0.5227452", "0.5224974", "0.5224974", "0.5224974", "0.52237815", "0.5222346", "0.5217588", "0.5214884", "0.52138525", "0.52126765", "0.52125305", "0.52028227", "0.51973355", "0.51973355", "0.51973355", "0.51965195", "0.51922023", "0.51809543", "0.5177175", "0.5175396", "0.51742494", "0.5165033", "0.5159061", "0.5158161", "0.51568455", "0.5152338", "0.514832", "0.514832", "0.514832", "0.514832", "0.514832", "0.514832", "0.514609", "0.51453817", "0.51448965" ]
0.0
-1
get the distance between two data objects
private double getDistance(DataObject o1, DataObject o2) { double distance = 0.0; distance = (o1.getYear() - o2.getYear()) * (o1.getYear() - o2.getYear()) + (o1.getRatio1() - o2.getRatio1()) * (o1.getRatio1() - o2.getRatio1()) + (o1.getRatio2() - o2.getRatio2()) * (o1.getRatio2() - o2.getRatio2()); return distance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getDistance(){\r\n\t\treturn Math.sqrt(\r\n\t\t\t\t(\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterX()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterX()\r\n\t\t\t\t\t, 2 )\r\n\t )\r\n\t\t\t\t+ (\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterY()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterY()\r\n\t\t\t\t\t, 2 )\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}", "public static double getDistance( GameObject one, GameObject two )\n {\n double deltaX = getDeltaX( one, two );\n double deltaY = getDeltaY( one, two );\n return Math.sqrt( deltaX * deltaX + deltaY * deltaY );\n }", "public abstract double getDistance(T o1, T o2) throws Exception;", "public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }", "@Override\r\n\tpublic double calculateDistance(Object obj1, Object obj2) {\r\n\t\treturn Math.abs(((String)obj1).split(\" \").length - \r\n\t\t\t\t((String)obj1).split(\" \").length);\r\n\t}", "public int distance(Coord coord1, Coord coord2);", "public double distance(V a, V b);", "private double calculateDistance(Example first, Example second) {\n\t\tdouble distance = 0;\n\t\tfor (Attribute attribute : first.getAttributes()) {\n\t\t\tdouble diff = first.getValue(attribute) - second.getValue(attribute);\n\t\t\tdistance += diff * diff;\n\t\t}\n\t\treturn Math.sqrt(distance);\n\t}", "public double distance(DataInstance d1, DataInstance d2, List<Attribute> attributeList);", "public double distance(InputDatum datum, InputDatum datum2) throws MetricException;", "public static double distance(Prototype one, Prototype two)\r\n {\r\n return d(one, two);\r\n }", "private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}", "@Override\n public double distance(NumberVector o1, NumberVector o2) {\n double dt = Math.abs(o1.doubleValue(0) - o2.doubleValue(0));\n // distance value of earth coordinates in meter\n double dc = getDistance(o1.doubleValue(1), o1.doubleValue(2), o2.doubleValue(1), o2.doubleValue(2));\n return dt + dc;\n }", "public abstract double distanceTo (Object object);", "double getDistance();", "public double calculateDistance(LatLng other) {\n return Math.sqrt( (this.x - other.x) * (this.x - other.x) + (this.y - other.y) * (this.y - other.y) );\n }", "public double distanceBetween(Node a, Node b){\n // used to be its own function, now is implemented in the Node class\n return a.getDist(b);\n }", "public abstract double distanceFrom(double x, double y);", "public double distance(double x, double y);", "public float distance(Entity other) {\n return getCenteredCoordinate().distance(other.getCenteredCoordinate());\n }", "public double distance(final Coordinates other) {\n\t\treturn Math.sqrt(Math.pow((double) x - other.getX(), 2) + Math.pow((double) y - other.getY(), 2));\n\t}", "public abstract double calculateDistance(double[] x1, double[] x2);", "@Override\n\tpublic double distance(Instance first, Instance second) {\n\t\treturn 0;\n\t}", "public float getDistance();", "@Override\n\tpublic double distance(Instance first, Instance second,\n\t\t\tPerformanceStats stats) throws Exception {\n\t\treturn 0;\n\t}", "private double dist(double [] v1, double [] v2){\n \t\tdouble sum=0;\n \t\tfor (int i=0; i<nDimensions; i++){\n \t\t\tdouble d = v1[i]-v2[i];\n \t\t\tsum += d*d;\n \t\t}\n \t\treturn Math.sqrt(sum);\n \t}", "public int calculateDistance(GraphNodeAL<MapPoint> l1, GraphNodeAL<MapPoint> l2){\n double x1 = l1.data.getxCo();\n double y1 = l1.data.getyCo();\n double x2 = l2.data.getxCo();\n double y2 = l2.data.getyCo();\n double dist = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n return (int) dist;\n }", "public double distance(DocumentVector other) {\n\t\tdouble dis = 0;\n\t\t\n\t\tint n = Math.min(this.getAttCount(), other.getAttCount());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble deviate = this.getValueAsReal(i) - other.getValueAsReal(i);\n\t\t\tdis += deviate * deviate;\n\t\t}\n\t\treturn Math.sqrt(dis);\n\t}", "public static double getDist(int id1, int id2) {\n\t\tArrayList<Double> gA1 = geneAttributes.get(id1);\n\t\tArrayList<Double> gA2 = geneAttributes.get(id2);\n\t\tdouble dist = 0;\n\t\tfor(int i=0;i<gA1.size();i++) {\n\t\t\tdist += ( (gA1.get(i) - gA2.get(i)) * (gA1.get(i) - gA2.get(i)) );\n\t\t}\n\t\tdist = Math.sqrt(dist);\n\t\treturn dist;\n\t}", "private Integer getDistance(double lat1, double lon1, double lat2, double lon2) {\n Location locationA = new Location(\"Source\");\n locationA.setLatitude(lat1);\n locationA.setLongitude(lon1);\n Location locationB = new Location(\"Destination\");\n locationB.setLatitude(lat2);\n locationB.setLongitude(lon2);\n distance = Math.round(locationA.distanceTo(locationB));\n return distance;\n }", "public final double calcDistance( Point a, Point b )\r\n {\r\n return( Math.sqrt( (Math.pow(a.y - b.y, 2)) +\r\n (Math.pow(a.x - b.x, 2)) ) );\r\n }", "public double distance(Point other) {\n\n // Define delta-X and delta-Y.\n double deltaX = this.x - other.x;\n double deltaY = this.y - other.y;\n\n // Calculate distance and return.\n return Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n }", "double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\r\n }", "private double distance(Point a, Point b) {\n\t\tDouble xdist = new Double( a.x - b.x );\n\t\tDouble ydist = new Double( a.y - b.y );\n\t\treturn Math.sqrt( Math.pow(xdist, 2.0) + Math.pow(ydist, 2.0) );\n\t}", "public int euclideanDistance(DataValue<T> value1, DataValue<T> value2)\r\n\t{\n\t\tint difference = value1.difference(value2);\r\n\t\tdifference = difference * difference;\t\r\n\t\treturn (int) Math.sqrt(difference);\r\n\t}", "public double getDistance()\n {\n return Math.abs(getDifference());\n }", "public static double distancia(Entidade e1,Entidade e2){\r\n\t\tdouble dx = e1.getPosicaoX() - e2.getPosicaoX();\r\n\t\tdouble dy = e1.getPosicaoY() - e2.getPosicaoY();\r\n\t\tdouble d = Math.sqrt(dx*dx + dy*dy);\r\n\t\treturn d;\r\n\t}", "private double distance(Position pos1, Position pos2)\r\n {\r\n assert pos1 != null;\r\n assert pos2 != null;\r\n\r\n int x = Math.abs(pos1.column() - pos2.column());\r\n int y = Math.abs(pos1.line() - pos2.line());\r\n\r\n return Math.sqrt(x * x + y * y);\r\n }", "public int absoluteDistance(DataValue<T>value1, DataValue<T>value2)\r\n\t{\n\t\treturn value1.difference(value2);\r\n\t}", "private int dist(int city1, int city2){\n\t\treturn this.getGraph().getWeight(city1, city2);\n\t}", "public double getDistance(final DataPoint point1, final DataPoint point2) {\n return NTree.getDistance(point1, point2);\n }", "public float distance(Vector3 other){\r\n\t\treturn (float)Math.sqrt(Math.pow(this.x-other.x,2) + Math.pow(this.y-other.y,2) + Math.pow(this.z-other.z,2));\r\n\t}", "private double dist(Integer unit1, Integer unit2, StateView newstate) {\n\t\t//Creating two arrays of size 2 to store the position of the 2 units\n\t\tint[] pos1 = new int[2];\n\t\tint[] pos2 = new int[2];\n\t\t//Extracting the positional data\n\t\tpos1[0] = newstate.getUnit(unit1).getXPosition();\n\t\tpos1[1] = newstate.getUnit(unit1).getYPosition();\n\t\tpos2[0] = newstate.getUnit(unit2).getXPosition();\n\t\tpos2[1] = newstate.getUnit(unit2).getYPosition();\n\t\t//Calculating the distance\n\t\tdouble dx = Math.abs(pos1[0] - pos2[0]);\n\t\tdouble dy = Math.abs(pos1[1] - pos2[1]);\n\t\tdouble distance = Math.sqrt(Math.pow(dx, 2.0) + Math.pow(dy, 2.0));\n\t\treturn distance;\n\t}", "static double distance(Point a, Point b) {\n\t\tint xDiff = a.x - b.x;\n\t\tint yDiff = a.y - b.y;\n\t\treturn Math.sqrt((xDiff * xDiff) + (yDiff * yDiff));\n\t}", "public static double getDistance(Node a, Node b) {\n return Math.abs(a.getX() - b.getX()) + Math.abs(a.getY() - b.getY());\n }", "static double distance(double x1, double y1, double x2, double y2)\n {\n double x_dist = x2 - x1;\n double y_dist = y2 - y1;\n double dist = Math.sqrt(Math.pow(x_dist, 2) + Math.pow(y_dist, 2));\n return dist;\n }", "public double distance(double[] vector1, double[] vector2) throws MetricException;", "public double calculateDistance(MapLocation a, MapLocation b) {\r\n\t\treturn Math.sqrt((double) ( Math.pow((b.x - a.x),2) + Math.pow((b.y - a.y),2) ));\r\n\t}", "public double distance(){\n return DistanceTraveled;\n }", "public abstract double distance(AbstractPoisson o2);", "public double distance(Customer i, Customer j);", "public static double dist (Vertex a, Vertex b){\n return Math.sqrt((b.y-a.y)*(b.y-a.y) + (b.x-a.x)*(b.x-a.x));\n }", "public double distance() {\n return distance;\n }", "public double distance() {\n return distance;\n }", "public double getEuclideanDistanceTo(Position other) {\n\n double sum = 0;\n //POEY comment: values.length = the number of extraction functions\n //find different values of every object's values in each function (round-robin tournament event itself)\n for (int i = 0; i < values.length; i++) {\n double value = values[i];\n double otherValue = other.values[i];\n double diff = value - otherValue;\n sum += (diff * diff);\n }\n\n return Math.sqrt(sum);\n \n }", "Integer distance(PathFindingNode a, PathFindingNode b);", "public int distance() {\n return distance;\n }", "public double distanceTo(Point other) {\r\n\t\tdouble distX, distY, totalDist;\r\n\t\tdistX=(other.pX - pX) * (other.pX - pX);\r\n\t\tdistY=(other.pY - pY) * (other.pY - pY);\r\n\t\ttotalDist=Math.sqrt(distX + distY);\r\n\t\t\r\n\t\treturn totalDist;\r\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\r\n\t\t\r\n\t}", "public double distance(double x1, double y1, double x2, double y2)\n {\n return Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow(y2 - y1, 2));\n }", "public double distance(Point other) {\r\n double dx = this.x - other.getX();\r\n double dy = this.y - other.getY();\r\n return Math.sqrt((dx * dx) + (dy * dy));\r\n }", "private float getDistance(SXRNode object)\n {\n float x = object.getTransform().getPositionX();\n float y = object.getTransform().getPositionY();\n float z = object.getTransform().getPositionZ();\n return (float) Math.sqrt(x * x + y * y + z * z);\n }", "private static double getDistance(final WayNodeOSM a, final WayNodeOSM b) {\n \t\tdouble latA = a.getLatitude()/180*Math.PI;\n \t\tdouble latB = b.getLatitude()/180*Math.PI;\n \t\tdouble lonDif = (b.getLongitude() - a.getLongitude())/180*Math.PI;\n \t\treturn (Math.acos((Math.sin(latA) * Math.sin(latB)) + (Math.cos(latA) * Math.cos(latB) * Math.cos(lonDif))) * 6367500);\n \t}", "public double distance(Point other) {\n double newX = this.x - other.getX();\n double newY = this.y - other.getY();\n return Math.sqrt((newX * newX) + (newY * newY));\n }", "public double getDistance(){\n\t\treturn this.distance;\n\t}", "private double distance() {\n\t\tdouble dist = 0;\n\t\tdist = Math.sqrt(Math.abs((xOrigin - x) * (xOrigin - x) + (yOrigin - y) * (yOrigin - y)));\n\t\treturn dist;\n\t}", "private double getDistance(float x, float y, float x1, float y1) {\n double distanceX = Math.abs(x - x1);\n double distanceY = Math.abs(y - y1);\n return Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n }", "private double calculateDistance(int sourceX, int sourceY, int targetX, int targetY){\n int xLength = targetX - sourceX;\n int yLength = targetY - sourceY;\n return Math.sqrt((xLength*xLength)+(yLength*yLength)); \n }", "public double getDistance () {\n return distance;\n }", "@Override\n\tpublic float getDistance(float[] fv1, float[] fv2) {\n\t\tif(settings.getMetric() == 1){\n\t\t\treturn getL1Distance(fv1, fv2);\n\t\t} else { //metric == 2\n\t\t\treturn getL2Distance(fv1, fv2);\n\t\t}\n\t\t\n\t\t\n\t}", "private double calculateDistance(Circle point1, Circle point2) {\r\n double x = point1.getCenterX() - point2.getCenterX();\r\n double y = point1.getCenterY() - point2.getCenterY();\r\n\r\n return Math.sqrt(x*x + y*y);\r\n }", "private double calcDistance(RenderedImage other) {\n\t\t// Calculate the signature for that image.\n\t\tColor[][] sigOther = calcSignature(other);\n\t\t// There are several ways to calculate distances between two vectors,\n\t\t// we will calculate the sum of the distances between the RGB values of\n\t\t// pixels in the same positions.\n\t\tdouble dist = 0;\n\t\tfor (int x = 0; x < 5; x++)\n\t\t\tfor (int y = 0; y < 5; y++) {\n\t\t\t\tint r1 = signature[x][y].getRed();\n\t\t\t\tint g1 = signature[x][y].getGreen();\n\t\t\t\tint b1 = signature[x][y].getBlue();\n\t\t\t\tint r2 = sigOther[x][y].getRed();\n\t\t\t\tint g2 = sigOther[x][y].getGreen();\n\t\t\t\tint b2 = sigOther[x][y].getBlue();\n\t\t\t\tdouble tempDist = Math.sqrt((r1 - r2) * (r1 - r2) + (g1 - g2)\n\t\t\t\t\t\t* (g1 - g2) + (b1 - b2) * (b1 - b2));\n\t\t\t\tdist += tempDist;\n\t\t\t}\n\t\treturn dist;\n\t}", "public static double d(Prototype one, Prototype two)\r\n {\r\n return Math.sqrt(squaredEuclideanDistance(one, two));\r\n }", "public double distanceTo(Point other) {\n\t\tdouble distX, distY, totalDist;\n\t\tdistX=(other.pX - pX) * (other.pX - pX);\n\t\tdistY=(other.pY - pY) * (other.pY - pY);\n\t\ttotalDist=Math.sqrt(distX + distY);\n\t\t\n\t\treturn totalDist;\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\n\t\t\n\t}", "public double getLength() {\n return VectorXZ.distance(p1, p2);\n }", "static Number160 distance(final Number160 id1, final Number160 id2) {\n return id1.xor(id2);\n }", "double distance(Shape other, Vector3D direction) {\n double t1 = this.oneWayDistance(other, direction);\n double t2 = other.oneWayDistance(this, direction.negate());\n\n return Math.min(t1, t2);\n }", "static private double dist(double[] a, double[] b) {\n\t\treturn new gov.pnnl.jac.geom.distance.Euclidean().distanceBetween(a, b);\n }", "private double distance(Point A, Point B) {\n\t\tdouble dX = A.x - B.x;\n\t\tdouble dY = A.y - B.y;\n\t\treturn Math.sqrt(dX * dX + dY * dY);\n\t}", "public double getDistance(Node start, Node end) {\n\tstartX = start.getX();\n\tstartY = start.getY();\n\tendX = end.getX();\n\tendY = end.getY();\n\n int Xsquared = (startX - endX) * (startX - endX);\n\tint Ysquared = (startY - endY) * (startY - endY);\n\n\treturn Math.sqrt(Xsquared + Ysquared);\n\t\n }", "public double distance(Point a, Point b) {\n\t\tdouble dx = a.x - b.x;\n\t\tdouble dy = a.y - b.y;\n\t\treturn Math.sqrt(dx * dx + dy * dy);\n\t}", "public static double absoluteDistance(Prototype one, Prototype two)\r\n {\r\n double[] oneInputs = one.getInputs();\r\n double[] twoInputs = two.getInputs();\r\n //int _size = one.numberOfInputs();\r\n double acc = 0.0;\r\n for (int i = 0; i < numberOfInputs; ++i)\r\n {\r\n acc += Math.abs(oneInputs[i] - twoInputs[i]);\r\n }\r\n\r\n return acc;\r\n }", "public double calcDistance(GpsCoordinate other)\n\t{\n\t\tdouble lat1 = degToRadian(this.latitude);\n\t\tdouble lng1 = degToRadian(this.longitude);\n\t\tdouble lat2 = degToRadian(other.latitude);\n\t\tdouble lng2 = degToRadian(other.longitude);\n\t\t\n\t\t/*\n\t\t * use haversine Formula to calc the distance\n\t\t * @see: http://en.wikipedia.org/wiki/Haversine_formula\n\t\t */\n\t\tdouble inRootFormula = Math.sqrt(\n\t\t\t\tMath.sin((lat1 - lat2)/2)*Math.sin((lat1 - lat2)/2)+\n\t\t\t\tMath.cos(lat1)*Math.cos(lat2)*Math.sin((lng1-lng2)/2)*Math.sin((lng1-lng2)/2));\n\t\t\n\t\treturn 2* EARTH_RADIUS * Math.asin(inRootFormula);\n\n\t\n\t}", "private double d(Point a, Point b){\n\t\treturn Math.sqrt(Math.pow(b.getX()-a.getX(),2) + Math.pow(a.getY() - b.getY(), 2));\r\n\t}", "private double distance(Double[] e1, Double[] e2) {\n if(e1.length != e2.length)\n throw new IllegalArgumentException(\"e1 and e2 lie in two different dimensional spaces.\");\n\n double sum = 0.0;\n for(int i = 0; i < e1.length; ++i)\n sum += Math.pow(e1[i] - e2[i], 2);\n return Math.sqrt(sum);\n }", "@Override\n\tpublic double distance(Instance first, Instance second, double cutOffValue,\n\t\t\tPerformanceStats stats) {\n\t\treturn 0;\n\t}", "public double getDistance() {\n return distance;\n }", "public float getDistance() {\r\n return distance;\r\n }", "public static double getDistancia(Punto puntoA, Punto puntoB) {\r\n return Math.sqrt(Math.pow(puntoB.getX() - puntoA.getX(), 2) + Math.pow(puntoB.getY() - puntoA.getY(), 2));\r\n }", "private double dist(Point a,Point b)//to find distance between the new entry to predict and the male or female cluster mean positions.\n { double d;\n d=Math.sqrt( Math.pow((a.ht-b.ht),2) + Math.pow((a.wt-b.wt),2));\n return d;\n }", "private double findDistance(int[] pos1, int[] pos2) {\n return sqrt((pos1[0]-pos2[0])*(pos1[0]-pos2[0])+\n (pos1[1]-pos2[1])*(pos1[1]-pos2[1]));\n }", "public float getDistance() {\n return distance;\n }", "public float getDistance() {\n return distance;\n }", "public double matchData() {\n\t\tArrayList<OWLDataProperty> labels1 = getDataProperties(ontology1);\n\t\tArrayList<OWLDataProperty> labels2 = getDataProperties(ontology2);\n\t\tfor (OWLDataProperty lit1 : labels1) {\n\t\t\tfor (OWLDataProperty lit2 : labels2) {\n\t\t\t\tif (LevenshteinDistance.computeLevenshteinDistance(TestAlign.mofidyURI(lit1.toString())\n\t\t\t\t\t\t, TestAlign.mofidyURI(lit2.toString()))>0.8){\n\t\t\t\t\treturn 1.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0.;\n\n\n\t}", "private static double distance(double x, double y, double x1, double x2,\n\t\t\tdouble y1, double y2) {\n\t\tPoint p = new Point(x, y);\n\t\tPoint p1 = new Point(x1, y1);\n\t\tPoint p2 = new Point(x2, y2);\n\t\treturn p.distance(p1, p2);\n\t}", "public double getDistance(Identifier o) {\n \n Preconditions.checkArgument(o.dims == this.dims);\n \n double total = 0.0;\n \n for (int i = 0; i < this.coordinates.length; i++) {\n total += Math.pow(this.coordinates[i] - o.coordinates[i], 2);\n }\n \n return Math.sqrt(total);\n }", "public double distance(AndroidDoveFlockModel otherDove)\n {\n return (Math.sqrt(Math.pow(otherDove.getX()-getX(),2) +\n Math.pow(otherDove.getY()-getY(),2)));\n }", "public static double getDistancia(Punto3D puntoA, Punto3D puntoB) {\r\n return Math.sqrt(Math.pow(puntoB.getX() - puntoA.getX(), 2) + Math.pow(puntoB.getY() - puntoA.getY(), 2) + Math.pow(puntoB.getZ() - puntoA.getZ(), 2));\r\n }", "public double getLength() {\n\t\treturn getDistance( p1, p2 );\n\t}", "public double getAbsoluteDistance( ArrayList< Double > a, ArrayList< Double > b )\n {\n double dist = -1.0;\n\n if( a.size() == b.size() )\n {\n dist = 0;\n for( int k=0; k<a.size(); k++ )\n {\n dist += Math.abs( a.get( k ) - b.get( k ) );\n }\n }\n\n return dist;\n }", "public static double distanceBetween(Pair<Double, Double> p1, Pair<Double, Double> p2) {\n float[] result = new float[1];\n android.location.Location.distanceBetween(p1.first, p1.second, p2.first, p2.second, result);\n return result[0];\n }" ]
[ "0.7621739", "0.7593251", "0.74621606", "0.7343428", "0.7325041", "0.72842383", "0.7281032", "0.7255939", "0.7185778", "0.7171735", "0.7141964", "0.70435715", "0.70344627", "0.69651043", "0.6934565", "0.69293207", "0.6913992", "0.69083387", "0.6906743", "0.6893935", "0.6880449", "0.68771344", "0.6855511", "0.6854733", "0.68338895", "0.68040705", "0.67944294", "0.67816436", "0.676464", "0.6763926", "0.67600363", "0.67574495", "0.6751852", "0.673433", "0.67206943", "0.67204905", "0.6717529", "0.6709936", "0.6692778", "0.6689632", "0.66896", "0.66800547", "0.6678009", "0.6652894", "0.66523945", "0.6651283", "0.6650677", "0.66498417", "0.66404545", "0.6637071", "0.6632099", "0.6629071", "0.6599883", "0.6599883", "0.6596199", "0.6584718", "0.6573782", "0.65579355", "0.6553394", "0.65528375", "0.6548418", "0.6542289", "0.65416026", "0.65370506", "0.6537005", "0.65217227", "0.65208524", "0.6501402", "0.6498737", "0.64961314", "0.649364", "0.64933634", "0.64889807", "0.6485294", "0.64835167", "0.6482664", "0.6482556", "0.6473845", "0.6473426", "0.64606345", "0.6459372", "0.6449293", "0.6446993", "0.64432585", "0.6441843", "0.641477", "0.6409946", "0.64093095", "0.6405656", "0.64024055", "0.6399058", "0.6398417", "0.6398057", "0.63963914", "0.6392649", "0.639221", "0.6382642", "0.6379769", "0.6378029", "0.63767546" ]
0.74593663
3
get the nearest center data object
private int getNearestCenterIndex(DataObject obj, ArrayList<DataObject> centers) { int centerIndex = 0; double minDistance = Double.MAX_VALUE; double distance = 0.0; for (int i = 0; i < centers.size(); i++) { DataObject dataObject = centers.get(i); distance = getDistance(obj, dataObject); if (distance < minDistance) { minDistance = distance; centerIndex = i; } } return centerIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getClosest(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMax = 0.0;\n\t\t\tPoint centroid = centroid();\n\t\t\tPoint furthermost = new Point();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance > distanceMax){\n\t\t\t\t\tdistanceMax = distance;\n\t\t\t\t\tfurthermost = p;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn furthermost;\n\t\t}", "private PanImageEntry findPanImageEntryClosestToCenter() {\n\t\tfindProjectedZs();\n\t\t\n\t\tPanImageEntry closestEntry = null;\n\t\tfor (int n=0; n<panImageList.length; n++) {\n\t\t\tPanImageEntry entry = panImageList[n];\n\t\t\tif (entry.draw) {\n\t\t\t\tif (closestEntry == null) {\n\t\t\t\t\tclosestEntry = entry;\n\t\t\t\t}\n\t\t\t\telse if (entry.projectedZ > closestEntry.projectedZ) {\n\t\t\t\t\tclosestEntry = entry;\n\t\t\t\t}\n\t\t\t\telse if (entry.projectedZ == closestEntry.projectedZ) {\n\t\t\t\t\tif (isSuperiorImageCat(entry.imageListEntry.getImageCategory(), closestEntry.imageListEntry.getImageCategory())) {\n\t\t\t\t\t\tclosestEntry = entry;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (selectedPanImageEntry != null) {\n\t\t\tdouble dAz = closestEntry.imageListEntry.getImageMetadataEntry().inst_az_rover - \n\t\t\tselectedPanImageEntry.imageListEntry.getImageMetadataEntry().inst_az_rover;\n\t\t\tdouble dEl = closestEntry.imageListEntry.getImageMetadataEntry().inst_el_rover - \n\t\t\tselectedPanImageEntry.imageListEntry.getImageMetadataEntry().inst_el_rover;\n\t\t\tif ((selectedPanImageEntry.imageListEntry.getImageMetadataEntry().inst_el_rover < -85.0 \n\t\t\t\t\t&& closestEntry.imageListEntry.getImageMetadataEntry().inst_el_rover < 85.0)\n\t\t\t\t\t|| (selectedPanImageEntry.imageListEntry.getImageMetadataEntry().inst_el_rover > 85\n\t\t\t\t\t\t&& closestEntry.imageListEntry.getImageMetadataEntry().inst_el_rover > 85)\t\n\t\t\t\t\t) {\n\t\t\t\t// this is a fix because the distance computation doesn't work right at high or low elevations...\n\t\t\t\t// in fact, the whole thing is pretty messed up\n\t\t\t\tclosestEntry = selectedPanImageEntry;\t\t\t\t\n\t\t\t}\n\t\t\telse if ((Math.abs(dAz) < selectTolerance) && (Math.abs(dEl) < selectTolerance)) {\n\t\t\t\tclosestEntry = selectedPanImageEntry;\n\t\t\t}\n\t\t}\n\t\treturn closestEntry;\n\t}", "public Point getFurthermost(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMin = Double.MAX_VALUE;\n\t\t\tPoint centroid = centroid();\n\t\t\tPoint closest = new Point();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance < distanceMin){\n\t\t\t\t\tdistanceMin = distance;\n\t\t\t\t\tclosest = p;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn closest;\n\t\t}", "public scala.Tuple2<java.lang.Object, java.lang.Object> findClosest (scala.collection.TraversableOnce<org.apache.spark.mllib.clustering.VectorWithNorm> centers, org.apache.spark.mllib.clustering.VectorWithNorm point) { throw new RuntimeException(); }", "private static Point getNearest(Collection<Point> centers, Point p) {\n\t\tdouble min = 0;\n\t\tPoint minPoint = null;\n\t\tfor(Point c : centers){\n\t\t\tif(minPoint == null || c.distance(p) < min){\n\t\t\t\tmin = c.distance(p);\n\t\t\t\tminPoint = c;\n\t\t\t}\n\t\t}\n\t\treturn minPoint;\n\t}", "private Cluster getNearestCluster(BasicEvent event) {\n float minDistance = Float.MAX_VALUE;\n Cluster closest = null;\n float currentDistance = 0;\n for (Cluster c : clusters) {\n float rX = c.radiusX;\n float rY = c.radiusY; // this is surround region for purposes of dynamicSize scaling of cluster size or aspect ratio\n if (dynamicSizeEnabled) {\n rX *= surround;\n rY *= surround; // the event is captured even when it is in \"invisible surround\"\n }\n float dx, dy;\n if ((dx = c.distanceToX(event)) < rX && (dy = c.distanceToY(event)) < rY) { // needs instantaneousAngle metric\n currentDistance = dx + dy;\n if (currentDistance < minDistance) {\n closest = c;\n minDistance = currentDistance;\n c.distanceToLastEvent = minDistance;\n c.xDistanceToLastEvent = dx;\n c.yDistanceToLastEvent = dy;\n }\n }\n }\n return closest;\n }", "public Coordinate getClosestCoordinateAround(Coordinate centeredCoordinate) {\n Set<Coordinate> allCellsAsCoordinates = getAllSurroundingCellsAsCoordinates();\n Coordinate closest = allCellsAsCoordinates\n .stream()\n .min((c1, c2) ->\n Float.compare(c1.distance(centeredCoordinate), c2.distance(centeredCoordinate))\n )\n .get();\n return closest;\n }", "public Resource findNearestResource(){\n\t\tResource nearestResource = null;\n\t\tfloat distanceToCurrentResource = 0f;\n\t\tfor (Resource resource : MapData.getInstance().getResources()) {\n\t\t\tif(resource.isResourceMaxed()) continue;\n\t\t\tif (resource.getCenter().dst2(getCenter()) < 4000000) {\n\t\t\t\tif (nearestResource == null) {\n\t\t\t\t\tnearestResource = resource;\n\t\t\t\t\tdistanceToCurrentResource = nearestResource\n\t\t\t\t\t\t\t.getCenter().dst2(this.getCenter());\n\t\t\t\t} else {\n\t\t\t\t\tfloat distanceToNewResource = resource.getCenter()\n\t\t\t\t\t\t\t.dst2(this.getCenter());\n\t\t\t\t\tnearestResource = (distanceToNewResource < distanceToCurrentResource) ? resource\n\t\t\t\t\t\t\t: nearestResource;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nearestResource;\n\t}", "public Id GetNearestNode(Coordinate coord, int cz){\n\t\tfloat distsq = Float.MAX_VALUE;\n\t\tfloat cx = coord.getX();\n\t\tfloat cy = coord.getY();\n\t\tId nearest = null;\n\t\tfor(Node n : listOfNodes){\n\t\t\tif(n == null) continue;\n\t\t\tfloat mx = n.getCoordinate().getX() - cx;\n\t\t\tfloat my = n.getCoordinate().getY() - cy;\n\t\t\tfloat mz = n.getCoordinate().getZ() - cz;\n\t\t\tfloat mydistsq = mx * mx + my * my;\n\t\t\tif(mydistsq < distsq && mz == 0){\n\t\t\t\tdistsq = mydistsq;\n\t\t\t\tnearest = n.getId();\n\t\t\t}\n\t\t}\n\t\treturn nearest;\n\t}", "public ArrayList<Record> near()\n {\n int count = 0;\n ArrayList<Record> closest = new ArrayList<>();\n System.out.println(\"Community Centres that are 5km or less to your location are: \");\n for(Record i: cCentres)\n {\n //latitude and longitude for each centre\n double lat2 = Double.parseDouble(i.getValue(4));\n double lon2 = Double.parseDouble(i.getValue(3));\n ;\n //distance\n double dist = calcDist(lat2, lon2, cCentres);\n if(dist<=5)\n {\n System.out.println(i + \", Distance: \" + dist + \" km\");\n closest.add(i);\n }\n }\n return closest;\n }", "public OsmPrimitive getNearest(Point p) {\n OsmPrimitive osm = getNearestNode(p);\n if (osm == null)\n {\n osm = getNearestWay(p);\n }\n return osm;\n }", "public double getClosestDistance(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMin = Double.MAX_VALUE;\n\t\t\tPoint centroid = centroid();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance < distanceMin){\n\t\t\t\t\tdistanceMin = distance;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn distanceMin;\n\t\t}", "@Override\r\n public Point nearest(double x, double y) {\r\n Point input = new Point(x, y);\r\n Point ans = points.get(0);\r\n double dist = Point.distance(ans, input);\r\n for (Point point : points) {\r\n if (Point.distance(point, input) < dist) {\r\n ans = point;\r\n dist = Point.distance(ans, input);\r\n }\r\n }\r\n return ans;\r\n }", "public BeyondarObject getNearestARObject(List<BeyondarObject> list)\n {\n int nearestDistance = 10000;\n BeyondarObject nearest = null;\n for (BeyondarObject beyondarObject : list) {\n if (beyondarObject.getDistanceFromUser() < nearestDistance) {\n nearestDistance = (int) beyondarObject.getDistanceFromUser();\n nearest = beyondarObject;\n }\n }\n return nearest;\n }", "private EntityCocoon getConsumableCocoon()\n\t{\n\t\tfinal List<Entity> nearbyCocoons = RadixLogic.getAllEntitiesOfTypeWithinDistance(EntityCocoon.class, this, 5);\n\t\tEntityCocoon nearestCocoon = null;\n\t\tdouble lowestDistance = 100D;\n\n\t\tfor (final Entity entity : nearbyCocoons)\n\t\t{\n\t\t\tEntityCocoon cocoon = (EntityCocoon)entity;\n\t\t\tfinal double distanceToCurrentEntity = RadixMath.getDistanceToEntity(this, cocoon);\n\n\t\t\tif (!cocoon.isEaten() && distanceToCurrentEntity < lowestDistance)\n\t\t\t{\n\t\t\t\tlowestDistance = distanceToCurrentEntity;\n\t\t\t\tnearestCocoon = cocoon;\n\t\t\t}\n\t\t}\n\n\t\treturn nearestCocoon;\n\t}", "public Coordinate getClosestCoordinateTo(Coordinate centeredCoordinate) {\n List<Coordinate> allCellsAsCoordinates = getAllCellsAsCenteredCoordinates();\n if (allCellsAsCoordinates.size() == 0) allCellsAsCoordinates.get(0);\n Coordinate closest = allCellsAsCoordinates.stream().min((c1, c2) -> Float.compare(c1.distance(centeredCoordinate), c2.distance(centeredCoordinate))).get();\n return closest.minHalfTile();\n }", "public NavNode getClosestNodeByCenterPosition(Point2D location){\n int i = (int) (location.getX() /eachDisY); // 16.0 means the value of tanks 1/2 width and height\n int j = (int) (location.getY() / eachDisX);\n int c = j*rowNums + i;\n NavNode n1 = (NavNode)this.nodeVector.get(c);\n return n1;\n }", "private GeoPoint getClosestPoint(List<GeoPoint> intersectionPoints) {\n Point3D p0 = scene.getCamera().getSpo();//the point location of the camera.\n double minDist = Double.MAX_VALUE;//(meatchelim ldistance hamaximily)\n double currentDistance = 0;\n GeoPoint pt = null;\n for (GeoPoint geoPoint : intersectionPoints) {\n currentDistance = p0.distance(geoPoint.getPoint());//checks the distance from camera to point\n if (currentDistance < minDist) {\n minDist = currentDistance;\n pt = geoPoint;\n }\n }\n return pt;\n }", "private GeoPoint getClosestPoint(List<GeoPoint> points) {\r\n\t\tGeoPoint closestPoint = null;\r\n\t\tdouble distance = Double.MAX_VALUE;\r\n\r\n\t\tPoint3D P0 = _scene.get_camera().get_p0();\r\n\r\n\t\tfor (GeoPoint i : points) {\r\n\t\t\tdouble tempDistance = i.point.distance(P0);\r\n\t\t\tif (tempDistance < distance) {\r\n\t\t\t\tclosestPoint = i;\r\n\t\t\t\tdistance = tempDistance;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn closestPoint;\r\n\r\n\t}", "protected IgniteBiTuple<Integer, Double> findClosest(Vector[] centers, Vector pnt) {\n double bestDistance = Double.POSITIVE_INFINITY;\n int bestInd = 0;\n\n for (int i = 0; i < centers.length; i++) {\n double dist = distance(centers[i], pnt);\n if (dist < bestDistance) {\n bestDistance = dist;\n bestInd = i;\n }\n }\n\n return new IgniteBiTuple<>(bestInd, bestDistance);\n }", "public String getNearestStreet() {\n String nearestStreet = \"null\";\n CollisionResults results = new CollisionResults();\n float closestDistance = 101f;\n for(float xDir = -1; xDir <= 1; xDir += .1f) {\n for(float yDir = -1; yDir <= 1; yDir += .1f) {\n for(float zDir = -1; zDir <= 1; zDir += .1f) { \n Ray ray = new Ray(loc, new Vector3f(xDir, yDir, zDir));\n world.collideWith(ray, results);\n for (int i = 0; i < results.size(); i++) {\n float dist = results.getCollision(i).getDistance();\n String name = results.getCollision(i).getGeometry().getParent().getName();\n if (name.startsWith(\"R_\") && dist <= 100 && dist < closestDistance) {\n nearestStreet = name;\n closestDistance = dist;\n }\n }\n }\n }\n }\n\n return nearestStreet;\n \n }", "public static EntityPlayer getClosest() {\r\n\t\tdouble lowestDistance = Integer.MAX_VALUE;\r\n\t\tEntityPlayer closest = null;\r\n\t\t\r\n\t\tfor (EntityPlayer player : getAll()) {\r\n\t\t\tif (player.getDistance(mc.player) < lowestDistance) {\r\n\t\t\t\tlowestDistance = player.getDistance(mc.player);\r\n\t\t\t\tclosest = player;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn closest;\r\n\t}", "Point getCenter();", "Point getCenter();", "public closest(){\n\t\tthis.pnt = null;\n\t}", "@Override\n public Point nearest(double x, double y) {\n double distance = Double.POSITIVE_INFINITY;\n Point nearestPoint = new Point(0, 0);\n Point targetPoint = new Point(x, y);\n\n for (Point p : pointsList) {\n double tempdist = Point.distance(p, targetPoint);\n if (tempdist < distance) {\n distance = tempdist;\n nearestPoint = p;\n }\n }\n\n return nearestPoint;\n }", "static boolean betterCenter(double r,double g, double b, float center[],float best_center[]){\n\n float distance = (float) ((r-center[0])*(r-center[0]) + (g-center[1])*(g-center[1]) + (b-center[2])*(b-center[2]));\n\n float distance_best = (float) ((r-best_center[0])*(r-best_center[0]) + (g-best_center[1])*(g-best_center[1]) + (b-best_center[2])*(b-best_center[2]));\n\n\n if(distance < distance_best)\n return true;\n else\n return false;\n\n\n }", "public Point2D nearest(Point2D p) {\n \n if (p == null)\n throw new IllegalArgumentException(\"Got null object in nearest()\");\n \n double rmin = 2.;\n Point2D pmin = null;\n \n for (Point2D q : point2DSET) {\n \n double r = q.distanceTo(p);\n if (r < rmin) {\n \n rmin = r;\n pmin = q;\n }\n }\n return pmin;\n }", "private void cluster() {\n\t\tint index = 0;\n\t\tfor (DataObject obj : objects) {\n\t\t\tindex = getNearestCenterIndex(obj, centers);\n\t\t\tclusters.get(index).add(obj);\n\t\t}\n\t}", "long closest(double lon, double lat) {\n double smallestDist = Double.MAX_VALUE;\n long smallestId = 0;\n Iterable<Node> v = world.values();\n for (Node n : v) {\n double tempLat = n.getLat();\n double tempLon = n.getLon();\n double tempDist = distance(lon, lat, tempLon, tempLat);\n if (tempDist < smallestDist) {\n smallestDist = tempDist;\n smallestId = n.getId();\n }\n }\n return smallestId;\n }", "public double[] getTargetDistanceFromCenter()\n\t{\n\t\t// watch for no valid target, in which case give no displacement\n\t\tdouble[] distance = new double[2];\n\t\tif (currentBestTarget != null)\n\t\t{\n\t\t\t// x increases to right, but y increased downwards, so invert y\n\t\t\tdistance[0] = (currentBestTarget.centerX - IMAGE_WIDTH/2.0 ) / (IMAGE_WIDTH/2);\n\t\t\tdistance[1] = -(currentBestTarget.centerY - IMAGE_HEIGHT/2.0) / (IMAGE_HEIGHT/2);\n\t\t}\n\t\treturn distance;\n\t}", "Point chooseCentre(treeNode node, MTRandom clustererRandom){\n\n\t\t//How many times should we try to choose a centre ??\n\t\tint times = 3;\n\t\t\t\n\t\t//stores the nodecost if node is split with the best centre\n\t\tdouble minCost = node.cost;\n\t\tPoint bestCentre = null;\n\t\t\n\t\t//loop counter variable\n\t\tint i;\n\t\tint j;\n\t\t\n\t\tfor(j=0;j<times;j++){\n\t\t\t//sum of the relativ cost of the points\n\t\t\tdouble sum = 0.0;\n\t\t\t//random number between 0 and 1\n\t\t\tdouble random = clustererRandom.nextDouble();\n\t\t\t\n\t\t\tfor(i=0;i<node.n;i++){\n\t\t\t\n\t\t\t\tsum += treeNodeCostOfPoint(node,node.points[i]) / node.cost;\n\t\t\t\tif(sum >= random){\n\t\t\t\t\tif(node.points[i].weight == 0.0){\n\t\t\t\t\t\t//printf(\"ERROR: CHOOSEN DUMMY NODE THOUGH OTHER AVAILABLE \\n\");\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tdouble curCost = treeNodeSplitCost(node,node.centre,node.points[i]);\n\t\t\t\t\tif(curCost < minCost){\n\t\t\t\t\t\tbestCentre = node.points[i];\n\t\t\t\t\t\tminCost = curCost;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(bestCentre == null){\n\t\t\treturn node.points[0];\n\t\t} else {\n\t\t\treturn bestCentre;\n\t\t}\n\t}", "public Coordinates closestPoint() {\n return closestPoint;\n }", "Execution getClosestDistance();", "public final Node getNearestNode(Point p) {\n double minDistanceSq = Double.MAX_VALUE;\n Node minPrimitive = null;\n for (Node n : getData().nodes) {\n if (n.deleted || n.incomplete)\n continue;\n Point sp = getPoint(n.eastNorth);\n double dist = p.distanceSq(sp);\n if (minDistanceSq > dist && dist < snapDistance) {\n minDistanceSq = p.distanceSq(sp);\n minPrimitive = n;\n }\n // prefer already selected node when multiple nodes on one point\n else if(minDistanceSq == dist && n.selected && !minPrimitive.selected)\n {\n minPrimitive = n;\n }\n }\n return minPrimitive;\n }", "private Map<Geometry, Point3D> getClosestPoint(Map<Geometry, List<Point3D>> intersectionPoints) {\n\n double distance = Double.MAX_VALUE;\n Map<Geometry, Point3D> closestPoint = new HashMap<Geometry, Point3D>();\n Point3D P0 = _scene.getCamera().getP0();\n Map.Entry<Geometry, List<Point3D>> entry;\n Iterator<Entry<Geometry, List<Point3D>>> it = intersectionPoints.entrySet().iterator();\n while (it.hasNext())\n {\n entry = it.next();\n for (Point3D point: intersectionPoints.get(entry.getKey())) {\n if (P0.distance(point) < distance) {\n closestPoint = new HashMap<Geometry, Point3D>();\n closestPoint.put(entry.getKey(), point);\n distance = P0.distance(point);\n }\n }\n }\n return closestPoint;\n }", "private int closest(double [] v){\n \t\tdouble mindist = dist(v, nCentroids[0]);\n \t\tint label =0;\n \t\tfor (int i=1; i<nClusters; i++){\n \t\t\tdouble t = dist(v, nCentroids[i]);\n \t\t\tif (mindist>t){\n \t\t\t\tmindist = t;\n \t\t\t\tlabel = i;\n \t\t\t}\n \t\t}\n \t\treturn label;\n \t}", "public Cluster getClosestCluster(Cluster cluster) {\n Cluster closest = new Cluster();\n double distance = Double.MAX_VALUE;\n\n for(Cluster localCluster : clusters) {\n if(localCluster == cluster) continue;\n\n double test = cluster.errorFromCentroid(localCluster.getCentroid());\n if(test < distance) {\n closest = localCluster;\n distance = test;\n }\n }\n\n return closest;\n }", "public Point2D nearest(Point2D p) {\n if (isEmpty()) {\n return null;\n }\n double minDistance = Double.POSITIVE_INFINITY;\n Point2D nearest = null;\n for (Point2D i : pointsSet) {\n if (i.distanceTo(p) < minDistance) {\n nearest = i;\n minDistance = i.distanceTo(p);\n }\n }\n return nearest;\n\n }", "@Override\n public Point[] chooseCentroids(AbstractCluster self) {\n if (K!=2) {\n System.err.println(\"The used splitter is not suppose to be used with K>2. This program will shut down\"); //#like\n exit(1);\n }\n Point[] result={self.get(0),self.get(0)};\n double max=0;\n for (int i=0; i<self.size(); ++i)\n for (int j=0; j<i; ++j)\n if (max<_distances.get(self.get(i).getId(),self.get(j).getId())) {\n max=_distances.get(self.get(i).getId(),self.get(j).getId());\n result[0]=self.get(i);\n result[1]=self.get(j);\n }\n return result;\n }", "public Point2D nearest(Point2D p) {\n if (bst.isEmpty()) {\n return null;\n }\n\n Point2D nearest = null;\n double nearestDist = Double.POSITIVE_INFINITY;\n \n \n for (Point2D point: bst.keys()) {\n\n if (nearest == null \n || point != null \n && (nearestDist > point.distanceSquaredTo(p)\n && (!point.equals(p)))) {\n nearest = point;\n nearestDist = point.distanceSquaredTo(p);\n }\n \n }\n return nearest;\n }", "private Exemplar nearestExemplar(Instance inst, double c){\n\n if (m_ExemplarsByClass[(int) c] == null)\n return null;\n Exemplar cur = m_ExemplarsByClass[(int) c], nearest = m_ExemplarsByClass[(int) c];\n double dist, smallestDist = cur.squaredDistance(inst);\n while (cur.nextWithClass != null){\n cur = cur.nextWithClass;\n dist = cur.squaredDistance(inst);\n if (dist < smallestDist){\n\tsmallestDist = dist;\n\tnearest = cur;\n }\n }\n return nearest;\n }", "public Station getClosestStation(Actor actor)\n {\n Station with_lowest_distance = null;\n float lowest_distance = Float.MAX_VALUE;\n\n for (Station station : stations)\n {\n if (station == null)\n continue;\n\n float distance = station.distance(actor);\n if (distance < lowest_distance)\n {\n with_lowest_distance = station;\n lowest_distance = distance;\n }\n }\n\n return with_lowest_distance;\n }", "public InhomogeneousPoint3D getSuggestedCenterValue() {\n return mSuggestedCenterValue;\n }", "public Point2D nearest(Point2D p) {\n if (p == null) throw new NullPointerException();\n Point2D champion = pointSet.first();\n if (champion == null) return null;\n \n for (Point2D point : pointSet) {\n if (point.distanceSquaredTo(p) < champion.distanceSquaredTo(p)) {\n champion = point;\n }\n }\n return champion;\n }", "public Point[] nearestPair() {\n\t\t\tPoint[] Answer = new Point[2];\n\t\t\tif (this.size<2)\treturn null; //step 1\n\t\t\tif (this.size==2){\n\t\t\t\tAnswer[0]=this.minx.getData();\n\t\t\t\tAnswer[1]=this.maxx.getData();\n\t\t\t\treturn Answer;\t\t\t\n\t\t\t}\n\t\t\tdouble MinDistance=-1; // for sure it will be change in the next section, just for avoid warrning.\n\t\t\tdouble MinDistanceInStrip=-1;\n\t\t\tPoint[] MinPointsLeft = new Point[2];\n\t\t\tPoint[] MinPointsRight = new Point[2];\n\t\t\tPoint[] MinPointsInStrip = new Point[2]; // around the median\n\t\t\tboolean LargestAxis = getLargestAxis(); //step 2\n\t\t\tContainer median = getMedian(LargestAxis); //step 3\n\t\t\tif (LargestAxis){// step 4 - calling the recursive function nearestPairRec\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(this.minx.getData().getX(), median.getData().getX(),LargestAxis), LargestAxis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(median.getNextX().getData().getX(), this.maxx.getData().getX(),LargestAxis), LargestAxis);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(this.miny.getData().getY(), median.getData().getY(),LargestAxis), LargestAxis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(median.getNextY().getData().getY(), this.maxy.getData().getY(),LargestAxis), LargestAxis);\n\t\t\t}\n\t\t\t//step 5\n\t\t\tif (MinPointsLeft!=null && MinPointsRight!=null){\n\t\t\t\tif (Distance(MinPointsLeft[0], MinPointsLeft[1]) > Distance(MinPointsRight[0], MinPointsRight[1])){\n\t\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\t\tAnswer = MinPointsRight;\n\t\t\t\t}else{\n\t\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (MinPointsLeft!=null) {\n\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t}\n\t\t\telse if (MinPointsRight!=null){\n\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\tAnswer = MinPointsRight;\n\t\t\t}\n\t\t\t//step 6 - nearest point around the median\n\t\t\tif (MinDistance==-1) MinDistance=0;\n\t\t\tMinPointsInStrip = nearestPairInStrip(median, MinDistance*2, LargestAxis);\n\t\t\tif (MinPointsInStrip != null){\n\t\t\t\tMinDistanceInStrip = Distance(MinPointsInStrip[0], MinPointsInStrip[1]);\n\t\t\t\tif (MinDistanceInStrip < MinDistance) return MinPointsInStrip;\n\t\t\t}\n\t\t\treturn Answer;\n\t\t}", "public Point getClosestPoint(Point p) {\n\t\t// If the node is not diveded and there are no points then we \n\t\t// cant return anything\n\t\tif (!divided && points.keySet().size() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Loop through all the points and find the one that is the\n\t\t// closest to the point p\n\t\tdouble smallestDistance = Double.MAX_VALUE;\n\t\tPoint closest = null;\n\t\t\n\t\tfor (Point c : points.keySet()) {\n\t\t\tif (closest == null) {\n\t\t\t\tclosest = c;\n\t\t\t\tsmallestDistance = p.distance(c);\n\t\t\t} else if (p.distance(c) < smallestDistance) {\n\t\t\t\tsmallestDistance = p.distance(c);\n\t\t\t\tclosest = c;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn closest;\n\t}", "private @Nullable Person detectNode(final int cursorAbs, final int cursorOrd)\n {\n @Nullable Person resultPerson = null;\n for (Person person : model.getPeople())\n {\n final double distanceBetweenPoints = camera.d(\n camera.toRealX(cursorAbs),\n camera.toRealY(cursorOrd),\n person.getX() + DEFAULT_CIRCLE_RADIUS,\n person.getY() + DEFAULT_CIRCLE_RADIUS\n );\n if ( distanceBetweenPoints <= DEFAULT_CIRCLE_RADIUS )\n {\n resultPerson = person;\n break;\n }\n }\n return resultPerson;\n }", "public Point2D.Double getImageCenter();", "public Point2D nearest(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"p cannot be null\");\n if (isEmpty()) return null;\n Point2D champ = root.p;\n champ = nearest(p, champ, root, inftyBbox);\n return champ;\n }", "public Point2D nearest(Point2D p) {\n if (p == null)\n throw new IllegalArgumentException(\"Input point is null\");\n if (root == null)\n return null;\n findNearP = p;\n double dist = findNearP.distanceSquaredTo(root.point);\n RectHV rect = new RectHV(0, 0, 1, 1);\n PointDist res = findNearest(root, rect, new PointDist(root.point, dist), true);\n return res.point;\n }", "public Set<? extends Position> findNearest(Position position, int k);", "Point determineClosestCentre(Point p, Point centreA, Point centreB){\n\t\t\n\t\t//loop counter variable\n\t\tint l;\t\n\n\t\t//stores the distance between p and centreA\n\t\tdouble distanceA = 0.0;\n\n\t\tfor(l=0;l<p.dimension;l++){\n\t\t\t//centroid coordinate of the point\n\t\t\tdouble centroidCoordinatePoint;\n\t\t\tif(p.weight != 0.0){\n\t\t\t\tcentroidCoordinatePoint = p.coordinates[l] / p.weight;\n\t\t\t} else {\n\t\t\t\tcentroidCoordinatePoint = p.coordinates[l];\n\t\t\t}\n\t\t\t//centroid coordinate of the centre\n\t\t\tdouble centroidCoordinateCentre;\n\t\t\tif(centreA.weight != 0.0){\n\t\t\t\tcentroidCoordinateCentre = centreA.coordinates[l] / centreA.weight;\n\t\t\t} else {\n\t\t\t\tcentroidCoordinateCentre = centreA.coordinates[l];\n\t\t\t}\n\n\t\t\tdistanceA += (centroidCoordinatePoint-centroidCoordinateCentre) * \n\t\t\t\t\t(centroidCoordinatePoint-centroidCoordinateCentre) ;\n\t\t}\n\n\t\t//stores the distance between p and centreB\n\t\tdouble distanceB = 0.0;\n\n\t\tfor(l=0;l<p.dimension;l++){\n\t\t\t//centroid coordinate of the point\n\t\t\tdouble centroidCoordinatePoint;\n\t\t\tif(p.weight != 0.0){\n\t\t\t\tcentroidCoordinatePoint = p.coordinates[l] / p.weight;\n\t\t\t} else {\n\t\t\t\tcentroidCoordinatePoint = p.coordinates[l];\n\t\t\t}\n\t\t\t//centroid coordinate of the centre\n\t\t\tdouble centroidCoordinateCentre;\n\t\t\tif(centreB.weight != 0.0){\n\t\t\t\tcentroidCoordinateCentre = centreB.coordinates[l] / centreB.weight;\n\t\t\t} else {\n\t\t\t\tcentroidCoordinateCentre = centreB.coordinates[l];\n\t\t\t}\n\n\t\t\tdistanceB += (centroidCoordinatePoint-centroidCoordinateCentre) * \n\t\t\t\t\t(centroidCoordinatePoint-centroidCoordinateCentre) ;\n\t\t}\n\n\t\t//return the nearest centre\n\t\tif(distanceA < distanceB){\n\t\t\treturn centreA;\n\t\t} else {\n\t\t\treturn centreB;\n\t\t}\n\t}", "public Coords getFromCenterIntersectionPoint(final Coords otherPoint)\r\n {\r\n final Line line = new Line(getCenter(), otherPoint);\r\n final List<Line> edgeLines = getEdgeLines();\r\n Coords point;\r\n for(final Line edge : edgeLines)\r\n {\r\n point = line.intersection(edge);\r\n if(point != null)\r\n {\r\n return point;\r\n }\r\n }\r\n return null;\r\n }", "Point findNearestActualPoint(Point a, Point b) {\n\t\tPoint left = new Point(a.x-this.delta/3,a.y);\n\t\tPoint right = new Point(a.x+this.delta/3,a.y);\n\t\tPoint down = new Point(a.x,a.y-this.delta/3);\n\t\tPoint up = new Point(a.x,a.y+this.delta/3);\n\t\tPoint a_neighbor = left;\n\t\tif (distance(right,b) < distance(a_neighbor,b)) a_neighbor = right;\n\t\tif (distance(down,b) < distance(a_neighbor,b)) a_neighbor = down;\n\t\tif (distance(up,b) < distance(a_neighbor,b)) a_neighbor = up;\n\n\t\treturn a_neighbor;\n\t}", "public Point2D nearest(Point2D p) {\n if (p == null) throw new IllegalArgumentException();\n if (root == null) return null;\n nearest = root.point;\n searchForNearest(root, p, new RectHV(0.0, 0.0, 1.0, 1.0));\n return nearest;\n }", "protected Coordinates intersectionFromClosestPoints() {\n if (closestPointA != null && closestPointB != null\n && geometry.almostEqual(closestPointA, closestPointB)) {\n return closestPointA;\n } else {\n return null;\n }\n }", "public Vector2 returnToNearestStockpile(Resource resource){\n\t\tif(myTownHall == null)\n\t\t\treturn new Vector2(0,0);\n\t\treturn myTownHall.getCenter();\n\t}", "public Centroid NearestCentroid(Centroid input) throws IOException {\n\n if(categories == null){\n categories = centroids.keySet().toArray(new String[centroids.size()]);\n Arrays.sort(categories);\n }\n\n double max = Double.NEGATIVE_INFINITY;\n Centroid bestCentroid = null;\n Logging log = new Logging();\n\n String message = \"Label : \" + input.getLabel() + \"\\n\"\n + \"[ \" ;\n\n for(int i=0;i<categories.length; i++){\n Centroid centroid = centroids.get(categories[i]);\n if(!centroid.getLabel().equals(input.getLabel())){\n double sim = input.similarity(centroid);\n message += \" [\" + centroid.getLabel() + \" : \" + sim + \"] \";\n if(sim>max){\n max = sim;\n bestCentroid = centroid;\n }\n }\n }\n\n message +=\"] \\n\";\n //log.log(message,\"info\");\n\n return bestCentroid;\n }", "long closest(double lon, double lat) {\n double closet = Double.MAX_VALUE;\n long vertex = 0;\n\n for (Long v : vertices()) {\n double nodeLon = getNode(v).Lon;\n double nodeLat = getNode(v).Lat;\n double lonDist = nodeLon - lon;\n double latDist = nodeLat - lat;\n double dist = Math.sqrt(lonDist * lonDist + latDist * latDist);\n if (dist < closet) {\n vertex = v;\n closet = dist;\n }\n }\n return vertex;\n }", "public Point2D nearest(Point2D p) \r\n\t{\r\n\t\treturn nearest(p, null, root, new RectHV(0,0,1,1));\r\n\t}", "public Point2D nearest(Point2D p) {\n if (root == null) {\n return null;\n }\n\n currentNearest = root.p;\n currentMinDistance = root.p.distanceTo(p);\n nearest(root, p, ORIENTATION_VERTICAL);\n return currentNearest;\n }", "public Location getNearest(Location src)\r\n {\r\n if(Main.ASSERT) Util.assertion(!src.inside(bl, tr));\r\n // cases: \r\n // 3 6 9 \r\n // 2 x 8\r\n // 1 4 7\r\n if(src.getX()<=bl.getX())\r\n {\r\n if(src.getY()<=bl.getY())\r\n {\r\n return bl; // case 1\r\n }\r\n else if(src.getY()>=tr.getY())\r\n {\r\n return tl; // case 3\r\n }\r\n else\r\n {\r\n return new Location.Location2D(bl.getX(), src.getY()); // case 2\r\n }\r\n }\r\n else if(src.getX()>=tr.getX())\r\n {\r\n if(src.getY()<=bl.getY())\r\n {\r\n return br; // case 7\r\n }\r\n else if(src.getY()>=tr.getY())\r\n {\r\n return tr; // case 9\r\n }\r\n else\r\n {\r\n return new Location.Location2D(tr.getX(), src.getY()); // case 8\r\n }\r\n }\r\n else\r\n {\r\n if(src.getY()<=bl.getY())\r\n {\r\n return new Location.Location2D(src.getX(), bl.getY()); // case 4\r\n }\r\n else if(src.getY()>=tr.getY())\r\n {\r\n return new Location.Location2D(src.getX(), tr.getY()); // case 6\r\n }\r\n else\r\n {\r\n throw new RuntimeException(\"get nearest undefined for internal point\");\r\n }\r\n }\r\n }", "public Point2D nearest(Point2D p) \n\t {\n\t\t if(p==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t if(root == null)\n\t\t\t return null;\n\t\t RectHV rect = new RectHV(0,0,1,1);\n\t\t return nearest(root,p,root.p,rect,true);\n\t }", "private static Pair closest_pair(ArrayList<Point> pointset){\n\t\treturn null;\n\t}", "public Node getClosest(int x, int y)\n {\n if(NodeList.isEmpty()) return null;\n\n\n double distance = 0;\n //big fat pixel number... Stupidest way to initializa that value, but it's working flawlessly so...\n double reference = 1000000000;\n Node closest = null;\n\n //for each Node in NodeList\n for(Node myNode : NodeList)\n {\n\n //calculate distance\n distance = getDistance(myNode,x,y);\n //System.out.println(\"distance : \" + distance);\n\n if(distance < reference)\n {\n closest = myNode;\n reference = distance;\n }\n }\n\n return closest;\n }", "public static Player nearestPlayer(Entity entity, double radius) {\n Player player = null;\n double shortest = (radius * radius) + 1;\n double distSq;\n for (Player p : entity.getWorld().getPlayers()) {\n if (p.isDead() || !p.getGameMode().equals(GameMode.SURVIVAL)) continue;\n if (!entity.getWorld().equals(p.getWorld())) continue;\n distSq = entity.getLocation().distanceSquared(p.getLocation()); //3D distance\n if (distSq < shortest) {\n player = p;\n shortest = distSq;\n }\n }\n return player;\n }", "public Point3D findClosestPoint(List<Point3D> pointsList) {\n /**\n * the near point\n */\n Point3D result = null;\n /**\n * initialize with a big number that we sure it will change\n */\n double closestDistance = Double.MAX_VALUE;\n\n /**\n * if the point equals to null, it`s mean there\n * is no point that close to it\n */\n if (pointsList == null) {\n return null;\n }\n\n for (Point3D p : pointsList) {\n double temp = p.distance(_p0);\n if (temp < closestDistance) {\n closestDistance = temp;\n result = p;\n }\n }\n\n return result;\n }", "public Point2D nearest(Point2D p) {\n return nearestHelper(root, new RectHV(0,0,1,1), p.x(), p.y(), null);\n }", "public Object getObjectAtLocation(Point p);", "public Station getNearestStation(Position pos)\r\n {\r\n assert pos != null;\r\n assert pos.column() < metro.numberOfColumns;\r\n assert pos.line() < metro.numberOfLines;\r\n\r\n Station targetStation = null;\r\n double dist = Double.MAX_VALUE;\r\n\r\n for (Track track : tracks)\r\n {\r\n LinkedList<Station> stationList = track.getStations();\r\n\r\n for (Station station : stationList)\r\n {\r\n double tmpDist = distance(station.getLocation(), pos);\r\n if (tmpDist < dist)\r\n {\r\n dist = tmpDist;\r\n targetStation = station;\r\n }\r\n }\r\n }\r\n\r\n return targetStation;\r\n }", "public MapLocation findNearestAction() {\n MapLocation origin = rc.getLocation();\n MapLocation nearestHelp = findNearestHelp();\n MapLocation nearestArchon = findNearestArchon();\n\n if (nearestArchon == null && nearestHelp == null) {\n return rc.getInitialArchonLocations(rc.getTeam().opponent())[0]; // when no target is known, go to enemy archon initial position\n } else if (nearestArchon == null) { // when some of the targets is not present, just return the other one\n return nearestHelp; // is not null\n } else if (nearestHelp == null) {\n return nearestArchon; // is not null\n }\n\n if (origin.distanceSquaredTo(nearestHelp) < origin.distanceSquaredTo(nearestArchon)) {\n return nearestHelp;\n } else {\n return nearestArchon;\n }\n }", "public Double2D getCentral() {\n\n int width = (int)Math.sqrt(state.numAgents);\n if (Math.sqrt(state.numAgents) / width == 1.0) {\n\n double halfWidth = width / 2.0;\n int x = id / width;\n int y = id % width;\n\n double length = state.simWidth / width;\n double halfLength = length / 2.0;\n\n double dx = ((x - halfWidth) * length + halfLength) + meanLocation.getX();\n double dy = ((y - halfWidth) * length + halfLength) + meanLocation.getY();\n //state.printlnSynchronized(\"Dx = \" + dx + \" dy = \" + dy);\n return new Double2D(dx, dy);\n }else {\n return meanLocation;\n }\n }", "public Object getPoint(EastNorth intersection) {\n\t\treturn null;\n\t}", "public String getDataCenter() {\n return this.dataCenter;\n }", "public Location3D getCenter() {\n\t\treturn new Location3D(world, lowPoint.getBlockX() + getXSize() / 2, lowPoint.getBlockY() + getYSize() / 2, lowPoint.getBlockZ() + getZSize() / 2);\n\t}", "protected MappedPosition nearestMappedCoordinate(DirectPosition dp,\r\n List <MappedPosition> vertices) {\r\n DirectPosition2D x = new DirectPosition2D(dp);\r\n\r\n // Assert.isTrue(vectors.size() > 0);\r\n MappedPosition nearestOne = (MappedPosition) vertices.get(0);\r\n\r\n for (Iterator <MappedPosition> i = vertices.iterator(); i.hasNext();) {\r\n MappedPosition candidate = (MappedPosition) i.next();\r\n\r\n if (((DirectPosition2D) candidate.getSource()).distance(\r\n x.toPoint2D()) < ((DirectPosition2D) nearestOne\r\n .getSource()).distance(x.toPoint2D())) {\r\n nearestOne = candidate;\r\n }\r\n }\r\n\r\n return nearestOne;\r\n }", "private void findNewNearestPub() {\n \t\tevent.SetPubLocation(new PubLocation()/*new nearest found location*/);\n \t\tUpdateFromEvent();\n \t}", "public Point2D getTopCenterPoint()\n {\n double x = mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n double y = mainVBox.getTranslateY();\n return new Point2D(x, y);\n }", "public Coordinate getCenter() {\n return center;\n }", "public Coordinates closestPointA() {\n return closestPointA;\n }", "long closest(double lon, double lat) {\n return kdTreeForNearestNeighbor.nearest(lon, lat);\n }", "@NotNull\n Set<ExpData> getNearestParentDatas(Container c, User user, ExpMaterial start);", "private int getNearestNode(LatLng vic) {\n\t\tint node = 0;\n\t\tfor(int j=0; j<nodeList.size()-1; j++){\n\t\t\tdouble dist1 = getWeight(vic, nodeList.get(node));\n\t\t\tdouble dist2 = getWeight(vic, nodeList.get(j));\n\t\t\tif(dist1 > dist2){\n\t\t\t\tnode = j;\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}", "public Vect3d getCenter (){\r\n Vect3d v = new Vect3d();\r\n v.x = (min.x + max.x) / 2;\r\n v.y = (min.y + max.y) / 2;\r\n v.z = (min.z + max.z) / 2;\r\n return v;\r\n }", "public Point2D nearest(Point2D p) {\n Point2D nearest = null;\n double nearestDistance = Double.MAX_VALUE;\n for (Point2D cur: mPoints) {\n double distance = cur.distanceTo(p);\n if (nearestDistance > distance) {\n nearest = cur;\n nearestDistance = distance;\n }\n }\n return nearest;\n }", "protected Vector3D getRefCompCenterRelParent(AbstractShape shape) {\n Vector3D centerPoint;\n if (shape.hasBounds()) {\n centerPoint = shape.getBounds().getCenterPointLocal();\n centerPoint.transform(shape.getLocalMatrix()); //macht den punkt in self space\n } else {\n Vector3D localObjCenter = shape.getCenterPointGlobal();\n localObjCenter.transform(shape.getGlobalInverseMatrix()); //to localobj space\n localObjCenter.transform(shape.getLocalMatrix()); //to parent relative space\n centerPoint = localObjCenter;\n }\n return centerPoint;\n }", "public Point2D nearest(Point2D p) {\n checkNull(p);\n Node n = nearest(p, root);\n if (n == null) return null;\n return n.p;\n }", "public final Vector getCenter() {\n\t\treturn (center == null) ? computeCenter() : center;\n\t}", "private GeoPoint findClosestIntersection(Ray ray) {\n if (ray == null) {\n return null;\n }\n GeoPoint closestPoint = null;\n double closestDistance = Double.MAX_VALUE;\n Point3D ray_p0 = ray.getPo();\n\n List<GeoPoint> intersections = scene.getGeometries().findGeoIntersections(ray);\n if (intersections == null)\n return null;\n\n for (GeoPoint geoPoint : intersections) {\n double distance = ray_p0.distance(geoPoint.getPoint());\n if (distance < closestDistance) {\n closestPoint = geoPoint;\n closestDistance = distance;\n }\n }\n return closestPoint;\n }", "public FObj findNearestAncestorFObj() {\n FONode par = parent;\n while (par != null && !(par instanceof FObj)) {\n par = par.parent;\n }\n return (FObj) par;\n }", "private Exemplar nearestExemplar(Instance inst){\n\n if (m_Exemplars == null)\n return null;\n Exemplar cur = m_Exemplars, nearest = m_Exemplars;\n double dist, smallestDist = cur.squaredDistance(inst);\n while (cur.next != null){\n cur = cur.next;\n dist = cur.squaredDistance(inst);\n if (dist < smallestDist){\n\tsmallestDist = dist;\n\tnearest = cur;\n }\n }\n return nearest;\n }", "public Point2D nearest(Point2D p) {\n if (p == null) throw new IllegalArgumentException();\n return nearestSub(p, root);\n }", "public Id GetNearestEdge(Coordinate coord) {\n\t\tfloat distsq = Float.MAX_VALUE;\n\t\tId nearest = null;\n\t\tfor (Edge e : listOfEdges) {\n\t\t\tif (e == null) continue;\n\t\t\tfloat mydistsq = e.getDistanceSq(coord, this);\n\t\t\tif (mydistsq < distsq && mydistsq >= 0.0f) {\n\t\t\t\tdistsq = mydistsq;\n\t\t\t\tnearest = e.getId();\n\t\t\t}\n\t\t}\n\t\treturn nearest;\n\t}", "public Point2D nearest(Point2D p2d) {\n if (size == 0) {\n return null;\n } \n return nearest(root, p2d, root.p2d, true);\n }", "private InfoBundle searchClosestSpot(GpsPoint point) {\n\n\t\tSystem.out.println(\"searchClosestSpot\");\n\t\tList<Spot> spots = spotRepository.getClosestSpot(point.getLatitude(),point.getLongitude());\n\n\t\tdouble minDistance;\n\t\tLong minDistance_spotID;\n\t\t// Center GPS_plus object of the closest spot\n\t\tdouble minDistance_centerGPSdatalat;\n\t\tdouble minDistance_centerGPSdatalong;\n\t\t// indicates if the closest spot is in the range of point\n\t\tboolean inRange = false;\n\n\t\tif (spots != null && spots.size() != 0) {\n\t\t\tminDistance = GPSDataProcessor.calcDistance(spots.get(0).getLatitude(),spots.get(0).getLongitude(), point.getLatitude(), point.getLongitude());\n\t\t\tminDistance_centerGPSdatalat = spots.get(0).getLatitude();\n\t\t\tminDistance_centerGPSdatalong = spots.get(0).getLongitude();\n\t\t\tminDistance_spotID = spots.get(0).getSpotID();\n\n\t\t\tif (minDistance < Spot.stdRadius) {\n\t\t\t\tinRange = true;\n\t\t\t}\n\t\t\tInfoBundle bundle = new InfoBundle(minDistance_spotID, minDistance_centerGPSdatalat, minDistance_centerGPSdatalong, inRange, minDistance);\n\t\t\tbundle.setSpot(spots.get(0));\n\t\t\treturn bundle;\n\t\t} else {\n\t\t\t// if there was no spot within the search\n\t\t\treturn null;\n\t\t}\n\t}", "static public Element nearest(Color c)\n {\n int r = c.getRed();\n int g = c.getGreen();\n int b = c.getBlue();\n int minDelta = Integer.MAX_VALUE;\n Element nearest = null;\n\n for (Element e: Element.values())\n {\n Color ec = e.getColor();\n int delta = \n abs(r - ec.getRed()) +\n abs(g - ec.getGreen()) +\n abs(b - ec.getBlue());\n\n if (delta < minDelta)\n {\n minDelta = delta;\n nearest = e;\n }\n }\n return nearest;\n }", "public Point getCenter() {\r\n return this.center;\r\n }", "public Collection<OsmPrimitive> getNearestCollection(Point p) {\n OsmPrimitive osm = getNearest(p);\n if (osm == null)\n return Collections.emptySet();\n return Collections.singleton(osm);\n }", "public Point2D nearest(Point2D p) {\n if (root == null) return null;\n else if (p == null) throw new IllegalArgumentException(\"Point is null or invalid\");\n nearest = root.p;\n return searchNearest(root, p, false);\n }" ]
[ "0.6924607", "0.6561299", "0.6522748", "0.6448308", "0.6399513", "0.6327098", "0.62677115", "0.6137536", "0.6120953", "0.6058516", "0.6005595", "0.5987033", "0.5950274", "0.5944939", "0.5943339", "0.5922134", "0.5921526", "0.58993894", "0.5881143", "0.58643174", "0.5859239", "0.5826983", "0.5818691", "0.5818691", "0.573167", "0.57203877", "0.5716983", "0.57133377", "0.5712402", "0.56840175", "0.56793684", "0.5673352", "0.56665426", "0.56565815", "0.5651355", "0.5625876", "0.56201994", "0.561987", "0.56076634", "0.5600074", "0.559587", "0.55949825", "0.55700326", "0.5566656", "0.5558745", "0.55538195", "0.5544484", "0.5542974", "0.55379474", "0.5530016", "0.55184895", "0.55167556", "0.55149823", "0.5514866", "0.5511239", "0.5498847", "0.5486585", "0.5478166", "0.5475428", "0.54702014", "0.54647", "0.5454459", "0.5443361", "0.54432166", "0.5434554", "0.5433429", "0.5415979", "0.54144657", "0.5398238", "0.5397253", "0.53953135", "0.5391656", "0.5383981", "0.5377526", "0.5372992", "0.5369846", "0.5367093", "0.53653115", "0.53596234", "0.53512627", "0.5351039", "0.53470135", "0.5338933", "0.5335743", "0.5329273", "0.5323163", "0.5318587", "0.5315599", "0.5314357", "0.53141975", "0.53109866", "0.5309123", "0.530885", "0.53044456", "0.5301422", "0.5290666", "0.5281561", "0.5281147", "0.5279156", "0.5276267" ]
0.6809678
1
get the error square
private double getErrorSquare(DataObject o1, DataObject o2) { return getDistance(o1, o2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMeanSquareError() {\n if (n < 3) {\n return Double.NaN;\n }\n return getSumSquaredErrors() / (n - 2);\n }", "public float classError() { return _errors / (float) _rows; }", "public double getSlopeStdErr() {\n return Math.sqrt(getMeanSquareError() / sumXX);\n }", "double getSquareNumber();", "public double getRSquare() {\n double ssto = getTotalSumSquares();\n return (ssto - getSumSquaredErrors()) / ssto;\n }", "public double getInterceptStdErr() {\n return Math.sqrt(\n getMeanSquareError() * ((1d / (double) n) + (xbar * xbar) / sumXX));\n }", "public Vector2d getErrm() {\n return errm;\n }", "private double computeError(){\n double temp = 0;\r\n for(int trial_Number = 0; trial_Number < expectedOutputList.length; trial_Number++){\r\n for(int index = 0; index< expectedOutputList[trial_Number].length; index++){\r\n double difference = expectedOutputList[trial_Number][index] - this.getOutput()[index];\r\n double error = difference*difference;\r\n temp += error;\r\n }\r\n }\r\n return temp;\r\n }", "public synchronized double getError()\n {\n final String funcName = \"getError\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", currError);\n }\n\n return currError;\n }", "public double getSquareLength() {\n return r * r + i * i;\n }", "WorldUps.UErr getError(int index);", "final double measureErrorSq(final double[] ox, final double[] oy, final double[] oz) {\n \t\t\tdouble error = 0;\n \t\t\tfor (int i=1; i<ox.length -1; i++) {\n \t\t\t\tdouble min_dist = Double.MAX_VALUE;\n \t\t\t\tfor (int j=1; j<px.length; j++) {\n \t\t\t\t\t// distance from a original point to a line defined by two consecutive new points\n \t\t\t\t\tdouble dist = M.distancePointToSegmentSq(ox[i], oy[i], oz[i],\n \t\t\t\t\t\t\t px[j-1], py[j-1], pz[j-1],\n \t\t\t\t\t\t\t\t\t px[j], py[j], pz[j]);\n \t\t\t\t\tif (dist < min_dist) min_dist = dist;\n \t\t\t\t}\n \t\t\t\terror += min_dist;\n \t\t\t}\n \t\t\treturn error;\n \t\t}", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "public byte getEndSquare (){\r\n\t\treturn end_sq;\r\n\t}", "public Double getError (long time)\n {\n if (this.state == null)\n return null;\n\n return (this.state.getError());\n }", "abstract double getLengthSquared();", "public double getError(int dataCase){//target - outputOfNet\n\t\treturn data[dataCase][1][0] - outputs[1][0];\n\t}", "public float lengthSquared ( );", "public double lengthsq()\n {\n return Math.pow(this.x, 2) + Math.pow(this.y, 2);\n }", "public int getMaxErrorCorrection() {\n return error;\n }", "public double getMagnitud(){\n return Math.sqrt(x*x+y*y);\n }", "public double getMaximumPositionErrorInArcsec ( ) {\r\n\t\treturn 5.0;\r\n\t}", "public double getMaximumPositionErrorInArcsec ( ) {\r\n\t\treturn 5.0;\r\n\t}", "public double getR() {\n double b1 = getSlope();\n double result = Math.sqrt(getRSquare());\n if (b1 < 0) {\n result = -result;\n }\n return result;\n }", "public double GetTimeError(){\n\t\treturn this.timeError;\n\t}", "private static double sqrtPiSqr() {\n\t\tfinal double PI = Math.PI;\n\t\tfinal int POWER = 2;\n\n\t\t// Solving equation and return value\n\t\treturn Math.sqrt(Math.pow(PI*PI,POWER));\n\t}", "private double calcErrForNeighbour(GNode node) {\n return 0.0;\n }", "ExternalCompiler.ErrorExpression getErrorExpression () {\n return errorExpression;\n }", "public double getXSumSquares() {\n if (n < 2) {\n return Double.NaN;\n }\n return sumXX;\n }", "public java.lang.Integer getN_error() {\n return n_error;\n }", "public double r() { return Math.sqrt(x*x + y*y); }", "public byte getStartSquare (){\r\n\t\treturn start_sq;\r\n\t}", "public float getSDev() {\r\n int sumStdError = 0; // SIGMA(x_i - x_bar)\r\n int size = rbt.size() - 1;\r\n float mean = getMean();\r\n List<Integer> rbtArray = createArray(rbt.root);\r\n\r\n // calculate sumStdError\r\n for (int i = 0; i < rbtArray.size(); i++) {\r\n float gradeData = rbtArray.get(i);\r\n float error = gradeData - mean;\r\n sumStdError += error;\r\n }\r\n\r\n return (float) Math.sqrt((sumStdError ^ 2) / size);\r\n }", "public double[] getConfigRmse()\r\n\t{\r\n\t\tint i;\r\n\t\tdouble[] avg_error; \r\n\t\t\r\n\t\tavg_error = new double[_esn.getNumOutputNeurons()];\r\n\t\tif(_best_idx!=-1)\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = _pool_of_bests.get(_best_idx)._error_config.computeRmse();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = Double.MAX_VALUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn avg_error;\r\n\t}", "@Override\n\tpublic void calculateError() {\n\t\t\n\t}", "public float squared(){\r\n\t\treturn this.dottedWith( this );\r\n\t}", "public double getTotalSumSquares() {\n if (n < 2) {\n return Double.NaN;\n }\n return sumYY;\n }", "java.lang.String getErr();", "public int getS() {\n\t\treturn (Math.max(getSquare(tractor).getSand()-getK(),0));\n\t}", "public Integer getNumError() {\n return numError;\n }", "public static void calError(Neuron x) {\r\n int error = x.getDesired() - x.getActual();\r\n x.setError(error);\r\n }", "double getSquareDistance();", "public String getError() {\n\treturn mistake;\n }", "public static float calculateErrorOnValidationSet(MultiLayerPerceptron mlp) {\n float error=0.0f;\n float errorOnJthSample;\n for(int j = 0; j < validationSet.getTests().size(); j++){\n ArrayList<Float> actualOutput = mlp.calculateOutput(trainingSet.getInput(j));\n ArrayList<Float> expectedOutput = trainingSet.getOutput(j);\n for(int k = 0; k < actualOutput.size();k++){\n errorOnJthSample= Math.abs(expectedOutput.get(k) - actualOutput.get(k));\n error+=errorOnJthSample*errorOnJthSample;\n }\n }\n return error;\n }", "int getWrongScale();", "public double getR(){\n return Math.sqrt(this.x * this.x + this.y * this.y);\n }", "public double getLastError() {\n return lastError;\n }", "public WorldUps.UErr getError(int index) {\n return error_.get(index);\n }", "public double calculatePolyVectorError( List<ConvexPolygon> ls){\n Group image = new Group();\n for (ConvexPolygon p : ls){\n image.getChildren().add(p);\n }\n\n WritableImage wimg = new WritableImage(maxX, maxY);\n image.snapshot(null, wimg);\n PixelReader pr = wimg.getPixelReader();\n\n double res=0;\n for (int i=0;i<maxX;i++){\n for (int j=0;j<maxY;j++){\n Color c = pr.getColor(i, j);\n res += Math.pow(c.getBlue()-target[i][j].getBlue(),2)\n +Math.pow(c.getRed()-target[i][j].getRed(),2)\n +Math.pow(c.getGreen()-target[i][j].getGreen(),2);\n }\n }\n return Math.sqrt(res);\n }", "public double GetStandardDev();", "public void calculateError() {\n double sum = 0;\n\n for (ErrorNeuron neuron : frontNeurons) {\n sum += neuron.error * neuron.neuron.getWeights()[index];\n }\n\n error = neuron.getTransferFunction().derivative(neuron.getRawOutput()) * sum;\n }", "public double getSumResidualsSqr() {\n double[] params = getParams();\n if (params != null) {\n return params[numParams];\n } else {\n return Double.NaN;\n }\n }", "public double getError(double desiredHeading) {\n return desiredHeading - getHeading();\n }", "private void calculateError() {\n this.error = this.elementCount - this.strippedPartition.size64();\n }", "public void calculateError(double expected) {\n error = neuron.getTransferFunction().derivative(neuron.getRawOutput()) * (expected - neuron.getOutput());\n }", "public double scalar() {\n //\n // The RG tensor already has the squared values...\n //\n return Math.sqrt(RG.trace());\n }", "public Object getError() {\n\t\treturn error;\n\t}", "public abstract float getSquareSize();", "public XyzError getError() {\n return this.error;\n }", "private double calculateError(double[] outputsActual, double[] outputsTarget) {\n return Utilities.calculateError(outputsActual, outputsTarget);\n }", "public Error getError() {\r\n\t\treturn error;\r\n\t}", "public final void sqrt() throws ArithmeticException {\n\t\tif ((mksa&_LOG) != 0) throw new ArithmeticException\n\t\t(\"****Unit: log(\" + symbol + \")\") ;\n\t\tif ((mksa&0x0101010101010101L)!=0) throw new ArithmeticException\n\t\t(\"****Unit: sqrt(\" + symbol + \") is impossible\");\n\t\tvalue = Math.sqrt(value);\n\t\tfactor = Math.sqrt(factor);\n\t\tmksa = (mksa+underScore)>>1;\n\t\t/* Try to remove the squared edition */\n\t\tif ((symbol != null) && (symbol.length()>1)) {\n\t\t\tParsing t = new Parsing(symbol);\n\t\t\tint i=0;\n\t\t\tint pow=0;\n\t\t\tpow = getPower(t);\n\t\t\tif ((pow&1) != 0) \t// Odd power not possible\n\t\t\t\tpow = 0;\n\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\tif (pow == 2) symbol = symbol.substring(i, t.pos);\n\t\t\telse if (pow != 0) {\n\t\t\t\tpow /= 2;\n\t\t\t\tsymbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t}\n\t\t\tif ((pow == 0) && (t.length>0)) symbol = \"sqrt(\" + symbol + \")\";\n\t\t}\n\t}", "public double squaredErrorPerSample(List<Example> examples) {\n\t\tdouble sum = 0.0;\n\t\tfor (Example ex : examples) {\n\t\t\tdouble result = eval(ex.inputs);\n\t\t\tdouble error = ex.output - result;\n\t\t\tsum += error*error;\n\t\t}\n\t\treturn 1- (sum / examples.size());\n\t}", "public double getSd() {\n\t\tif (n <= 1)\n\t\t\treturn Double.NaN;\n\t\treturn Math.sqrt(s / (n - 1));\n\t}", "public double getMeanSquare() {\n return sumQ / count;\n }", "public double sqrMagnitude()\n {\n return ((x*x) + (y*y) + (z*z) + (w * w));\n }", "public double getReducedChiSquare() {\n\treturn reducedChiSq;\n }", "double getry() {\n return this.ry;\n }", "public String error();", "public double squareRoot (double firstNumber){\n\t\tif (firstNumber < 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Input \", \"Error message\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn -1111.1111;\n\t\t}\n\t\tdouble result = Math.sqrt(firstNumber);\n\t\treturn result;\n\t}", "public java.lang.String getErrDisc () {\r\n\t\treturn errDisc;\r\n\t}", "Vec helixErrors(Vec aPrime) {\n // aPrime are the helix parameters for a pivot at the global origin, assumed\n // already to be calculated by pivotTransform()\n DMatrixRMaj tC = covariancePivotTransform(aPrime);\n return new Vec(Math.sqrt(tC.unsafe_get(0,0)), Math.sqrt(tC.unsafe_get(1,1)), Math.sqrt(tC.unsafe_get(2,2)), \n Math.sqrt(tC.unsafe_get(3,3)), Math.sqrt(tC.unsafe_get(4,4)));\n }", "private double calculateErrors(Instance instance, Hashtable<NeuralNode, Double> nodeValues) throws Exception {\r\n\t\tdouble ret = 0;\r\n\t\t\r\n\t\t// calculate errors for the network\r\n\t\tfor (InputNode input : inputs) {\r\n\t\t\tinput.getError(instance, nodeValues);\r\n\t\t}\r\n\t\t\r\n\t\tfor (OutputNode output : outputs) {\r\n\t\t\tdouble error = output.getError(instance, nodeValues);\r\n\t\t\tret += error * error;\r\n\t\t}\r\n\t\treturn ret;\r\n\r\n\t}", "public java.lang.String getError() {\n return error;\n }", "public int getError() {\n return error;\n }", "public double stddev()\n {\n return StdStats.stddev(open);\n// double mean = mean();\n// double sumsq = 0;\n// for (int i = 0; i < count; i++)\n// {\n// sumsq = sumsq + (open[i] - mean) * (open[i] - mean);\n// }\n// return Math.sqrt(sumsq / (count - 1));\n }", "public double sd() {\n\t\treturn Math.sqrt(var());\n\t}", "private double snrm( int n, double sx[], int itol ) {\n int isamax;\n double ans;\n\n if (itol <= 3) {\n ans = 0.0;\n for( int i = 0; i < n; i++ )\n ans += sx[i] * sx[i];\n return Math.sqrt(ans);\n } else {\n isamax = 0;\n for( int i = 0; i < n; i++ ) {\n if (Math.abs(sx[i]) > Math.abs(sx[isamax]))\n isamax = i;\n }\n return Math.abs(sx[isamax]);\n }\n }", "public Object getError() {\n return error;\n }", "private double sqrt(double d) {\n\t\t\treturn 0;\n\t\t}", "public float lengthSquared ()\n {\n return (x*x + y*y);\n }", "@Test\n\tpublic void testSquare() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble expResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\texpResult = Math.sqrt(tmpRndVal);\n\t\t\tassertEquals(ac.square(tmpRndVal), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers(); \n\t\t\texpResult = Math.sqrt(tmpRndVal);\n\t\t\tassertEquals(ac.square(tmpRndVal), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\texpResult = Math.sqrt(zero);\n\t\t\tassertEquals(ac.square(zero), expResult, 0);\n\t\t}\n\t\t\n\t}", "public int storrelse();", "public static double exercise04(){\n double belarusSquare = 207.595;\n double ukraineSquare = 603.628;\n\n double relation = belarusSquare / ukraineSquare;\n System.out.println(\"Sootnowenie plowadi dvuh stran \\t \" + relation);\n return belarusSquare;\n }", "public double lengthSquared() {\n\t\treturn x * x + y * y + z * z + w * w;\n\t}", "public int error() {\n return this.error;\n }", "public double calculaErro(double soma) {\n erro = funçãoPropagação.derivada(net)*soma;\n return erro;\n }", "public double squareMagnitude() {\n\t\treturn x*x + y*y + z*z;\n\t}", "public double getS() { return s; }", "private BigInteger squareKaratsuba() {\n int half = (mag.length+1) / 2;\n\n BigInteger xl = getLower(half);\n BigInteger xh = getUpper(half);\n\n BigInteger xhs = xh.square(); // xhs = xh^2\n BigInteger xls = xl.square(); // xls = xl^2\n\n // xh^2 << 64 + (((xl+xh)^2 - (xh^2 + xl^2)) << 32) + xl^2\n return xhs.shiftLeft(half*32).add(xl.add(xh).square().subtract(xhs.add(xls))).shiftLeft(half*32).add(xls);\n }", "public String getError() {\r\n\t\treturn error;\r\n\t}", "public TCodeRep getErr() {\n return err;\n }", "public double computeError(double expected, double predicted);", "public double standarddeviation() {\n return Math.sqrt(variance());\n }", "int getCurrentXOfSS();", "private float parametroEstadistico(int e) {\n\n int[] porError={20,10,9,8,7,6,5};\n float[] z = {(float) 1.28,(float) 1.65,(float) 1.69,(float) 1.75,(float) 1.81,(float) 1.88,(float) 1.96 };\n float valor=0;\n\n for(int i = 0 ; i < porError.length ; i++){\n if(e == porError[i]) {\n valor = z[i];\n }\n }\n return valor;\n }", "public T sqrt(T value);", "public T magnitudeSquared();" ]
[ "0.7024169", "0.6775934", "0.6649694", "0.6486085", "0.640426", "0.6391464", "0.63792413", "0.6340797", "0.6243825", "0.6173155", "0.6160221", "0.61551476", "0.6086425", "0.6086425", "0.6086425", "0.6072277", "0.6060627", "0.60507363", "0.60493404", "0.59919846", "0.59854007", "0.59819627", "0.5969055", "0.59544474", "0.59544474", "0.5937062", "0.593559", "0.592098", "0.5889351", "0.5883801", "0.587328", "0.58590037", "0.5826495", "0.5818317", "0.57934844", "0.576131", "0.575161", "0.57425976", "0.574138", "0.5714123", "0.5673448", "0.56694406", "0.56600666", "0.56415397", "0.5630225", "0.5628484", "0.5605201", "0.5600286", "0.5598294", "0.5585523", "0.5575233", "0.55735946", "0.5568146", "0.5566072", "0.5565424", "0.5564013", "0.5538915", "0.55297214", "0.55233496", "0.5514676", "0.55119085", "0.5510685", "0.5497058", "0.5481686", "0.5480277", "0.5477796", "0.54691863", "0.5468628", "0.54682046", "0.5464951", "0.5458789", "0.54528373", "0.5449051", "0.5437973", "0.5424417", "0.54212105", "0.54169506", "0.5403292", "0.5392605", "0.53882706", "0.5386569", "0.53744936", "0.537358", "0.53654325", "0.5358149", "0.5355429", "0.5346611", "0.5346277", "0.533738", "0.532831", "0.5328151", "0.5326169", "0.53233135", "0.53218603", "0.5314783", "0.5306637", "0.5306041", "0.53054786", "0.5302466", "0.5300526" ]
0.69003797
1
cluster all data objects
private void cluster() { int index = 0; for (DataObject obj : objects) { index = getNearestCenterIndex(obj, centers); clusters.get(index).add(obj); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void clustering() {\n \tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir,\n \t\t\tclArgs.clusteringOpticsXi, clArgs.clusteringOpticsMinPts);\n }", "private void process() {\n\n Cluster current=_clusters.get(0);\n while (!current.isValid()) {\n KMeans kmeans=new KMeans(K,current);\n for (Cluster cluster : kmeans.getResult())\n if (cluster.getId()!=current.getId())\n _clusters.add(cluster);\n for (; current.isValid() && current.getId()+1<_clusters.size(); current=_clusters.get(current.getId()+1));\n }\n }", "public void cluster(ArrayList<double[]> data){\n\t\t// set the dimension to make the cut in\n\t\tint dim = chooseDimension(data);\n\t\tif(dim != -1){\n\t\t\tArrayList<double[]> lhs = new ArrayList<double[]>();\n\t\t\tArrayList<double[]> rhs = new ArrayList<double[]>();\n\t\t\t\n\t\t\t// split the partition into two partitions(lhs and rhs) so the same amount of elements is in each partition\n\t\t\tCollections.sort(data, new Comparator<double[]>() {\n public int compare(double[] values, double[] otherValues) {\n return new Double(values[dim]).compareTo(new Double(otherValues[dim]));\n }});\n\t\t\t\n\t\t\tfor(int i = 0; i < data.size(); i++){\n\t\t\t\tif(i < data.size()/2){\n\t\t\t\t\tlhs.add(data.get(i));\n\t\t\t\t}else{\n\t\t\t\t\trhs.add(data.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t// use algorithm mondrian recursively for the new partitions\n\t\t\tmondrian(rhs);\n\t\t\tmondrian(lhs);\n\t\t}\n\t}", "private void doClustering(double[][] data, String[] names) {\n\t\ttry {\n\t\t\tClusteringAlgorithm algorithm = new DefaultClusteringAlgorithm();\n\t\t\tCluster cluster = algorithm.performClustering(data, names, new AverageLinkageStrategy());\n\t\t\tparentCluster = cluster;\n\t\t\tfillClusteredOrderedDataFromChildren(cluster);\n\t\t}catch(Exception e){\n\t\t\tJOptionPane.showMessageDialog(null, \"Duplicate identifiers found, the feature names should be unique\", \"Clustering error\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t}", "public void Synchronize(){\n\t\tfor(int i=0; i<centers.size(); i++){\n\t\t\tHashSet<Integer> datasets = centers.get(i);\n\t\t\tfor(int j=0; j<centers.size(); j++){\n\t\t\t\tif(j!=i){\n\t\t\t\t\tHashSet<Integer> other = centers.get(j);\n\t\t\t\t\tfor (Iterator iterator = other.iterator(); iterator\n\t\t\t\t\t\t\t.hasNext();) {\n\t\t\t\t\t\tInteger data = (Integer) iterator.next();\n\t\t\t\t\t\tif(!datasets.contains(data)){\n\t\t\t\t\t\t\tSystem.out.println(data + \" \" + (j+1) + \" \" + (i+1));\n\t\t\t\t\t\t\tdatasets.add(data);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"done\");\n\t}", "public List<Object> invokeMapReduce(Invoker invoker) {\n List<Pair<Pair<Short, Integer>, String>> list = clientConnections.getMapClientFromAll();\n List<KeyCluster> keyClusterList = new ArrayList<KeyCluster>(list.size());\n for ( Pair<Pair<Short, Integer>, String> each : list) {\n //key is represented by node 1 separate by , total nodes example 1,3\n //will passed by key to store proc to determine the how partition data node\n KeyCluster keyCluster = new KeyCluster(each.getFirst().getFirst(), Key.createKey(each.getSecond()),\n each.getFirst().getSecond() );\n keyClusterList.add( keyCluster);\n }\n //add Key must be true, key carry information about how to split cluster\n return executeStoreProc(invoker, keyClusterList, true);\n }", "public void createClusters() {\n\t\t/*\n\t\t * double simAvg = documentDao.getSimilarity(avg); double simMax =\n\t\t * documentDao.getSimilarity(max); double simMin =\n\t\t * documentDao.getSimilarity(min);\n\t\t */\n\n\t\t// initClusters();\n\n\t\tList<Document> docList = documentDao.getDocumentListOrderBySimilarity();\n\t\tList<Cluster> clusterList = clusterDao.getClusterList();\n\n\t\tint i = 0;\n\t\tCluster cluster = clusterList.get(i);\n\t\tfor (Document document : docList) {\n\t\t\twhile (document.getSimilarity() < cluster.getLow()) {\n\t\t\t\tcluster = clusterList.get(++i);\n\t\t\t}\n\t\t\tif (document.getSimilarity() < cluster.getHigh() && document.getSimilarity() >= cluster.getLow()) {\n\t\t\t\tdocument.setClusterId(cluster.getId());\n\t\t\t\tdocumentDao.insertDocument(document);\n\t\t\t}\n\t\t}\n\n\t}", "public void balanceCentroids() {\n for(Cluster cluster : clusters)\n cluster.recalculateCentroid();\n }", "private DataForSingleCluster[] clusterInstances(Instances i1, Instances i2) {\n DataForSingleCluster[] toReturn =\n new DataForSingleCluster[OCCTFineGrainedJaccardSplitModel.NUM_OF_CLUSTERS];\n // Make a single instances object in order to run the clustering algorithm with it\n Instances joinedInstances = this.joinInstances(i1, i2);\n // TODO: Maybe allow various clustering algorithms\n SimpleKMeans kMeansClusterer = new SimpleKMeans();\n try {\n // Build the clusterer using the joined instances\n kMeansClusterer.setNumClusters(OCCTFineGrainedJaccardSplitModel.NUM_OF_CLUSTERS);\n kMeansClusterer.buildClusterer(joinedInstances);\n // Initialize the array to return\n for (int i = 0; i < toReturn.length; ++i) {\n toReturn[i] = new DataForSingleCluster(i);\n }\n // Now, go over all the instances and separate them according their clustering result\n this.clusterSingleInstances(i1, true, kMeansClusterer, toReturn);\n this.clusterSingleInstances(i2, false, kMeansClusterer, toReturn);\n } catch (Exception e) {\n // TODO: What should we do in this case?\n e.printStackTrace();\n System.exit(-1);\n }\n return toReturn;\n }", "public static void main(String[] args)\r\n\t{\n\t\tList<Location> locations = new ArrayList<Location>();\r\n\t\tlocations.add(new Location(150, 981));\r\n\t\tlocations.add(new Location(136, 0));\r\n\t\tlocations.add(new Location(158, 88));\r\n\t\tlocations.add(new Location(330, 60));\r\n\t\tlocations.add(new Location(0, 1001));\r\n\t\tlocations.add(new Location(150, 0));\r\n\t\tlocations.add(new Location(0, 0));\r\n\t\tlocations.add(new Location(0, 0));\r\n\t\tlocations.add(new Location(0, 0));\r\n\t\tlocations.add(new Location(446, 88));\r\n\t\tlocations.add(new Location(562, 88));\r\n\t\tlocations.add(new Location(256, 88));\r\n\t\tlocations.add(new Location(678, 88));\r\n\t\tlocations.add(new Location(794, 88));\r\n\t\tlocations.add(new Location(0, 1028));\r\n\t\tlocations.add(new Location(136, 0));\r\n\t\tlocations.add(new Location(150, 0));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 1028));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(136, 103));\r\n\t\tlocations.add(new Location(150, 0));\r\n\t\tList<LocationWrapper> clusterInput = new ArrayList<LocationWrapper>(locations.size());\r\n\t\tfor (Location location : locations)\r\n\t\t\tclusterInput.add(new LocationWrapper(location));\r\n\r\n\t\t// initialize a new clustering algorithm.\r\n\t\t// we use KMeans++ with 10 clusters and 10000 iterations maximum.\r\n\t\t// we did not specify a distance measure; the default (euclidean\r\n\t\t// distance) is used.\r\n\t\t// org.apache.commons.math3.ml.clustering.FuzzyKMeansClusterer<LocationWrapper>\r\n\t\t// clusterer = new\r\n\t\t// org.apache.commons.math3.ml.clustering.FuzzyKMeansClusterer<LocationWrapper>(2,\r\n\t\t// 2);\r\n\t\t// KMeansPlusPlusClusterer<LocationWrapper> clusterer = new\r\n\t\t// KMeansPlusPlusClusterer<LocationWrapper>(2, 10);\r\n\r\n\t\tDBSCANClusterer<LocationWrapper> clusterer = new DBSCANClusterer<LocationWrapper>(1200.0, 5);\r\n\t\tList<Cluster<LocationWrapper>> clusterResults = clusterer.cluster(clusterInput);\r\n\t\t// List<CentroidCluster<LocationWrapper>> clusterResults =\r\n\t\t// clusterer.cluster(clusterInput);\r\n\r\n\t\t// output the clusters\r\n\t\tSystem.out.println(\"clusterResults.size() = \" + clusterResults.size());\r\n\t\tfor (int i = 0; i < clusterResults.size(); i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Cluster \" + i);\r\n\t\t\tfor (LocationWrapper locationWrapper : clusterResults.get(i).getPoints())\r\n\t\t\t\tSystem.out.println(locationWrapper.getLocation());\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws Exception{\n\t\t\n\t\tSystem.out.println(\"Clustering started\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tArrayList<SyntacticCluster> clusters = (ArrayList<SyntacticCluster>) MinerUtil\n\t\t\t\t.deserialize(\"all_cluster\", false);\n\t\t//ArrayList<SyntacticCluster> allList = allCluster.doClustering();\n\n\t\tArrayList<SemanticCluster> semanticClusterList = new SemanticClusteringer().doClustering(clusters);\n\t\tfor (SemanticCluster semC : semanticClusterList) {\n\t\t\tfor (ICluster clus : semC.getUnits()) {\n\t\t\t\tSyntacticCluster synC = (SyntacticCluster) clus;\n\t\t\t\tsynC.doInnerClustering();\n\t\t\t\t// System.out.print(\"\");\n\t\t\t}\n\t\t\t// System.out.print(\"\");\n\t\t}\n\t\tSystem.out.println(\"Clustering finished\");\n\t\tLogger.log2(semanticClusterList, \"syntactic_semantic_clustering\");\n\t\t\n\t\tCloneSets sets = semanticClusterList.get(0).getUnits().get(0).getCloneSets().get(0).getCloneSets();\n\t\t\n\t\tMinerUtil.serialize(semanticClusterList, \"semantic_clusters\", false);\n\t\tMinerUtil.serialize(sets, \"sets\", false);\n\t\t//ConsoleFormatter.displayClusters(clustersByTopic);\n\t}", "public Clusters()\r\n\t{\r\n\t\tcluster = new boolean[MAX_CLUSTERS];\r\n\t}", "public void addCluster()\r\n\t{\r\n\t\tcluster[nextAvailableCluster()] = true;\r\n\t}", "public void initClusters(){\n\t\tUnitRow unitRow = data.getUnitRow();\n\t\tUnit currentUnit = null;\n\t\tLeaf leaf = null;\n\n\t\tfor (int i = 0; i < unitRow.getLength(); i++){\n\t\t\tcurrentUnit = unitRow.getUnit(i);\n\t\t\tleaf = new Leaf(currentUnit);\n\t\t\tclusters.add(leaf);\n\t\t}\n\t\tSystem.out.println(\"Clusters initialized.\");\n\t}", "private void process() {\n\tint i = 0;\n\tIOUtils.log(\"In process\");\n\tfor (Map.Entry<Integer, double[]> entry : vecSpaceMap.entrySet()) {\n\t i++;\n\t if (i % 1000 == 0)\n\t\tIOUtils.log(this.getName() + \" : \" + i + \" : \" + entry.getKey()\n\t\t\t+ \" : \" + this.getId());\n\t double[] cent = null;\n\t double sim = 0;\n\t for (double[] c : clusters.keySet()) {\n\t\t// IOUtils.log(\"before\" + c);\n\t\tdouble csim = cosSim(entry.getValue(), c);\n\t\tif (csim > sim) {\n\t\t sim = csim;\n\t\t cent = c;\n\t\t}\n\t }\n\t if (cent != null && entry.getKey() != null) {\n\t\ttry {\n\t\t clusters.get(cent).add(entry.getKey());\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n\t }\n\t}\n }", "private void baseAlgorithm() {\n\t\tlong start = System.nanoTime();\n\t\tinitCentroids();\n\t\tint counter = 0;\n\t\twhile (counter < 1000\n\t\t\t\t&& (lastCentroids == null || !SeriesComparator.equalClustering(lastCentroids, centroids))) {\n\t\t\tresetClusters();\n\t\t\tassignPoints();\n\t\t\tlastCentroids = new ArrayList<Point2D>(centroids);\n\t\t\tcalculateNewMean();\n\t\t\tbasicIterations++;\n\t\t\tcounter++;\n\t\t}\n\t\tconvertToClustering();\n\t\tbasicRuntime = System.nanoTime() - start;\n\t}", "public static void main(String args[]){\n ClientConfig remoteConfig = getCluster2();\n\n remoteClient = HazelcastClient.newHazelcastClient(remoteConfig);\n\n Map usCarMap = remoteClient.getMap(\"cars\");\n\n System.out.println(usCarMap.size());\n\n //ClientConfig localConfig = getEUClientConfig();\n Config localConfig = getHCCluster1();\n\n localClient = Hazelcast.newHazelcastInstance(localConfig);\n localClient.getMap(\"cars\");\n\n ClusterReconTask clusterReconTask = new ClusterReconTask(localClient, localClusterName, remoteClient, remoteClusterName);\n\n ClusterReconTask clusterReconTask1 = clusterReconTask;\n\n ClusterReconResults reconResults = null;\n\n try {\n reconResults = clusterReconTask1.call();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n System.out.println(reconResults.getMissingKeysByMap().size());\n\n System.out.println(reconResults.getMissingKeysByMap().toString());\n\n // Run Repair Task if needed\n if (reconResults.getMissingKeysByMap().size() > 0){\n ClusterRepairTask clusterRepairTask = new ClusterRepairTask(localClient, localClusterName, remoteClient, remoteClusterName, reconResults);\n try {\n clusterRepairTask.call();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n\n }", "private void postProcess() {\n for (ClusterData cd : clusters) {\n for (String serverName : cd.serverRefs) {\n if (instanceName.equals(serverName)) {\n cluster = cd;\n return;\n }\n }\n }\n // if we get here that means the instance either \n // does not exist or it is stand-alone\n cluster = new ClusterData();\n cluster.configRef = serverConfigRef;\n cluster.serverRefs.add(instanceName);\n }", "private void addItemsToClusterManager() {\n if (mClusterManager != null) {\n mClusterManager.clearItems();\n for (Restaurant restaurant : restaurantProvider.getRestaurants()) {\n mClusterManager.addItem(new RestaurantMapItem(restaurant));\n }\n mClusterManager.cluster();\n }\n }", "private void run()\r\n {\n List<Cluster> clusters = createClusters();\r\n\r\n //compute MAX_WIDTH and MAX_HEIGHT\r\n computeCloudDimensions(clusters);\r\n\r\n double scale = 1.05;\r\n //try to layout words\r\n while (!doPacking(clusters))\r\n {\r\n //increase cloud dimensions\r\n MAX_WIDTH *= scale;\r\n MAX_HEIGHT *= scale;\r\n }\r\n\r\n doPacking(clusters);\r\n }", "void combine(int mode) {\n if (mode == 0) {\n\n if (localHeap.peekValue().doubleValue() != globalHeap.peekValue().doubleValue()) {\n System.out.println(\"shit!\");\n }\n combineCluster(localHeap.peek(), mode);\n\n\n\n } else {\n if (localHeap.size() > 0) {\n combineCluster(localHeap.peek(), mode);\n }\n }\n\n }", "@Parameters(name = \"{index}: clustered={0}\")\n\tpublic static Collection<Object[]> data() {\n\t\treturn Arrays.asList(new Object[][] {\n\t\t\t{ true },\n\t\t\t{ false }\n\t\t});\n\t}", "ClusterSet() {\n }", "private void clusterSingleInstances(Instances instances, boolean firstOrSecondTable,\n Clusterer clusterer, DataForSingleCluster[] toUpdate)\n throws Exception {\n Enumeration instancesEnum = instances.enumerateInstances();\n while (instancesEnum.hasMoreElements()) {\n Instance currentInstance = (Instance)instancesEnum.nextElement();\n int clusterID = clusterer.clusterInstance(currentInstance);\n DataForSingleCluster currentDataForSingleCluster = toUpdate[clusterID];\n if (firstOrSecondTable) {\n currentDataForSingleCluster.addInstanceToD1(currentInstance);\n } else {\n currentDataForSingleCluster.addInstanceToD2(currentInstance);\n }\n }\n }", "public void objectAvailable (DObject object)\n {\n _clobj = (ClusterObject)object;\n _clusters.put(_clobj.getOid(), this);\n \n // let any mapped users know about our cluster\n Iterator iter = values().iterator();\n while (iter.hasNext()) {\n ClusteredBodyObject body = (ClusteredBodyObject)iter.next();\n body.setClusterOid(_clobj.getOid());\n _clobj.addToOccupants(((BodyObject)body).getOid());\n }\n \n // configure our cluster record and publish it\n _cluster.clusterOid = _clobj.getOid();\n _ssobj.addToClusters(_cluster);\n \n // if we didn't manage to add our creating user when we first\n // started up, there's no point in our sticking around\n if (size() == 0) {\n destroy();\n }\n }", "public void init() {\n int total_home = 0;\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n if (_data.anyVec().chunkKey(i).home()) {\n total_home++;\n }\n }\n\n // Now generate the mapping\n _chunk_row_mapping = new long[total_home];\n int off=0;\n int cidx=0;\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n if (_data.anyVec().chunkKey(i).home()) {\n _chunk_row_mapping[cidx++] = _data.anyVec().chunk2StartElem(i);\n }\n }\n\n // Initialize number of rows per node\n _rowsPerNode = new int[H2O.CLOUD.size()];\n long chunksCount = _data.anyVec().nChunks();\n for(int ci=0; ci<chunksCount; ci++) {\n Key cKey = _data.anyVec().chunkKey(ci);\n _rowsPerNode[cKey.home_node().index()] += _data.anyVec().chunkLen(ci);\n }\n\n _remoteChunksKeys = new Key[H2O.CLOUD.size()][];\n int[] _remoteChunksCounter = new int[H2O.CLOUD.size()];\n\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n _remoteChunksCounter[_data.anyVec().chunkKey(i).home(H2O.CLOUD)]++;\n }\n\n for (int i = 0; i < H2O.CLOUD.size(); ++i) _remoteChunksKeys[i] = new Key[_remoteChunksCounter[i]];\n\n int[] cnter = new int[H2O.CLOUD.size()];\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n int node_idx = _data.anyVec().chunkKey(i).home(H2O.CLOUD);\n _remoteChunksKeys[node_idx][cnter[node_idx]++] = _data.anyVec().chunkKey(i);\n }\n }", "private void fillClusteredOrderedDataFromChildren(Cluster cluster) {\n\t\tif(cluster.isLeaf()) {\n\t\t\tclusteredDataNames.add(cluster.getName());\n\t\t}\n\t\tfor(Cluster child : cluster.getChildren()) {\n\t\t\tfillClusteredOrderedDataFromChildren(child);\n\t\t}\n\t}", "public void merge(int lX, int lY, int lZ, int rX, int rY, int rZ) {\n for (int i = lX; i < rX; i++) {\n for (int j = lY; j < rY; j++) {\n for (int k = lZ; k < rZ; k++) {\n int label1 = (int) labelledVolume.value(i, j, k);\n for (int t1 = i - 1; t1 <= i + 1 && t1 >= 0 && t1 < x; t1++) {\n for (int t2 = j - 1; t2 <= j + 1 && t2 >= 0 && t2 < y; t2++) {\n for (int t3 = k - 1; t3 <= k + 1 && t3 >= 0 && t3 < z; t3++) {\n if (label1 > 0 && (int) labelledVolume.value(t1, t2, t3) != label1) {\n labelCluster(label1, t1 + (t2 * x) + (t3 * x * y));\n }\n }\n }\n }\n }\n }\n }\n }", "@Override\n \tpublic Collection<Collection<Integer>> call() throws Exception {\n \t\tEdgeWeighter<HomologyEdge> weighter = new EdgeWeighter<HomologyEdge>() {\n \t\t\t@Override\n \t\t\tpublic double getWeight(HomologyEdge e) {\n \t\t\t\treturn e.getWeight();\n \t\t\t}\n \t\t};\n \t\tProbabilisticDistanceClusterer<Integer, HomologyEdge> alg = new ProbabilisticDistanceClusterer<Integer, HomologyEdge>(\n \t\t\t\tweighter, xi);\n \t\tSet<Set<Integer>> ccs = alg.transform(graph.getHomology());\n \n \t\t// now map each cluster to a root for that cluster\n \t\t// the choice of root is arbitrary and just for hashing\n \t\tMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n \t\tfor (Set<Integer> cc : ccs) {\n \t\t\tint v0 = -1;\n \t\t\tint i = 0;\n \t\t\tfor (int v : cc) {\n \t\t\t\tif (i == 0) v0 = v;\n \t\t\t\tmap.put(v, v0);\n \t\t\t\ti++;\n \t\t\t}\n \t\t}\n \n \t\t// find the cliques\n \t\tBronKerboschCliqueFinder<Integer, HomologyEdge> finder = new BronKerboschCliqueFinder<>();\n \t\tCollection<Set<Integer>> cliques = finder.transform(graph.getHomology());\n \n \t\t// group the cliques by sets of interactions\n \t\tNavigableMap<String, Collection<Integer>> cliqueGroups = new TreeMap<>();\n \t\tfor (Set<Integer> clique : cliques) {\n \t\t\tfor (int v : clique) {\n \t\t\t\tCollection<Integer> neighbors = graph.getInteractionNeighbors(v);\n \t\t\t\tString hash = hashVertexInteractions(neighbors, map);\n \t\t\t\tCollection<Integer> group = cliqueGroups.get(hash);\n \t\t\t\tif (group == null) group = new TreeSet<>();\n \t\t\t\tgroup.add(v);\n \t\t\t}\n \t\t}\n \n \t\t// now we just want a set to return\n \t\tSet<Collection<Integer>> set = new TreeSet<>();\n \t\tset.addAll(cliqueGroups.values());\n \n \t\treturn set;\n \t}", "private void runSomClustering(int linkage, int distanceMeasure, final boolean clusterColumns) {\r\n DivaClientService.computeSomClustering(linkage, distanceMeasure, clusterColumns,\r\n new AsyncCallback<SomClusteringResult>() {\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n\r\n Selection_Manager.connError();\r\n SelectionManager.Busy_Task(false, true);\r\n }\r\n\r\n @Override\r\n public void onSuccess(SomClusteringResult result) {\r\n hierarchicalClustering = new SomClustComponent(result, Selection_Manager, DivaClientService, true, rightPanelWidth, leftPanelHeight);\r\n RootPanel.get(\"SomClusteringResults\").clear();\r\n RootPanel.get(\"SomClusteringResults\").add(hierarchicalClustering.getSomclusteringLayout());\r\n Timer t = new Timer() {\r\n @Override\r\n public void run() {\r\n hierarchicalClustering.selectRootNode();\r\n }\r\n };\r\n// Schedule the timer to run once in 0.5 seconds.\r\n// if (result.getRowNames().length < 5000) {\r\n//// t.schedule(500);\r\n// SelectionManager.Busy_Task(false, true);\r\n// } else {\r\n SelectionManager.Busy_Task(false, true);\r\n// }\r\n init = false;\r\n }\r\n });\r\n\r\n }", "public void decideCluster(){\n\tdouble shortest = 1000000;\n\tfor(int i = 0; i < clusterDist.length; i++)\n\t{\n\t\tif(clusterDist[i] < shortest)\n\t\t{\tshortest = clusterDist[i];\n\t\t\tthis.clusterid = i;\n\t\t}\n\t\t\n\t}\n}", "public Cluster() {\n id = Long.MAX_VALUE;\n links = new HashMap<Long, Set<Link>>();\n }", "public void compareWithinClusters() {\n\t\tList<Cluster> clusterList = clusterDao.getClusterList();\n\n\t\tfor (Cluster cluster : clusterList) {\n\t\t\tList<Document> docList = documentDao.getDocListByClusterId(cluster.getId());\n\t\t\tint size = docList.size();\n\t\t\t\n\t\t\tdouble[][] matrix = new double[size][size];\n\t\t\t\n\t\t\tfor(int i =0; i<size; i++){\n\t\t\t\tmatrix[i][i] = 1;\n\t\t\t\tmatrix[i][i] = 1;\n\t\t\t}\n\t\t\t\n\t\t\tif (size > 1) {\n\t\t\t\t//List<Document> docList2 = docList1;\n\t\t\t\tfor (int i=0; i<size; i++){\n\t\t\t\t\tfor(int j=i+1; j<size; j++){\n\t\t\t\t\t\t//match docs docList.get(i) & docList.get(j)\n\t\t\t\t\t\tMap<String, Double> map = datumboxCaller.compareDocs(docList.get(i).getDocName(), docList.get(j).getDocName());\n\t\t\t\t\t\tmatrix[i][j] = map.get(\"Oliver\");\n\t\t\t\t\t\tmatrix[j][i] = map.get(\"Shingle\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//persist both metrics in a file \n\t\t\tpersist(matrix, cluster, docList);\n\t\t\t\n\t\t\t//printing the matrix\n\t\t\tSystem.out.println(\"\\nDocument Similarity Matrix for Cluster \"+cluster.getId());\n\t\t\tSystem.out.println(\"\\nOliver Metric\");\n\t\t\tSystem.out.print(\"id\");\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t\tSystem.out.print(\"\\t\"+docList.get(i).getId());\n\t\t\t\n\t\t\tfor(int i=0; i<size; i++){\n\t\t\t\tSystem.out.println(docList.get(i).getId());\n\t\t\t\tfor(int j=0; j<size; j++){\n\t\t\t\t\tSystem.out.print(\"\\t\");\n\t\t\t\t\tif(j>=i)\n\t\t\t\t\t\tSystem.out.print(matrix[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nShingle Metric\");\n\t\t\tSystem.out.print(\"id\");\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t\tSystem.out.print(\"\\t\"+docList.get(i).getId());\n\t\t\t\n\t\t\tfor(int i=0; i<size; i++){\n\t\t\t\tSystem.out.print(\"\\n\"+docList.get(i).getId());\n\t\t\t\tfor(int j=0; j<size; j++){\n\t\t\t\t\tSystem.out.print(\"\\t\");\n\t\t\t\t\tif(j>=i)\n\t\t\t\t\t\tSystem.out.print(matrix[j][i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//print ends\n\t\t\t\n\t\t}\n\n\t}", "public Cluster(Cluster one, Cluster two) {\n this();\n // merge locations by just averaging\n// location.x=(one.location.x+two.location.x)/2;\n// location.y=(one.location.y+two.location.y)/2;\n\n Cluster older = one.firstTimestamp < two.firstTimestamp ? one : two;\n// Cluster older=one.numEvents>two.numEvents? one:two;\n\n // merge locations by average weighted by number of events supporting cluster\n int sumEvents = one.numEvents + two.numEvents;\n location.x = (one.location.x * one.numEvents + two.location.x * two.numEvents) / (sumEvents);\n location.y = (one.location.y * one.numEvents + two.location.y * two.numEvents) / (sumEvents);\n angle = older.angle;\n cosAngle = older.cosAngle;\n sinAngle = older.sinAngle;\n averageEventDistance = (one.averageEventDistance * one.numEvents + two.averageEventDistance * two.numEvents) / sumEvents;\n averageEventXDistance = (one.averageEventXDistance * one.numEvents + two.averageEventXDistance * two.numEvents) / sumEvents;\n averageEventYDistance = (one.averageEventYDistance * one.numEvents + two.averageEventYDistance * two.numEvents) / sumEvents;\n \n lastTimestamp = one.lastTimestamp > two.lastTimestamp ? one.lastTimestamp : two.lastTimestamp;\n numEvents = sumEvents;\n firstTimestamp = older.firstTimestamp; // make lifetime the oldest src cluster\n path = older.path;\n birthLocation = older.birthLocation;\n velocityFitter = older.velocityFitter;\n velocityPPT.x = older.velocityPPT.x;\n velocityPPT.y = older.velocityPPT.y;\n velocityPPS.x = older.velocityPPS.x;\n velocityPPS.y = older.velocityPPS.y;\n velocityValid = older.velocityValid;\n// vxFilter=older.vxFilter;\n// vyFilter=older.vyFilter;\n avgEventRate = older.avgEventRate;\n avgISI = older.avgISI;\n hasObtainedSupport = older.hasObtainedSupport;\n setAspectRatio(older.getAspectRatio());\n\n// Color c1=one.getColor(), c2=two.getColor();\n setColor(older.getColor());\n// System.out.println(\"merged \"+one+\" with \"+two);\n //the radius should increase\n// setRadius((one.getRadius()+two.getRadius())/2);\n if (growMergedSizeEnabled) {\n float R = (one.getRadius() + two.getRadius()) / 2;\n setRadius(R + getMixingFactor() * R);\n } else {\n setRadius(older.getRadius());\n }\n\n }", "private void setupClusterSource() {\n\n layers = new int[][]{new int[]{40, Color.RED}, new int[]{20, Color.BLUE}, new int[]{0, Color.GREEN}};\n\n for (int i = 0; i < layers.length; i++) {\n //Add cluster circles\n clusterLayer = new CircleLayer( \"cluster-\" + i, geojsonSourceId );\n clusterLayer.setProperties( circleColor( layers[i][1] ), circleRadius( 18f ) );\n pointCount=toNumber( get( \"point_count\" ) );\n // Add a filter to the cluster layer that hides the circles based on \"point_count\"\n clusterLayer.setFilter( i==0\n ? all( has( \"point_count\" ),\n gte( pointCount,literal(layers[i][0]) )\n ) : all(has(\"point_count\"),\n gt(pointCount,literal(layers[i][0])),\n lt(pointCount, literal(layers[i-1][0]))\n )\n );\n map.addLayer (clusterLayer);\n\n }\n //Add the count labels\n count = new SymbolLayer( \"count\", geojsonSourceId );\n count.setProperties( textField(Expression.toString( get( \"point_count\" ) )),\n textSize( 12f ),\n textColor( Color.WHITE ),\n textIgnorePlacement( true ),\n textAllowOverlap( false ));\n map.addLayer( count);\n\n }", "public SME_Cluster[] getClusters();", "public Cluster[] getClusters () {\n if (clusters != null) {\n return clusters;\n }\n \n try {\n List sort = org.openide.util.Utilities.topologicalSort (allPages.keySet (), deps);\n \n // ok, no cycles in between pages\n clusters = new Cluster[sort.size ()];\n for (int i = 0; i < clusters.length; i++) {\n clusters[i] = new Cluster (Collections.singleton (findPage ((String)sort.get (i))));\n }\n } catch (org.openide.util.TopologicalSortException ex) {\n // ok, there are cycles\n \n Set[] sets = ex.topologicalSets();\n clusters = new Cluster[sets.length];\n for (int i = 0; i < clusters.length; i++) {\n Set s = new TreeSet ();\n Iterator it = sets[i].iterator();\n while (it.hasNext ()) {\n String name = (String)it.next ();\n Page p = findPage (name);\n if (p != null) {\n s.add (p);\n }\n }\n clusters[i] = new Cluster (s);\n }\n }\n \n // references <Page -> Cluster>\n refs = new HashMap ();\n for (int i = 0; i < clusters.length; i++) {\n java.util.Iterator it = clusters[i].getPages ().iterator ();\n while (it.hasNext()) {\n Page p = (Page)it.next ();\n refs.put (p, clusters[i]);\n }\n }\n \n for (int i = 0; i < clusters.length; i++) {\n Set references = new HashSet ();\n java.util.Iterator it = clusters[i].getPages ().iterator ();\n while (it.hasNext()) {\n Page contained = (Page)it.next ();\n Collection c = (Collection)deps.get (contained.getFileName());\n if (c != null) {\n Iterator d = c.iterator();\n while (d.hasNext()) {\n String pageName = (String)d.next ();\n references.add (refs.get (findPage (pageName)));\n }\n }\n }\n // prevent self references\n references.remove (clusters[i]);\n clusters[i].references = (Cluster[])references.toArray (new Cluster[0]);\n }\n \n return clusters;\n }", "public Cluster() {\n setRadius(defaultClusterRadius);\n float hue = random.nextFloat();\n Color c = Color.getHSBColor(hue, 1f, 1f);\n setColor(c);\n setClusterNumber(clusterCounter++);\n setAspectRatio(EinsteinClusterTracker.this.getAspectRatio());\n// vxFilter.setTauMs(velocityTauMs);\n// vyFilter.setTauMs(velocityTauMs);\n }", "public void computeResShare(Cluster cluster) {\n }", "private void gather(final Session s) throws Exception {\n\t\t//final MeasureHandler mHandler = Appctx.getBean(\"measurehandler\");\n\t\t//final List<CacheClusterBean> cache = s.createQuery(\n\t\t//\t\t\"from CacheClusterBean\").list();\n\t\t//for (final CacheClusterBean cluster : cache) {\n\t\t\t// if (!cluster.getLbStatus().endsWith(\"ready\")) {\n\t\t\t// logger.debug(\"Ignoring AC \" + cluster.getUserId() + \" LB \"\n\t\t\t// + cluster.getLoadBalancerName() + \" Status \"\n\t\t\t// + cluster.getLbStatus());\n\t\t\t// continue;\n\t\t\t// }\n\t\t\t// final long acid = cluster.getAccount().getId();\n\t\t\t// logger.debug(\"Gather AC \" + acid + \" Cluster \" +\n\t\t\t// cluster.getName());\n\t\t\t// final AccountBean acb = cluster.getAccount();\n\t\t\t// final AccountType ac = AccountUtil.toAccount(acb);\n\t\t\t//\n\t\t\t// final DimensionBean dim = CWUtil.getDimensionBean(s, acb.getId(),\n\t\t\t// \"CacheClusterId\", cluster.getName(), true);\n\t\t\t// final Set<DimensionBean> dims = new HashSet<DimensionBean>();\n\t\t\t// dims.add(dim);\n\t\t\t// BinLogDiskUsage Bytes\n\t\t\t// CPUUtilization Percent\n\t\t\t// DatabaseConnections Count\n\t\t\t// FreeableMemory Bytes\n\t\t\t// FreeStorageSpace Bytes\n\t\t\t// ReplicaLag Seconds\n\t\t\t// SwapUsage Bytes\n\t\t\t// ReadIOPS Count/Second\n\t\t\t// WriteIOPS Count/Second\n\t\t\t// ReadLatency Seconds\n\t\t\t// WriteLatency Seconds\n\t\t\t// ReadThroughput Bytes/Second\n\t\t\t// WriteThroughput Bytes/Second\n\n\t\t//}\n\t}", "private void combineClusters(int index1,int index2)\n\t{\n\t\tVector <Integer> cluster1 = (Vector<Integer>)clusters.elementAt(index1);\n\t\tVector <Integer> cluster2 = (Vector<Integer>)clusters.elementAt(index2);\n\t\tVector <Integer> cluster3 = new Vector<Integer>(cluster1);\n\t\tcluster3.addAll(cluster2);\n\t\tclusters.add(cluster3);\n\t\tclusters.removeElementAt(index1);\n\t\t\n\t\t//take into account shift in indices after removal of first element\n\t\tif(index2 < index1)\n\t\t\tclusters.removeElementAt(index2);\n\t\telse\n\t\t\tclusters.removeElementAt(index2-1);\n\t\t\n\t\n\t}", "private void prepareCluster(GoogleMap googleMap){\n Log.d(\"CLUSTER\",\"IN PREPARAZIONE\");\n mClusterManager = new CustomClusterManager<>(this, googleMap);\n googleMap.setOnCameraIdleListener(mClusterManager);\n googleMap.setOnMarkerClickListener(mClusterManager);\n googleMap.setOnInfoWindowClickListener(mClusterManager);\n mClusterManager.setMapMarkerList(mapMarkers);\n mClusterManager.cluster();\n }", "public ArrayList<ArrayList<double[]>> getClusterSet(){\n\t\treturn clusterSet;\n\t}", "public void processFoundCluster(NodeSet cluster) {\n\t}", "@Test\r\n public void testMerge() throws Exception {\r\n// List<ISpectrum> spectra = ClusteringTestUtilities.readConsensusSpectralItems();\r\n//\r\n// List<ICluster> list = ClusterUtilities.asClusters(spectra);\r\n// IClusteringEngine engine = new ClusteringEngineFactory().getClusteringEngine();\r\n// for (ICluster sc : list) {\r\n// engine.addClusters(sc);\r\n// }\r\n// for (int i = 0; i < Defaults.getNumberReclusteringPasses(); i++) {\r\n// if (!engine.processClusters())\r\n// break;\r\n// }\r\n// // we have solved for these\r\n// List<ICluster> found = (List<ICluster>) engine.getClusters();\r\n//\r\n//\r\n// final ISimilarityChecker similarityChecker = new FrankEtAlDotProduct(Defaults.getFragmentIonTolerance(), Defaults.getNumberComparedPeaks());\r\n// final List<ICluster> newClusters = ClusterUtilities.mergeClusters(found, similarityChecker, 1);\r\n//\r\n// // because we just did this in the engine we expect little further merging\r\n// Assert.assertEquals(newClusters.size(), found.size());\r\n\r\n\r\n }", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "public void doInitialClustering(AddressIF me, Matrix_4_HSH tmp) {\n\t\t\n\t}", "public static void cluster(String[] args, boolean converged)\n\t\t\tthrows IOException, InterruptedException, ClassNotFoundException {\n\t\tSystem.out.println(\"Using mapper to output clustering information...\");\n\t\tConfiguration conf = new Configuration();\n\t\tString[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();\n\t\tconf.set(\"old.center.path\", otherArgs[3]);\n\t\tconf.set(\"K\", otherArgs[5]);\n\t\tconf.set(\"include.center.in.mapper\", \"1\");\n\t\tconf.set(\"converged\", converged ? \"1\" : \"0\");\n\t\tJob job = new Job(conf, \"KMeansCluster\");\n\t\tjob.setJarByClass(KMeansDriver.class);\n\n\t\tPath in = new Path(otherArgs[1]);\n\t\tPath out = new Path(otherArgs[2] + \"/\" + \"clustering_info\");\n\t\tFileInputFormat.addInputPath(job, in);\n\t\tFileSystem fs = FileSystem.get(conf);\n\t\tif (fs.exists(out)) {\n\t\t\tfs.delete(out, true);\n\t\t}\n\t\tFileOutputFormat.setOutputPath(job, out);\n\n\t\t//No reducer needed here.\n\t\tjob.setMapperClass(KMeansMapper.class);\n\t\tjob.setOutputKeyClass(IntWritable.class);\n\t\tjob.setOutputValueClass(Text.class);\n\t\tjob.setNumReduceTasks(0);\n\t\tjob.waitForCompletion(true);\n\t}", "public Clustering<V> compute() {\n if (graph.vertexSet().isEmpty()) {\n return new ClusteringImpl<>(Collections.emptyList());\n }\n\n matrix = Matrices.buildAdjacencyMatrix(graph, mapping, true);\n\n normalize();\n\n for (var i = 0; i < iterations; i++) {\n final var previous = matrix.copy();\n\n expand();\n inflate();\n normalize();\n\n if (matrix.equals(previous)) break;\n }\n\n // matrix can contain identical clusters of elements which are less than one\n final var clusters = new HashSet<Set<V>>(matrix.getRowDimension());\n\n for (var i = 0; i < matrix.getRowDimension(); i++) {\n final var cluster = new HashSet<V>();\n\n for (var j = 0; j < matrix.getColumnDimension(); j++) {\n if (matrix.getEntry(i, j) > 0) cluster.add(mapping.getIndexList().get(j));\n }\n\n if (!cluster.isEmpty()) clusters.add(cluster);\n }\n\n return new ClusteringImpl<>(new ArrayList<>(clusters));\n }", "public static void main(String[] args) throws IOException, ClassNotFoundException, InterruptedException\n\t{\n\t\tCubeProperties cubePropertyObj = CubeProperties.readCubeProperties();\n\t\t\n\t\t// Map of dbColumn name and the name appearing of that column in Cube\n\t\tMap <String, String> dimensionMap = cubePropertyObj.getDimensionMap();\n\t\tString measure = cubePropertyObj.getMeasure();\n\t\tString fact = cubePropertyObj.getFact();\n\t\t\n\t\t// Query the mongodb to retrieve the dimension fields and fact\n\t\tQueryDB queryObj = new QueryDB();\n\t\t\n\t\t// Map of string concatenation of all dimension field values and the respective fact value\n\t\tMap<String,Integer> dimensionFactMap= queryObj.readDbData(dimensionMap, fact);\t\n\t\t\n\t\t//Path of file to store the query result later to be read by hadoop mapper \n\t\tPath queryResultFilePath = new Path(\"queryResults.txt\");\n\t\t\n\t\t// Write the query result in the path specified\n\t\tUtils utilsobj = new Utils();\n\t\tutilsobj.writeQueryResultToFile(queryResultFilePath, dimensionFactMap);\t\t\t\n\t\t\n // Create a new hadoop map reduce job\n Job job = new Job();\n\n // Set job name to locate it in the distributed environment\n job.setJarByClass(Main.class);\n job.setJobName(\"Sum across all dimensions\");\n \n // Path of folder to store the results of the hadoop reducer \n String reducerOutputFolderPath = \"out\";\n \n // Set input and output Path, note that we use the default input format\n // which is TextInputFormat (each record is a line of input)\n FileInputFormat.addInputPath(job, queryResultFilePath);\n FileOutputFormat.setOutputPath(job, new Path(reducerOutputFolderPath));\n\n // Set Mapper and Reducer class\n job.setMapperClass(SumMapper.class);\n job.setReducerClass(SumReducer.class);\n\n // Set Output key and value\n job.setOutputKeyClass(Text.class);\n job.setOutputValueClass(IntWritable.class);\n\n System.exit(job.waitForCompletion(true) ? 0 : 1);\n\t\t\n\t\t\n\t}", "@Test\r\n public void testGroupSimilarity() throws Exception {\r\n final List<ICluster> originalCLuster = ClusteringTestUtilities.readSpectraClustersFromResource();\r\n Collections.sort(originalCLuster);\r\n List<ICluster> l1 = new ArrayList<ICluster>(originalCLuster);\r\n\r\n final List<ICluster> originalCLuster2 = ClusteringTestUtilities.readSpectraClustersFromResource();\r\n Collections.sort(originalCLuster2);\r\n List<ICluster> l2 = new ArrayList<ICluster>(originalCLuster2);\r\n\r\n ClusterListSimilarity cd = new ClusterListSimilarity(distanceMeasure);\r\n final List<ICluster> identical = cd.identicalClusters(l1, l2);\r\n\r\n Assert.assertEquals(originalCLuster.size(), identical.size());\r\n Assert.assertTrue(l1.isEmpty());\r\n Assert.assertTrue(l2.isEmpty());\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic Map<String,List<ContentItem>> getTagDocCluster() {\r\n\t\tSet<String> tagLabels = getDistinctTagLabels();\r\n\t\t\r\n\t\tList<ContentItem> pages = new ArrayList<ContentItem>(getTaggedPages()); \r\n\r\n\t\tSpectralClusterBean [][] spectralClusterBeans = new SpectralClusterBean[tagLabels.size()][pages.size()];\r\n\t\t\r\n\t\tList<String> tagCollection = new ArrayList(tagLabels);\r\n\r\n\t\tfor (int i = 0; i < tagCollection.size(); i++) {\r\n\t\t\tfor (int j = 0; j < pages.size(); j++) {\r\n\t\t\t\tfloat tagFrequency = taggingService.getTagFrequencyByContentItem(((String)tagCollection.get(i)).toLowerCase() , pages.get(j), new Float(pages.size()));\r\n\t\t//\t\tSystem.out.println(\" tag \"+((String)tagCollection.get(i)).toLowerCase() +\" has freq \" + tagFrequency+\" for page \"+pages.get(j).getTitle());\r\n\t\t\t\tspectralClusterBeans[i][j] = new SpectralClusterBean(pages.get(j).getId(),(String)tagCollection.get(i),i,j,tagFrequency);\r\n\t\t\t}\t\t\t\r\n\t\t}\t\t\r\n\r\n\t\tdouble [][] userTags = new double[tagCollection.size()][pages.size()];\r\n\t\tfor (int i = 0; i < tagCollection.size(); i++) {\r\n\t\t\tfor (int j = 0; j < pages.size(); j++) {\r\n\t\t\t\tuserTags[i][j] = (double)spectralClusterBeans[i][j].getScore();\t\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\tSpectralClusteringModel spectralClusteringRecommendation = new SpectralClusteringModel();\r\n\t\tMatrix frequencyMatrix = new Matrix(userTags);\r\n\t\t\r\n\t\tSingularValueDecomposition singularValueDecomposition=null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tsingularValueDecomposition = spectralClusteringRecommendation.computeLeftSigularValueDecompositionMatrix(frequencyMatrix);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tDataset[] dataSets = null;\r\n\t\ttry {\r\n\t\t\tdataSets = spectralClusteringRecommendation.clusterSpectralClusteringMatrix(singularValueDecomposition);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tMap<Set<Double>,Set<Double>> mapClusters = getMappingPositions(dataSets);\r\n\t\t\r\n\t\tMap<String,List<ContentItem>> showCLuster = new HashMap<String, List<ContentItem>>();\t\r\n\r\n\t\tfor (Set<Double> keys : mapClusters.keySet()) {\r\n\t\t\tStringBuffer tagStringBuffer = new StringBuffer();\r\n\t\t\tfor (Double tagPos : keys) {\r\n\t\t\t\ttagStringBuffer.append((spectralClusterBeans[tagPos.intValue()][0]).getTagLabel());\r\n\t\t\t\ttagStringBuffer.append(\"+\");\r\n\t\t\t}\r\n\t\t\tSet<ContentItem> cis = new HashSet<ContentItem>(); \r\n\t\t\t\r\n\t\t\tfor (Double tagPos : keys) {\r\n\t\t\t\tfor (int i = 0; i < pages.size(); i++) {\r\n\t\t\t\t\tif (spectralClusterBeans[tagPos.intValue()][i].getScore()>0) {\r\n\t\t\t\t\t\tLong ciId = spectralClusterBeans[tagPos.intValue()][i].getContentItemId();\r\n\t\t\t\t\t\tContentItem contentItem = getPagesById(ciId);\r\n\t\t\t\t\t\tcis.add(contentItem);\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\t\t\tshowCLuster.put(tagStringBuffer.substring(0,tagStringBuffer.lastIndexOf(\"+\")), new ArrayList(cis));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn showCLuster;\r\n\t}", "public List<Object> invoke(Invoker invoker) {\n List<KeyCluster> keyClusterList = findAll();\n return executeStoreProc(invoker, keyClusterList, false);\n }", "private static void locateCenters(final int[] cluster, double[][] centers, final double[][] data) {\n int N = data.length;\n int M = data[0].length;\n int numCluster = centers.length;\n\n // reset centers to 0\n for (int c = 0; c < numCluster; c++) {\n Arrays.fill(centers[c], 0);\n }\n\n int[] countCluster = new int[numCluster];\n\n // sum over all samples\n for (int n = 0; n < N; n++) {\n vectorSumInPlace(centers[cluster[n]], data[n]);\n countCluster[cluster[n]]++;\n }\n\n // divide by number of samples in each cluster\n for (int c = 0; c < numCluster; c++) {\n vectorDivideInPlace(centers[c], countCluster[c]);\n }\n }", "public void training(ArrayList<UnlockData> unlocks) {\n // Create a map to hold sub lists of clusters\n Map<Integer, ArrayList<UnlockData>> map = new HashMap<>();\n // Method to identify clusters in the training unlocks\n ArrayList<UnlockData> clusters = analyseClusters(unlocks);\n for (UnlockData unlock : clusters) {\n // Fetch the list for this object's cluster id\n ArrayList<UnlockData> temp = map.get(unlock.getClusterId());\n\n if (temp == null) {\n // If the list is null we haven't seen an\n // object with this cluster id before, so create\n // a new list and add it to the map\n temp = new ArrayList<UnlockData>();\n map.put(unlock.getClusterId(), temp);\n }\n temp.add(unlock);\n }\n // Method to create models of clusters of the same unlocks\n for (Map.Entry<Integer, ArrayList<UnlockData>> entry : map.entrySet()) {\n TrainModel model = new TrainModel();\n\n ArrayList<UnlockData> cluster = new ArrayList<>();\n\n for (UnlockData unlock : entry.getValue()) {\n cluster.add(unlock);\n }\n // Skip cluster id with 0, as they have not been assigned yet\n // Since every group of clusters has the same id, check only first\n if (cluster.get(0).cluster_id != 0) {\n try {\n model.train(cluster);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }", "private void distribute() {\n\t\t\tfor (Entry<String, List<String>> r : groups.entrySet()) {\n\t\t\t\tRandom random = new Random();\n\t\t\t\tint randomIndex = random.nextInt(r.getValue().size());\n\t\t\t\tdistribution.put(r.getKey(), r.getValue().get(randomIndex));\n\t\t\t}\n\t\t}", "private void clusterElements(int element1,int element2)\n\t{\n\t\tint index1 = getClusterIndex(element1);\n\t\tint index2 = getClusterIndex(element2);\n\t\t\n\t\t\n\t\tif (index1 != index2)\n\t\t\tif((index1 != -1) && (index2 != -1))\n\t\t\t\tcombineClusters(index1,index2);\n\t}", "public static int[][] getCentroid(int data[],int noofcluster,int centroid[][],int flag){\n\t\tSystem.out.println(\"no of cluster:\"+noofcluster);\n\t\tint distance[][]=new int[noofcluster][data.length];\n\t\tint cluster[] =new int[data.length];\n\t\tint nodecnt[]=new int[noofcluster];\n\t\t\n\t\t\n\t\tSystem.out.println(\"..........new Cluster .........\");\n\t\t\n\t\t// this loop is for finding the minimum distance form depot to all the other bikestation\n\t\t\tfor(int j=0;j<data.length;j++) {\n\t\t\t\tdistance[0][j]=gr.dijkstra(adj,233,data[j]);\n\t\t\t\tMcluster.put(data[j],distance[0][j]);\n\t\t\t}\n\t\tSystem.out.println(\"Cluster=\"+Mcluster);\n\t\t\n\t\tSystem.out.println(\"............New Centroid..............\");\n\t\t// to find a random centroid for 1st time \n\t\tSet<Integer> tempp = new HashSet<Integer>();\n\t\tif(flag == 0) {\n\t\t\tfor(int i=0;i<noofcluster;i++) {\n\t\t\t\tcentroid[1][i]=Mcluster.get(getRandom(143,220));\n\t\t\t\twhile(tempp.contains(centroid[1][i])) {\n\t\t\t\t\tcentroid[1][i]=Mcluster.get(getRandom(143,220));\n\t\t\t\t}\n\t\t\t\ttempp.add(centroid[1][i]);\n\t\t\t\t//System.out.println(\"Centroid\"+centroid[1][i]);\n\t\t\t}\n\t\t\tflag=1;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"...........Creating temp Cluster.......\");\n\t\t\n\t\t// creating a list of all the bikestation nodes difference the centroid \n\t\tfor(int i=0;i<noofcluster;i++) {\n\t\t\tHashMap<Integer,Integer> mpp=new HashMap<Integer,Integer>();\n\t\t\tfor(int j : Mcluster.keySet()) {\n\t\t\t\tif(centroid[1][i]>Mcluster.get(j)) {\n\t\t\t\t\tint mp = centroid[1][i]-Mcluster.get(j);\n\t\t\t\t\tmpp.put(j,mp);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint mp = Mcluster.get(j)-centroid[1][i];\n\t\t\t\t\tmpp.put(j,mp);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcls.put(i, mpp);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"...........Creating Final Cluster.......\");\n\t\t\n\t\t// getting a cluster from given centroid \n\t\tfor(int i=0;i<noofcluster;i++) {\n\t\t\tArrayList<Integer> temp = new ArrayList<>();\n\t\t\tfinalCluster.put(i,temp);\n\t\t}\n\t\tint smallestDistance;\n\t\tfor(int j : Mcluster.keySet()) {\n\t\t\tint f = 0;\n\t\t\tsmallestDistance=Integer.MAX_VALUE;\n\t\t\tfor(int i=0;i<noofcluster;i++) {\n\t\t\t\tif(cls.get(i).get(j)<=smallestDistance) {\n\t\t\t\t\tsmallestDistance=cls.get(i).get(j);\n\t\t\t\t\tf=i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinalCluster.get(f).add(j);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"Final\"+finalCluster);\n\t\tSystem.out.println(\"........new centroid......\");\n\t\t\n\t\t//final cluster\n\t\tfor(int i : finalCluster.keySet()) {\n\t\t\tint sum=0, avg=0, count=0;\n\t\t\tfor(int j=0;j<finalCluster.get(i).size();j++) {\n\t\t\t\tint temp=finalCluster.get(i).get(j);\n\t\t\t\tsum=sum+Mcluster.get(temp);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tavg=(int)sum/count;\n\t\t\tcentroid[0][i]=avg;\n\t\t}\n\t\t\n\t\tboolean finalcentroid=true;\n\t\t//if (i-1) and (i)th cluster have the same centroid then we stop the loop\n\t\tfor(int i=0;i<noofcluster;i++) {\n\t\t\tif(finalcentroid && centroid[0][i]==centroid[1][i]) {\n\t\t\t\tfinalcentroid=true;\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\tfinalcentroid=false;\n\t\t\t\tSystem.out.println(\"Different\");\n\t\t\t\tcnt++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!finalcentroid) { \n\t\t\t//if (i-1) and (i)th cluster dont have the same centroid then we continue the loop iteration\n\t\t\tcentroid[1] = Arrays.copyOf(centroid[0], centroid[0].length);\n\t\t\tgetCentroid(data,noofcluster,centroid,flag);\n\t\t}\n\t\t\n\t\tif(finalcentroid) {\n\t\t\tSystem.out.println(\"Final Cluster: \"+finalCluster);\n\t\t\tfor(int i=0;i<5;i++) {\n\t\t\t\tSystem.out.print(\"Final Centroid: \"+centroid[1][i]+\" \");\n\t\t\t}\n\t\t}\n\t\treturn centroid;\n\t}", "public void pruneWithApriori(double startEpsilon, double epsilonMultiplier, double shrinkFactor, double maxApproximationSize, int numBuckets, int topK, long startMS){\n CB = new CorrelationBounding(HB.data, useEmpiricalBounds, parallel);\r\n HierarchicalBounding.CB = CB; // pass the corrbounding object to the hierarchbounding object to prevent double work\r\n\r\n // get clusters:\r\n long startClustering = System.currentTimeMillis();\r\n System.out.print(\"constructing hierarchical clustering...\");\r\n RecursiveClustering RC = new RecursiveClustering(HB.data, CB, HB.maxLevels, HB.defaultDesiredClusters, HB.useKMeans, HB.breakFirstKLevelsToMoreClusters, HB.clusteringRetries);\r\n RC.fitRecursiveClusters(startEpsilon, epsilonMultiplier);\r\n long stopClustering = System.currentTimeMillis();\r\n System.out.println(\" --> clustering finished, took \" + ((stopClustering-startClustering)/1000) + \" seconds\");\r\n this.allclusters = RC.allClusters;\r\n this.clustersPerLevel = RC.clustersPerLevel;\r\n this.globalClustID = RC.globalClustID;\r\n\r\n CB.initializeBoundsCache(globalClustID, useEmpiricalBounds);\r\n\r\n ArrayList<Cluster> topLevelClusters = this.clustersPerLevel.get(0);\r\n Cluster rootCluster = topLevelClusters.get(0);\r\n this.rootCluster = rootCluster;\r\n\r\n\r\n\r\n // progressive approximation class in order to get results quickly:\r\n ProgressiveApproximation PA = new ProgressiveApproximation(corrThreshold, useEmpiricalBounds, minJump, maxApproximationSize, header, CB);\r\n\r\n\r\n\r\n //multipoles root candidate:\r\n ArrayList<Cluster> firstClusterComb = new ArrayList<>(2);\r\n firstClusterComb.add(rootCluster);// firstClusterComb.add(rootCluster);\r\n// List<ClusterCombination> candidates = new ArrayList<>(1);\r\n// ClusterCombination rootcandidate = new MultipoleClusterCombination(firstClusterComb);\r\n// candidates.add(rootcandidate);\r\n\r\n\r\n\r\n //multipearson root candidate:\r\n// ArrayList<Cluster> rootLHS = new ArrayList<>(1); rootLHS.add(rootCluster);\r\n// ArrayList<Cluster> rootRHS = new ArrayList<>(1); rootRHS.add(rootCluster); //rootRHS.add(rootCluster); rootRHS.add(rootCluster);\r\n// ClusterCombination rootcandidate = new MultiPearsonClusterCombination(rootLHS, rootRHS);\r\n\r\n\r\n\r\n\r\n //progress overview:\r\n System.out.print(\"|\");\r\n for(int i = 0; i<100; i++){\r\n System.out.print(\".\");\r\n }\r\n System.out.print(\"|\");\r\n System.out.println();\r\n\r\n\r\n // level-wise evaluation of the candidates\r\n for(int p=2; p<=maxP; p++){\r\n firstClusterComb.add(rootCluster);\r\n ClusterCombination rootcandidate = new MultipoleClusterCombination(firstClusterComb);\r\n\r\n List<ClusterCombination> candidates = new ArrayList<>(1);\r\n candidates.add(rootcandidate);\r\n\r\n System.out.println(\"---------------start evaluating level: \"+ p + \" at time \" + LocalTime.now() +\". Number of positives so far: \" + this.positiveResultSet.size() +\". Runtime so far: \" + (System.currentTimeMillis() - startMS)/1000);\r\n\r\n Map<Boolean, List<ClusterCombination>> groupedDCCs = evaluateCandidates(candidates, shrinkFactor, maxApproximationSize, parallel);\r\n\r\n if(positiveDCCs.size() > topK){\r\n positiveDCCs = getStream(positiveDCCs, parallel)\r\n .sorted((cc1, cc2) -> Double.compare(cc2.getLB(), cc1.getLB()))\r\n .limit(topK)\r\n .collect(Collectors.toList());\r\n PA.corrThreshold = positiveDCCs.get(positiveDCCs.size()-1).getLB();\r\n corrThreshold = PA.corrThreshold;\r\n }\r\n\r\n\r\n //progressive approximation within this level p:\r\n List<ClusterCombination> approximatedCCs = getStream(groupedDCCs.get(false), parallel).filter(dcc -> dcc.getCriticalShrinkFactor() <= 1).collect(Collectors.toList());\r\n// PA.testApproximationQuality(approximatedCCs, numBuckets, p, parallel);\r\n this.positiveDCCs = PA.ApproximateProgressively(approximatedCCs, numBuckets, positiveDCCs, parallel, topK, startMS);\r\n corrThreshold = PA.corrThreshold; // for topK -> carry over the updated tau to next p\r\n this.positiveResultSet = PostProcessResults.removeDuplicatesAndToString(this.positiveDCCs, header, CB, parallel);\r\n\r\n // get the approximated candidates to generate the next-level candidates from. the advantage is that we get a head-start down the clustering tree and do not have to start from the top\r\n ArrayList<ClusterCombination> DCCs = new ArrayList<>(groupedDCCs.get(false).size() + groupedDCCs.get(true).size());\r\n DCCs.addAll(groupedDCCs.get(false)); DCCs.addAll(groupedDCCs.get(true));\r\n System.out.println(\"tau updated to \" + corrThreshold);\r\n\r\n\r\n\r\n// if(p<maxP){\r\n// System.out.println(\"level \" + p + \" finished at time \"+ LocalTime.now() + \". generating candidates for level \" + (p+1) +\". #DCCs: \" + DCCs.size() +\". positives so far: \" + this.positiveResultSet.size() + \". Runtime so far (s): \" + (System.currentTimeMillis()-startMS)/1000);\r\n//\r\n//\r\n//\r\n// if(DCCs.get(0).isMultipoleCandidate()){ // multipole pattern\r\n//\r\n// candidates = generateCandidates(DCCs, parallel);\r\n//\r\n// }else{ // multiPearson pattern -> make distinction on adding vectors to LHS or RHS. better performance: use HIerarchicalbounding without level generation.\r\n//\r\n//\r\n// candidates = new ArrayList<>();\r\n//\r\n//\r\n//\r\n// // first generate candidates by adding to RHS\r\n// if(parallel){\r\n// DCCs = (ArrayList<ClusterCombination>) DCCs.parallelStream()\r\n// .sorted(this::lexicographicalOrdering)\r\n// .collect(Collectors.toList());\r\n// }else{\r\n// DCCs.sort(this::lexicographicalOrdering);\r\n// }\r\n// List<ClusterCombination> partial = generateCandidates(DCCs, parallel);\r\n// if(partial!= null){\r\n// candidates.addAll(partial);\r\n// }\r\n//\r\n// //now by adding to LHS: (hack by swapping the LHS and RHS and calling the same methods\r\n// //note that we do not need to swap those in which the size of the LHS and RHS is the same\r\n// ArrayList<ClusterCombination> swappedDCCs;\r\n// if(parallel){\r\n// swappedDCCs = (ArrayList<ClusterCombination>) DCCs.parallelStream()\r\n// .filter(cc -> cc.getLHS().size() != cc.getRHS().size()) // ignore those where lhs and rhs are of the same size\r\n// .collect(Collectors.toList());\r\n// swappedDCCs.parallelStream()\r\n// .forEach(cc -> ((MultiPearsonClusterCombination) cc).swapLeftRightSide());\r\n//\r\n// swappedDCCs = (ArrayList<ClusterCombination>) swappedDCCs.parallelStream()\r\n// .sorted(this::lexicographicalOrdering)\r\n// .collect(Collectors.toList());\r\n// }else{\r\n// swappedDCCs = (ArrayList<ClusterCombination>) DCCs.stream()\r\n// .filter(cc -> cc.getLHS().size() != cc.getRHS().size()) // ignore those where lhs and rhs are of the same size\r\n// .collect(Collectors.toList());\r\n//\r\n// swappedDCCs.forEach(cc -> ((MultiPearsonClusterCombination) cc).swapLeftRightSide());\r\n// swappedDCCs.sort(this::lexicographicalOrdering);\r\n// }\r\n//\r\n// partial = generateCandidates(swappedDCCs, parallel);\r\n// if(partial!= null){\r\n// candidates.addAll(partial);\r\n// }\r\n//\r\n//\r\n// }\r\n//\r\n//\r\n// }\r\n }\r\n\r\n }", "public Ms2Cluster cluster(Map<Ms2Pointer, MsnSpectrum> spectra, Float lowmass, OffsetPpmTolerance tol, double min_dp, int miss_index)\n {\n // quit if the master or input are not present!\n if (mHead==null || !Tools.isSet(spectra)) return null;\n\n mHead.cluster=this;\n\n // setting the seed spectrum\n if (getMaster()==null && spectra.get(getHead())!=null)\n setMaster(spectra.get(getHead()).copy(new PurgingPeakProcessor()));\n\n// MsnSpectrum HEAD = (mMaster!=null?mMaster:spectra.get(mHead));\n // setup the master first\n List<Peak> head = Spectra.toListOfPeaks(getMaster(), lowmass);\n // get the index of the HEAD spectrum\n List<Peak> index = Similarity.index(head, 7, 0, 1, 5, 0);\n\n // the collections\n if (mMembers!=null) mMembers.clear(); else mMembers = new ArrayList<>();\n // new members from this round\n Collection<MsnSpectrum> members = new ArrayList<>();\n // the error tolerance\n double delta = tol.calcError(500);\n for (Ms2Pointer member : mCandidates)\n {\n MsnSpectrum scan = spectra.get(member);\n // need to exclude the head itself\n if (member.hcode==getHead().hcode)\n {\n member.dp=1; // being the self\n member.cluster=this;\n mMembers.add(member);\n continue;\n }\n if (scan!=null)\n {\n // calc the forward and backward DPs and choose the smallest\n List<Peak> pks = Spectra.toListOfPeaks(scan,lowmass);\n // make sure a min number of the index peaks are found\n if (miss_index>=0 && index.size()-Peaks.overlap_counts(pks, index, delta, true)>miss_index) continue;\n\n member.dp=(float )Similarity.bidirectional_dp(head, pks, tol, true, true, true);\n // now the matching probability\n member.prob = (float )Similarity.similarity_hg(head, pks, delta);\n\n if (member.dp>=min_dp)\n {\n member.cluster=this;\n mMembers.add(member);\n members.add(spectra.get(member));\n }\n }\n }\n mMaster = Spectra.accumulate(getMaster(), tol, 0.5f, members);\n mMz = (float )mMaster.getPrecursor().getMz();\n mRT = (float )getMaster().getRetentionTimes().getFirst().getTime()/60f;\n mCharge = getMaster().getPrecursor().getCharge();\n// mID = Tools.d2s(getMz(),3)+\"|\"+getCharge()+\"|\"+Tools.d2s(getRT(),1);\n mID = toString();\n\n // remove the local objects\n head = (List )Tools.dispose(head);\n index = (List )Tools.dispose(index);\n members = Tools.dispose(members);\n\n return this;\n }", "public void connectClusters() {\n\t\tif (clusters.size() == 2) { // once have only two clusters\n\t\t\tSystem.out.println(\"DONE!\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tcluster close1 = clusters.get(0),\n\t\t\t\tclose2 = clusters.get(1);\n\t\tdouble closestCluster = computeDistance(close1, close2);\n\t\t\n\t\tfor (int i=0; i<clusters.size(); i++) {\n\t\t\tcluster c1 = clusters.get(i);\n\t\t\t\n\t\t\tfor (int j=0; j<clusters.size(); j++) { // go through all the clusters and find closest\n\t\t\t\tif (i!=j) {\n\t\t\t\t\tcluster c2 = clusters.get(j);\n\t\t\t\t\tdouble dist = computeDistance(c1,c2);\n\t\t\t\t\tif (dist < closestCluster) {\n\t\t\t\t\t\tclose1 = c1;\n\t\t\t\t\t\tclose2 = c2;\n\t\t\t\t\t\tclosestCluster = dist;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tmakeCluster(close1, close2);\n\t\t\n\t}", "public void mondrian(ArrayList<double[]> data){\n\t\t\n\t\t/*\n\t\t* check if it is possible to split the partition again that is by checking if \n\t\t* k-Anonymity is still guaranteed after this cut by checking if the amount of \n\t\t* individuals in the new partitions is k ore more\n\t\t*/\n\t\tif(data.size() >= 2*k){\n\t\t\tcluster(data);\n\t\t}\n\t\t// if there are not enough elements left, we anonymize the data\n\t\telse{\n\t\t\tanonymize(data);\n\t\t}\n\t}", "Cluster (Set pages) {\n this.pages = pages;\n }", "public Ms2Cluster() { super(); }", "static Cluster clusterProvider(String neptune, int BATCH_SIZE) {\n java.security.Security.setProperty(\"networkaddress.cache.ttl\", \"0\");\n java.security.Security.setProperty(\"networkaddress.cache.negative.ttl\", \"0\");\n\n Cluster.Builder clusterBuilder = Cluster.build()\n .addContactPoint(neptune) // add more ro contact points for load balancing\n .port(8182)\n .enableSsl(true)\n// .keyStore(keyStore) // optional as amazon cert will be used and should be in truststore of server\n// .keyStorePassword(keyStorePassword)\n .channelizer(SigV4WebSocketChannelizer.class)\n .serializer(Serializers.GRAPHBINARY_V1D0)\n .maxInProcessPerConnection(1) // ensure no contention for connections per batch\n .minInProcessPerConnection(1)\n .maxSimultaneousUsagePerConnection(1)\n .minSimultaneousUsagePerConnection(1)\n .maxWaitForConnection(15000)\n .minConnectionPoolSize(BATCH_SIZE)\n .maxConnectionPoolSize(BATCH_SIZE);\n\n return clusterBuilder.create();\n }", "public List<ParameterValueObject> getClustering(Filter filter);", "protected void visualizeAllClusterAssignments(Instances instances) {\n\t\tint size = m_History.getList().getModel().getSize(); \r\n\t\t\r\n\t\tfinal SubspaceVisualData svp [] = new SubspaceVisualData[size];\r\n\t\tfinal SubspaceClusterer clusterer []= new SubspaceClusterer[size];\r\n\t\t\r\n\t\tFastVector rlist_item = null;\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\trlist_item = (FastVector) m_History.getNamedObject(m_History.getNameAtIndex(i));\r\n\t\r\n\t\t\tSubspaceVisualData temp_svp = null;\r\n\t\t\tSubspaceClusterer temp_clusterer = null;\r\n\t\r\n\t\t\tif (rlist_item != null) {\r\n\t\t\t\tfor (int j = 0; j < rlist_item.size(); j++) {\r\n\t\t\t\t\tObject temp = rlist_item.elementAt(j);\r\n\t\t\t\t\tif (temp instanceof SubspaceClusterer) {\r\n\t\t\t\t\t\ttemp_clusterer = (SubspaceClusterer) temp;\r\n\t\t\t\t\t} else if (temp instanceof SubspaceVisualData) { // normal errors\r\n\t\t\t\t\t\ttemp_svp = (SubspaceVisualData) temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsvp[i]=temp_svp;\r\n\t\t\tclusterer[i]=temp_clusterer;\r\n\t\t}\r\n\t\tnew VisualClusteringOverview(clusterer,svp,instances);\r\n\t}", "private static void assignCluster(int[] cluster, final double[][] centers, final double[][] data){\n int N = data.length;\n int M = data[0].length;\n int numCluster = centers.length;\n\n for (int n = 0; n < N; n++) {\n double minDistance = Double.MAX_VALUE;\n for (int c = 0; c < numCluster; c++) {\n double distance = EuclideanDistance(data[n], centers[c]);\n if (minDistance > distance) {\n minDistance = distance;\n cluster[n] = c;\n }\n }\n }\n }", "private void addClusteredGeoJsonSource(@NonNull Style loadedMapStyle) {\n\n\n loadedMapStyle.addSource(\n new GeoJsonSource(\"ads\",\n geoJSON.toString(),\n new GeoJsonOptions()\n .withCluster(true)\n .withClusterMaxZoom(14)\n .withClusterRadius(40)\n )\n );\n\n // Each point range gets a different fill color.\n int[][] layers = new int[][] {\n new int[] {0, ContextCompat.getColor(this, R.color.colorPrimary)}\n };\n\n //Creating a marker layer for single data points\n SymbolLayer unclustered = new SymbolLayer(\"unclustered-points\", \"ads\");\n\n unclustered.setProperties(\n iconImage(\"cross-icon-id\"),\n iconSize(\n division(\n get(\"mag\"), literal(1.0f)\n )\n )\n );\n // addedLayers.add(unclustered);\n loadedMapStyle.addLayer(unclustered);\n\n\n for (int i = 0; i < 1; i++) {\n //Add clusters' circles\n CircleLayer circles = new CircleLayer(\"cluster-\" + i, \"ads\");\n circles.setProperties(\n circleColor(layers[i][1]),\n circleRadius(23f)\n );\n\n Expression pointCount = toNumber(get(\"point_count\"));\n\n // Add a filter to the cluster layer that hides the circles based on \"point_count\"\n circles.setFilter(\n i == 0\n ? all(has(\"point_count\"),\n gte(pointCount, literal(layers[i][0]))\n ) : all(has(\"point_count\"),\n gt(pointCount, literal(layers[i][0])),\n lt(pointCount, literal(layers[i - 1][0]))\n )\n );\n loadedMapStyle.addLayer(circles);\n // addedLayers.add(circles);\n }\n\n //Add the count labels\n SymbolLayer count = new SymbolLayer(\"count\", \"ads\");\n count.setProperties(\n textField(Expression.toString(get(\"point_count\"))),\n textSize(12f),\n textColor(Color.WHITE),\n textIgnorePlacement(true),\n textAllowOverlap(true)\n );\n loadedMapStyle.addLayer(count);\n\n }", "@Override\n\tpublic void startDatacenters() throws Exception {\n\t}", "public abstract double initialize(double[][] rawData, int clusterCount);", "@Override\n public String kMeansClusters_json(int k) {\n\n List<Set<String>> kMeansClusters = new ArrayList<Set<String>>();\n\n if (k == 1) {\n // No algorithm needed\n kMeansClusters.add(new HashSet<String>(this.restaurantMap.keySet()));\n return this.clusterToJSON(kMeansClusters);\n }\n\n // restaurant clusters contains random centroids mapped to a set of its closest\n // restaurants (in id form)\n Map<double[], Set<String>> restaurantClusters = this.initiateClusters(k, this.restaurantMap.keySet());\n\n do {\n Set<String> emptyCluster = findEmptyCluster(restaurantClusters);\n Set<String> largestCluster = findLargestCluster(restaurantClusters);\n\n // Code below finds some random centroid within the largest cluster\n double minLat = Double.MAX_VALUE;\n double minLon = Double.MAX_VALUE;\n double maxLat = -Double.MAX_VALUE;\n double maxLon = -Double.MAX_VALUE;\n for (String rID : largestCluster) {\n double lat = this.restaurantMap.get(rID).getLatitude();\n double lon = this.restaurantMap.get(rID).getLongitude();\n if (lat < minLat) {\n minLat = lat;\n }\n if (lat > maxLat) {\n maxLat = lat;\n }\n if (lon < minLon) {\n minLon = lon;\n }\n if (lon > maxLon) {\n maxLon = lon;\n }\n }\n double[] centroidInLargestCluster = this.generateRandomCentroid(minLat, maxLat, minLon, maxLon);\n\n // Find the empty cluster and reassign its centroid by placing it somewhere in\n // the largest cluster\n for (double[] centroid : restaurantClusters.keySet()) {\n if (restaurantClusters.get(centroid).equals(emptyCluster)) {\n centroid[0] = centroidInLargestCluster[0]; // New longitude based on largest cluster\n centroid[1] = centroidInLargestCluster[1]; // New latitude based on largest cluster\n break; // Once we find the empty cluster, we are done\n }\n }\n\n // Flag is true if any restaurants are reassigned to a new centroid\n // If no restaurants are reassigned, then we are done one run through\n boolean flag;\n do {\n this.reassignCentroids(restaurantClusters);\n flag = reassignRestaurants(restaurantClusters, this.restaurantMap.keySet());\n } while (flag);\n\n } while (atLeastOneEmptyCluster(restaurantClusters)); // Repeat if any empty clusters are detected\n\n // Add final restaurant clusters to list of clusters\n for (Set<String> cluster : restaurantClusters.values()) {\n kMeansClusters.add(cluster);\n }\n return this.clusterToJSON(kMeansClusters);\n }", "public Cluster(int id) {\n\t\tthis.id = id;\n\t\tthis.points = new ArrayList<>();\n\t\tthis.centroid = 0;\n memberCount = 0;\n\t}", "synchronized private void track(EventPacket<BasicEvent> ae) {\n boolean updatedClusterList = false;\n int n = ae.getSize();\n if (n == 0) {\n return;\n }\n// int maxNumClusters=getMaxNumClusters();\n\n // record cluster locations before packet is processed\n for (Cluster c : clusters) {\n c.getLastPacketLocation().setLocation(c.location);\n }\n\n // for each event, see which cluster it is closest to and add it to this cluster.\n // if its too far from any cluster, make a new cluster if we can\n// for(int i=0;i<n;i++){\n for (BasicEvent ev : ae) {\n// EventXYType ev=ae.getEvent2D(i);\n Cluster closest = null;\n if (useNearestCluster) {\n closest = getNearestCluster(ev);\n } else {\n closest = getFirstContainingCluster(ev); // find cluster that event falls within (or also within surround if scaling enabled)\n }\n if (closest != null) {\n closest.addEvent(ev);\n } else if (clusters.size() < maxNumClusters) { // start a new cluster\n Cluster newCluster = new Cluster(ev);\n clusters.add(newCluster);\n }\n if (!updateTimeInitialized) {\n nextUpdateTimeUs = ev.timestamp + updateIntervalMs * 1000 / AEConstants.TICK_DEFAULT_US;\n updateTimeInitialized = true;\n }\n // ensure cluster list is scanned at least every updateIntervalMs\n if (ev.timestamp > nextUpdateTimeUs) {\n nextUpdateTimeUs = ev.timestamp + updateIntervalMs * 1000 / AEConstants.TICK_DEFAULT_US;\n updateClusterList(ae, ev.timestamp);\n updatedClusterList = true;\n }\n }\n if (!updatedClusterList) {\n updateClusterList(ae, ae.getLastTimestamp()); // at laest once per packet update list\n }\n logClusters();\n }", "public void mergeClusters(int[] newCluster) {\n\t\tint i, j, k;\n\t\tif (cluster == null)\n\t\t\treturn;\n\t\ti = 0;\n\t\tfor (j = 0; j < nNodes; j++) {\n\t\t\tk = newCluster[cluster[j]];\n\t\t\tif (k > i)\n\t\t\t\ti = k;\n\t\t\tcluster[j] = k;\n\t\t}\n\t\tnClusters = i + 1;\n\t\tdeleteClusteringStats();\n\t}", "@Override\n protected Long compute() {\n if (dataList.size() <= BATCHSIZE)\n return sum();\n else {\n final List<AggregateWorker> tasks = new ArrayList<>();\n int index = dataList.size();\n while (index > 0) {\n int startIndex = (index - BATCHSIZE >= 0) ? (index - BATCHSIZE) : 0;\n // System.out.println(\"Created task for \" + startIndex + \" to \" + index);\n Collection<Long> subList = dataList.subList(startIndex, index);\n final AggregateWorker task = new AggregateWorker(subList);\n task.fork();\n tasks.add(task);\n index = index - BATCHSIZE;\n }\n long result = 0;\n for (final AggregateWorker task : tasks) {\n result += task.join();\n }\n return result;\n }\n }", "@Override\n\tpublic Set<E> getClustering() {\n\t\treturn F;\n\t}", "public static void main(String[] args) {\n\t\tList<Customer> customerList=new ArrayList<Customer>();\n\t\tCluster cluster = null;\n\t\tSession session = null;\n\t\ttry {\n\n\t\t\tcluster = Cluster\n\t\t\t\t\t.builder()\n\t\t\t\t\t.addContactPoints(LOCAL_HOST_IP)\n\t\t\t\t\t.withProtocolVersion(ProtocolVersion.NEWEST_SUPPORTED)\n\t\t\t\t\t.build();\n\t\t\t\n\t\t\tsession = cluster.connect(CAS_KEYSPACE);\n\t\t\tSystem.out.println(\"Connection Successful\");\n\n\t\t\t\n\t\t\tResultSet execute = session.execute(\"select * from orders\");\n\n\t\t\tfor (Row row : execute) {\n\t\t\t\tUDTValue customerUDT = row.get(\"customer\",UDTValue.class);\n\t\t\t\tCustomer customer=new Customer();\n\t\t\t\tcustomer.setId(customerUDT.get(0, String.class));\n\t\t\t\tcustomer.setName(customerUDT.get(1, String.class));\n\t\t\t\tcustomer.setCouponCode(customerUDT.get(2, String.class));\n\t\t\t\tcustomer.setAddress(customerUDT.get(3, String.class));\n\t\t\t\tcustomerList.add(customer);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Customer List :: \"+customerList);\n\t\t\t\n\n\t\t} catch (Exception exp) {\n\t\t\texp.printStackTrace();\n\t\t} finally {\n\t\t\tcluster.close();\n\t\t}\n\t}", "private static void generateDatasets(int time_span, int time_granularity) {\n\n String[] city = {\n \"dm\", //Des Moines\n \"bo\", //Boston\n \"sf\" //San Francisco\n };\n\n double[] gridLength = { //relates (mostly) to number of agents\n 10,\n 30,\n 50,\n 100,\n 350,\n 500,\n 850,\n 1000,\n 1500,\n 2000,\n };\n\n double[] clusterDiv = { //multiply grid length by this and plug into radius in order for this to be number of clusters\n 1,\n 2,\n 4,\n 8,\n 16,\n 32,\n 64,\n 128,\n 256,\n 512,\n 1024\n };\n\n final int MIN_DEV = 2; final int MAX_DEV = 6; //minimum and maximum amount of devices per house to generate files for\n final int NUM_GRID_SIZES = 5; //number of different grid sizes to generate from the list above, some of the larger problems might be to big for some computers to handle\n for(int i = 0; i < city.length; i++) { // for each city\n for(int j = 0; j < NUM_GRID_SIZES; j++) { //for each grid size\n\n Topology topo = generateTopology(i, gridLength[j], 1);\n for(int d = MIN_DEV; d <= MAX_DEV; d++) {\n String fileName = \"datasets/\" + city[i]\n + \"_\" + topo.getNumAgents()\n + \"_\" + topo.getNumClusters()\n + \"_\" + d;\n generateSHDSInstances(fileName, d, topo, time_span, time_granularity);\n\n if(d == MAX_DEV) {\n Topology temp = topo;\n for (int k = 2; temp != null && k < clusterDiv.length; k++) {\n temp = generateTopology(i, gridLength[j], clusterDiv[k]);\n if (temp == null) continue; // if num_agents < agents_per_cluster then stop\n else topo = temp;\n }\n fileName = \"datasets/\" + city[i]\n + \"_\" + topo.getNumAgents()\n + \"_\" + topo.getNumClusters()\n + \"_\" + d;\n generateSHDSInstances(fileName, d, topo, time_span, time_granularity);\n }\n }\n }\n }\n }", "public void anonymize(ArrayList<double[]> data){\n\t\t// anonymize for all dimensions\n\t\tfor(int j = 0; j < numQI; j++){\n\t\t\n\t\t\tdouble midValue = findMedian(data, j);\n\t\t\tfor(int i = 0; i < data.size(); i++){\n\t\t\t\tdata.get(i)[j] = midValue;\n\t\t\t}\n\t\t}\n\t\t\n\t\tgetClusterSet().add(0, new ArrayList<double[]>());\n\t\t// returning the anonymized partitions\n\t\tfor(int i = 0; i < data.size(); i++){\n\t\t\tgetAnonymizedPartition().add(data.get(i));\n\t\t\tgetClusterSet().get(0).add(data.get(i));\n\t\t}\n\t}", "void renewNeighbourClusters() {\n neighbourClusters = new HashMap<Cluster, Integer>();\n\n for (Person p : members) {\n for (Person x : p.getFriends()) {\n if (!members.contains(x)) {\n Cluster xC = x.getCluster();\n if (!neighbourClusters.containsKey(xC)) {\n neighbourClusters.put(xC, 1);\n } else {\n neighbourClusters.put(xC, neighbourClusters.get(xC) + 1);\n }\n }\n }\n }\n\n }", "public Cluster(int id) {\n this.meaning_id = id;\n this.frequency_id = id;\n this.meaning_points = new ArrayList();\n this.meaning_centroid = null;\n this.frequency_points = new ArrayList();\n this.frequency_centroid = null;\n }", "private void reassignCentroids(Map<double[], Set<String>> restaurantClusters) {\n\n for (double[] centroid : restaurantClusters.keySet()) {\n\n // If a centroid has no restaurants, do not update the centroid\n if (restaurantClusters.get(centroid).isEmpty()) {\n continue;\n }\n\n double totalLat = 0;\n double totalLon = 0;\n int size = restaurantClusters.get(centroid).size();\n\n for (String rID : restaurantClusters.get(centroid)) {\n Restaurant r = this.restaurantMap.get(rID);\n // Get the total value for lattitude and longitude for all restaurants\n // in the cluster\n totalLat += r.getLatitude();\n totalLon += r.getLongitude();\n }\n\n centroid[0] = totalLat / size;\n centroid[1] = totalLon / size;\n }\n }", "private void initMleCluster() {\n\t\tpseudoTf = new double[documents.size()][];\n\t\tpseudoTermIndex = new int[documents.size()][];\n\t\tpseudoTermWeight = new double[documents.size()][];\n\t\t\n\t\tfor(int docIdx=0; docIdx<documents.size(); docIdx++) {\n\t\t\tcountOnePseudoDoc(docIdx);\n\t\t}\n\t}", "void add(Cluster c){\n Set<Cluster> tempC = new TreeSet<Cluster>();\n for(Cluster i: C)\n tempC.add(i);\n tempC.add(c);\n C = tempC;\n }", "public void connectClusters()\n\t{\n//\t\tfor(int i = 0; i<edges.size();i++)\n//\t\t{\n//\t\t\tEdgeElement edge = edges.get(i);\n//\t\t\tString fromNodeID = edge.fromNodeID;\n//\t\t\tNodeElement fromNode = findSubNode(fromNodeID);\n//\t\t\tString toNodeID = edge.toNodeID;\n//\t\t\tNodeElement toNode = findSubNode(toNodeID); \n//\t\t\t\n//\t\t\tif(fromNode != null && toNode != null)\n//\t\t\t{\n//\t\t\t\tPortInfo oport = new PortInfo(edge, fromNode);\n//\t\t\t\tfromNode.addOutgoingPort(oport);\n//\t\t\t\tedge.addIncomingPort(oport);\n//\t\t\t\tPortInfo iport = new PortInfo(edge, toNode);\n//\t\t\t\ttoNode.addIncomingPort(iport);\n//\t\t\t\tedge.addOutgoingPort(iport);\n//\t\t\t}\n//\t\t}\n\t}", "private ITaskCluster createTaskCluster(ITaskObject... taskObjects) {\n ITaskCluster taskCluster = getTaskManagerConfiguration().getTaskFactory().newTaskCluster();\n taskCluster = getTaskManagerConfiguration().getTaskManagerWriter().saveNewTaskCluster(taskCluster);\n\n return createTaskGraphForTaskCluster(taskCluster, taskObjects);\n }", "private void writeData(Cacheable[] data) throws IOException {\n for (Cacheable c : data) {\n for (Serializable s : c.cache()) {\n out.writeObject(s);\n }\n }\n }", "Point(int dimensionPass, int clusters){\n\tthis.dimension = dimensionPass;\n\tthis.data = new double[dimension];\n\tthis.clusterDist = new double[clusters];\n\t\n}", "private void setUpClusterer() {\n mClusterManager = new ClusterManager<Company>(getActivity(), mMap);\n\n mClusterManager.setRenderer(new DefaultClusterRenderer<Company>(getActivity(), mMap, mClusterManager) {\n @Override\n protected void onBeforeClusterItemRendered(Company company, MarkerOptions markerOptions) {\n markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.hunting_target));\n // centering marker\n markerOptions.anchor(0.5f, 0.5f);\n }\n\n @Override\n protected void onBeforeClusterRendered(Cluster<Company> cluster, MarkerOptions markerOptions) {\n super.onBeforeClusterRendered(cluster, markerOptions);\n// markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.hunting_target));\n }\n\n @Override\n protected boolean shouldRenderAsCluster(Cluster cluster) {\n // Always render clusters.\n return cluster.getSize() > 1;\n }\n });\n\n mClusterManager.setOnClusterItemClickListener(new ClusterManager.OnClusterItemClickListener<Company>() {\n @Override\n public boolean onClusterItemClick(Company item) {\n openInfoWindow(item);\n return false;\n }\n });\n\n mClusterManager.setOnClusterClickListener(new ClusterManager.OnClusterClickListener<Company>() {\n @Override\n public boolean onClusterClick(Cluster<Company> cluster) {\n // Zoom in the cluster. Need to create LatLngBounds and including all the cluster items\n // inside of bounds, then animate to center of the bounds.\n\n // Create the builder to collect all essential cluster items for the bounds.\n LatLngBounds.Builder builder = LatLngBounds.builder();\n for (ClusterItem item : cluster.getItems()) {\n builder.include(item.getPosition());\n }\n // Get the LatLngBounds\n final LatLngBounds bounds = builder.build();\n\n // Animate camera to the bounds\n try {\n mMap.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 200));\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return true;\n }\n });\n\n // Point the map's listeners at the listeners implemented by the cluster manager.\n mMap.setOnCameraIdleListener(mClusterManager);\n mMap.setOnMarkerClickListener(mClusterManager);\n }", "void createGraphForDistributedSingleLoad();", "void synchronizeHostData(INDArray array);", "public Clustering cluster(int kNumber, Clustering inputClustering, List<Point2D> centroids) {\n\t\tthis.inputClustering = inputClustering;\n\t\tthis.kNumber = kNumber;\n\t\tthis.centroids = centroids;\n\t\tbasicIterations = 0;\n\t\tbaseAlgorithm();\n\t\ttotalIterations = basicIterations;\n\t\treturn clustering;\n\t}", "boolean hasCluster();", "public MicroCluster(List<GeoTweet> memberList, int id) {\r\n\t\tthis.clusterID = id;\r\n\t\t// init num, ssum, sum\r\n\t\tthis.num = 0;\r\n\t\tthis.sum = new ArrayRealVector(2); // sum\r\n\t\tthis.ssum = new ArrayRealVector(2); // ssum\r\n\t\tthis.words = new HashMap<Integer, Integer>();\r\n\t\tfor (GeoTweet tweet : memberList)\r\n\t\t\tabsorb(tweet);\r\n\t}", "public TrackerCluster getCluster() {return _cluster;}", "public WatsetClustering<V> compute() {\n logger.log(Level.INFO, \"Watset started.\");\n\n buildInventory();\n\n final var count = senses.values().stream().mapToInt(List::size).sum();\n logger.log(Level.INFO, \"Watset: sense inventory constructed including {0} senses.\", count);\n\n final var senseGraph = buildSenseGraph();\n\n if (graph.edgeSet().size() != senseGraph.edgeSet().size()) {\n throw new IllegalStateException(\"Mismatch in number of edges: expected \" +\n graph.edgeSet().size() +\n \", but got \" +\n senseGraph.edgeSet().size());\n }\n\n logger.log(Level.INFO, \"Watset: sense graph constructed.\");\n\n final var globalAlgorithm = global.apply(senseGraph);\n final var senseClusters = globalAlgorithm.getClustering();\n\n logger.log(Level.INFO, \"Watset finished.\");\n\n final var clusters = senseClusters.getClusters().stream().\n map(cluster -> cluster.stream().map(Sense::get).collect(Collectors.toSet())).\n collect(Collectors.toList());\n\n return new WatsetClustering.WatsetClusteringImpl<>(clusters,\n Collections.unmodifiableMap(inventory),\n new AsUnmodifiableGraph<>(senseGraph));\n }", "@Test\n public void should_iterate_with_default_params() throws Exception {\n long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);\n insertClusteredValues(partitionKey, 1, \"name1\", 5);\n\n Iterator<ClusteredEntity> iter = manager.sliceQuery(ClusteredEntity.class)\n .forIteration()\n .withPartitionComponents(partitionKey)\n .iterator();\n\n assertThat(iter.hasNext()).isTrue();\n ClusteredEntity next = iter.next();\n assertThat(next.getId().getCount()).isEqualTo(1);\n assertThat(next.getId().getName()).isEqualTo(\"name11\");\n assertThat(next.getValue()).isEqualTo(\"value11\");\n\n assertThat(iter.hasNext()).isTrue();\n next = iter.next();\n assertThat(next.getId().getCount()).isEqualTo(1);\n assertThat(next.getId().getName()).isEqualTo(\"name12\");\n assertThat(next.getValue()).isEqualTo(\"value12\");\n\n assertThat(iter.hasNext()).isTrue();\n next = iter.next();\n assertThat(next.getId().getCount()).isEqualTo(1);\n assertThat(next.getId().getName()).isEqualTo(\"name13\");\n assertThat(next.getValue()).isEqualTo(\"value13\");\n\n assertThat(iter.hasNext()).isTrue();\n next = iter.next();\n assertThat(next.getId().getCount()).isEqualTo(1);\n assertThat(next.getId().getName()).isEqualTo(\"name14\");\n assertThat(next.getValue()).isEqualTo(\"value14\");\n\n assertThat(iter.hasNext()).isTrue();\n next = iter.next();\n assertThat(next.getId().getCount()).isEqualTo(1);\n assertThat(next.getId().getName()).isEqualTo(\"name15\");\n assertThat(next.getValue()).isEqualTo(\"value15\");\n\n assertThat(iter.hasNext()).isFalse();\n }", "public void createCSVFromClusteringResult(final String outputPath, final Map<Double, List<Instance>> data)\n throws IOException {\n if (!data.isEmpty()) {\n final File file = new File(outputPath + \"/hierarchResults.csv\");\n\n // Creates the csv file.\n file.createNewFile();\n final BufferedWriter writer = Files.newBufferedWriter(file.toPath(), StandardOpenOption.CREATE);\n writer.append(\"# of cluster\");\n writer.append(',');\n writer.append(String.valueOf(data.size()));\n writer.append('\\n');\n\n // Write names of attributes to the file.\n final Enumeration attributeNames = data.entrySet().iterator().next().getValue().get(0)\n .enumerateAttributes();\n String attrNameString = \"\";\n while (attributeNames.hasMoreElements()) {\n String attrName = attributeNames.nextElement().toString();\n attrName = attrName.replace(\"@attribute '><\", \"\");\n attrName = attrName.replace(\"' numeric\", \"\");\n attrNameString += attrName;\n attrNameString += \", \";\n }\n writer.append(attrNameString);\n writer.append('\\n');\n\n // Write the different clusters and their assigned instances to the file.\n writer.append(\"ClusterID\");\n writer.append(',');\n writer.append(\"# of instances\");\n writer.append(',');\n writer.append(\"Assigned instances\");\n writer.append('\\n');\n for (final Entry<Double, List<Instance>> entry : data.entrySet()) {\n // Write cluster\n writer.append(String.valueOf(entry.getKey().intValue()));\n writer.append(',');\n // Write number of instances in this cluster\n writer.append(String.valueOf(entry.getValue().size()));\n writer.append(',');\n // Write list of instances which are assigned to this cluster.\n writer.append(\"[\");\n for (final Instance instance : entry.getValue()) {\n writer.append(\"[\");\n writer.append(String.valueOf(instance));\n writer.append(\"],\");\n }\n writer.append(\"]\");\n writer.append('\\n');\n }\n\n writer.flush();\n writer.close();\n }\n }", "public static void setupAllCrds(KubeClusterResource cluster) {\n cluster.createCustomResources(TestUtils.CRD_KAFKA);\n cluster.createCustomResources(TestUtils.CRD_KAFKA_CONNECT);\n cluster.createCustomResources(TestUtils.CRD_KAFKA_CONNECT_S2I);\n cluster.createCustomResources(TestUtils.CRD_KAFKA_MIRROR_MAKER);\n cluster.createCustomResources(TestUtils.CRD_KAFKA_MIRROR_MAKER_2);\n cluster.createCustomResources(TestUtils.CRD_KAFKA_BRIDGE);\n cluster.createCustomResources(TestUtils.CRD_TOPIC);\n cluster.createCustomResources(TestUtils.CRD_KAFKA_USER);\n cluster.createCustomResources(TestUtils.CRD_KAFKA_CONNECTOR);\n cluster.createCustomResources(TestUtils.CRD_KAFKA_REBALANCE);\n\n waitForCrd(cluster, \"kafkas.kafka.strimzi.io\");\n waitForCrd(cluster, \"kafkaconnects2is.kafka.strimzi.io\");\n waitForCrd(cluster, \"kafkaconnects.kafka.strimzi.io\");\n waitForCrd(cluster, \"kafkamirrormaker2s.kafka.strimzi.io\");\n waitForCrd(cluster, \"kafkamirrormakers.kafka.strimzi.io\");\n waitForCrd(cluster, \"kafkabridges.kafka.strimzi.io\");\n waitForCrd(cluster, \"kafkatopics.kafka.strimzi.io\");\n waitForCrd(cluster, \"kafkausers.kafka.strimzi.io\");\n waitForCrd(cluster, \"kafkaconnectors.kafka.strimzi.io\");\n waitForCrd(cluster, \"kafkarebalances.kafka.strimzi.io\");\n }" ]
[ "0.64521503", "0.6267353", "0.62411255", "0.6219375", "0.62051135", "0.61882204", "0.61576605", "0.61226475", "0.602637", "0.5998116", "0.5945764", "0.58836955", "0.5825458", "0.57449454", "0.5742378", "0.57139635", "0.5712104", "0.56963146", "0.5691176", "0.5683194", "0.5623693", "0.55377", "0.5534164", "0.5505769", "0.5501586", "0.5488627", "0.54513806", "0.54473263", "0.5441335", "0.5406102", "0.54017717", "0.53948534", "0.53880584", "0.5377857", "0.53731024", "0.5367649", "0.5362196", "0.53515786", "0.5344357", "0.532214", "0.5288232", "0.5284069", "0.52738726", "0.52731586", "0.52618414", "0.5223689", "0.52161235", "0.5205411", "0.5191593", "0.51904786", "0.51853615", "0.5185239", "0.5168803", "0.515705", "0.5155813", "0.51532793", "0.51485497", "0.5145984", "0.51453066", "0.51361996", "0.5128578", "0.5122697", "0.51190966", "0.51089144", "0.5108635", "0.5106638", "0.50983787", "0.5095287", "0.5079797", "0.50791425", "0.507399", "0.5073318", "0.5071324", "0.5061106", "0.50583917", "0.5048275", "0.5045594", "0.50423527", "0.5037994", "0.50346446", "0.49974614", "0.4982893", "0.4981966", "0.49768782", "0.49619022", "0.49605918", "0.49557406", "0.49549982", "0.49506366", "0.4950085", "0.49480322", "0.49417004", "0.4931519", "0.49179018", "0.49155575", "0.49132204", "0.49101996", "0.4909052", "0.49086082", "0.49043342" ]
0.7799995
0
/System.out.println(""); System.out.println("my getMaxJobsPerAcquisition"); System.out.println("");
@Override public int getMaxJobsPerAcquisition() { return myMaxJobsPerAcquisition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void execute(){\n readFromConsole();\n getMaxValue();\n }", "private String jobs() {\r\n\t\tint[] j=tile.getJobs();\r\n\t\tString out = \"Jobs Are: \";\r\n\t\tfor(int i=0; i<j.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+(j[i])+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "long countJobs();", "public void printMax() {\n MaxCalculation max1 = new MaxCalculation(0, 29);\n MaxCalculation max2 = new MaxCalculation(30, 59);\n MaxCalculation max3 = new MaxCalculation(60, 89);\n max1.setDaemon(true);\n max2.setDaemon(true);\n max3.setDaemon(true);\n max1.start();\n max2.start();\n max3.start();\n\n try {\n max1.join();\n max2.join();\n max3.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n int max = max1.value;\n if (max2.value > max) max = max2.value;\n if (max3.value > max) max = max3.value;\n\n System.out.println(\"the max value is \" + max);\n }", "int getJobsCount();", "int getJobsCount();", "int getJobsCount();", "void printMax(){\r\n\t\tSystem.out.printf(\"\\nThe stock with the highest value is \" + maxNode.stockName + \" with a value of $%.2f%n\",maxNode.stockValue);\r\n\t}", "private void printJobCount\n\t\t(PrintWriter out)\n\t\t{\n\t\tif (myNextJobNumber == 2)\n\t\t\t{\n\t\t\tout.print (\"1 job\");\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tout.print (myNextJobNumber-1);\n\t\t\tout.print (\" jobs\");\n\t\t\t}\n\t\tout.println (\" served\");\n\t\t}", "public static void main(String[] args) {\n\t\tvalues = new int[]{6,1,2,7,9};\n\t\tSystem.out.println(maxStolenGoods());\n\t}", "void work(){\n System.out.println(\"Emploee \"+ empID+\" is \"+age+\" years old\");\n }", "public static void main(String[] args) \r\n\t{\n\t\tfetchMaxBudget();\r\n\t}", "public void Sample() {\n \t\tfor (int loop = 0; loop < 10; loop++) {\n \t\t\tJobs jobUnit = new Jobs(\"java -version\");\n \t\t\tjobqueue.add(jobUnit);\n \t\t}\n \t}", "int getUserQuestJobsCount();", "public static void displaySta() {\n System.out.println(\"\\n\\n\");\n System.out.println(\"average service time: \" + doAvgProcessingTime() /100 + \" milliseconds\");\n System.out.println(\"max service time: \" + maxProcessingTime /100 + \" milliseconds\");\n System.out.println(\"average turn around time \" + doAvgTurnAroundTime()/100 + \" milliseconds\");\n System.out.println(\"max turn around time \" + maxTurnAroundTime/100 + \" milliseconds\");\n System.out.println(\"average wait time \" + doAvgWaitTime()/10000 + \" milliseconds\");\n System.out.println(\"max wait time \" + maxWaitTime/10000 + \" milliseconds\");\n System.out.println(\"end time \" + endProgramTime);\n System.out.println(\"start time \" + startProgramTime);\n System.out.println(\"processor utilization: \" + doCPU_usage() + \" %\");\n System.out.println(\"Throughput: \" + doThroughPut());\n System.out.println(\"---------------------------\");\n\n\n }", "public void printWorkload() {\n System.out.println(\"Routing Station \" + stationNumber + \" Has Total Workload Of \" + workload);\n }", "@Override\r\n\tpublic void work() {\n\t\tSystem.out.println( aname + \"Berkerja\");\r\n\t}", "public static void printTimelimit() {\n\t\n\tSystem.out.println(\"Time Limit \" + timeLimit);\n\t\n}", "public int getJobCost(int jNo);", "void printTotalQuantity();", "public String getIterationSurMax() { return (actuelIteration + 1) + \"/\" + totalIteration; }", "public int getAvgExecs()\n/* */ {\n/* 55 */ return this.avgExecs;\n/* */ }", "public static void main(String[] args) {\n\t\tString s = \"10000\";\r\n\t\tSystem.out.println(maxScoreSplit(s));\r\n\t}", "public static void main(String[] args) {\n System.out.print(\"Number of balloon is: \" + maxNumberOfBalloons(\"llo\"));\n\n }", "@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}", "@Test\n\tpublic void HeapMaximumtest2() {\n\t\tJob jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",50,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",80,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",1,5);\n\t\t \n\t\tString actual=PQHeap.HeapMaximum(jarray);\n\t\t \n\t\tassertEquals(jarray[0].job, actual);\n\t\t//fail(\"Not yet implemented\");\n\t}", "public static void main(String[] math) {\n System.out.println(max - min); }", "public static void main(String[] args) \n { \n \n System.out.println(\"Maximum water that can be accumulated is \" + \n \t\tanswer(arr)); \n }", "public static void main(String[] args) {\n // TODO code application logic here\n ArrayList<Integer> ints=new input().getInts(10);\n //PT -- stuff?\n calculates stuff=new calculates(ints);\n System.out.printf(\"Minimun Value is %d \\n\",(int)stuff.getMin());\n System.out.printf(\"Maximun Value is %d \\n\",(int)stuff.getMax());\n System.out.printf(\"Average Value is %f \\n\",stuff.getAvg());\n \n }", "public String execute() {\n\t\t\n\t\tjobs = new ArrayList<Map<String, String>>();\n\t\tMap<String, String> job = new HashMap<String, String>();\n\t\tjob.put(\"title\", \"Java Developer\");\n\t\tjob.put(\"description\", \"Java Developer 1\");\n\t\tjob.put(\"location\", \"london\");\n\t\tjobs.add(job);\n\t\t\n\t\tjob = new HashMap<String, String>();\n\t\tjob.put(\"title\", \"Java Developer\");\n\t\tjob.put(\"description\", \"Java Developer 1\");\n\t\tjob.put(\"location\", \"london\");\n\t\tjobs.add(job);\n\t\t\n \n\t\treturn \"SUCCESS\";\n \n\t}", "private static void Firstcommentary() {\n\t\tSystem.out.println(\" Sachin Scored highest Score \");\n\t\t\n\t}", "public void ex02() {\n\n boolean hasFinished = false;\n\n\n if (hasFinished==true) {\n printResults();\n }\n\n\n }", "public static void main(String[] args) {\n\n createClass(); //ctrl+click\n printTrainers();\n printStudents();\n printGroup();\n printstudentAlfabetically();\n getNumberOfStudentsFromGroup_classicMethod();\n getAllMaxNumberOfStudentsFromGroup_classicMethod(groups);\n displayGroupWithMaxNumOfStudent_FunctionalMethod();\n displayGroupWithMinNumOfStudent_FunctionalMethod();\n studentsYoungerThan(25);\n displayStudentsYoungerThan(25);\n System.out.println(displayStudentsYoungerThan1(25));\n System.out.println(displayStudentsYoungerThan2(23));\n studentsGroupedByTrainer_WithGroups();\n\n studentsGroupedByTrainer_WithMAp(); //Functioneaza daca nu fac modificari in grupuri\n\n //-----------------------------------\n\n displayStudentsWithPreviousJavaKnowledge();\n displayStudentsWithPreviousJavaKnowledge1();\n\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge();\n\n\n removeStudentsYoungerThanFromGroups(25);\n\n printStudentsAlphabeticallyByFirstName();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge4();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge2();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge3();\n System.out.println(\"Triple : \" + tripleNumberOfStudentsFromMaxGroup(getAllMaxNumberOfStudentsFromGroup_classicMethod(groups)));\n System.out.println(\"cuvantul cu dimensiunea cea mai mare este : \" + getLongestString(\"Diana\", \"Liviu\", \"Leah\"));//VARARGS: nputem scrie si fara paramatrii dar nu ne afiseaza nimic\n }", "int getMaxOutputLines();", "public static void main(String[] args) {\n// printTO1Million(2);\n printTO1Million(3);\n }", "@Test\n\tpublic void HeapMaximumtest1() {\n\t\tJob jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",10,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",2,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",1,5);\n\t\t \n\t\tString actual=PQHeap.HeapMaximum(jarray);\n\t\t \n\t\tassertEquals(jarray[0].job, actual);\n\t\t//fail(\"Not yet implemented\");\n\t}", "protected void printExecutionTime(){\n //Do nothing\n }", "@Test\n\tpublic void HeapMaximumtest() {\n\t\tJob jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",20,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",20,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",20,5);\n\t\t \n\t\tString actual=PQHeap.HeapMaximum(jarray);\n\t\t \n\t\tassertEquals(jarray[0].job, actual);\n\t\t//fail(\"Not yet implemented\");\n\t}", "public String getJobCount() {\r\n return jobCount;\r\n }", "private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }", "public double getTotalScore(){\n // System.out.print(\"\\nQUIZZ TOTAL \" + quizTotal);\n return quizTotal;\n}", "public String dlMaxFailures();", "public static void main(String[] args) {\n int perimeter = calculatePerimeter(2,4);\n int volume = calculateVolume(2, 4, 6);\n float temperature = convertToCelsius(100);\n int time = transformToSeconds(1, 10, 30);\n int intArray[] = new int[]{ 1,2,3,4,5,6,7,8,9,10 };\n float media = calculateMedia(intArray);\n\n System.out.println(\"O perimetro do rectangulo e: \" + perimeter);\n System.out.println(\"O volume do paralelepipedo e: \" + volume);\n System.out.println(\"A temperatura em Celsius e: \" + temperature);\n System.out.println(\"O tempo em segundos e: \" + time);\n System.out.println(\"max: \" + maximum);\n }", "private int runJob(java.io.PrintWriter r10) throws java.lang.Exception {\n /*\n r9 = this;\n java.lang.String r0 = \"force scheduled jobs\"\n r9.checkPermission(r0)\n r0 = 0\n r1 = 0\n L_0x0007:\n java.lang.String r2 = r9.getNextOption()\n r3 = r2\n if (r2 == 0) goto L_0x0080\n int r2 = r3.hashCode()\n r4 = -1626076853(0xffffffff9f14094b, float:-3.1347906E-20)\n r5 = 3\n r6 = 2\n r7 = 1\n r8 = -1\n if (r2 == r4) goto L_0x0047\n r4 = 1497(0x5d9, float:2.098E-42)\n if (r2 == r4) goto L_0x003d\n r4 = 1512(0x5e8, float:2.119E-42)\n if (r2 == r4) goto L_0x0033\n r4 = 1333469547(0x4f7b216b, float:4.2132713E9)\n if (r2 == r4) goto L_0x0029\n L_0x0028:\n goto L_0x0051\n L_0x0029:\n java.lang.String r2 = \"--user\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x0028\n r2 = r5\n goto L_0x0052\n L_0x0033:\n java.lang.String r2 = \"-u\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x0028\n r2 = r6\n goto L_0x0052\n L_0x003d:\n java.lang.String r2 = \"-f\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x0028\n r2 = 0\n goto L_0x0052\n L_0x0047:\n java.lang.String r2 = \"--force\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x0028\n r2 = r7\n goto L_0x0052\n L_0x0051:\n r2 = r8\n L_0x0052:\n if (r2 == 0) goto L_0x007d\n if (r2 == r7) goto L_0x007d\n if (r2 == r6) goto L_0x0074\n if (r2 == r5) goto L_0x0074\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r4 = \"Error: unknown option '\"\n r2.append(r4)\n r2.append(r3)\n java.lang.String r4 = \"'\"\n r2.append(r4)\n java.lang.String r2 = r2.toString()\n r10.println(r2)\n return r8\n L_0x0074:\n java.lang.String r2 = r9.getNextArgRequired()\n int r1 = java.lang.Integer.parseInt(r2)\n goto L_0x007f\n L_0x007d:\n r0 = 1\n L_0x007f:\n goto L_0x0007\n L_0x0080:\n java.lang.String r2 = r9.getNextArgRequired()\n java.lang.String r4 = r9.getNextArgRequired()\n int r4 = java.lang.Integer.parseInt(r4)\n long r5 = android.os.Binder.clearCallingIdentity()\n com.android.server.job.JobSchedulerService r7 = r9.mInternal // Catch:{ all -> 0x00b5 }\n int r7 = r7.executeRunCommand(r2, r1, r4, r0) // Catch:{ all -> 0x00b5 }\n boolean r8 = r9.printError(r7, r2, r1, r4) // Catch:{ all -> 0x00b5 }\n if (r8 == 0) goto L_0x00a1\n android.os.Binder.restoreCallingIdentity(r5)\n return r7\n L_0x00a1:\n java.lang.String r8 = \"Running job\"\n r10.print(r8) // Catch:{ all -> 0x00b5 }\n if (r0 == 0) goto L_0x00ad\n java.lang.String r8 = \" [FORCED]\"\n r10.print(r8) // Catch:{ all -> 0x00b5 }\n L_0x00ad:\n r10.println() // Catch:{ all -> 0x00b5 }\n android.os.Binder.restoreCallingIdentity(r5)\n return r7\n L_0x00b5:\n r7 = move-exception\n android.os.Binder.restoreCallingIdentity(r5)\n throw r7\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.job.JobSchedulerShellCommand.runJob(java.io.PrintWriter):int\");\n }", "public static void main(String[] args)throws Exception {\n\t\t IQueue queue=new Queue_using_LL();\n\t\t queue.enqueue(10);\n\t\t queue.enqueue(20);\n\t\t queue.enqueue(30);\n\t\t queue.display();\n\t\t queue.dequeue();\n\t\t queue.display();\n\tSystem.out.println( queue.size());\n\t\t\n\t}", "@Override\r\n\tpublic void work() {\n\t\tSystem.out.println(\"0.5 FTE\");\r\n\t}", "public static void stdout(){\n\t\tSystem.out.println(\"Buildings Found: \" + buildingsFound);\n\t\tSystem.out.println(\"Pages searched: \"+ pagesSearched);\n\t\tSystem.out.println(\"Time Taken: \" + (endTime - startTime) +\"ms\");\t\n\t}", "public static void main(String[] args) {\n\t\tRange_Addition_II_598 r=new Range_Addition_II_598();\n\t\tint m=3;\n\t\tint n=3;\t\t\n\t\tint[][] ops=new int[][]{\t\t\t\n\t\t};\n\t\tSystem.out.println(r.maxCount(m, n, ops));\n\t}", "public static void main(String[] args) {\nint firstNumber=1000;\nint secondNumber=999;\nint result=maxof(firstNumber,secondNumber);//METHOD CALLING\n\n \nmaxof(23,24);\nmaxof(35,40);\nSystem.out.println(result);\nsay();\nsay();\n\t}", "@Override\r\n\tpublic String scheda() {\n\t\treturn getNome() + \"\\t\" + getDescrizione() + \"\\t\" + benchmark;\r\n\t}", "@Override\n\tpublic boolean doJobs() {\n\n\t\tERRCODE = \"0\";\n\t\tERRDESC = \"succ\";\n\n\t\tcalPrice();\n\n\t\treturn true;\n\n\t}", "String getMax_res();", "public static void main(String[] args) {\n\t\tint ressult =maxProduct(new int[]{0,0,0,0,0,20}, 6);\n\t\tSystem.out.println(ressult);\n\t\tSystem.out.println(maxProduct(new int[]{0,0,0,0,0,20}));\n\t\tSystem.out.println(maxCustomProduct(new int[]{0,0,0,0,0,20}));\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"start . . . \");\n\t\tlong start = System.currentTimeMillis();\n\t\t//rankOffer();\n\t\t//statisticOffer();\\\n\t\t//displayOffer();\n\t\t//idReplace();\n\t\tupdate();\n\t\t//randName();\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(\"end use time : \"+ (end-start)+\" ms .\");\n\t}", "public static void printUsage() {\n System.out.println(\"*****\\t*****\\t*****\");\n System.out.println(\"Usage:\");\n System.out.println(\"par/seq, L/B, N, M, C, output file\");\n System.out.println(\"Using type of calculation: par(parallel) or seq(sequential)\");\n System.out.println(\"Using numbers: L - Long, B - BigInteger\");\n System.out.println(\"Program finds all prime numbers in range [N, M]\");\n System.out.println(\"That ends with number C\");\n System.out.println(\"N, M, C should be whole numbers and N must be less than M!\");\n System.out.println(\"Output is written into file \\\"output file\\\", first number is \");\n System.out.println(\"The quantity of prime numbers and after - all found prime numbers\");\n System.out.println(\"*****\\t*****\\t*****\");\n }", "public static void main(String[] args)\r\n\t{\n\t\tQueuingNetworkOld qn = new QueuingNetworkOld(250000);\r\n\t\tqn.simulate();\r\n\t\t\r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\t//System.out.println(qn.CPUServiceTime());\r\n\t\t\t//sum += (qn.NetworkServiceTime());\r\n\t\t\t//System.out.println(qn.DiskDepartProb());\r\n\t\t}\r\n\t\t//System.out.println(sum/1000.0);\r\n\t\t\r\n\t\t \r\n\t}", "public void breathe(){\n\n System.out.println(\"Through big nostrills\");\n }", "public static void main(String[] args){\n printMessage(\"so\", \"calm..\");\n System.out.println(sum(3,5,6));\n }", "ProcessRunner print();", "private void syso() {\nSystem.out();\r\n}", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "public static void main(String[] args) {\n\t\tint[] len={1,2,3,4,5,6,7,8};\r\n\t\tint[] cost={1,5,8,9,10,17,17,20};\r\n\t\tSystem.out.println(maxPrice(len,cost,8,len.length-1,0));\r\n\t}", "public static void main(String[] args) {\n Path file = pf.dataFolder.resolve(\n pf.resource.getString(\"data.file\"));\n List<Double> parameters = parseParameters(loadParameters(file));\n List<Double> results = new ArrayList<>();\n Scanner s = new Scanner(System.in);\n System.out.print(\"How many runs would you like to conduct? \");\n int runs = Integer.parseInt(s.nextLine());\n for (int i = 0; i < runs; i++) {\n double result = Volumetrics.oilInPlaceMCCast(parameters);\n results.add(result);\n System.out.printf(\"%,.2f%n\", result);\n }\n Collections.sort(results);\n System.out.print(\"P50 value of results: \");\n System.out.printf(\"%,.2f%n\",results.get(results.size() / 2));\n }", "public static void main(String[] args) {\n\t\n\t\tArrayList DP_result=DP_min_operation(98734);\n\t\tArrayList result_arry=step_to_primitive_cal(98734,DP_result);\n\t\tSystem.out.println(result_arry);\n\t\tSystem.out.println(result_arry.size());\n\n\t}", "public static void printUsage() {\n\t\tSystem.out.println(getVersions());\n\t\tSystem.out.println(\"Collect BE Metrics about Cache, Agent, and RTC\");\n\t\tSystem.out.println(\"BEJMX Usage:\");\n\t\tSystem.out.println(\"java com.tibco.metrics.bejmx.BEJMX -config <configFile> [-pid <pidList>]\");\n\t}", "@Override\n public String getJobName() {\n return operate_name;\n }", "@Test\n\tpublic void HeapExtractMaximumtestNoPriorities() {\n\t\t Job jarray[]=new Job[1];\n\t\t \n\t\t Job actual=PQHeap.HeapExtractMaximum(jarray);\n\t\t //System.out.println(\"\"+actual);\n\t\t//assertTrue((new Job(\"job1\",20,1)).equals(actual));\n\t\t//assertEquals(new Job(\"job1\",20,1), actual);\n\t\t assertNotEquals(new Job(\"job3\",20,1), actual);\n\t\t//fail(\"Not yet implemented\");\n\t}", "public static void main(String[] args) { //this is main method\r\n\r\n System.out.println(\"Employee name Oksana\"); // prints to the console\r\n System.out.println(\"Company name Zebra\"); /* prints to the console*/\r\n System.out.println(\"Job title: nail technitian\");\r\n System.out.println(\"Salary: $100000\");\r\n\r\n\r\n }", "public int getRun();", "public static void main(String[] args) {\n System.out.println(\"Start of code\");\r\n\t\t\r\n\t\tmyAdd();\r\n\t\tmyAdd();\r\n\t\tmyAdd();\r\n\t\tmyMultiple(15,23);\r\n\t\tmyMultiple(15,22);\r\n\t\t\r\n\t\tint a= myDivision(100,5);\r\n\t\tSystem.out.println(\"Value of s is \"+a);\r\n\t\t\r\n\t\tint b= myDivision(100,15);\r\n\t\tSystem.out.println(\"Value of s is \"+b);\r\n \r\n\t\tSystem.out.println(\"End of code\");\r\n\t}", "public static void main(String[] args) {\n\t\tint n = 6, headID = 2;\n\t\tint[] manager = new int[] { 2, 2, -1, 2, 2, 2 }, informTime = new int[] { 0, 0, 1, 0, 0, 0 };\n\t\tSystem.out.println(new TimeNeededToInformEmployees().numOfMinutes(n, headID, manager, informTime));\n\t}", "public static void main(String[] args) {\n\r\n\t\tfinal int NUM_BARS;\r\n\t\t\r\n\t\tfinal double PURCHASE_PRICE = 11562,\r\n\t\t\t\t\t SELLING_PRICE = 13243,\r\n\t\t\t\t\t BROKE_COMM_RATE = 0.03;\r\n\t\r\n\t\tdouble goldPurchase ,\r\n\t\t\t\tpurchaseComm,\r\n\t\t\t\tamountPaid,\r\n\t\t\t\tgoldSale,\r\n\t\t\t\tsellingComm,\r\n\t\t\t\tamountRecieved,\r\n\t\t\t\tprofitOrLoss;\r\n\t\t\r\n\t\t\r\n\t\tgoldPurchase = 567 * PURCHASE_PRICE;\r\n\t\tpurchaseComm = goldPurchase * BROKE_COMM_RATE;\r\n\t\tamountPaid = goldPurchase + purchaseComm;\r\n\t\tgoldSale = 567 * SELLING_PRICE;\r\n\t\tsellingComm = goldSale * BROKE_COMM_RATE;\r\n\t\tamountRecieved = goldSale - sellingComm;\r\n\t\tprofitOrLoss = amountRecieved - amountPaid; \r\n\t\t\r\n\t\tSystem.out.printf(\"Jack paid $%,.2f for the gold. \\njack paid his broker a commission of $%,.2f on the purchase. \" + \"\\nSo jack paid a total of $%,.2f \\n\\n jack sold the gold for $%,.2f\"\r\n\t\t\t\t+ \"\\nJack paid his broker a commission of $%,.2f on the sale. \\n \" + \"so jack recieved a total of $%,.2f\\n\\n\"\r\n\t\t\t\t+\"jack\\'s profit or loss : $%,.2f\", goldPurchase, purchaseComm, amountPaid, goldSale, sellingComm, amountRecieved, profitOrLoss);\r\n\t\t\r\n\r\n\t}", "private void realPrint(PrintJob job) {\n\t}", "private void realPrint(PrintJob job) {\n\t}", "public static void main(String[] args) {\n\n int offerCnt = 3 ;\n\n int corollaMileage ;\n corollaMileage = 5000;\n\n int TVsize = 67;\n System.out.println(TVsize);\n\n\n System.out.println(offerCnt);\n System.out.println( corollaMileage );\n\n\n // name your favorite number\n // name your classmate count\n\n\n int my$FavoriteNumber = 4;\n int myClassmate_Count =270;\n\n System.out.println(my$FavoriteNumber );\n System.out.println(myClassmate_Count );\n\n\n int my$FolderCount = 6;\n my$FolderCount = 10;\n my$FolderCount = 100; // the last value win\n\n System.out.println(my$FolderCount); // poluchitsya 100\n\n\n\n\n }", "public static void main(String[] args) {\n\n int n = in.nextInt();\n int q = in.nextInt();\n int[] arr = new int[n];\n\n for (int i = 0; i < n; i++) {\n arr[i] = in.nextInt();\n }\n DiskSchedulerInfo dsi = new DiskSchedulerInfo(arr, q, 200);\n ISchedule[] scs = new ISchedule[]{\n new FCFS(dsi),\n new SSTF(dsi),\n new SCAN(dsi),\n new C_SCAN(dsi),\n new LOOK(dsi),\n new C_LOOK(dsi),\n new Optimized(dsi)\n };\n for (ISchedule sc : scs) {\n System.out.println(\"---------------------------\");\n System.out.println(sc.getClass().getName());\n System.out.println(\"---------------------------\");\n\n sc.simulate();\n Movement.printMovements(dsi.headStart, sc.getMovements());\n System.out.print(\"Order of processing: \");\n for (int v : sc.getOrderOfProcessing()) {\n System.out.print(v + \" \");\n }\n System.out.println();\n System.out.println(\"Total Movement is: \" + Movement.getTotalMovements(sc.getMovements()));\n }\n }", "private void realPrint(PrintJob job) {\n\t\tout.println(\"Print okay!\");\r\n\t}", "public static void main(String[] args) {\n ex75DecreasingCounter counter = new ex75DecreasingCounter(10);\n\n counter.printValue();\n\n counter.decrease();\n counter.printValue();\n\n counter.decrease();\n counter.printValue();\n }", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "public RunProcDefJob() {\n\t}", "public void mpgCalculations() {\n\n }", "void print() {\n for (Process process : workload) {\n System.out.println(process);\n }\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tint m =2, total =0;\n\t\twhile(m<6)\n\t\t{\n\t\t\ttotal=total+m;\n\t\t\tm++;\n\t\t}\n\t\t\n\t\tSystem.out.print(total);\n\t\t\n\t}", "public static void main(String args[]) throws Exception\r\n\t{\n \tSystem.out.print(\"TASK 2\");\r\n \t\r\n\t}", "public static void main(String[] args) {\n int division = getDivision(10);\n System.out.println(division);\n }", "public static void main(String[] args){\n System.out.println(countSummations(100));\n }", "public static void main(String[] args) { //this is main method, used for running the java\n System.out.println(\"Company Name: Amazon\");\n //print statemnets is used for priniting\n System.out.println(\"Employee Name: Javkhlantugs Jambaa\");\n System.out.println(\"Job Title: SDET\");\n System.out.println(\"Employee ID: 1992128\");\n System.out.println(\"Salary: $1500000\");\n\n\n }", "long getRunner();", "@Override\n\tpublic void doJob() {\n\t\tSystem.out.println(\"Studying\");\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(returnBol());\n\t}", "public static void main(String[] args){\r\n\t\tSystem.out.println(minProductSum(50));\r\n\t}", "public static void main(String[] args) {\n\n\n QueueClass queueClass = new QueueClass();\n\n queueClass.addToQueue(33);\n queueClass.addToQueue(44);\n queueClass.addToQueue(24);\n queueClass.addToQueue(68);\n\n System.out.println(\"_________\");\n queueClass.showFirstNumber();\n System.out.println(\"_________\");\n queueClass.removeFromQueue();\n System.out.println(\"_________\");\n queueClass.showSize();\n System.out.println(\"_________\");\n queueClass.isItEmpty();\n\n }", "public int getMaxRunTime() {\n return maxRunTime;\n }", "public static void main(String[] args) {\n int[] test = {1, 8, 6, 2, 5, 4, 8, 3, 7};\n System.out.println(\"The input test case is the following:\");\n for (int e : test) {\n System.out.print(e + \",\");\n }\n System.out.println(\"\\nAnd result(Brute-force) is \" + maxAreaBruteForce(test) + \".\");\n System.out.println(\"The result(Two pointers) is \" + maxArea(test) + \".\");\n }", "public static void main(String args[]) {\n\t\tint eggs = 6; \n\t\tint baskets = 10; \n\t\tSystem.out.println(\"If you have \\n\" + eggs + \" eggs per basket and \\n\"\n\t\t\t\t+ baskets + \" baskets, then \\n\" + \n\t\t\t\t\"the total number of eggs \" + eggs * baskets);\n\t}" ]
[ "0.6418852", "0.6411804", "0.62887084", "0.62174624", "0.60787153", "0.60787153", "0.60787153", "0.593894", "0.58808064", "0.5846207", "0.58375394", "0.5816564", "0.58122164", "0.5794204", "0.57922655", "0.5787413", "0.5774488", "0.57735234", "0.57724726", "0.5756108", "0.5751993", "0.5676575", "0.566155", "0.5637746", "0.563488", "0.56224847", "0.5619983", "0.56096435", "0.5601999", "0.56017995", "0.5600395", "0.5568281", "0.5561112", "0.5558575", "0.5557517", "0.5551688", "0.55446506", "0.55442953", "0.55392134", "0.55376726", "0.55362046", "0.55359423", "0.55306816", "0.5495904", "0.5494227", "0.54938513", "0.54899305", "0.54888797", "0.5477037", "0.5475292", "0.5472065", "0.5467281", "0.54656917", "0.5459669", "0.54533285", "0.54498833", "0.5448269", "0.5438993", "0.54372895", "0.54358995", "0.54332507", "0.54332507", "0.54332507", "0.54332507", "0.54332507", "0.54332507", "0.54316914", "0.54305995", "0.5430283", "0.5426916", "0.54215497", "0.54186136", "0.54176784", "0.54131895", "0.5412079", "0.54080784", "0.54048973", "0.54037917", "0.54037917", "0.53987885", "0.5398452", "0.53962517", "0.5393001", "0.53881735", "0.5376027", "0.53749084", "0.53719425", "0.53710586", "0.5361149", "0.5357225", "0.535315", "0.5352685", "0.5349384", "0.5346488", "0.53412116", "0.53409165", "0.53320175", "0.5331161", "0.53292286", "0.5324173" ]
0.6342389
2
Constructor that takes the adapter and the layout manager of the recycler view
public RecyclerViewFooterScrollView(AbstractHeaderFooterAdapter adapter, LinearLayoutManager layoutManager) { this.adapter = adapter; this.layoutManager = layoutManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initRecyclerview() {\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n\n mAdapter = new MovieAdapter(this);\n recyclerView.setAdapter(mAdapter);\n }", "public void initRecyclerView() {\n\r\n\r\n recyclerView.setHasFixedSize(true);\r\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\r\n\r\n\r\n adapter = new LokerAdapter(getContext(), itemList);\r\n recyclerView.setAdapter(adapter);\r\n\r\n }", "private void setUpRecycler() {\n recyclerView = (RecyclerView) findViewById(R.id.recycler_view);\n mAdapter = new ConverterAdapter(this, currencyList);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n ItemTouchHelper.Callback callback =\n new ItemMoveCallback(mAdapter);\n ItemTouchHelper touchHelper = new ItemTouchHelper(callback);\n touchHelper.attachToRecyclerView(recyclerView);\n recyclerView.setAdapter(mAdapter);\n }", "private void setUpRecyclerview(){\r\n mRecyclerview = (RecyclerView) findViewById(R.id.roomRecView);\r\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\r\n mRecyclerview.setLayoutManager(linearLayoutManager);\r\n mRecyclerview.setHasFixedSize(true);\r\n mRoomRecyclerview = new RoomRecyclerview(this,mQuery,mAdapterItems,mAdapterKeys);\r\n mRecyclerview.setAdapter(mRoomRecyclerview);\r\n RecyclerView.ItemAnimator itemAnimator = new DefaultItemAnimator();\r\n itemAnimator.setAddDuration(1000);\r\n itemAnimator.setRemoveDuration(1000);\r\n itemAnimator.setChangeDuration(1000);\r\n itemAnimator.setMoveDuration(1000);\r\n mRecyclerview.setItemAnimator(itemAnimator);\r\n\r\n }", "private void initDashboardListRecyclerView() {\n GridLayoutManager gridLayoutManager;\n if (AppUtils.isTablet()) {\n gridLayoutManager = new GridLayoutManager(this, 3);\n } else {\n gridLayoutManager = new GridLayoutManager(this, 1);\n\n }\n /* setLayoutManager associates the gridLayoutManager with our RecyclerView */\n mDashboardList.setLayoutManager(gridLayoutManager);\n\n mDashboardList.setItemAnimator(new DefaultItemAnimator());\n\n /*\n * Use this setting to improve performance if you know that changes in content do not\n * change the child layout size in the RecyclerView\n */\n mDashboardList.setHasFixedSize(true);\n\n /*\n * The RecipesListAdapter is responsible for linking our recipes' data with the Views that\n * will end up displaying our recipe data.\n */\n mDashboardListAdapter = new DashboardListAdapter(this);\n\n /* Setting the adapter attaches it to the RecyclerView in our layout. */\n mDashboardList.setAdapter(mDashboardListAdapter);\n\n }", "private void initView() {\n // set layout for recycle view\n //hasFixedSize true if adapter changes cannot affect the size of the RecyclerView\n recyclerView.setHasFixedSize(true);\n // this layout can be vertical or horizontal by change the second param\n // of LinearLayoutManager, and display up to down by set the third param false\n LinearLayoutManager layoutManager = new LinearLayoutManager(this,\n LinearLayoutManager.VERTICAL, false);\n\n recyclerView.setLayoutManager(layoutManager);\n importData();\n // set adapter for recycle view\n recyclerView.setAdapter(alarmAdapter);\n }", "private void setupRecyclerView() {\n recyclerView.setRecycledViewPool(recycledViewPool);\n\n // We are using a multi span grid to allow two columns of buttons. To set this up we need\n // to set our span count on the controller and then get the span size lookup object from\n // the controller. This look up object will delegate span size lookups to each model.\n controller.setSpanCount(SPAN_COUNT);\n// GridLayoutManager gridLayoutManager = new GridLayoutManager(this.getContext(),SPAN_COUNT);\n StaggeredGridLayoutManager gridLayoutManager = new StaggeredGridLayoutManager(SPAN_COUNT, StaggeredGridLayoutManager.VERTICAL);\n// gridLayoutManager.setSpanSizeLookup(controller.getSpanSizeLookup());\n recyclerView.setLayoutManager(gridLayoutManager);\n\n recyclerView.setHasFixedSize(true);\n// recyclerView.addItemDecoration(new VerticalGridCardSpacingDecoration());\n recyclerView.setItemAnimator(new SampleItemAnimator());\n recyclerView.setAdapter(controller.getAdapter());\n }", "public ItemsAdapter() {\n\n\n }", "private void initRecyclerView() {\n RecyclerView recyclerview = findViewById(R.id.projectList);\n RecyclerViewAdapter adapter = new RecyclerViewAdapter(projectNames, this);\n recyclerview.setAdapter(adapter);\n final LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerview.setLayoutManager(layoutManager);\n }", "public void initRecyclerView() {\n rvTodos = (RecyclerView) findViewById(R.id.rvTodos);\n\n // Create adapter passing in the sample user data\n TodoAdapter adapter = new TodoAdapter(todos, this);\n // Attach the adapter to the recyclerview to populate items\n rvTodos.setAdapter(adapter);\n // Set layout manager to position the items\n LinearLayoutManager mLayoutManager = new LinearLayoutManager(this);\n mLayoutManager.setReverseLayout(true);\n mLayoutManager.setStackFromEnd(true);\n rvTodos.setLayoutManager(mLayoutManager);\n // That's all!\n }", "private void setAdapter() {\n adapter = new MessageAdapter(messages);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(adapter);\n }", "public FeedRecyclerAdapter() {\n super();\n }", "private void setRecycleView(){\n\n RecyclerView recyclerView = findViewById(R.id.recycler_view);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(multiViewAdapter);\n }", "protected void setUpListOfImageRecyclerView() {\n try {\n\n content_layout.removeAllViews();\n RecyclerView recyclerView = new RecyclerView(getApplicationContext());\n recyclerView.setLayoutParams(\n new ViewGroup.LayoutParams(\n // or ViewGroup.LayoutParams.WRAP_CONTENT\n ViewGroup.LayoutParams.MATCH_PARENT,\n // or ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.MATCH_PARENT));\n\n LinearLayoutManager layoutManager\n = new LinearLayoutManager(getApplicationContext(), LinearLayoutManager.HORIZONTAL, false);\n\n // set main_logo LinearLayoutManager with HORIZONTAL orientation\n recyclerView.setLayoutManager(layoutManager);\n\n // call the constructor of CustomAdapter to send the reference and data to Adapter\n recyclerView.setAdapter(mSelectedImageAdapter); // set the Adapter to RecyclerView\n\n\n content_layout.addView(recyclerView);\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "private void setupRecyclerView() {\r\n\r\n LinearLayoutManager layoutManager = new LinearLayoutManager\r\n (getContext(), LinearLayoutManager.VERTICAL, false);\r\n if (adapter == null) {\r\n adapter = new SchoolAdapter(getContext(), schoolList);\r\n recyclerView.setLayoutManager(layoutManager);\r\n recyclerView.setAdapter(adapter);\r\n recyclerView.setItemAnimator(new DefaultItemAnimator());\r\n recyclerView.setNestedScrollingEnabled(true);\r\n } else {\r\n adapter.notifyDataSetChanged();\r\n }\r\n }", "public void setRecycler(){\n GridLayoutManager manager=new GridLayoutManager(context,2,LinearLayoutManager.HORIZONTAL,\n false);\n\n recyclerView.setLayoutManager(manager);\n recyclerView.setHasFixedSize(true);\n MainMenuAdapter mainMenuAdapter=new MainMenuAdapter(menuRows,context,true);\n recyclerView.setAdapter(mainMenuAdapter);\n }", "public CommonHolder_Recycler_beauty_adapter(View itemView) {\n super(itemView);\n\n\n\n }", "private void prepareRecyclerView() {\n equipmentInventoryListAdapter = new EquipmentInventoryListAdapter_v2(equipmentInventoryAvailableCallback, equipmentInventoryMissingCallback);\n GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 2);\n binding.equipmentInventoryList.setLayoutManager(layoutManager);\n binding.equipmentInventoryList.setAdapter(equipmentInventoryListAdapter);\n //binding.equipmentInventoryList.addItemDecoration(new DividerItemDecoration(binding.equipmentInventoryList.getContext(), DividerItemDecoration.HORIZONTAL));\n }", "private void setupRecyclerView(@NonNull RecyclerView recyclerView) {\n if(mForumList != null) {\n recyclerView.setAdapter(new SimpleItemRecyclerViewAdapter((HomeActivity) getActivity(), mForumList, mTwoPane));\n }\n }", "public void setupAdapter() {\n recyclerAdapter = new PhotosAdapter(this);\n recyclerViewPhotos.setAdapter(recyclerAdapter);\n }", "private void setupRecyclerView(@NonNull RecyclerView recyclerView) {\r\n myAdapter = new SimpleItemRecyclerViewAdapter(model.getShelters());\r\n recyclerView.setAdapter(myAdapter);\r\n }", "MyRecyclerViewAdapter(Context context, List<String> data,List<String> giorno,List<String> primo,List<String> secondo,List<String> contorno,List<String> dolce) {\n this.mInflater = LayoutInflater.from(context);\n this.mdata = data;\n this.mgiorno = giorno;\n this.mprimo = primo;\n this.msecondo = secondo;\n this.mcontorno = contorno;\n this.mdolce = dolce;\n\n\n\n }", "private void initRecyclerView(){\n facility_RCV_result.setHasFixedSize(true);\n layoutManager = new LinearLayoutManager(this.getContext());\n facility_RCV_result.setLayoutManager(layoutManager);\n mAdapter = new FacilityRecyclerViewAdapter(facilityArrayList);\n facility_RCV_result.setAdapter(mAdapter);\n }", "public OrderItemHolder(MyAdapter myAdapter) {\n super(myAdapter, R.layout.delivered_order_item);\n ButterKnife.bind(this, itemView);\n }", "private void setUpBookingRecycler() {\n LinearLayoutManager linearLayoutManager1 = new LinearLayoutManager(mThis);\n linearLayoutManager1.setOrientation(LinearLayoutManager.VERTICAL);\n mBinding.requestRv.setLayoutManager(linearLayoutManager1);\n\n }", "public ModelRecyclerAdapter(Context context, ArrayList<Model> myDataset) {\n mDataset = myDataset;\n mContext = context.getApplicationContext();\n mInflater = LayoutInflater.from(context);\n }", "private void setAdapter() {\n resultsRv.setLayoutManager(new LinearLayoutManager(getActivity()));\n resultsRv.setHasFixedSize(true);\n resultsRv.setItemAnimator(new DefaultItemAnimator());\n resultsRv.setAdapter(resultsListAdapter);\n }", "public void setRecyclerView(){\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n RealmResults<TodoItemModel> toDoItems = realm.where(TodoItemModel.class).findAllAsync();\n TodoItemAdapter adapter = new TodoItemAdapter(this, toDoItems);\n recyclerView.setHasFixedSize(true);\n recyclerView.addItemDecoration(new SimpleDividerItemDecoration(this));\n recyclerView.setAdapter(adapter);\n }", "private void setUpRecycler() {\n Log.d(\"MainActivity\", \"setUpRecycler : start\");\n // Connecting the recyclerview to the view in the layout\n prayerRecyclerView = findViewById(R.id.recycler_main_movie);\n\n // Creating our custom adapter\n prayerRecyclerAdapter = new PrayerRecyclerAdapter(this, prayerList);\n Log.d(\"MainActivity\", \"setUpRecycler : prayerList = \" + prayerList.size());\n // Setting the adapter to our recyclerview\n prayerRecyclerView.setAdapter(prayerRecyclerAdapter);\n\n // Creating and setting a layout manager.\n // Note that the manager is VERTICAL, thus a vertical list\n LinearLayoutManager layout = new LinearLayoutManager(\n this, LinearLayoutManager.VERTICAL, false);\n prayerRecyclerView.setLayoutManager(layout);\n Log.d(\"MainActivity\", \"setUpRecycler : stop\");\n }", "public BaseRecyclerListAdapter() {\n }", "MyRecyclerViewAdapter(Context context, ArrayList<Answer> answers) {\n this.mInflater = LayoutInflater.from(context);\n this.answers=answers;\n }", "private void setupRecyclerView() {\r\n recyclerView = rootView.findViewById(R.id.recycler_view);\r\n animeAdapter = new AnimeAdapter(this, this);\r\n recyclerView.setAdapter(animeAdapter);\r\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\r\n }", "private void setupRecycler() {\n realmRecycler.setHasFixedSize(true);\n // use a linear layout manager since the cards are vertically scrollable\n //final LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n final LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n realmRecycler.setLayoutManager(layoutManager);\n // create an empty adapter and add it to the recycler view\n //realmJarsAdapter = new JarsAdapter(this);\n realmJarsAdapter = new JarsAdapter(getContext());\n realmRecycler.setAdapter(realmJarsAdapter);\n }", "private void setAdapter(){\n ArrayList<Veranstaltung>ver = new ArrayList<>(studium.getLVS());\n recyclerView = findViewById(R.id.rc);\n LinearLayoutManager manager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(manager);\n recyclerView.setHasFixedSize(true);\n adapter = new StudiumDetailsRecylerAdapter(ver);\n recyclerView.setAdapter(adapter);\n }", "@Override\n public void setUpAdapterAndView(List<ListItem> listOfData) {\n this.listOfData = listOfData;\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n\n recyclerView.setLayoutManager(layoutManager);\n\n adapter = new CustomAdapter();\n recyclerView.setAdapter(adapter);\n\n DividerItemDecoration itemDecoration = new DividerItemDecoration(\n recyclerView.getContext(),\n layoutManager.getOrientation()\n );\n\n itemDecoration.setDrawable(\n ContextCompat.getDrawable(\n ListActivity.this,\n R.drawable.divider_white\n )\n );\n\n recyclerView.addItemDecoration(\n itemDecoration\n );\n\n ItemTouchHelper itemTouchHelper = new ItemTouchHelper(createHelperCallback());\n itemTouchHelper.attachToRecyclerView(recyclerView);\n\n\n }", "private void setUpRecyclerView() {\n\n if (listOfPlants.size() == 0) {\n populatePlantList();\n }\n\n mRecyclerView.setHasFixedSize(true);\n mLayoutManager = new LinearLayoutManager(getContext());\n mAdapter = new RecyclerViewAdapter(listOfPlants, getActivity());\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.setAdapter(mAdapter);\n }", "private void buildRecyclerView() {\n\n movieRecyclerView = findViewById(R.id.movieRecyclerView);\n\n customAdapter = new CustomAdapter(MovieActivity.this,movieLists);\n movieRecyclerView.setAdapter(customAdapter);\n layoutManager = new GridLayoutManager(this,1);\n movieRecyclerView.setLayoutManager(layoutManager);\n\n }", "private void initRecyclerView(android.view.View view){\n mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);\n mRecyclerView.setHasFixedSize(true);\n mLayoutManager = new LinearLayoutManager(MainActivity.sContext);\n mRecyclerView.setLayoutManager(mLayoutManager);\n mAdapter = new TopicRecyclerViewAdapter( mPresenter.getDataSet() );\n mRecyclerView.setAdapter(mAdapter);\n\n // Code to Add an item with default animation\n //((TopicRecyclerViewAdapter) mAdapter).addItem(obj, index);\n\n // Code to remove an item with default animation\n //((TopicRecyclerViewAdapter) mAdapter).deleteItem(index);\n }", "public MyRecyclerViewAdapter(Context context, ArrayList<itemView> data) {\n this.mInflater = LayoutInflater.from(context);\n this.mData = data;\n }", "public ViewHolder(View itemView) {\n super(itemView);\n\n listName = (TextView) itemView.findViewById(R.id.listName);\n remainingItems = (TextView) itemView.findViewById(R.id.remainingItems);\n listButtonLayout = (LinearLayout) itemView.findViewById(R.id.listButtonLayout);\n btnView = (Button) listButtonLayout.findViewById(R.id.btnEditList);\n btnDeleteList = (Button) listButtonLayout.findViewById(R.id.btnDeleteList);\n\n\n }", "public void buildRecyclerView(){\n setOnClickListener();\n RecyclerView reminderRecycler = findViewById(R.id.reminderRecycler);\n reminderRecycler.setHasFixedSize(false);\n RecyclerView.LayoutManager reminderLayoutManager = new LinearLayoutManager(this);\n recyclerAdapter = new RecyclerAdapter(reminderItems, listener);\n reminderRecycler.setLayoutManager(reminderLayoutManager);\n reminderRecycler.setAdapter(recyclerAdapter);\n reminderRecycler.addItemDecoration(new MemberItemDecoration(300));\n }", "private void initViews() {\n\n myOnClickListener = new MyOnClickListener(getContext());\n recyclerView = (RecyclerView)view.findViewById(R.id.recyclerView_ID);\n recyclerView.setHasFixedSize(true);\n layoutManager = new GridLayoutManager(getActivity(), 2);\n recyclerView.setLayoutManager(layoutManager);\n// adapter = new HomeAdapter(al,al2);\n// recyclerView.setAdapter(adapter);\n\n Log.e(\"adapter value : \",\"\"+this.al +this.al2);\n }", "private void configureRecyclerView(){\n this.postAdapter = new PostAdapter(generateOptionsForAdapter(PostHelper.getAllMyPosts(BaseActivity.getUid())),\n Glide.with(this), this,false, false);\n\n\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n recyclerView.setAdapter(this.postAdapter);\n }", "private void renderer(int rv, ArrayList<ItemBox> list){\n recyclerView = findViewById(rv);\r\n recyclerView.setHasFixedSize(true);\r\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\r\n RecyclerView.Adapter adapter = new Itembox_Adapter(list, this, 1);\r\n recyclerView.setLayoutManager(layoutManager);\r\n recyclerView.setAdapter(adapter);\r\n }", "private void configureRecyclerView(){\r\n // - Reset list\r\n this.users = new ArrayList<>();\r\n // - Create adapter passing the list of Restaurants\r\n this.mCoworkerAdapter = new CoWorkerAdapter(this.users, Glide.with(this), true);\r\n // - Attach the adapter to the recyclerview to populate items\r\n this.recyclerView.setAdapter(this.mCoworkerAdapter);\r\n // - Set layout manager to position the items\r\n this.recyclerView.setLayoutManager(new LinearLayoutManager(RestaurantDetailActivity.this));\r\n }", "private void initializeViewHolder() {\n mCommon.findControls(this);\n\n mViewHolder = new RecurringTransactionViewHolder();\n\n // Due Date = date\n mCommon.initDateSelector();\n\n // Payment Date, next occurrence\n mViewHolder.paymentDateTextView = (TextView) findViewById(R.id.paymentDateTextView);\n\n // Previous/Next day adjustment buttons for the Payment Day\n mViewHolder.paymentPreviousDayButton = (FontIconView) findViewById(R.id.paymentPreviousDayButton);\n mViewHolder.paymentNextDayButton = (FontIconView) findViewById(R.id.paymentNextDayButton);\n\n // Recurrence label\n mViewHolder.recurrenceLabel = (TextView) findViewById(R.id.recurrenceLabel);\n\n // Payments Left label\n mViewHolder.paymentsLeftTextView = (TextView) findViewById(R.id.textViewTimesRepeated);\n\n // Payments Left text input\n mViewHolder.paymentsLeftEditText = (EditText) findViewById(R.id.editTextTimesRepeated);\n }", "protected void init_adapter()\n {\n manager = new GridLayoutManager(this, 2);\n recycler_view.setLayoutManager(manager);\n //recycler_view.setit\n\n adapter = new NasaApodAdapter();\n\n adapter.setOnItemClickListener(new NasaApodAdapter.OnItemClickListener()\n {\n @Override\n public void onItemClick(Photo photo)\n {\n Log.d(\"APOD\", photo.getImgSrc());\n\n intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(\"photo\", photo);\n\n startActivity(intent);\n }\n });\n }", "private void setRecyclerAdapter() {\n if (mRecyclerAdapter == null) {\n mRecyclerAdapter = new IssueResultsRecyclerAdapter(this, issueResult, mNation);\n mRecyclerView.setAdapter(mRecyclerAdapter);\n } else {\n ((IssueResultsRecyclerAdapter) mRecyclerAdapter).setContent(issueResult, mNation);\n }\n }", "@Override\n public listAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n\n\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.listitemamentitylayout, parent, false);\n\n listAdapter.ViewHolder vh = new listAdapter.ViewHolder(v);\n\n\n\n return vh;\n\n\n\n }", "public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n /* designation_txt = (TextView) itemView.findViewById(R.id.designation_txt);\n name_txt = (TextView) itemView.findViewById(R.id.name_txt);\n number_txt = (TextView) itemView.findViewById(R.id.number_txt);*/\n\n }", "private void setUpRecyclerView() {\n ItemTouchHelper itemTouchHelper = new ItemTouchHelper(new SwipeToDeleteCallback(this));\n itemTouchHelper.attachToRecyclerView(recyclerView);\n }", "MyRecyclerViewAdapter(Context context, List<Integer> data) {\n this.mInflater = LayoutInflater.from(context);\n this.mData = data;\n }", "@Override\n public ViewHolder onCreateViewHolder(ViewGroup arg0, int arg1) {\n\n return new ViewHolder(new TextView(RecyclerViewActivity.this)) {\n\n };\n }", "private void initCategoryListAdapter() {\n\n LinearLayoutManager horizontalLayoutManager = new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false);\n topicRecyclerView.setLayoutManager(horizontalLayoutManager);\n // topicRecyclerView.setAdapter(adapter);\n }", "private void setupMealsRecycler() {\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getBaseActivity());\n mViewBinding.mMealsRec.setLayoutManager(layoutManager);\n mViewBinding.mMealsRec.setHasFixedSize(true);\n mViewBinding.mMealsRec.setAdapter(mMealsAdapter);\n mMealsAdapter.setListener(this);\n }", "public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n int position = getAdapterPosition();\n\n\n nameTextView = (TextView) itemView.findViewById(R.id.contact_name);\n messageButton = (Button) itemView.findViewById(R.id.message_button);\n messageButton.setOnClickListener(new ButtonClick(this));\n itemView.setOnClickListener(this);\n\n }", "public OrderAdapter() {\n super(new ArrayList<MultiItemEntity>());\n addItemType(TYPE_HEAD, R.layout.item_order_head);\n addItemType(TYPE_CONTENT, R.layout.item_order_content);\n addItemType(TYPE_FOOTER, R.layout.item_order_foot);\n }", "private RecyclerView.LayoutManager createLayoutManager() {\n int orientation = getResources().getConfiguration().orientation;\n int columnNum;\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n columnNum = COLUMN_NUM_PORT;\n } else {\n columnNum = COLUMN_NUM_LAND;\n }\n return new GridLayoutManager(this, columnNum);\n }", "public void setRecyclerView() {\n mRecyclerView = view.findViewById(R.id.fragment_notifications_today_rv); //instantiating the recyclerview\n mRecyclerView.setHasFixedSize(true); //\n\n // Setting the layout manager for the recycler view\n mLayoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false); //instantiates how the layout should look like for recyclerview\n mRecyclerView.setLayoutManager(mLayoutManager); //sets the layout manager to one chosen\n\n // Setting the custom adapter for the recycler view\n mAdapter = new NotificationsTodayAdapter(this,\n (NotificationsTodayContract.Presenter.AdapterAPI) mPresenter); //instantiates the adapter\n mRecyclerView.setAdapter(mAdapter); //sets the adapter\n //notificationsScreenController.listenTodayRecyclerView(mRecyclerView, notificationResponse);\n// mPresenter.listenTodayRecyclerView(mRecyclerView, notificationResponse);\n }", "public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n tvTitle = itemView.findViewById(R.id.tvTitle);\n tvBody = itemView.findViewById(R.id.tvDescription);\n tvDueDate = itemView.findViewById(R.id.tvDueDate);\n content = itemView.findViewById(R.id.cardViewToDo);\n details = itemView.findViewById(R.id.rlToDoDetails);\n ivDropDown = itemView.findViewById(R.id.ivDropDown);\n }", "public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n nameTextView = (TextView) itemView.findViewById(R.id.torrent_name);\n movieImageView = (ImageView) itemView.findViewById(R.id.movie_image);\n }", "public NewsArticleAdapter(Context mContext, int layoutResourceId, ArrayList<NewsArticleObject> newsArticleList) {\n super();\n this.layoutResourceId = layoutResourceId;\n this.mContext = mContext;\n this.newsArticleList = newsArticleList;\n\n }", "public RecyclerViewHolder(View itemView) {\n super(itemView);\n\n cardView = (CardView) itemView.findViewById(R.id.reminder_holder_card_view);\n }", "@Override\n\t\t\tpublic ViewHolder onCreateViewHolder(View itemView) {\n\t\t\t\treturn new MylisViewHoder(itemView);\n\t\t\t}", "HeadViewHolder(View itemView) {\n super(itemView);\n viewPager = itemView.findViewById(R.id.viewPager);\n// rbContinuous = itemView.findViewById(R.id.rb_continuous);\n// rbDaily = itemView.findViewById(R.id.rb_daily);\n// layoutStyle = itemView.findViewById(R.id.layout_style);\n// tvAdd = itemView.findViewById(R.id.tv_add);\n }", "private void setUpRecycler(RecyclerView recyclerView) {\n\n recyclerView.setLayoutManager(new LinearLayoutManager(requireContext()));\n FirebaseRecyclerOptions<Post> options = new FirebaseRecyclerOptions.Builder<Post>()\n .setQuery(DBUtils.getReferencePost(), Post.class).build();\n adapter = new PostAdapter(options, requireContext());\n recyclerView.setAdapter(adapter);\n }", "@Override\n public CategoryBookRecyclerAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int arg1) {\n View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.category_items_for_view, null);\n CategoryBookRecyclerAdapter.ViewHolder holder = new CategoryBookRecyclerAdapter.ViewHolder(view);\n\n return holder;\n }", "@NonNull\n @Override\n public RecyclerAdapter onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n return new RecyclerAdapter(LayoutInflater.from(parent.getContext())\n .inflate(R.layout.recycler_layout, parent, false));\n }", "public abstract ItemListAdapter getAdapter(RecyclerView recyclerView);", "public void setRecyclerViewLayoutManager() {\n int scrollPosition = 0;\n\n mLayoutManager = new LinearLayoutManager(getActivity());\n\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.scrollToPosition(scrollPosition);\n }", "private void init() {\n articleList = new ArrayList<>();\n newsAdapter = new NewsAdapter(getContext(), articleList, mListener, this);\n\n recyclerViewNews.setHasFixedSize(false);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext());\n\n recyclerViewNews.setLayoutManager(layoutManager);\n recyclerViewNews.setAdapter(newsAdapter);\n }", "ViewHolder(View itemView) {\n super(itemView);\n // Initialize the views.\n titleTemaText = itemView.findViewById(R.id.titleDetail);\n userTemaText = itemView.findViewById(R.id.userDetail);\n cuerpoTemaText = itemView.findViewById(R.id.cuerpoTema);\n userRespuestaText = itemView.findViewById(R.id.usuarioRespuesta);\n cuerpoRespuestaText = itemView.findViewById(R.id.cuerpoRespuesta);\n ctgBackground = itemView.findViewById(R.id.ctgBackground);\n fondoRespuesta = itemView.findViewById(R.id.fondoRespuesta);\n }", "private void setupRecycler() {\n final LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());\n RecyclerView attractionsRecycler = (RecyclerView) getActivity().findViewById(R.id.contentMain_attractionsRecycler);\n attractionsRecycler.setLayoutManager(linearLayoutManager);\n\n attractionsAdapter = new AttractionRowAdapter(getActivity(), FavouritesListFragment.this, DataManager.currentFavouritesList);\n attractionsRecycler.setAdapter(attractionsAdapter);\n }", "private void initView() {\n linearLayoutManager = new LinearLayoutManager(getContext(),LinearLayoutManager.HORIZONTAL,true);\n hotNews_adapter = new HotNews_Adapter(getContext(),getPosts());\n recyclerViewHotNews.setLayoutManager(linearLayoutManager);\n recyclerViewHotNews.setAdapter(hotNews_adapter);\n\n //RecyclerView summary\n recyclerViewSummary.setLayoutManager(new LinearLayoutManager(getContext()));\n summary_adapter = new Summary_Adapter(getContext(),getPosts());\n\n //RecyclerView suummary category\n summary_category_adapter = new Summary_Category_Adapter(getContext(),getPosts());\n\n // Create a new merge adapter.\n RecyclerViewMergeAdapter mergeAdapter = new RecyclerViewMergeAdapter();\n // Add any number of subadapters to the merge adapter.\n mergeAdapter.addView(viewHeader);\n mergeAdapter.addAdapter(summary_adapter);\n mergeAdapter.addAdapter(summary_category_adapter);\n // Set the merge adapter on the RecyclerView.\n recyclerViewSummary.setAdapter(mergeAdapter);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.custom_row, container, false);\n recyclerView = (RecyclerView) layout.findViewById(R.id.rv);\n adapter = new WebCrawlerRecyclerViewAdapter(getActivity(), getData());\n recyclerView.setAdapter(adapter);\n LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView.setLayoutManager(layoutManager);\n return layout;\n\n }", "public void initiliseRecyclerView(View view){\n // mSwipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipe_to_refresh_layout);\n mTrackRecyclerView = (RecyclerView) view.findViewById(R.id.track_recycler_view);\n mTrackRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n }", "private void initRecyclerView() {\n mAdapter = new FriendAdapter(new ClickHandler<Author>() {\n @Override\n public void onClick(Author clickedItem) {\n\n // Start the UserActivity for the clicked user to allow the user to confirm this\n // is the person they are trying to connect with\n Intent intent = new Intent(SearchUserActivity.this, UserActivity.class);\n intent.putExtra(AUTHOR_KEY, clickedItem.firebaseId);\n\n startActivity(intent);\n }\n });\n mAdapter.showAddSocialButton(true);\n\n mBinding.searchUserLayout.searchUserRv.setLayoutManager(new LinearLayoutManager(this));\n mBinding.searchUserLayout.searchUserRv.setAdapter(mAdapter);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n Log.d(\"cprv\", \"onCreateView @ RecyclerViewFragment\");\n\n View rootView = inflater.inflate(R.layout.recycler_view_frag, container, false);\n rootView.setTag(TAG);\n\n // BEGIN_INCLUDE\n mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerView);\n\n mLayoutManager = new LinearLayoutManager(getActivity());\n\n mCurrentLayoutManagerType = LayoutManagerType.LINEAR_LAYOUT_MANAGER;\n\n if(savedInstanceState != null){\n // restore saved layout manager type\n mCurrentLayoutManagerType = (LayoutManagerType) savedInstanceState.getSerializable((KEY_LAYOUT_MANAGER));\n }\n setRecyclerViewLayoutManager(mCurrentLayoutManagerType);\n\n mAdapter = new CustomAdapter(mDataset);\n // set CustomAdapter as the adapter for RecyclerView\n mRecyclerView.setAdapter(mAdapter);\n // END_INCLUDE\n\n mLinearLayoutRadioButton = (RadioButton) rootView.findViewById(R.id.linear_layout_rb);\n mLinearLayoutRadioButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n setRecyclerViewLayoutManager(LayoutManagerType.LINEAR_LAYOUT_MANAGER);\n }\n });\n\n mGridLayoutRadioButton = (RadioButton) rootView.findViewById(R.id.grid_layout_rb);\n mGridLayoutRadioButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n setRecyclerViewLayoutManager(LayoutManagerType.GRID_LAYOUT_MANAGER);\n }\n });\n return rootView;\n }", "private void setupComparisonAdapter() {\n comparisonCompaniesAdapter = new CompanyListAdapter(this, new ArrayList<>());\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n\n comparisonCompaniesRecyclerView.setLayoutManager(layoutManager);\n comparisonCompaniesRecyclerView.setItemAnimator(new DefaultItemAnimator());\n comparisonCompaniesRecyclerView.setAdapter(comparisonCompaniesAdapter);\n\n // setup swiping left or right to delete item\n setUpItemTouchHelper();\n }", "@Override\n protected void initViews(Bundle savedInstanceState) {\n this.recyclerView = this.findView(R.id.recycler_view);\n this.recyclerView.addItemDecoration(\n new EasyDividerItemDecoration(this, EasyDividerItemDecoration.VERTICAL_LIST));\n\n }", "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.bottom_sheet_product_view, container, false);\n // view = inflater.inflate(R.layout.bottom_sheet_product_view, null);\n\n recycle_view_size = view.findViewById(R.id.recycle_view_size);\n recycle_view_color = view.findViewById(R.id.recycle_view_color);\n\n for (int i =0;i < 5;i++){\n arrayList.add(\"\");\n }\n sizeAdapter = new SizeAdapter(getContext(),arrayList);\n colorAdapter = new ColorAdapter(getContext(),arrayList);\n\n LinearLayoutManager HorizontalLayout112\n = new LinearLayoutManager(\n getActivity(),\n LinearLayoutManager.HORIZONTAL,\n false);\n //RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity(), LinearLayout.HORIZONTAL,false);/\n recycle_view_size.setLayoutManager(HorizontalLayout112);\n recycle_view_size.setItemAnimator(new DefaultItemAnimator());\n sizeAdapter.notifyDataSetChanged();\n recycle_view_size.setAdapter(sizeAdapter);\n\n LinearLayoutManager HorizontalLayout1121\n = new LinearLayoutManager(\n getActivity(),\n LinearLayoutManager.HORIZONTAL,\n false);\n //RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity(), LinearLayout.HORIZONTAL,false);/\n recycle_view_color.setLayoutManager(HorizontalLayout1121);\n recycle_view_color.setItemAnimator(new DefaultItemAnimator());\n colorAdapter.notifyDataSetChanged();\n recycle_view_color.setAdapter(colorAdapter);\n\n\n return view;\n }", "private void initializeRecyclerView() {\n if (mImages != null) {\n if (mImages.size() > 0) {\n mImagesRecyclerView.setBackground(null);\n } else {\n mImagesRecyclerView.setBackgroundResource(R.drawable.placeholder_image);\n }\n\n mImagesRecyclerView.setLayoutManager(new GridLayoutManager(this, 3));\n\n mAdapter = new ImagesRecyclerViewAdapter(this, mImages, mImageDescription, this);\n mImagesRecyclerView.setAdapter(mAdapter);\n }\n }", "DeparturesRecyclerViewAdapter(Context context, String endpoint) {\n this.context = context;\n this.endpoint = endpoint;\n this.mInflater = LayoutInflater.from(context);\n }", "private void initializeRecyclerComponents(){\n //initialize recycler component\n mBasicRecycler = new BasicRecycler(mActivity);\n\n //initialize \"empty\" textView component\n int emptyViewId = R.id.choiceEmptyView;\n mTxtEmpty = (TextView) mActivity.findViewById(emptyViewId);\n\n //initialize progressbar component\n int progressBarId = R.id.choiceProgressBar;\n mProgressBar = (ProgressBar) mActivity.findViewById(progressBarId);\n\n //initialize floating action button component\n int fabId = R.id.choiceFab;\n mFAB = (FloatingActionButton) mActivity.findViewById(fabId);\n }", "@Override\n public MovieAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.list_item, parent, false);\n // set the view's size, margins, paddings and layout parameters\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }", "private void initComponent(){\n recyclerView = findViewById(R.id.noti_recycler_view);\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n\n notifAdapter = new NotificationAdapter(this, notifications, currentUser);\n recyclerView.setAdapter(notifAdapter);\n\n ItemTouchHelper.Callback callback = new SwipeItemTouchHelper(notifAdapter);\n itemTouchHelper = new ItemTouchHelper(callback);\n itemTouchHelper.attachToRecyclerView(recyclerView);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_main, container, false);\n\n // Declarar y referenciar el RecyclerView que definimos en el XML\n RecyclerView recyclerView = view.findViewById(R.id.recyclerView);\n\n /*\n * Setear el LayoutManager al RecyclerView (recordar que podemos definir distintos tipos de\n * LayoutManager según la forma en la cual queremos mostrar nuestra lista.)\n */\n\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext(),LinearLayoutManager.VERTICAL, false);\n\n /*\n * Setear el LayoutManager que hayamos elegido al RecyclerView referenciado en el paso 1:\n * recyclerView.setLayoutManager(layoutManager);\n */\n recyclerView.setLayoutManager(linearLayoutManager);\n\n\n // Creo la lista que tiene los items.\n List<ItemLista> itemsDeLista = new ArrayList<>();\n\n\n // cargo la lista con los items\n itemsDeLista.add(new ItemLista(\"Batman\",\"Accion\",R.drawable.batman));\n itemsDeLista.add(new ItemLista(\"Damages\", \"Drama\", R.drawable.damages));\n itemsDeLista.add(new ItemLista(\"Destroyer\", \"Drama\", R.drawable.destroyer));\n itemsDeLista.add(new ItemLista(\"El Juicio\", \"Drama\", R.drawable.eljuicio));\n itemsDeLista.add(new ItemLista(\"Inocente\", \"Drama\", R.drawable.inocente));\n itemsDeLista.add(new ItemLista(\"Intern\", \"Drama\", R.drawable.intern));\n itemsDeLista.add(new ItemLista(\"Jhon Wick 2\", \"Accion\", R.drawable.johnwick2));\n itemsDeLista.add(new ItemLista(\"King Kong\", \"Accion\", R.drawable.kong));\n itemsDeLista.add(new ItemLista(\"La Boda de mi Amigo\", \"Comedia\", R.drawable.labodademi));\n itemsDeLista.add(new ItemLista(\"Prometo\", \"Drama\", R.drawable.prometo));\n itemsDeLista.add(new ItemLista(\"Second\", \"Drama\", R.drawable.second));\n itemsDeLista.add(new ItemLista(\"The Good Doctor\", \"Drama\", R.drawable.thegoogdoctor));\n\n /*\n * Crear un Adapter, utilizando la clase definida anteriormente.\n * ItemListaAdapter itemListaAdapter = new ItemAdapter(itemsDeLista);\n *\n */\n ItemListaAdapter itemListaAdapter = new ItemListaAdapter(itemsDeLista);\n\n // Setear al RecyclerView el adapter creado.\n recyclerView.setAdapter(itemListaAdapter);\n\n return view;\n }", "public PaginationScrollListener(LinearLayoutManager linearLayoutManager) {\n// this.layoutManager=linearLayoutManager;\n this.mlayoutmanager = linearLayoutManager;\n }", "private void setRecyclerViewAdapter(List<Task> tasks){\n adapter = new DataAdapter(ViewTaskActivity.this, tasks);\n recyclerView.setAdapter(adapter);\n recyclerView.setLayoutManager(layoutManager);\n }", "@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.departmentnames, parent, false);\n context = parent.getContext();\n// set the view's size, margins, paddings and layout parameters\n MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder\n return vh;\n }", "public ModeloRecycler(){\n\n }", "public IrregularLayoutManager(Context context){\r\n this(context, DEFAULT_SPAN_COUNT);\r\n }", "private void initRecyclerView() {\n Log.d(TAG, \"initRecyclerView: init recyclerView.\");\n RecyclerView recyclerView = findViewById(R.id.homepage_recycview);\n\n //Create an adapter to display the groups' information in a recyclerview\n GroupRVA adapter = new GroupRVA(this, results, GroupProfile.class);\n recyclerView.setAdapter(adapter);\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n }", "public ConnectedRelationTitleViewHolder(@org.jetbrains.annotations.NotNull android.view.ViewGroup r4) {\n /*\n r3 = this;\n java.lang.String r0 = \"parent\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r4, r0)\n android.content.Context r0 = r4.getContext()\n android.view.LayoutInflater r0 = android.view.LayoutInflater.from(r0)\n r1 = 2131690217(0x7f0f02e9, float:1.9009471E38)\n r2 = 0\n android.view.View r4 = r0.inflate(r1, r4, r2)\n java.lang.String r0 = \"LayoutInflater.from(pare…itle_item, parent, false)\"\n kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r4, r0)\n r3.<init>(r4)\n android.view.View r4 = r3.itemView\n r0 = 2131171193(0x7f071779, float:1.7956766E38)\n android.view.View r4 = r4.findViewById(r0)\n java.lang.String r0 = \"itemView.findViewById(R.id.txt_tips)\"\n kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r4, r0)\n android.widget.TextView r4 = (android.widget.TextView) r4\n r3.h = r4\n android.view.View r4 = r3.itemView\n r0 = 2131169147(0x7f070f7b, float:1.7952616E38)\n android.view.View r4 = r4.findViewById(r0)\n java.lang.String r0 = \"itemView.findViewById(R.id.privacy_reminder_image)\"\n kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r4, r0)\n r3.i = r4\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.following.ui.viewholder.ConnectedRelationTitleViewHolder.<init>(android.view.ViewGroup):void\");\n }", "private void initAdapter() {\n GridLayoutManager layoutManager = new GridLayoutManager(this, 3);\n //设置布局管理器\n rv.setLayoutManager(layoutManager);\n //设置为垂直布局,这也是默认的\n layoutManager.setOrientation(OrientationHelper.VERTICAL);\n\n adapter1 = new CommomRecyclerAdapter(ChoiceCityActivity.this, stringList, R.layout.recy_country, new CommomRecyclerAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(CommonRecyclerViewHolder holder, int postion) {\n //热门城市点击\n Map map = new HashMap();\n map.put(\"p1\",stringList.get(postion).getHotCity() );\n StatisticsManager.getInstance(mContext).addEventAidl(1812,map);\n\n Intent intent = new Intent(ChoiceCityActivity.this, MainActivity.class);\n intent.putExtra(\"country\", stringList.get(postion).getHotCountry());\n intent.putExtra(\"city\", stringList.get(postion).getHotCity());\n Constans.CITY = stringList.get(postion).getHotCity();\n Constans.COUNTRY = stringList.get(postion).getHotCountry();\n if (isFirst == 1) {\n isFirst=0;\n startActivity(intent);\n } else {\n setResult(RESULT_OK, intent);\n }\n finish();\n }\n }, null) {\n @Override\n public void convert(CommonRecyclerViewHolder holder, Object o, int position) {\n TextView tv_country_name = holder.getView(R.id.tv);\n tv_country_name.setText(stringList.get(position).getHotCity());\n }\n };\n rv.setAdapter(adapter1);\n\n\n }", "public void configs() {\n adaptadorRecyclerView = new AdaptadorRecyclerView(new ArrayList<>(), this);//configuramos el adaptador; necesitamos implementar interfaz OnItemClickListener y sobreescribir sus metodos\n recyclerView.setLayoutManager(new LinearLayoutManager(this));//configuramos la recyclerView\n recyclerView.setAdapter(adaptadorRecyclerView);\n }", "private void initRecyclerView() {\r\n visitsViewModel.setPlaceholderText(true);\r\n\r\n RecyclerView mRecyclerView = binding.gridRecyclerView;\r\n mRecyclerView.setHasFixedSize(true);\r\n mRecyclerView.setLayoutManager(new LinearLayoutManager(activity));\r\n\r\n visitsAdapter = new VisitsAdapter();\r\n mRecyclerView.setAdapter(visitsAdapter);\r\n\r\n visitsViewModel.visits.observe(getViewLifecycleOwner(), this::resetRecycler);\r\n }", "public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n nameTextView = (TextView) itemView.findViewById(R.id.user_name);\n startTextView = (TextView) itemView.findViewById(R.id.start_date);\n }", "public ReceiptAdapter(Context context,LinkedList<Receipt> receipts) \n {\n super();\n mContext = context;\n rec = receipts;\n inflater = (LayoutInflater) mContext\n \t\t .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n }", "private void init() {\n initActionButton();\n mRecyclerView.setLayoutManager(new GridLayoutManager(this, 2));\n mAdapter = new MainAdapter(getApplicationContext(),getImages());\n mRecyclerView.setAdapter(mAdapter);\n mAdapter.setListener(new MainAdapter.OnClickListener() {\n @Override\n public void onClickItem(ImageItem selected, int position) {\n goToDetailScreen(position);\n }\n });\n }" ]
[ "0.69531643", "0.69070935", "0.6680977", "0.66412467", "0.66291183", "0.66219205", "0.6595954", "0.6587666", "0.65679073", "0.6556782", "0.6554935", "0.6551525", "0.64859724", "0.64771235", "0.64633036", "0.64462817", "0.6442051", "0.644189", "0.6424649", "0.64144826", "0.63936746", "0.63710165", "0.6353316", "0.63533074", "0.6331639", "0.63240826", "0.6316672", "0.62975925", "0.62847084", "0.62811965", "0.6274857", "0.62663174", "0.6260544", "0.6250171", "0.62357396", "0.6233852", "0.6233264", "0.6221864", "0.620924", "0.6206131", "0.6205726", "0.6182488", "0.6181915", "0.61732936", "0.6152921", "0.61421126", "0.6134354", "0.6131656", "0.6123704", "0.612353", "0.61235046", "0.61204654", "0.610704", "0.60983884", "0.6096325", "0.6086525", "0.6084705", "0.6080441", "0.60795957", "0.60780275", "0.60651654", "0.60516423", "0.6044236", "0.60424286", "0.60292244", "0.6021534", "0.60210556", "0.60200274", "0.60168624", "0.60134846", "0.6010753", "0.60041726", "0.6003669", "0.5993985", "0.5989607", "0.5987625", "0.59785014", "0.5975012", "0.5962895", "0.59602773", "0.594372", "0.59412944", "0.5925774", "0.5924098", "0.59214896", "0.59158707", "0.59158117", "0.5911459", "0.5900098", "0.5896766", "0.5894835", "0.5893886", "0.5892724", "0.58828413", "0.58824635", "0.5875219", "0.58745694", "0.587452", "0.58677363", "0.5865719" ]
0.59185356
85
Setter for the loading field, that determines if the list is loading or not
public void setLoading(boolean loading) { this.loading = loading; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setLoading(boolean isLoading);", "@Override\n public Boolean isLoading() {\n return loadingInProgress;\n }", "@Override\n\tpublic boolean isLoad() {\n\t\treturn false;\n\t}", "public void setLoading(boolean z) {\n this.mLoading = z;\n }", "public void setLoaded(boolean loaded);", "public boolean isLoading() {\n return mIsLoading;\n }", "public void setAllLoaded(boolean value) {\n this.allLoaded = value;\n }", "protected void setLoaded(boolean loaded) {\n\tthis.loaded = loaded;\n }", "public boolean shouldLoad() {\n return load;\n }", "protected void setLoaded(boolean fLoaded)\n {\n m_fLoaded = fLoaded;\n }", "public void setLoadState(boolean isInLoadState) {\n\t\tthis.setListShown(!isInLoadState);\n\t}", "public int getLoadingStatus() {\n return loadingStatus;\n }", "public abstract boolean isLoadCompleted();", "public boolean isLoadData() {\n return loadData;\n }", "public void loaded(){\n\t\tloaded=true;\n\t}", "public void setLoaded();", "public boolean waitLoading() {\n\t\t\treturn waitLoading;\n\t\t}", "protected boolean isLoaded()\n {\n return m_fLoaded;\n }", "@Override\n public void onLoadFinished(Loader<List<Integer>> loader, List<Integer> flagIntegers) {\n View loadingIndicator = findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n\n // Keep data as this class attributes and update view\n if (flagIntegers.get(0) == 1) {\n Toast.makeText(StockDetail.this, getString(R.string.detail_stock_picking_validate_success), Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(StockDetail.this, getString(R.string.detail_stock_picking_validate_failed), Toast.LENGTH_LONG).show();\n }\n getLoaderManager().destroyLoader(VALIDATE_STOCK_PICKING_LOADER_ID);\n }", "void showLoading(boolean isLoading);", "@Override\n protected void onStartLoading() {\n super.onStartLoading();\n\n mLoadingIndicator.setVisibility(View.VISIBLE);\n\n forceLoad();\n }", "public boolean loadProgress() {\n return false;\n }", "public void setLoadingStatus(LoadingStatus loadingStatus) {\n this.loadingStatus = loadingStatus;\n }", "public void isDoneLoading(boolean b)\n\t{\n\t\tdoneLoading = b;\n\t\tif (doneLoading)\n\t\t\tnotifyDataSetChanged();\n\t}", "@Override\n public void onListDataLoaded() {\n if (this.progressBar != null && !this.isListLoaded) {\n this.progressBar.setVisibility(View.GONE);\n }\n if (!this.isListLoaded) {\n addListHeader();\n this.isListLoaded = true;\n }\n }", "public boolean isLoaded() {\n\treturn loaded;\n }", "protected void onStartLoading() { forceLoad();}", "public boolean checkLoadEnable() {\n \r\n int tableRow = sflp.getXRow() + 1; // Adjusted by 1 to account for the table header\r\n int tableColumn = sflp.getXColumn();\r\n if (tableColumn < 0) return false;\r\n \r\n TableModel model = sflp.getTable().getModel();\r\n String fieldSummary = \"\";\r\n for (int i = 0; i < tableColumn; i++) {\r\n // System.out.print(model.getColumnName(i) + (i + 1 == tableColumn ? \"\\n\" : \", \"));\r\n fieldSummary += model.getColumnName(i) + (i + 1 == tableColumn ? \"\" : \", \");\r\n }\r\n \r\n sflp.setFieldsText(fieldSummary);\r\n \r\n if (tableRow >= 1 && tableColumn >= 0) {\r\n setLoadEnabled(true);\r\n return true;\r\n } else {\r\n setLoadEnabled(false);\r\n return false;\r\n }\r\n }", "public LoadingStatus getLoadingStatus() {\n return loadingStatus;\n }", "public boolean isLoaded(){return true;}", "public boolean isFinishedLoading(){ return FINISHED_LOADING; }", "public boolean isLoaded() {\n return loaded;\n }", "@Override\n protected void onStopLoading() {\n cancelLoad();\n\n // Note that we leave the observer as is. Loaders in a stopped state\n // should still monitor the data source for changes so that the Loader\n // will know to force a new load if it is ever started again.\n }", "public boolean isLoaded();", "@Override\n protected void onStartLoading() {\n\n forceLoad();\n }", "public boolean isAllLoaded() {\n return allLoaded;\n }", "boolean canLoadData();", "protected void setLoadedForThisRequest() {\r\n\t\tContextUtils.setRequestAttribute(getRequestLoadedMarker(), Boolean.TRUE);\r\n\t}", "@Override\n public void onLoadFinished(Loader<StockPicking> loader, StockPicking stockPicking) {\n View loadingIndicator = findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n\n // Keep data as this class attributes and update view\n mStockPicking = stockPicking;\n displayUpdate(stockPicking);\n getLoaderManager().destroyLoader(FETCH_STOCK_PICKING_LOADER_ID);\n }", "@Override\n public boolean getDelayCollectionLoading() {\n return _delayedCollectionLoading;\n }", "@Override \n\t protected void onStartLoading() {\n\t if (mChildList != null) {\n\t // If we currently have a result available, deliver it\n\t // immediately.\n\t deliverResult(mChildList);\n\t }\n\n\t if (takeContentChanged() || mChildList == null) {\n\t // If the data has changed since the last time it was loaded\n\t // or is not currently available, start a load.\n\t forceLoad();\n\t }\n\t }", "@Override \n\t protected void onStartLoading() {\n\t if (mChildList != null) {\n\t // If we currently have a result available, deliver it\n\t // immediately.\n\t deliverResult(mChildList);\n\t }\n\n\t if (takeContentChanged() || mChildList == null) {\n\t // If the data has changed since the last time it was loaded\n\t // or is not currently available, start a load.\n\t forceLoad();\n\t }\n\t }", "@Override\n protected void onStartLoading() {\n forceLoad();\n\n }", "@Override\n protected void onStopLoading() {\n cancelLoad();\n }", "protected boolean isSingleRowLoader() {\n \t\treturn false;\n \t}", "@Override\n protected void onStopLoading() {\n cancelLoad();\n }", "public boolean visible_LoadDescField() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_LoadDesc_txtBx);\r\n\t}", "@Override\n protected void onStartLoading() {\n progressBar.setVisibility(View.VISIBLE);\n forceLoad();\n }", "private void setLoading(boolean isLoading) {\n if (isLoading) {\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,\n WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n layoutLoading.setVisibility(View.VISIBLE);\n } else {\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n layoutLoading.setVisibility(View.INVISIBLE);\n }\n }", "@Override\n public void onLoadFinished(Loader<List<Kitten>> loader, List<Kitten> Kittens) {\n ProgressBar progressBar = (ProgressBar) findViewById(R.id.loading_spinner);\n progressBar.setVisibility(View.GONE);\n mEmptyStateTextView.setText(R.string.no_kittens);\n mAdapter.clear();\n\n // If there is a valid list of {@link Kitten}s, then add them to the adapter's\n // data set. This will trigger the ListView to update.\n if (Kittens != null && !Kittens.isEmpty()) {\n mAdapter.addAll(Kittens);\n }\n\n\n }", "public boolean isBusyLoading() {\n\t\treturn false; // return (AppStatusLine.isBusyLoading());\n\t}", "@Override\n protected void onStopLoading() {\n cancelLoad();\n\n // Note that we leave the observer as is. Loaders in a stopped state\n // should still monitor the data source for changes so that the Loader\n // will know to force a new load if it is ever started again.\n }", "@Override\n public void showLoading() {\n setRefresh(true);\n }", "public boolean isLoadCache() {\n return mLoadCache;\n }", "public int getLoadingStatus()\n/* */ {\n/* 119 */ return this.loadingStatus;\n/* */ }", "@Override\n protected void onStopLoading() {\n // Attempt to cancel the current load task if possible.\n cancelLoad();\n }", "@Override\n protected void onStopLoading() {\n // Attempt to cancel the current load task if possible.\n cancelLoad();\n }", "@Override\n protected void onStopLoading() {\n // Attempt to cancel the current load task if possible.\n cancelLoad();\n }", "@Override \n\t protected void onStopLoading() {\n\t // Attempt to cancel the current load task if possible.\n\t cancelLoad();\n\t }", "@Override \n\t protected void onStopLoading() {\n\t // Attempt to cancel the current load task if possible.\n\t cancelLoad();\n\t }", "public boolean isLoaded() \n\t{\n\t return htRecords != null ;\n\t}", "public void setLoadingMessage(String loadingMessage);", "@SuppressWarnings(\"SameParameterValue\")\n public void setFullyLoaded(boolean fullyLoaded) {\n this.fullyLoaded = fullyLoaded;\n }", "@Override\n protected void onStopLoading() {\n // The Loader is in a stopped state, so we should attempt to cancel the\n // current load (if there is one).\n cancelLoad();\n }", "@Override\r\n\tpublic void showLoading(boolean isLoading) {\r\n\t\tsetSupportProgressBarIndeterminateVisibility(isLoading);\r\n\t}", "public boolean isLoaded() {\n return _id != null;\n }", "boolean isForceLoaded();", "public void onStopLoading() {\n boolean cancelLoad = cancelLoad();\n }", "public void onStopLoading() {\n boolean cancelLoad = cancelLoad();\n }", "@Override\n protected void onStartLoading() {\n if (idlingResource != null) {\n idlingResource.setIdleState(false);\n }\n\n if (recepts != null) {\n deliverResult(recepts);\n } else {\n mLoadingIndicator.setVisibility(View.VISIBLE);\n forceLoad();\n }\n }", "public boolean getOnLoadFlag() {\r\n\t\treturn onLoadFlag;\r\n\t}", "private void setLoadingDisplay() {\n if (swipeRefreshing) {\n footer.clear();\n setRefreshing(true);\n } else if (loading) {\n footer.setLoading();\n }\n }", "public boolean getLoaded()\n\t{\n\t\treturn loaded;\n\t}", "@Override\n\tprotected void onStartLoading() {\n\t\tif (mData != null) {\n\t\t\tdeliverResult(mData);\n\t\t}\n\t\t// Now we're in start state so we need to monitor for data changes.\n\t\t// To do that we start to observer the data\n\t\t// Register for changes which is Loader dependent\n\t\tregisterObserver();\n\t\t// Now if we're in the started state and content is changes we have\n\t\t// a flag that we can check with the method takeContentChanged()\n\t\t// and force the load\t\t\t\t\t\n\t\tif (takeContentChanged() || mData == null) {\n\t\t\tforceLoad();\n\t\t}\n\t}", "boolean isLoaded();", "boolean supportsParallelLoad();", "public void loadStatus (){\n\t}", "void onLoaderLoading();", "void setForceLoaded(boolean forced);", "@Override\n public void onChange(boolean selfChange) {\n mModel.resetLoadedState(false, true);\n mModel.startLoaderFromBackground();\n }", "public void setDataLoaded(boolean dataLoaded) {\n\t\t\n\t\tthis.dataLoaded = dataLoaded;\n\t}", "@Override\nprotected void onStopLoading() {\n cancelLoad();\n }", "public synchronized boolean isLoaded() {\n\t\treturn _resourceData != null;\n\t}", "@Override\n public void onLoadFinished(Loader<List<Book>> loader, List<Book> books) {\n View loadingIndicator = findViewById(R.id.loading_indicator);\n loadingIndicator.setVisibility(GONE);\n\n // Exclude app startup message\n if (mEmptyStateTextView.getText().toString() != getApplicationContext().getString(R.string.hello)) {\n // Set empty state text to display \"No books found.\"\n mEmptyStateTextView.setText(R.string.no_books);\n }\n\n // Clear the adapter of previous book data\n mAdapter.clear();\n\n // If there is a valid list of {@link Book}s, then add them to the adapter's\n // data set. This will trigger the ListView to update.\n if (books != null && !books.isEmpty()) {\n mAdapter.addAll(books);\n }\n }", "private void loadLists() {\n }", "@Override\n public void onLoaderReset(Loader<List<VehiclesTotalRunningCosts>> loader) {\n /*\n * We aren't using this method in this application, but we are required to Override\n * it to implement the LoaderCallbacks<List<DashboardReviewsListItem>> interface\n */\n }", "void showLoading(boolean visible);", "public void load() {\n Boolean value = permanentStore.getBoolean(key);\n if (value != null) {\n set(value.booleanValue());\n log.info(\"Property \" + key + \" has the non-default value \" + value.booleanValue());\n } else {\n set(defaultValue);\n }\n }", "@Override\n\tprotected void load() {\n\t\tisPageLoaded = true;\n\t}", "public abstract boolean Load();", "public boolean isMarginChangeableWhenloading() {\n return this.isMarginChangeableWhenloading;\n }", "@Override\n public void setLoadOnStartup(int los) {\n }", "@Override\n public void onLoadFinished(Loader<List<StockPicking>> loader, List<StockPicking> stockPickings) {\n View loadingIndicator = getView().findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n mSwipeView.setRefreshing(false);\n\n // Set empty state text to display \"No available sale order.\"\n mEmptyStateTextView.setText(R.string.stock_picking_not_found);\n\n // Clear the adapter of previous sale order\n mAdapter.clear();\n\n // If there is a valid list of {@link sale order}s, then add them to the adapter's\n // data set. This will trigger the ListView to update.\n if (stockPickings != null && !stockPickings.isEmpty()) {\n Collections.sort(stockPickings, new Comparator<StockPicking>() {\n @Override\n public int compare(StockPicking item1, StockPicking item2) {\n return item2.getName().compareToIgnoreCase(item1.getName());\n }\n });\n mAdapter.addAll(stockPickings);\n } else {\n Toast.makeText(getActivity(), R.string.stock_picking_not_found, Toast.LENGTH_LONG).show();\n }\n }", "private boolean loadVersioning(boolean offVersioning) {\n Boolean storedOffVersioning = getFromStore((K) OFF_VERSIONING_INFO);\n if (storedOffVersioning == null) {\n storedOffVersioning = offVersioning;\n putToStore((K) OFF_VERSIONING_INFO, offVersioning);\n }\n\n return storedOffVersioning;\n }", "@JsonIgnore\n public boolean isLoadBalancersSet() { return isSet.contains(\"loadBalancers\"); }", "public boolean isLoadedFromDisk() {\n return isLoadedFromDisk;\n }", "public void setLoadedData(final List<T> loadedData) {\n if (loadedData != null) {\n this.loadedData.clear();\n this.loadedData.addAll(loadedData);\n fireAnalysisModelChangeEvent(new AnalysisModelChangedEvent(this, false));\n }\n }", "public void setLoadCache(final boolean argLoadCache) {\n mLoadCache = argLoadCache;\n }", "void load(SaleItem loadingItem) {\n double price = loadingItem.getPrice();\n if(price >= 10) {\n priceTextView.setText(tensCurrencyFormat.format(price));\n }\n else {\n priceTextView.setText(onesCurrencyFormat.format(price));\n }\n\n // Fills the Views\n itemTextView.setText(loadingItem.getName());\n countTextView.setText(String.valueOf(loadingItem.getCount()));\n }", "public boolean hasBeenLoaded () {\n return loaded;\n }" ]
[ "0.7413244", "0.68667257", "0.68517745", "0.6833566", "0.679869", "0.6791551", "0.66951424", "0.6516554", "0.6448082", "0.6432226", "0.6347532", "0.6309914", "0.62312037", "0.6180036", "0.61585397", "0.6112874", "0.60927284", "0.60843205", "0.60469973", "0.5973003", "0.59700465", "0.5957377", "0.5931656", "0.5927127", "0.59244865", "0.591746", "0.5914316", "0.5906942", "0.58946896", "0.58944356", "0.5875829", "0.5834592", "0.5824415", "0.58120334", "0.5792464", "0.57895386", "0.578263", "0.5769935", "0.5763824", "0.57517314", "0.57402295", "0.57402295", "0.57307124", "0.5705981", "0.56995904", "0.5684914", "0.56807333", "0.5679984", "0.5677187", "0.5676518", "0.56717443", "0.5670344", "0.5669677", "0.5660355", "0.5652289", "0.5649678", "0.5649678", "0.5649678", "0.5648959", "0.5648959", "0.563967", "0.56300426", "0.5623682", "0.5618002", "0.5602657", "0.5601668", "0.5595596", "0.55918086", "0.55918086", "0.5588273", "0.55838", "0.55825156", "0.55823755", "0.55597526", "0.55591416", "0.5551399", "0.55409575", "0.5538061", "0.5529705", "0.5525658", "0.55240643", "0.5523963", "0.55154246", "0.5514944", "0.551292", "0.54962915", "0.5483178", "0.5476874", "0.5471019", "0.547031", "0.5465183", "0.54621035", "0.545893", "0.5454214", "0.5452181", "0.54498833", "0.54453105", "0.5444023", "0.5443638", "0.54397" ]
0.7175703
1
Setter for the limit_reached field, which determines if the limit of the list is reached or not
public void setLimit_reached(boolean limit_reached) { this.limit_reached = limit_reached; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean limitHit() {\r\n return (count >= maxCount);\r\n }", "public void setLimit(float value) {\n this.limit = value;\n }", "void setLimit(int limit);", "public boolean getIsLimited() {\n return isLimited_;\n }", "public void setLimit(int limit) {\n\tLimit = limit;\n }", "public boolean getIsLimited() {\n return isLimited_;\n }", "public boolean hasLimit() {\n return instance.hasLimit();\n }", "public void setLimit(int limit) {\n this.limit = limit;\n }", "public void setLimit(int limit) {\n this.limit=limit;\n }", "boolean getIsLimited();", "public void setLimit(int limit) {\n this.limit = limit;\n }", "public void setLimit(Integer limit) {\n this.limit = limit;\n }", "private void setLimit(\n com.google.protobuf.Int32Value.Builder builderForValue) {\n limit_ = builderForValue.build();\n \n }", "public boolean hasLimit() {\n return result.hasLimit();\n }", "boolean isLimited();", "private boolean limitsReached() {\n if ((0 > maxFiles) && filesCount > maxFiles) {\n log.debug(\"Stopping folder download tree traversal, max file limit reached. current file count: {} \" +\n \"limit is: {}\", filesCount, maxFiles);\n return true;\n } else if ((0 > maxDownloadSizeInBytes) && totalSizeInBytes > maxDownloadSizeInBytes) {\n log.debug(\n \"Stopping folder download tree traversal, max size limit reached. current size count: {} limit is {}\",\n StorageUnit.toReadableString(totalSizeInBytes), maxDownloadSizeInMB);\n return true;\n }\n return false;\n }", "public void setLimit(Long Limit) {\n this.Limit = Limit;\n }", "public void setLimit(Long Limit) {\n this.Limit = Limit;\n }", "public boolean overMax() {\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMaximalLimitLevel()) {\n return true;\n }\n return false;\n }", "public void setLimit(int limit) {\n\t\tthis.limit = limit;\n\t}", "public boolean hasLimit() {\n return limit_ != null;\n }", "public void setLimit(Long limit) {\n this.limit = limit;\n }", "public double getLimit() {return limit;}", "public Builder setIsLimited(boolean value) {\n \n isLimited_ = value;\n onChanged();\n return this;\n }", "public int getLimit() {\r\n return limit;\r\n }", "public void setMiterLimit(float limit);", "public void setLimit(double limit) {\n\t\tthis.limit = limit;\n\t }", "public void setReached(boolean reached);", "public void xsetLimit(org.apache.xmlbeans.XmlNonNegativeInteger limit)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNonNegativeInteger target = null;\r\n target = (org.apache.xmlbeans.XmlNonNegativeInteger)get_store().find_element_user(LIMIT$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlNonNegativeInteger)get_store().add_element_user(LIMIT$6);\r\n }\r\n target.set(limit);\r\n }\r\n }", "public int getLimit() {\n return limit;\n }", "public int getLimit() {\n return limit;\n }", "public int getLimit() {\n return limit;\n }", "public int getLimit() {\n return limit;\n }", "public void setLimitEnd(int limitEnd) {\n this.limitEnd=limitEnd;\n }", "public void setLimitEnd(int limitEnd) {\n this.limitEnd=limitEnd;\n }", "public long limit();", "public int getLimit(){\r\n return limit;\r\n\r\n }", "public void setLimitStart(Integer limitStart) {\r\n this.limitStart=limitStart;\r\n }", "private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}", "public void setLimitEnd(Integer limitEnd) {\r\n this.limitEnd=limitEnd;\r\n }", "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "public void setLimitStart(int limitStart) {\n this.limitStart=limitStart;\n }", "public void setLimitStart(int limitStart) {\n this.limitStart=limitStart;\n }", "public void setLimitStart(int limitStart) {\n this.limitStart=limitStart;\n }", "public void setNilLimit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNonNegativeInteger target = null;\r\n target = (org.apache.xmlbeans.XmlNonNegativeInteger)get_store().find_element_user(LIMIT$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlNonNegativeInteger)get_store().add_element_user(LIMIT$6);\r\n }\r\n target.setNil();\r\n }\r\n }", "public float getLimit() {\n return limit;\n }", "public boolean isWithinLimit() {\n return assumptionsFailed.get() < assumptionLimit;\n }", "public void setLimit(java.math.BigInteger limit)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LIMIT$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LIMIT$6);\r\n }\r\n target.setBigIntegerValue(limit);\r\n }\r\n }", "public ListProxy limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }", "private void setLimit(com.google.protobuf.Int32Value value) {\n if (value == null) {\n throw new NullPointerException();\n }\n limit_ = value;\n \n }", "public ListBuild limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }", "public int getLimit() {\n\treturn Limit;\n }", "public boolean getCanLimit(){\n \treturn canLimit.get();\n }", "public int getLimit() {\n\t\treturn limit;\n\t}", "public int getLimit() {\n\t\treturn limit;\n\t}", "public Long getLimit() {\n return this.Limit;\n }", "public Long getLimit() {\n return this.Limit;\n }", "public Integer getLimit() {\n return limit;\n }", "int getLimit();", "int getLimit();", "public int getLimit() {\n\t\t\treturn limit;\n\t\t}", "@Override\r\n\tpublic void visit(InstanceLimitSetterNode instanceLimitSetterNode) {\n\t\tanalyzeExpression(instanceLimitSetterNode.getInstanceLimit());\r\n\t}", "public Long getLimit() {\n return this.limit;\n }", "public void setLimitnumber(Integer limitnumber) {\n this.limitnumber = limitnumber;\n }", "public void setMaxRequestUrlsReported(int value) {\n this.maxRequestUrlsReported = value;\n }", "public void setUsedLimit(float value) {\n this.usedLimit = value;\n }", "public Double getLimit() {\n return limit;\n }", "public void setDecalLimitEnabled(final boolean dLimit) { decalLimitEnabled = dLimit; }", "public ListIngress limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }", "public void setNumericalLimit(double value) {\n\tif (value < 0) {\n\t String msg = errorMsg(\"lessThanZero\", value);\n\t throw new IllegalArgumentException(msg);\n\t}\n\tNUMERICAL_LIMIT = value;\n }", "public ListInfrastructure limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }", "float limit(float powerValue, double currentPos, double lowerLimit, double upperLimit)\n {\n if (currentPos > upperLimit)\n {\n if (powerValue > 0)\n {\n powerValue = 0;\n }\n }\n\n if (currentPos < lowerLimit)\n {\n if (powerValue < 0)\n {\n powerValue = 0;\n }\n }\n\n return powerValue;\n }", "public void setReportLimit(long limit)\n {\n if (limit < 0L) {\n this.rptLimitCount = -1L;\n } else\n if (limit == 0L) {\n this.rptLimitCount = 1L;\n } else {\n this.rptLimitCount = limit;\n }\n //Print.logInfo(\"Report record limit: %d\", this.rptLimitCount);\n }", "public void setLevelReached(int levelReached) {\n\t\tthis.levelReached = levelReached;\n\t}", "public void setTimeLimit(long value) {\n\t\ttimeLimit = value;\n\t}", "public int capturedLimit() {\n return this.limit.get();\n }", "public void setOverdraftLimit(double overdraftLimit) {\n\t\tthis.overdraftLimit = overdraftLimit;\n\t}", "public Builder clearIsLimited() {\n \n isLimited_ = false;\n onChanged();\n return this;\n }", "public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}", "public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n \t\t\t}", "public static double calculateLimit() {\n return 500;\n }", "public abstract void setSplayLimit(int limit);", "public void setFrameLimit(int value) {\n\t\tframeLimit = value;\n\t}", "Limits limits();", "@Override\r\n public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n }", "@Override\r\n public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n }", "public void setLimitNum(int limitNum) {\r\n this.limitNum = limitNum;\r\n this.endNum = this.skipNum + this.limitNum +1;\r\n }", "public LinearConstraint setLimit(Double limit) {\n this.limit = limit;\n return this;\n }", "public boolean getIsLimited() {\r\n return !(this.accessLimitations != null && this.accessLimitations.contains(\"UNL\"));\r\n }", "public ListNetwork limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }", "@Override\n\t\tpublic void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n\t\t}", "protected synchronized boolean isIngestLimitEnabled() {\n return ingestLimit >= 0;\n }", "public int getLimitEnd() {\n return limitEnd;\n }", "public int getLimitEnd() {\n return limitEnd;\n }", "public boolean isLowerLimit() {\n if (m_lowerLimit != null) {\n return m_lowerLimit.get();\n } else {\n return false;\n }\n }", "private int getCurrentLimit(){\n\t\treturn this.LIMIT;\n\t}", "public boolean isUpperLimit() {\n if (m_upperLimit != null) {\n return m_upperLimit.get();\n } else {\n return false;\n }\n }", "public ListConsole limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }", "ChangeObserver<T> limit(int maxChanges);", "public ListOperatorHub limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }" ]
[ "0.6730599", "0.6712181", "0.6516818", "0.6515773", "0.65153134", "0.6510714", "0.64294404", "0.6366313", "0.6331535", "0.6320678", "0.63200563", "0.62836564", "0.6225157", "0.62157506", "0.6214339", "0.6209402", "0.61898464", "0.61898464", "0.61823523", "0.617775", "0.61588764", "0.6149496", "0.61228067", "0.6098322", "0.6096684", "0.60840064", "0.608399", "0.60836947", "0.6082387", "0.6072716", "0.60199296", "0.60199296", "0.60199296", "0.60143685", "0.60143685", "0.59812087", "0.59705526", "0.59402955", "0.593772", "0.59364855", "0.5932697", "0.5924019", "0.5924019", "0.5924019", "0.5913434", "0.5909111", "0.5899829", "0.58872634", "0.587767", "0.58655185", "0.5855022", "0.5847368", "0.5824822", "0.5823615", "0.5823615", "0.58182675", "0.58182675", "0.5808605", "0.57848877", "0.57848877", "0.5767727", "0.57677114", "0.57344115", "0.57316923", "0.57301235", "0.5683127", "0.56700283", "0.5662399", "0.56469", "0.5641717", "0.5632427", "0.56162834", "0.5603382", "0.5601332", "0.55969906", "0.55953175", "0.55783916", "0.5572744", "0.5536113", "0.55290705", "0.55259025", "0.55149513", "0.550022", "0.5493747", "0.5489527", "0.5489527", "0.5488367", "0.5464429", "0.54579943", "0.54456365", "0.5440091", "0.542854", "0.54180384", "0.54180384", "0.54112566", "0.54094285", "0.5404156", "0.5402195", "0.53985643", "0.539113" ]
0.84428585
0
Setter for the previousTotal field, that keeps track of the last total of elements
public void setPreviousTotal(int previousTotal) { this.previousTotal = previousTotal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getPrevCount()\n {\n\n return this.prevCount;\n }", "public void incrementTotal() {\n\t\t\ttotal++;\n\t\t}", "public void setTotal(int total) {\n this.total = total;\n }", "public void setPrevCount(double n)\n {\n\n this.prevCount = n;\n }", "public void decrementTotal(){\n total--;\n }", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "public void setTotal(Double total);", "public void updateQuestionComboBox(int previousTotal) {\n\t\t//set up list box with question numbers\n\t\tfor (int n = previousTotal; n < noOfQuestions; n++) {\n\t\t\tquestionNoList.addItem(\"\" + (n + 1));\n\t\t}\n\t}", "public ChangeCustomLineItemQuantityChangeBuilder previousValue(final Integer previousValue) {\n this.previousValue = previousValue;\n return this;\n }", "public void setTotal(float total) {\n this.total = total;\n }", "public void previousCostume() {\n costumeNumber--;\n if (costumeNumber < 0) costumeNumber=numberOfCostumes-1;\n }", "public void setTotal(int value) {\n this.total = value;\n }", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}", "public Integer getPreviousValue() {\n return this.previousValue;\n }", "@Override\r\n public void update() {\r\n this.total = calculateTotal();\r\n }", "public void setTotal(Double total) {\n this.total = total;\n }", "public void setTotal(Double total) {\n this.total = total;\n }", "public void setTotal(Double total) {\n this.total = total;\n }", "public void setPrevious(ListElement previous)\n\t {\n\t this.previous = previous;\n\t }", "public void setPrev(Level previous) {\n\t\tthis.prev = previous;\n\t}", "public void setPrevBlockHeight(BigDecimal prevBlockHeight) {\n this.prevBlockHeight = prevBlockHeight;\n }", "public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }", "public void incrementTotal(){\n total++;\n }", "private void updateTotal()\n {\n if(saleItems != null)\n {\n double tempVal = 0;\n\n for(int i = 0; i < saleItems.size(); i++)\n {\n if(saleItems.get(i) != null)\n {\n tempVal += saleItems.get(i).getPrice() * saleItems.get(i).getQuantity();\n }\n }\n totalText.setText(moneyFormat(String.valueOf(tempVal)));\n }\n }", "public void setPrevious()\n {\n\tint currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex -1);\n\t\n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = lastObject;\n }", "public void setTotal(int total) {\n\t\tthis.total = total;\n\t}", "public BigDecimal getPrevBlockHeight() {\n return prevBlockHeight;\n }", "public void setGrandTotal(Float grandTotal) {\r\n this.grandTotal = grandTotal;\r\n }", "public void setPrevious(MyNode<? super E> _previous)\n\t{\n\t\tthis.previous = _previous;\n\t\t//this.previous = _previous;\n\t}", "public void setTotalNum(Integer totalNum) {\n this.totalNum = totalNum;\n }", "public long getSystemTotalPrevious() {\n\t\t\treturn mSystemPrevious + mIntrPrevious + mSoftIrqPrevious;\n\t\t}", "@Override\r\n\tpublic void addTotal() {\n\t\ttotalPrice += myPrice;\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(OBSERVABLE_EVENT_ADD_TOTAL);\r\n\t}", "public void setPreviousElement(Element<T> previousElement) \n\t{\n\t\tthis.previousElement = previousElement;\n\t}", "public void setPreviousValue(final String previousValue);", "private void updateTotal() {\n int total = table.getTotal();\n vip.setConsumption(total);\n if (total > 0)\n payBtn.setText(PAY + RMB + total);\n else if (total == 0)\n payBtn.setText(PAY);\n }", "public void setPrevious(AStarNode previous) {\n this.previous = previous;\n }", "public void setPrevious(Node<T> previous) {\r\n this.previous = previous;\r\n }", "public long getTotal() { return total; }", "public long getTotal() { return total; }", "@Override\n\tdouble updateTotalPrice() {\n\t\treturn 0;\n\t}", "public void setTotal (java.lang.Double total) {\r\n\t\tthis.total = total;\r\n\t}", "@Override\r\n public int previousIndex() {\r\n if (previous == null) {\r\n return -1;\r\n }\r\n return previousIndex;\r\n }", "public void previousPage() {\n\t\tthis.skipEntries -= NUM_PER_PAGE;\n\t\tif (this.skipEntries < 1) {\n\t\t\tskipEntries = 1;\n\t\t}\n\t\tloadEntries();\n\t}", "@Override\r\n\tpublic IPage<T> setTotal(long total) {\n\t\treturn null;\r\n\t}", "public void setPrevious(DSAGraphNode<E> inPrevious)\n {\n previous = inPrevious;\n }", "public int getPrevious() {\n\t\treturn this.previous;\n\t}", "@Override\n\t\tpublic int previousIndex() {\n\t\t\treturn 0;\n\t\t}", "@NotNull\n @JsonProperty(\"previousValue\")\n public String getPreviousValue();", "@Field(15) \n\tpublic CKSCOSStatusField VolumeTotalOriginal(int VolumeTotalOriginal) {\n\t\tthis.io.setIntField(this, 15, VolumeTotalOriginal);\n\t\treturn this;\n\t}", "void setTotal(BigDecimal total);", "private void previousButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if(previousButton.isEnabled() == false || checkUpdateInventoryError() == true) return;\n recordChanged();\n current --;\n displayCurrentStock();\n }", "public void setPreviousPosition(int previousPosition)\n\t{\n\t\tsomethingChanged = true;\n\t\tthis.previousPosition = previousPosition;\n\t}", "public void add_prev_rounds_score(int prevScore) {\n prev_rounds_score += prevScore;\n }", "public void setTotal(BigDecimal total) {\n this.total = total;\n }", "public void setTotal(BigDecimal total) {\n this.total = total;\n }", "protected void resetTotalBalance()\r\n {\r\n totalBalance = 0.00;\r\n }", "@Field(0) \n\tpublic uvc_processing_unit prev(Pointer<uvc_processing_unit > prev) {\n\t\tthis.io.setPointerField(this, 0, prev);\n\t\treturn this;\n\t}", "public void setTotalRecords(int totalRecords) {\r\n this.totalRecords = totalRecords;\r\n }", "public void setPrevCell(Cell prev)\r\n {\r\n this.prev = prev;\r\n }", "public void setTotalResults(java.math.BigInteger totalResults)\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(TOTALRESULTS$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TOTALRESULTS$4);\n }\n target.setBigIntegerValue(totalResults);\n }\n }", "@Field(15) \n\tpublic int VolumeTotalOriginal() {\n\t\treturn this.io.getIntField(this, 15);\n\t}", "protected void add() {\n\t\tfinal float previous = value;\n\t\tvalue = Math.min(max, value + incrementStep);\n\n\t\tif (value != previous) {\n\t\t\tupdateAndAlertListener();\n\t\t}\n\n\t\treturn;\n\t}", "public float getTotal(){\r\n\t\treturn Total;\r\n\t}", "public void updateTotalPrice(){\n\t\tBigDecimal discount = currentOrder.getDiscount();\n\t\tBigDecimal subtotal = currentOrder.getSubtotal();\n\t\tthis.subtotal.text.setText(CURR+subtotal.add(discount).toString());\n\t\tthis.discount.text.setText(CURR + discount.toString());\n\t\tthis.toPay.text.setText(CURR+subtotal.toString());\n\t}", "@Override\n public double getTotal() {\n return total;\n }", "public void setPrev(ListElement<T> prev)\n\t{\n\t\tthis.prev = prev;\n\t}", "public\tvoid setprevious (SNode previous) {\r\n\t\tthis.previous=previous;\r\n\t}", "private void setTotalValueAndNet(){\n\t\tBigDecimal currentPrice = getCurrentPrice(); //getCurrentPrice() is synchronized already\n\t\tsynchronized(this){\n\t\t\t//If quantity == 0, then there's no total value or net\n\t\t\tif(quantityOfShares > 0){\n\t\t\t\ttotalValue = currentPrice.multiply(new BigDecimal(quantityOfShares));\n\t\t\t\tnet = totalValue.subtract(principle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttotalValue = new BigDecimal(0);\n\t\t\t\tnet = new BigDecimal(0);\n\t\t\t}\n\t\t}\n\t}", "public void setPrevColor(Color prevColor){\n\t\tthis.prevColor=prevColor;\n\t}", "public int prevRoll() {\n return prevRoll;\n }", "public double getTotal (){ \r\n return total;\r\n }", "private void updateTotal() {\r\n\t\t// We get the size of the model containing all the modules in the list.\r\n\t\tlabelTotal.setText(\"Total Modules: \" + String.valueOf(helperInstMod.model.size()));\r\n\t}", "public static void updateTotal(Label totalPacketsCaptured) {\n //Set total number of packets captured\n int totalNumPackets = DatabaseInteraction.getTotalPackets();\n totalPacketsCaptured.setText(String.valueOf(totalNumPackets));\n }", "public native int getTotal() /*-{\n\t\treturn this.total;\n\t}-*/;", "public void setPrev(String prev){\n\t\tthis.prev = prev;\n\t}", "public void setPointsTotal(long pointsTotal)\n {\n this.pointsTotal = pointsTotal;\n }", "public void setTotalProperty(String totalProperty) {\n\t\tthis.totalProperty = totalProperty;\n\t\tthis.handleConfig(\"totalProperty\", totalProperty);\n\t}", "public void addTotal() {\n for (int i = 0; i < itemsInOrder.size(); i++) {\n this.dblTotal += itemsInOrder.get(i).getPrice();\n }\n }", "public long getTotal() {\n return total;\n }", "public long getTotal() {\n return total;\n }", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "@Test\n public void setTotal() throws NegativeValueException {\n cartItem.setTotal(45);\n double expected = 45;\n double actual = cartItem.getTotal();\n assertEquals(expected, actual, 0.0);\n }", "private void updateTotalPageNumbers() {\n totalPageNumbers = rows.size() / NUM_ROWS_PER_PAGE;\n }", "public void setPrevious(DoublyLinkedNode<E> prev) {\n this.prevNode = prev;\n }", "public double getTotal() {\n return Total;\n }", "public void setGrandTotal (BigDecimal GrandTotal);", "public void setGrandTotal (BigDecimal GrandTotal);", "public Long total() {\n return this.total;\n }", "public float getTotal() {\n return this.total;\n }", "private void setTotalValue(String rawText){\n\t\tBigDecimal num = new BigDecimal(Double.parseDouble(rawText));\n\t\tif(num.compareTo(new BigDecimal(0)) < 0){\n\t\t\tthrow new IllegalArgumentException(\"Total Value can't be less than 0: \" + num);\n\t\t}\n\t\tsynchronized(this){\n\t\t\tthis.totalValue = num;\n\t\t}\n\t}", "@Override\n public E getPrevious() {\n if (isCurrent() && prev != null) { return prev.getData(); }\n else { throw new IllegalStateException(\"There is no previous element.\"); }\n }", "public void setPrevHashValue(String prevHashValue) {\n this.prevHashValue = prevHashValue;\n }", "void prevSet(Entry e) {\r\n\t\t\tprev = e;\r\n\t\t}", "public void rollBackTotal( int turnQuit )\n {\n totalScore -= turnScores[turnQuit];\n }", "public void inputPrev() {\n --this.currentIndex;\n this.currentUnit = getUnit(this.currentIndex);\n this.currentChName = this.currentUnit.chName;\n }", "public double getTotal() {\r\n\t\treturn total;\r\n\t}", "public Double getTotal() {\n return total;\n }", "public Double getTotal() {\n return total;\n }", "public Double getTotal() {\n return total;\n }", "public Float getGrandTotal() {\r\n return grandTotal;\r\n }" ]
[ "0.62883145", "0.6074719", "0.5997164", "0.5988434", "0.596883", "0.5931432", "0.5931323", "0.5917033", "0.58970934", "0.5895638", "0.5886437", "0.58796287", "0.58792603", "0.585945", "0.58497065", "0.5833545", "0.5833545", "0.5833545", "0.5803168", "0.58027434", "0.57766795", "0.57732344", "0.57481605", "0.5729047", "0.5726171", "0.5689906", "0.5668924", "0.566185", "0.56606346", "0.5658908", "0.56361187", "0.5635957", "0.5635761", "0.5588041", "0.55845356", "0.5566996", "0.55440676", "0.55396754", "0.55396754", "0.55110145", "0.550958", "0.55090743", "0.5499397", "0.54943603", "0.5478311", "0.5475853", "0.547029", "0.5468942", "0.5466144", "0.54653525", "0.5464722", "0.54598576", "0.5453774", "0.5451364", "0.5451364", "0.54470927", "0.54365593", "0.5435459", "0.54342115", "0.5431883", "0.5425595", "0.5422178", "0.5421732", "0.54156774", "0.5410468", "0.5393404", "0.5380719", "0.5378655", "0.5372588", "0.5371396", "0.5369781", "0.5366362", "0.5363936", "0.53573257", "0.53565794", "0.53477687", "0.5343992", "0.5334964", "0.53346604", "0.53346604", "0.5332177", "0.5329413", "0.53283274", "0.53183085", "0.5314964", "0.53137666", "0.53137666", "0.5312717", "0.53125376", "0.53112996", "0.52959454", "0.52943796", "0.52913934", "0.52851516", "0.5272551", "0.52711344", "0.5263442", "0.5263442", "0.5263442", "0.5262822" ]
0.83718014
0
Abstract method that has to be implemented to determine the actions to do when the list is scrolled until the end
public abstract void load();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override // the bottom of the list\n public void onScrollStateChanged(AbsListView absListView, int scrollState) {\n int threshold = 1; // initializing the list view threshold\n int count = getCount(); // and the number of current items in the list\n\n if (scrollState == SCROLL_STATE_IDLE) { // waiting until the scrolling has finished to execute the verification\n if (getLastVisiblePosition() >= count - threshold) { // if the last visible item is the las item in the list view\n (new GitHubRepoGetter(context,CustomListView.this)).Next(); // then we execute again the method \"next\" from the asyncTask GitHubRepoGetter\n // in order to charge more items (the next page if there is)\n }\n }\n }", "@Override\n\t\t\tpublic void onLastItemVisible() {\n\t\t\t\t\n\t\t\t}", "@FXML\n private void handleFilteredListPanelScrollDown() {\n filteredTaskListPanel.scrollToNext();\n }", "private void scrollerFinished()\n\t{\n\t\tif (!mFingerDown)\n\t\t{\n\t\t\treadjustScrollToMiddleItem();\n\t\t}\n\t\t\n\t}", "@Override\n public boolean scrolled(int amount) {\n return false;\n }", "@Override\n public boolean scrolled(int amount) {\n return false;\n }", "@Override\n public boolean scrolled(int amount) {\n return false;\n }", "@Override\n public boolean scrolled(int amount) {\n return false;\n }", "@Override\n public boolean scrolled(int arg0) {\n return false;\n }", "@Override\r\n\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\r\n\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\tvisibleLastIndex = firstVisibleItem + visibleItemCount - 1;\r\n\t\t}", "@Override\n public void onScroll(AbsListView view, int firstVisibleItem,\n int visibleItemCount, int totalItemCount) {\n boolean loadMore = /* maybe add a padding */\n firstVisibleItem + visibleItemCount >= totalItemCount-1;\n // xHelper.log(\"goapp\",\"onScroll\");\n if(loadMore==true && totalItemCount!=0 && isLoadingThreads==false && isMoreOld) {\n loadMoreOld();\n }\n }", "@Override\n public boolean scrolled(final int amount) {\n return false;\n }", "@Override\n\t\t\tpublic boolean scrolled(int amount) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\t\t\tpublic boolean scrolled(int amount) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\tif (totalItemCount > 0 && totalItemCount < TOTAL_ITEM_FOUND - 1) {\n\t\t\t\tBoolean endOfList = false;\n\t\t\t\tendOfList = (visibleItemCount + firstVisibleItem == totalItemCount) ? true\n\t\t\t\t\t\t: false;\n\t\t\t\tif (endOfList && !KEY_IS_LOADING) {\n\t\t\t\t\tKEY_IS_LOADING = true;\n\t\t\t\t\tswitch (tab_interested_fan.getCheckedRadioButtonId()) {\n\t\t\t\t\tcase R.id.btn_Interested:\n\t\t\t\t\t\tif(KEY_IS_SEARCHING)\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_SEARCHING, totalItemCount + 1, true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_LISTING,\n\t\t\t\t\t\t\t\t\ttotalItemCount + 1, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase R.id.btn_Fan:\n\t\t\t\t\t\tif(KEY_IS_SEARCHING)\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_SEARCHING, totalItemCount + 1, true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_LISTING,\n\t\t\t\t\t\t\t\t\ttotalItemCount + 1, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\r\n\t}", "@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n this.currentFirstVisibleItem = firstVisibleItem;\n this.currentVisibleItemCount = visibleItemCount;\n this.totalItem = totalItemCount;\n\n try {\n isScrollCompleted();\n } catch (Exception ex) {\n\n }\n }", "@Override\n\tpublic boolean scrolled(int amount)\n\t{\n\t\treturn false;\n\t}", "@Override\n public void onScroll(AbsListView view,\n int firstVisibleItem,\n int visibleItemCount,\n int totalItemCount) {\n return;\n }", "@FXML\n private void handleFilteredListPanelScrollToLast() {\n filteredTaskListPanel.scrollToLast();\n }", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}", "@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n //if there are no items in list, end method\n if(totalItemCount == 0) return;\n\n //if there are items in list, check if first visible item in list has changed\n if (isSameRow(firstVisibleItem)) {\n //if same, check top position of first visible item to see if scroll threshold is met\n int newScrollY = getTopItemScrollY();\n\n //check if scroll threshold is met\n boolean isSignificantDelta = Math.abs(mLastScrollY - newScrollY) > mScrollThreshold;\n\n //if change is significant\n if (isSignificantDelta) {\n //check scroll direction\n if (mLastScrollY > newScrollY) {\n //scroll up event\n onScrollUp();\n } else {\n //scroll down event\n onScrollDown();\n }\n }\n\n //set last scroll top position\n mLastScrollY = newScrollY;\n } else {\n //first visible item in list has changed, check change direction\n if (firstVisibleItem > mPreviousFirstVisibleItem) {\n //first visible item is greater, scroll up event\n onScrollUp();\n } else {\n //first visible item is less, scroll down event\n onScrollDown();\n }\n\n //save top position of first visible item\n mLastScrollY = getTopItemScrollY();\n\n //save item position of first visible item\n mPreviousFirstVisibleItem = firstVisibleItem;\n }\n }", "@Override\n public void onAbsoluteScrollChange(int i) {\n }", "private void isScrollCompleted() {\n\t\tint min, lastitem = currentFirstVisibleItem + currentVisibleItemCount;\n\t\tsuperTotal = lastitem + nuevo;\n\t\tmin = (arrayBooks.size() + superTotal) / superTotal;\n\t\tif (min >= 1 && lastitem == totalItem\n\t\t\t\t&& currentScrollState == SCROLL_STATE_IDLE) {\n\t\t\tURL_BOOKS = \"http://tutoriapps.herokuapp.com/api/v1/groups/\"\n\t\t\t\t\t+ posicionId + \"/books.json?auth_token=\" + token\n\t\t\t\t\t+ \"&older_than=\" + fechaformato[fechaformato.length - 1]\n\t\t\t\t\t+ \"&count=5\";\n\t\t\tultimoItem = 1;\n\t\t\tgetData();\n\t\t} /*\n\t\t * else if (currentFirstVisibleItem == 0 && currentScrollState ==\n\t\t * SCROLL_STATE_IDLE) { URL_BOOKS =\n\t\t * \"http://tutoriapps.herokuapp.com/api/v1/groups/\" + posicionId +\n\t\t * \"/books.json?auth_token=\" + token + \"&newer_than=\" +\n\t\t * fechaformato[fechaformato.length - 1] + \"&count=5\"; ultimoItem = 2;\n\t\t * getData(); }\n\t\t */\n\t}", "@Override\n \t\t\tpublic void onScroll(ScrollEvent event) {\n \t\t int oldScrollPos = lastScrollPos;\n \t\t lastScrollPos = friendsPanel.getVerticalScrollPosition();\n \t\t if (oldScrollPos >= lastScrollPos) {\n \t\t return;\n \t\t }\n \n \t\t int maxScrollTop = friendsPanel.getWidget().getOffsetHeight()\n \t\t - friendsPanel.getOffsetHeight();\n \t\t if (lastScrollPos >= maxScrollTop) {\n \t\t // We are near the end, so increase the page size.\n \t\t int newPageSize = Math.min(\n \t\t \t\t friendsCellList.getVisibleRange().getLength() + DEFAULT_INCREMENT,\n \t\t \t\t friendsCellList.getRowCount());\n \t\t friendsCellList.setVisibleRange(0, newPageSize);\n \t\t }\n \t\t\t}", "protected boolean scroll(int amount) {\n\t// Does nothing\n\treturn false;\n}", "@FXML\n private void handleFilteredListPanelScrollUp() {\n filteredTaskListPanel.scrollToPrevious();\n }", "@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n int lastInScreen = firstVisibleItem + visibleItemCount;\n if((lastInScreen == totalItemCount) && !(loadingMore)){\n //execute task\n new RecipeAsyncTask().execute();\n\n }\n\n }", "@Override\n\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\t\t\n\t\t\t}", "public abstract boolean scroll(Direction direction);", "@Override\n public void onScrolled(LinearLayoutManager layoutManager, int dx, int dy) {\n if (layoutManager.findFirstCompletelyVisibleItemPosition() == 0) {\n Log.d(TAG, \"onNotBottom\");\n // Its at top\n Log.d(TAG, \"top\");\n if (isScrolling) {\n isScrolling = false;\n // if (view != null) view.mostrarProgressBar();\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n String tipoCargaConLoadMore = \"ConLoadMore\";\n initObtenerListaChat(idGrupoChat, pageCount, tipoCargaConLoadMore);\n Log.d(TAG, \"isScrolling\" + pageCount);\n\n }\n }, 2000);\n Log.d(TAG, \"onNotBottom\");\n }\n }\n\n\n\n /* int visibleItemCount = layoutManager.getChildCount();\n int totalItemCount = layoutManager.getItemCount();\n int pastVisibleItems = layoutManager.findFirstVisibleItemPosition();\n if (pastVisibleItems + visibleItemCount >= totalItemCount) {\n //End of list\n Log.d(TAG, \"onBottomReachedListener\");\n } else {\n\n if (isScrolling) {\n isScrolling = false;\n // if (view != null) view.mostrarProgressBar();\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n String tipoCargaConLoadMore = \"ConLoadMore\";\n initObtenerListaChat(idGrupoChat, pageCount, tipoCargaConLoadMore);\n Log.d(TAG, \"isScrolling\" + pageCount);\n\n }\n }, 2000);\n Log.d(TAG, \"onNotBottom\");\n }\n\n\n }*/\n }", "@Override\r\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\r\n\t\t\tint visibleItemCount, int totalItemCount) {\n\r\n\t\tint offset = lastIndex - firstVisibleItem;\r\n\r\n\t\tif (offset < 0 || firstVisibleItem == 0) {\r\n\t\t\t// 证明现在listView往上移动\r\n\t\t\tif (quickTols != null) {\r\n\r\n\t\t\t\tquickTols.setVisibility(View.INVISIBLE);\r\n\t\t\t}\r\n\t\t} else if (offset > 0) {\r\n\t\t\tif (quickTols != null) {\r\n\t\t\t\tquickTols.setVisibility(View.VISIBLE);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tlastIndex = firstVisibleItem;\r\n\t}", "@Override\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\tint visibleItemCount, int totalItemCount) {\n\n\t\tif (((firstVisibleItem + visibleItemCount) >= totalItemCount)\n\t\t\t\t&& totalItemCount != 0) {\n\t\t\tnew ListLoader().execute();\n\t\t}\n\t}", "@Override\r\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n }", "@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n }", "@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n }", "@Override\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\t\t int visibleItemCount, int totalItemCount) {\n\n\t}", "@Override\n\t\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\t\tint visibleItemCount, int totalItemCount) {\n\n\t\t\t\t}", "@Override\n public void onScroll(AbsListView view, int firstVisibleItem,\n int visibleItemCount, int totalItemCount) {\n\n }", "public interface OnFinishScrollListener {\n public void onFinishScroll(int type, LinkedList<Contact> contactArrayList);\n}", "@Override\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\n\t}", "public interface LastItemVisibleCallBack {\n void loadNextPage();\n}", "@Override\n public boolean scrolled(int amount) {\n scrollAction.update(amount);\n return true;\n }", "@Override\n\t\t\tpublic void onScrollStateChanged(RecyclerView recyclerView,\n\t\t\t\t\tint newState) {\n\t\t\t\tsuper.onScrollStateChanged(recyclerView, newState);\n\t\t\t\tif (newState == RecyclerView.SCROLL_STATE_IDLE\n\t\t\t\t\t\t&& lastVisibleItem + 1 == mTiXianJiLuAdapter\n\t\t\t\t\t\t\t\t.getItemCount()) {\n\t\t\t\t\tswiperefreshlayout.setRefreshing(true);\n\t\t\t\t\tcurPage++;\n\t\t\t\t\tJiaoYiJiLuExec.getInstance().getTiXianJiLuList(mHandler,\n\t\t\t\t\t\t\tManagerUtils.getInstance().yjtc.getId(),\n\t\t\t\t\t\t\tcurPage, pageSize,\n\t\t\t\t\t\t\tNetworkAsyncCommonDefines.GET_TXJL_LIST_S,\n\t\t\t\t\t\t\tNetworkAsyncCommonDefines.GET_TXJL_LIST_F);\n\t\t\t\t}\n\n\t\t\t}", "@Override\n\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n\n\t\t\t}", "@FXML\n private void handleMainListPanelScrollDown() {\n mainTaskListPanel.scrollToNext();\n }", "public abstract void onLoadMore(int skipStart);", "private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }", "@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView arg0, int arg1) {\n\t\t\t\treturn ;\n\t\t\t}", "@Override\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\tint visibleItemCount, int totalItemCount) {\n\t\tif (totalItemCount > 0) {\n\t\t\tboolean init = false;\n\t\t\tif (mStartPos == -1) {\n\t\t\t\tinit = true;\n\t\t\t}\n\t\t\tmStartPos = firstVisibleItem;\n\t\t\tif (mStartPos + Constants.DEF_NUM >= totalItemCount) {\n\t\t\t\tmRefNum = totalItemCount - mStartPos - 1;// header\n\t\t\t} else {\n\t\t\t\tmRefNum = Constants.DEF_NUM;\n\t\t\t}\n\t\t\tif (init) {\n\t\t\t\trushIconThread();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\tint visibleItemCount, int totalItemCount) {\n\n\t\t\t}", "@Override\n public void onScrollEnd(CustomAdapter source) {\n if (source instanceof CharacterAdapter && !endPage) {\n getCharacterAt(current_page);\n }\n else if (source instanceof EpisodeAdapter && !endPage) {\n getEpisodesAt(current_page);\n }\n else if (source instanceof LocationAdapter && !endPage) {\n getLocationAt(current_page);\n }\n }", "private void doBuildScroller() {\r\n\t\t\r\n\t}", "@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n total_item = totalItemCount;\n if (total_pos != totalItemCount) {\n if (cur_position == 0) {\n /* If cur_position = 0, means is the first page, using cur_position to store\n the difference of total item num and the current item num */\n cur_position = totalItemCount - total_pos;\n } else {\n /*!=1 means after send msg not jump to cur_position = 1\n (total_item - total_pos) means if there are less items in the last page, listview should scroll to there */\n if ((total_item - total_pos) < cur_position && (total_item - total_pos) != 1) {\n cur_position = total_item - total_pos;\n }\n listView.setSelection(cur_position);\n total_pos = totalItemCount;\n }\n }\n\n if (firstVisibleItem == 0) {\n View firstVisibleItemView = listView.getChildAt(0);\n if (firstVisibleItemView != null && firstVisibleItemView.getTop() == 0) {\n Log.d(\"ListView\", \"##### 滚动到顶部 #####\");\n //if scrolling to the top of a page, page ++\n if (mPageNum < total_page) {\n mPageNum++;\n new ChatAsyncTask().execute();\n Toast.makeText(ChatActivity.this, \"Loading\",\n Toast.LENGTH_SHORT).show();\n\n } else {\n Toast.makeText(ChatActivity.this, \"Nothing More!!!\",\n Toast.LENGTH_SHORT).show();\n }\n }\n }\n }", "@Override\r\n\tpublic void onLoadMore() {\n\t}", "@Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n this.currentScrollState = scrollState;\n try {\n isScrollCompleted();\n } catch (Exception ex) {\n\n }\n }", "@Override\n public void onLoadMore() {\n\n }", "@Override\n public void onLoadMore() {\n }", "@Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n // 마지막 데이타에 도달했다면 아에 아무런 작업도 하지 않는다.\n if (isLastDataReached()) return;\n\n int totalIndex = mManager.getItemCount() - 1;\n int lastItem = mManager.findLastVisibleItemPosition();\n boolean isDownScroll = dy > 0;\n\n Log.d(TAG, \"onScrolled:totalIndex:\" + totalIndex + \"/lastItem:\" + lastItem + \"/isDownScroll:\" + isDownScroll);\n\n // TODO: 일반적으로 10개의 아이템이 있다면 totalCount는 10, firstItem은 0, lastItem은 9가 된다. (모든 아이템이 보인다는 가정 하에)\n // 만약 lastItem이 totalIndex 보다 컸을 때라고 조건을 둔다면 lastItem이 보이기 시작하는 순간부터 콜백이 발생된다.\n\n // 스크롤을 아래로 내렸을 때\n if (lastItem >= totalIndex & isDownScroll) {\n Log.d(TAG, \"onScrolled:reached:isLoading:\" + isLoading());\n if (!isLoading()) {\n Log.d(TAG, \"onScrolled:reached:SUCCESS\");\n\n if (onLoadMoreListener != null) {\n setLoading(true);\n onLoadMoreListener.onLoadMore();\n }\n }\n }\n }", "@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount){\n if (totalItemCount < cargadosAnterior) {\n this.paginaActual = 0;\n this.cargadosAnterior = totalItemCount;\n if (totalItemCount == 0) { this.cargando = true; }\n }\n\n // si el estado es cargando y el número de elementos actual es mayor que el número de elementos anterior,\n // es que ya hemos terminado la carga, por lo que cargando pasaría a false.\n if (cargando && (totalItemCount > cargadosAnterior)) {\n cargando = false;\n cargadosAnterior = totalItemCount;\n paginaActual++;\n }\n\n // If it isn’t currently loading, we check to see if we have breached\n // the visibleThreshold and need to reload more data.\n // If we do need to reload some more data, we execute onLoadMore to fetch the data.\n if (!cargando && (totalItemCount - visibleItemCount)<=(firstVisibleItem + bajoLista)) {\n //cargaMas(paginaActual+1, totalItemCount);\n cargaMas(paginaActual, totalItemCount);\n cargando = true;\n }\n }", "@Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n // 마지막 데이타에 도달했다면 아에 아무런 작업도 하지 않는다.\n if (isLastDataReached()) return;\n\n int totalIndex = mManager.getItemCount() - 1;\n int lastItem = mManager.findLastVisibleItemPosition();\n boolean isDownScroll = dy > 0;\n\n Log.d(TAG, \"onScrolled:totalIndex:\" + totalIndex + \"|lastItem:\" + lastItem + \"|dy:\" + dy);\n\n // TODO: 일반적으로 10개의 아이템이 있다면 totalCount는 10, firstItem은 0, lastItem은 9가 된다. (모든 아이템이 보인다는 가정 하에)\n // 만약 lastItem이 totalIndex 보다 컸을 때라고 조건을 둔다면 lastItem이 보이기 시작하는 순간부터 콜백이 발생된다.\n\n // 스크롤을 아래로 내렸을 때\n if (lastItem >= totalIndex & isDownScroll) {\n Log.d(TAG, \"onScrolled:reached:isLoading:\" + isLoading());\n if (!isLoading()) {\n Log.d(TAG, \"onScrolled:reached:SUCCESS\");\n\n if (onLoadMoreListener != null) {\n setLoading(true);\n onLoadMoreListener.onLoadMore();\n }\n }\n }\n }", "@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\t\n\t\t\t}", "public EndLessListView(Context context, AttributeSet attrs) {\n super(context, attrs);\n//Set the listener that will receive notifications every time the list scrolls.\n this.setOnScrollListener(this);\n }", "@Override\n\t\t\tpublic void onScrollingFinished(WheelView view) {\n\t\t\t}", "@Override\r\n\tpublic void onLoadMore() {\n\r\n\t}", "@Override\n\tpublic void computeScroll() {\n\t if (mAdapter == null) {\n\t return;\n\t }\n\t if(mAdapter.getCount() == 0){\n\t \treturn;\n\t }\n\t \n\t\tif (mScroller.computeScrollOffset()) {\n\t\t\tif(mScroller.getFinalX() == mScroller.getCurrX()){\n\t\t\t\tmScroller.abortAnimation();\n\t\t\t\tmTouchState = TOUCH_STATE_RESTING;\n\t\t\t\tif(!checkScrollPosition())\n\t\t\t\t\tclearChildrenCache();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t int x = mScroller.getCurrX();\n\t\t scrollTo(x, 0);\n\t\t \n postInvalidate();\n }\n\t\telse if(mTouchState == TOUCH_STATE_FLING || mTouchState == TOUCH_STATE_DISTANCE_SCROLL){\n\t\t\tmTouchState = TOUCH_STATE_RESTING;\n\t\t\tif(!checkScrollPosition())\n\t\t\t\tclearChildrenCache();\n\t\t}\n\t\t\n\t\tif(mDataChanged){\n\t\t\tremoveAllViewsInLayout();\n\t\t\trefillOnChange(mFirstItemPosition);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\trelayout();\n\t\tremoveNonVisibleViews();\n\t\trefillRight();\n\t\trefillLeft();\n\n\t}", "private void onUp()\n\t{\n\t\tsynchronized (HorizontalListView.this)\n\t\t{\n\t\t\tif (!mFlinging)\n\t\t\t{\n\t\t\t\treadjustScrollToMiddleItem();\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void scrollListTest() {\n\n onView(withId(R.id.rv_list)).perform(RecyclerViewActions.actionOnItemAtPosition(MainActivity.mListSize, scrollTo()));\n }", "@Override\n\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\t\tif(firstVisibleItem==0){\n\t\t\t\t\tswipeLayout.setEnabled(true);\n\t\t\t\t}else{\n\t\t\t\t\tswipeLayout.setEnabled(false);\n\t\t\t\t}\n\n\t\t\t\tif(mLastFirstVisibleItem<firstVisibleItem)\n\t\t\t\t{\n\t\t\t\t\t//\t\t Log.i(\"SCROLLING DOWN\",\"TRUE\");\n\t\t\t\t\tAnimation slideUp = AnimationUtils.loadAnimation(getActivity(), R.anim.slide_up);\n\t\t\t\t\tstatuslyt.startAnimation(slideUp);\n\n\t\t\t\t}\n\t\t\t\tif(mLastFirstVisibleItem>firstVisibleItem)\n\t\t\t\t{\n\t\t\t\t\t//\t\t Log.i(\"SCROLLING UP\",\"TRUE\");\n\t\t\t\t}\n\t\t\t\tmLastFirstVisibleItem=firstVisibleItem;\n\t\t\t}", "@Override\n public void onScroll(\n final @Nullable AbsListView view,\n final int first_visible_item,\n final int visible_count,\n final int total_count) {\n\n if (CatalogFeedWithoutGroups.shouldLoadNext(first_visible_item, total_count)) {\n this.loadNext(this.uri_next);\n }\n }", "@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount,\n int totalItemCount) {\n boolean loadMore;\n\n int ultimRegistreVist= firstVisibleItem + visibleItemCount;\n boolean loadMoreTmp = firstVisibleItem + visibleItemCount >= totalItemCount;\n\n if ((this.articles.size() == 100) && (loadMoreTmp)){\n //if ((this.articles.size() == 100) && (ultimRegistreVist >= totalItemCount)){\n loadMore = true;\n }\n else{\n loadMore = false;\n }\n\n if(loadMore && this.processes==0) {\n this.processes = 1;\n activity.obtainArticlesAsync(this.urlFinal + \"/\" +\n String.valueOf(this.articles.size() + 1),this.dialog, this.articles,\n this.listArticles,(ultimRegistreVist - visibleItemCount));\n\n }\n }", "@Override\r\n public boolean onScroll(float displacement, float delta, float velocity) {\n return false;\r\n }", "public abstract void onLoadMore(int page, int totalItemsCount);", "public abstract void onLoadMore(int page, int totalItemsCount);", "@FXML\n private void handleMainListPanelScrollToLast() {\n mainTaskListPanel.scrollToLast();\n }", "public abstract void onScrollUp();", "void onListInteraction(int index, boolean isLongClicked);", "@Override\n public void onScrollStateChanged(AbsListView view, int scrollState)\n {\n }", "@Override\n public void run() {\n mListView.setSelection(mAdapter.getCount() - 1);\n }", "@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\tif(paging==true)\n\t\t\t\t{\t\n\t\t\t\t\tgetExhibitionsPaging();\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\tif (scrollState == AbsListView.OnScrollListener.SCROLL_STATE_IDLE\n\t\t\t\t\t\t&& listView.getLastVisiblePosition() == listView.getCount() - 1)\n\t\t\t\t{\n\t\t\t\t\tif(list.size() != 0)\n\t\t\t\t\t\tload();\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onScroll(AbsListView absListView, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n if (totalItemCount - visibleItemCount <= firstVisibleItem) {\n autoLoadPosts();\n }\n }", "protected abstract void onRequestPage(boolean isRequestNext,int fromIndex,int toIndex,float x,float y);", "@Override\n public void onScrolled(int distanceX, int distanceY) {\n\n }" ]
[ "0.67504996", "0.6728253", "0.66039133", "0.65820134", "0.6569651", "0.6569651", "0.6569651", "0.6569651", "0.65191466", "0.650811", "0.64822304", "0.64797133", "0.6467475", "0.6467475", "0.6459164", "0.64503145", "0.6433267", "0.6417885", "0.63718855", "0.6333201", "0.6333116", "0.63278705", "0.63278705", "0.63278705", "0.63278705", "0.63278705", "0.63278705", "0.63278705", "0.63278705", "0.63278705", "0.63278705", "0.63278705", "0.63278705", "0.6304364", "0.6304364", "0.6285565", "0.6274137", "0.6267071", "0.62664735", "0.62485385", "0.62298256", "0.6195544", "0.6170528", "0.6170528", "0.6170528", "0.6170528", "0.6158736", "0.61530066", "0.6133064", "0.6115095", "0.61145115", "0.6112208", "0.6112208", "0.6075377", "0.6051379", "0.60341495", "0.60210943", "0.6020861", "0.6016205", "0.60100144", "0.60063887", "0.5998439", "0.59967005", "0.5989521", "0.59806925", "0.59759796", "0.59727836", "0.5965908", "0.5955253", "0.5948316", "0.59480095", "0.5947107", "0.59465224", "0.5932733", "0.5926154", "0.5922774", "0.59128046", "0.590873", "0.5903711", "0.5900824", "0.5895156", "0.5889855", "0.588787", "0.5885224", "0.588358", "0.58825237", "0.58667177", "0.58633125", "0.586054", "0.58596784", "0.58596784", "0.5849353", "0.5847813", "0.583408", "0.5830838", "0.5811497", "0.58059704", "0.5804923", "0.5788721", "0.5788451", "0.57776755" ]
0.0
-1
Created by KOTO on 11/07/2017.
public interface PokemonService { @GET("pokemon/?limit=151") Call<ListResponse> listPokemon(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\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\n public void func_104112_b() {\n \n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void interr() {\n\t}", "public void mo38117a() {\n }", "private void poetries() {\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 public void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void init() {\n\n\t}", "@Override\n protected void init() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo4359a() {\n }", "@Override\n public void init() {}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void anularFact() {\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 init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\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 public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void m50366E() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void einkaufen() {\n\t}", "private void kk12() {\n\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public void mo6081a() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void initialize() {}" ]
[ "0.60011435", "0.58071864", "0.57994956", "0.5789362", "0.57517946", "0.5692804", "0.5677208", "0.5677208", "0.56616956", "0.5641277", "0.55978984", "0.5581048", "0.55753756", "0.55587286", "0.55393654", "0.5532729", "0.5532729", "0.5532729", "0.5532729", "0.5532729", "0.5529914", "0.5522153", "0.5522153", "0.5522153", "0.5522153", "0.5522153", "0.5522153", "0.552188", "0.5507106", "0.55057985", "0.5505668", "0.5494936", "0.5494936", "0.5493121", "0.5493088", "0.5492232", "0.5487503", "0.5486794", "0.5486106", "0.5475509", "0.54715073", "0.5466219", "0.54640484", "0.5457586", "0.5447431", "0.54462653", "0.54427487", "0.5440242", "0.5435062", "0.5430036", "0.5428123", "0.5427976", "0.54245406", "0.54224014", "0.54224014", "0.54162633", "0.54162633", "0.54162633", "0.541212", "0.541212", "0.541212", "0.5402267", "0.5402267", "0.5400278", "0.5390258", "0.5390258", "0.5390258", "0.5384722", "0.5367431", "0.53553534", "0.5354307", "0.53503585", "0.5350287", "0.53342515", "0.5333478", "0.53303146", "0.5326122", "0.53128135", "0.53128135", "0.53128135", "0.53128135", "0.53128135", "0.53128135", "0.53128135", "0.5302896", "0.5302896", "0.5301461", "0.53010416", "0.5297654", "0.52956104", "0.52909285", "0.5278237", "0.52753407", "0.5270281", "0.526467", "0.5263969", "0.52578765", "0.5257788", "0.5243768", "0.52414966", "0.5240469" ]
0.0
-1
This Constructor recieves the modifications in String Format and will transform them into different objects.
public ModificationList(ArrayList aFModStringArrayList, ArrayList aVModStringArrayList) { generateVModVector(aVModStringArrayList); generateFModVector(aFModStringArrayList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Format()\n {\n super();\n }", "public abstract void fromString(String s, String context);", "private Formats() {\n }", "private ARXDate(final String formatString) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string = \"dd.MM.yyyy\";\r\n this.format = new SimpleDateFormat(string);\r\n this.locale = null;\r\n } else {\r\n this.format = new SimpleDateFormat(formatString);\r\n this.string = formatString;\r\n this.locale = null;\r\n }\r\n }", "public Parse(String str)\r\n {\r\n super(str);\r\n }", "public abstract String construct();", "public Packman(String str) {\r\n\t\tString[] fields = str.split(\",\");\r\n\t\tType = fields[0].charAt(0);\r\n\t\tID = Integer.parseInt(fields[1]);\r\n\t\tLocation = new LatLonAlt(fields[2] + \",\" + fields[3] + \",\" + fields[4]);\r\n\t\tSpeed = Double.parseDouble(fields[5]);\r\n\t\tRadius = Double.parseDouble(fields[6]);\r\n\t\tInitTime = new Date().getTime();\r\n\t}", "@Test\n public void testConstructorTransformations() {\n\n String t1 = \"A C G T A C G T A A A A\";\n Sequence seq1 = new Sequence(\"t1\", t1, five);\n assertTrue(s1.equals(seq1.sequence()));\n\n String t2 = \"acgtacgtaaaa\";\n Sequence seq2 = new Sequence(\"t2\", t2, five);\n assertTrue(s1.equals(seq2.sequence()));\n\n }", "protected void initializeFromFormat(String p_150269_1_) {\n\t\tfinal Matcher var3 = stringVariablePattern.matcher(p_150269_1_);\n\t\tint var4 = 0;\n\t\tint var5 = 0;\n\n\t\ttry {\n\t\t\tint var7;\n\n\t\t\tfor (; var3.find(var5); var5 = var7) {\n\t\t\t\tfinal int var6 = var3.start();\n\t\t\t\tvar7 = var3.end();\n\n\t\t\t\tif (var6 > var5) {\n\t\t\t\t\tfinal ChatComponentText var8 = new ChatComponentText(\n\t\t\t\t\t\t\tString.format(p_150269_1_.substring(var5, var6),\n\t\t\t\t\t\t\t\t\tnew Object[0]));\n\t\t\t\t\tvar8.getChatStyle().setParentStyle(getChatStyle());\n\t\t\t\t\tchildren.add(var8);\n\t\t\t\t}\n\n\t\t\t\tfinal String var14 = var3.group(2);\n\t\t\t\tfinal String var9 = p_150269_1_.substring(var6, var7);\n\n\t\t\t\tif (\"%\".equals(var14) && \"%%\".equals(var9)) {\n\t\t\t\t\tfinal ChatComponentText var15 = new ChatComponentText(\"%\");\n\t\t\t\t\tvar15.getChatStyle().setParentStyle(getChatStyle());\n\t\t\t\t\tchildren.add(var15);\n\t\t\t\t} else {\n\t\t\t\t\tif (!\"s\".equals(var14))\n\t\t\t\t\t\tthrow new ChatComponentTranslationFormatException(this,\n\t\t\t\t\t\t\t\t\"Unsupported format: \\'\" + var9 + \"\\'\");\n\n\t\t\t\t\tfinal String var10 = var3.group(1);\n\t\t\t\t\tfinal int var11 = var10 != null ? Integer.parseInt(var10) - 1\n\t\t\t\t\t\t\t: var4++;\n\t\t\t\t\tchildren.add(getFormatArgumentAsComponent(var11));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (var5 < p_150269_1_.length()) {\n\t\t\t\tfinal ChatComponentText var13 = new ChatComponentText(\n\t\t\t\t\t\tString.format(p_150269_1_.substring(var5),\n\t\t\t\t\t\t\t\tnew Object[0]));\n\t\t\t\tvar13.getChatStyle().setParentStyle(getChatStyle());\n\t\t\t\tchildren.add(var13);\n\t\t\t}\n\t\t} catch (final IllegalFormatException var12) {\n\t\t\tthrow new ChatComponentTranslationFormatException(this, var12);\n\t\t}\n\t}", "public StringConverter()\n {\n \n }", "private ARXOrderedString(){\r\n this(\"Default\");\r\n }", "private FormatUtilities() {}", "public StringData1() {\n }", "protected abstract T prepareObject(String extracted);", "public Customer(String s) {\r\n\t\tString [] sr = s.split(\",\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(sr.length == 3)\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.seqNo = Integer.parseInt(sr[0].trim());\r\n\t\t\t\t\tthis.name = sr[1].trim();\r\n\t\t\t\t\tthis.parcelID = sr[2].trim();\r\n\t\t\t\t}\r\n\t\t\t\tcatch(NumberFormatException e)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Error in input file. Cannot convert to int\" + e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t\tcatch(ArrayIndexOutOfBoundsException e)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Error in input file. To few parts\" + e.getMessage());\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\tthrow new CustomerStringFormatException();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(CustomerStringFormatException cfse)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"String format error: Cannot convert string to Customer.\");\r\n\t\t}\r\n\t}", "public DefaultFormat() {\n }", "public void parseString(String str) {\r\n\t\t\tint spaceAt = str.indexOf(' ');\r\n\r\n\t\t\tsrcService_ = str.substring(0, spaceAt);\r\n\t\t\tdestService_ = str.substring(spaceAt + 1);\r\n\t\t}", "public MCAlarmInfo(String strTextInfo)\n\t{\n\t\tMCAlarmInfo srcInfo = MCAlarmInfo.StringToAlarmInfo(strTextInfo);\n\t\tcopyFrom(srcInfo);\n\t}", "public Affettatore(String str) {\n this (str, \" \\t\\n\\r\\f\");\n }", "private ARXOrderedString(String format){\r\n if (format==null || format.equals(\"Default\") || format.equals(\"\")) {\r\n this.order = null;\r\n } else {\r\n try {\r\n this.order = new HashMap<String, Integer>(); \r\n BufferedReader reader = new BufferedReader(new StringReader(format));\r\n int index = 0;\r\n String line = reader.readLine();\r\n while (line != null) {\r\n if (this.order.put(line, index) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+line+\"'\");\r\n }\r\n line = reader.readLine();\r\n index++;\r\n }\r\n reader.close();\r\n } catch (IOException e) {\r\n throw new IllegalArgumentException(\"Error reading input data\");\r\n }\r\n }\r\n }", "public MyString2(String s) {\n\t\tthis.s = s;\n\t}", "@Override\n public Object construct(Object... args) {\n CharSequence stringData = (args.length > 0 ? ToString(realm(), args[0]) : \"\");\n ExoticString obj = new ExoticString(realm(), stringData);\n obj.setPrototype(realm().getIntrinsic(Intrinsics.StringPrototype));\n return obj;\n }", "private ARXOrderedString(String[] format){\r\n if (format.length == 0) {\r\n this.order = null;\r\n } else {\r\n this.order = new HashMap<String, Integer>(); \r\n for (int i=0; i< format.length; i++){\r\n if (this.order.put(format[i], i) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+format[i]+\"'\");\r\n }\r\n }\r\n }\r\n }", "public Normal(String str, String str2, String str3) {\n super(str, str2, str3, null);\n j.b(str, \"title\");\n this.title = str;\n this.subtitle = str2;\n this.referrer = str3;\n }", "public ParseException() {\n super();\n specialConstructor = false;\n }", "public DateParser(String dateAndTimeString) {\n this.dateAndTimeString = dateAndTimeString;\n }", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "public Transformer(String input) throws Exception {\n // Remove spaces\n String inputReplaced = input.replace(\", \", \",\");\n inputReplaced = inputReplaced.replace(\" ,\", \",\");\n while (inputReplaced.length() != input.length()) {\n input = inputReplaced;\n inputReplaced = input.replace(\", \", \",\");\n inputReplaced = inputReplaced.replace(\" ,\", \",\");\n }\n input = input.replace(\":\", \",\");\n\n // Make sure the input uses the correct format\n if (!input.matches(\"^([a-z]|[A-Z]|[ ])+,.*$\"))\n throw new Exception(\"Bad formatting! Transformer \" + input + \" does not start with a valid name\");\n if (!input.matches(\"^.*,([aAdD]|([aA]utobots)|([dD]ecepticons)),.*$\"))\n throw new Exception(\"Bad formatting! Transformer \" + input + \" does not have a valid team\");\n if (!input.matches(\"^.*(,(10|[1-9])){8}$\"))\n throw new Exception(\"Bad formatting! Transformer \" + input + \" does not have valid specs\");\n\n // Build the transformer\n String[] inputArray = input.split(\",\");\n name = inputArray[NAME];\n team = inputArray[TEAM].matches(\"([aA]|[aA]utobots)\") ? \"Autobots\" : \"Decepticons\";\n\n int[] specs = new int[8];\n for (int i = 0; i < specs.length; i++)\n specs[i] = Integer.parseInt(inputArray[i + 2]);\n\n strength = specs[0];\n rank = specs[4];\n courage = specs[5];\n skill = specs[7];\n overall = specs[1] + specs[2] + specs[3] + specs[6];\n }", "public StringObj(int d, String s) {\n\t\t\tthis.distance = d;\n\t\t\tthis.str = s;\n\t\t}", "public Format(String s)\n {\n width = 0;\n precision = -1;\n pre = \"\";\n post = \"\";\n leading_zeroes = false;\n show_plus = false;\n alternate = false;\n show_space = false;\n left_align = false;\n fmt = ' ';\n\n int length = s.length();\n int parse_state = 0;\n\n // 0 = prefix, 1 = flags, 2 = width, 3 = precision,\n // 4 = format, 5 = end\n int i = 0;\n\n while (parse_state == 0)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (s.charAt(i) == '%')\n {\n if (i < (length - 1))\n {\n if (s.charAt(i + 1) == '%')\n {\n pre = pre + '%';\n i++;\n }\n else\n {\n parse_state = 1;\n }\n }\n else\n {\n throw new java.lang.IllegalArgumentException();\n }\n }\n else\n {\n pre = pre + s.charAt(i);\n }\n\n i++;\n }\n\n while (parse_state == 1)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (s.charAt(i) == ' ')\n {\n show_space = true;\n }\n else if (s.charAt(i) == '-')\n {\n left_align = true;\n }\n else if (s.charAt(i) == '+')\n {\n show_plus = true;\n }\n else if (s.charAt(i) == '0')\n {\n leading_zeroes = true;\n }\n else if (s.charAt(i) == '#')\n {\n alternate = true;\n }\n else\n {\n parse_state = 2;\n i--;\n }\n\n i++;\n }\n\n while (parse_state == 2)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (('0' <= s.charAt(i)) && (s.charAt(i) <= '9'))\n {\n width = ((width * 10) + s.charAt(i)) - '0';\n i++;\n }\n else if (s.charAt(i) == '.')\n {\n parse_state = 3;\n precision = 0;\n i++;\n }\n else\n {\n parse_state = 4;\n }\n }\n\n while (parse_state == 3)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (('0' <= s.charAt(i)) && (s.charAt(i) <= '9'))\n {\n precision = ((precision * 10) + s.charAt(i)) - '0';\n i++;\n }\n else\n {\n parse_state = 4;\n }\n }\n\n if (parse_state == 4)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else\n {\n fmt = s.charAt(i);\n }\n\n i++;\n }\n\n if (i < length)\n {\n post = s.substring(i, length);\n }\n }", "CamembertdeNormandie(Machecoulais machecoulais, Context context, String str) {\n super(0);\n this.f16562a = machecoulais;\n this.f16563b = context;\n this.f16564c = str;\n }", "public History(String str, String str2, String str3) {\n super(str, str2, str3, null);\n j.b(str, \"title\");\n this.title = str;\n this.subtitle = str2;\n this.referrer = str3;\n }", "private Templated parseFromFormat(String string, Text text) {\n int br = 0;\n int start = 0; // basically pattern matching but without regex cuz regex is slow\n List<String> remainingSparse = new ArrayList<>();\n List<String> orderedArgs = new ArrayList<>();\n // same args map as in classic, placeholder id -> it's args\n Map<String, PlaceholderArgs> args = new HashMap<>();\n int last = 0;\n char[] starr = string.toCharArray();\n boolean quoted = false; // pass over quotes and single quotes. '\"' ignores the \", and vice versa.\n boolean singlequoted = false;\n for (int i = 0; i < starr.length; i++) {\n char c = starr[i];\n if (c == '\\\\') {\n i++;\n continue;\n }\n if (c == '\\\"' && !singlequoted) {\n quoted = !quoted;\n continue;\n }\n if (c == '\\'' && !quoted) {\n singlequoted = !singlequoted;\n continue;\n }\n if (quoted || singlequoted) {\n continue; // quoted text ignored, this suck\n }\n // We don't parse JSON Arrays in this house -> placeholders are base json objects only.\n if (c == '{') { // starting new json bracket\n if (br == 0) {\n start = i;\n }\n br++;\n }\n if (c == '}') {\n br--;\n if (br == 0) { // ayy we found a complete placeholder json string.\n String json = string.substring(start, i + 1); // get that string\n Tuple<String, PlaceholderArgs> parsed = parseJSON(json, args); // parse that string\n if (parsed == null) { // ops failed give up\n continue;\n } // get in-between text for last placeholder and this one, don't omit anything\n remainingSparse.add(string.substring(last, start));\n last = i + 1; // shift frame of lsat\n remainingSparse.add(null); // add null to take 'slot' of placeholder, for iteration's sake.\n args.put(parsed.getFirst(), parsed.getSecond()); // put args yay\n orderedArgs.add(parsed.getFirst()); // put ordered args? i suppose this is nice\n }\n }\n }\n remainingSparse.add(string.substring(last)); // add last part of string (could be empty)\n TextTemplate t = TextTemplate.of(); // build template\n for (String s : remainingSparse) {\n if (s == null) { // if placeholder\n String arg = orderedArgs.remove(0); // remove next arg -> that's why this is nice (no hashmap)\n t = t.concat(TextTemplate.of(buildArg(arg, args.get(arg)))); // -> new arg in template\n } else {\n t = t.concat(TextTemplate.of(s)); // just string thanks :)\n }\n }\n return new Templated(t, args, text); // all done\n }", "public InterrogationMeteoString() {\r\n\t\tthis(null, null, null, null, null);\r\n\t}", "public SampleData(Font newFont, Color newColor, String newString) {\n\tfont = newFont;\n\tcolor = newColor;\n\tstring = newString;\n }", "private ARXOrderedString(List<String> format){\r\n if (format.size()==0) {\r\n this.order = null;\r\n } else {\r\n this.order = new HashMap<String, Integer>(); \r\n for (int i=0; i< format.size(); i++){\r\n if (this.order.put(format.get(i), i) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+format.get(i)+\"'\");\r\n }\r\n }\r\n }\r\n }", "@Test\n public void testConstructionString()\n {\n String constructed = StateUtils.construct(sensitiveString, externalContext);\n Object object = StateUtils.reconstruct(constructed, externalContext);\n Assertions.assertTrue(object instanceof String);\n String string = (String) object;\n Assertions.assertEquals(string, sensitiveString);\n }", "public void init(String rawInfo) {\n try {\n destination = setValue(\"Destination\", rawInfo);\n vehicleNumber = Integer.parseInt(setValue(\"VehicleNo\", rawInfo));\n longitude = Double.parseDouble(setValue(\"Longitude\", rawInfo));\n latitude = Double.parseDouble(setValue(\"Latitude\", rawInfo));\n direction = setValue(\"Direction\", rawInfo);\n } catch (IllegalStateException e) {\n // This happens if the init string is in an invalid format. Set all members to their\n // default values.\n destination = \"null\";\n vehicleNumber = -1;\n longitude = 0.0;\n latitude = 0.0;\n direction = \"West\";\n }\n }", "public EncodeAndDecodeStrings() {}", "public DateTime(String string) {\r\n\t\tSimpleDateFormat[] formats = new SimpleDateFormat[] {\r\n\t\t\t\tYYYY_MM_DD_FORMATTER, YYYY_MMT_DD_T_HH_MM_FORMATTER,\r\n\t\t\t\tYYYY_MMT_DD_T_HH_MM_SS_FORMATTER };\r\n\t\tfor (SimpleDateFormat format : formats) {\r\n\t\t\ttry {\r\n\t\t\t\tformat.parse(string);\r\n\t\t\t\tthis.timeString = string;\r\n\t\t\t\treturn;\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new IllegalArgumentException();\r\n\t}", "private void fromString(String serverInfoString) {\n\t\tif (serverInfoString != null && !serverInfoString.isEmpty()) {\n\t\t\tString[] tokens = serverInfoString.split(\" \");\n\t\t\tif (tokens.length == 3) {\n\t\t\t\tsetServerName(tokens[0]);\n\t\t\t\tsetAddress(tokens[1]);\n\t\t\t\tsetPort(Integer.parseInt(tokens[2]));\n\t\t\t} else\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"Config file is not formatted as expected. near \"\n\t\t\t\t\t\t\t\t+ serverInfoString);\n\n\t\t}\n\n\t}", "private Line(String inLine) {\n // Save the input line.\n this.lineText = inLine;\n // Get the number of fields in the line.\n int nFields = labels.length;\n // Normally, this will work.\n this.fields = TabbedLineReader.this.splitLine(inLine);\n // If the number of fields is wrong, we have to adjust.\n if (this.fields.length != nFields) {\n // Copy the old array and create a new one of the proper length.\n String[] buffer = this.fields;\n this.fields = new String[nFields];\n // Transfer the strings one by one, padding if necessary.\n for (int i = 0; i < nFields; i++) {\n if (i < buffer.length) {\n this.fields[i] = buffer[i];\n } else {\n this.fields[i] = \"\";\n }\n }\n }\n }", "public StringContent(String newString)\n {\n content=newString;\n }", "public Interval(@NotNull String str, @NotNull String str2, @NotNull String str3) {\n super(str3, null);\n a.Z0(str, \"from\", str2, \"to\", str3, \"title\");\n this.b = str;\n this.c = str2;\n }", "public MultilingualString(String s, String languageCode) {\n }", "public abstract DataType<T> newInstance(String format);", "@Test\n\tpublic void prototype() {\n\t\tassertEquals(parseString().parse(\"abc\").toString(), \"abc\");\n\t\tassertEquals(parseString().parse(\"asDSD2_ff\").toString(), \"asDSD2_ff\");\n\n\t}", "private ComporMessageFormat() {\r\n }", "public bwq(String paramString1, String paramString2)\r\n/* 10: */ {\r\n/* 11: 9 */ this.a = paramString1;\r\n/* 12:10 */ this.f = paramString2;\r\n/* 13: */ }", "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}", "private Field(String jsonString) {\n this.jsonString = jsonString;\n }", "public StringParser(String str) {\n this.str = str;\n currentPosition = 0;\n maxPosition = str == null ? 0 : str.length();\n }", "public UnitP(ParseInfo parseInfo, String originalUnitString)\n {\n \tthis(parseInfo, originalUnitString, UnitSystems.None);\n }", "public StringData() {\n\n }", "public StringInputSource(String s) {\n _index = 0;\n _input = s;\n }", "@Override\n\tpublic function initFromString(String s) {\n\t\treturn null;\n\t}", "@JsonCreator\n public Filter(String filterStr) {\n Matcher matcher = FILTER_PATTERN.matcher(filterStr);\n if (matcher.find()) {\n _expression = filterStr;\n _leftOperand = getOperand(matcher.group(1));\n _operator = Operator.fromString(matcher.group(2).replaceAll(\"\\\\s+\", \"\"));\n _rightOperand = getOperand(matcher.group(4));\n } else {\n throw new IllegalArgumentException(\"Illegal filter string pattern: '\" + filterStr + \"'\");\n }\n }", "public UnitP(UnitInfo unitInfo, UnitP unitP, String originalUnitString)\n {\n \tthis(unitInfo, unitP, originalUnitString, true); \t\n }", "public JSONString(String stringIn)\n {\n this.string = stringIn;\n }", "default T convert(final String value, final String format) {\n return convert(value);\n }", "@Override\n\tprotected IPAddressStringParameters createFromStringParams() {\n\t\treturn new IPAddressStringParameters.Builder().\n\t\t\t\tgetIPv4AddressParametersBuilder().setNetwork(getNetwork()).getParentBuilder().\n\t\t\t\tgetIPv6AddressParametersBuilder().setNetwork(getIPv6Network()).getParentBuilder().toParams();\n\t}", "private VersionExpansionParser(String expansion) {\n\n this.expansionString = expansion;\n\n }", "protected StringTranslator() {\n\n String from = \"-_\";\n String to = \"%/\";\n translationMap = new HashMap<Character, Character>();\n\n if (from.length() != to.length())\n throw new IllegalArgumentException(\"The from and to strings must be of the same length\");\n\n for (int i = 0; i < from.length(); i++)\n translationMap.put(from.charAt(i), to.charAt(i));\n }", "@Override\n\tpublic function initFromString(String s) {\n\t\treturn new Monom(s);\n\t}", "public OperatorStringFormatException(String s) {\n\t\tsuper(s);\n\t}", "public /* synthetic */ C0401b(String str, String str2, String str3, String str4, int i, g gVar) {\n this((i & 1) != 0 ? \"\" : str, (i & 2) != 0 ? \"\" : str2, (i & 4) != 0 ? \"\" : str3, (i & 8) != 0 ? \"\" : str4);\n }", "private ARXDate(String formatString, Locale locale) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string = \"dd.MM.yyyy\";\r\n this.format = new SimpleDateFormat(string, locale);\r\n this.locale = locale;\r\n } else {\r\n this.format = new SimpleDateFormat(formatString, locale);\r\n this.string = formatString;\r\n this.locale = locale;\r\n }\r\n }", "public Date212 (String s){ //initial constructor\n full_Date = s;\n // System.out.println(full_Date + \"jdjdj\");\n if (!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\"); \n //If it is not true that the date is valid then throw a error.\n /* \n The substring methods to pull out the Year, Month, and Day.\n */\n Year = Integer.parseInt(full_Date.substring(0,3)); \n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n count++; \n addArray(this); //Calling the function \"addArray\" with 'this isntance of date212'\n // System.out.println(myDates[i]);\n\n }", "public Message(String unparsedData){\n\t\theaderLines = new ArrayList<ArrayList<String>>();\n\t\tString[] headFromEntity = unparsedData.split(\"\\n\\n\", 2);\n\t\tString[] msgInfo = headFromEntity[0].split(\"\\n\");\n\t\tString[] status = msgInfo[0].split(\" \");\n\t\t\n\t\tthis.messageInfo[0]= status[0];\t\t\t\t\t// Version\n\t\tthis.messageInfo[1] = status[1];\t\t\t\t// status code\n\t\tthis.messageInfo[2] = msgInfo[0].substring(2);\t// phrase\n\t\t\n\t\tfor (int i = 1; i < msgInfo.length; i++){\n\t\t\tstatus = msgInfo[i].split(\" \");\n\t\t\theaderLines.add(new ArrayList<String>());\n\t\t\theaderLines.get(headerLines.size()-1).add(status[0]);\n\t\t\theaderLines.get(headerLines.size()-1).add(msgInfo[i].substring(status[0].length()));\n\t\t}\n\t\t\n\t\tentity = headFromEntity[1].getBytes();\n\t}", "public BioFormatsFormat() {\n\t\tcacheReaderClasses();\n\t}", "public Incident(String str) throws MalformedIncidentException {\n\n // Null/Empty check\n if (str == null || str.length() == 0) {\n throw new MalformedIncidentException(\"The incident was \" + ((str == null) ? \"a null\" : \"an empty\") + \" string.\");\n }\n\n // Is the input the right size?\n String[] components = str.split(\",\");\n if(components.length != 17) {\n throw new MalformedIncidentException(str + \"\\n(There were not 17 CSV columns)\");\n }\n\n // Bind properties to object\n try {\n\n this.coordinates = new Coordinates(Double.parseDouble(components[15]), Double.parseDouble(components[1]));\n this.date = new DateTime(PDDConfig.getInstance().PhillyCrimeDataDateFormat.parse(components[5]));\n this.code = Integer.parseInt(components[11]);\n this.description = components[12];\n\n } catch (NumberFormatException nfe) {\n throw new MalformedIncidentException(str + \"\\n(One of the numbers/coordinates could not be parsed).\" + nfe.getLocalizedMessage());\n } catch (ParseException pe) {\n throw new MalformedIncidentException(str + \"\\n(The date was not supplied in the correct format. The date string was \" + components[5] + \".\");\n }\n }", "public Complex(String[] cStr){\r\n\t this(cStr[0], cStr[1]);\r\n\t}", "private FileFormats(String fileFormat, TeaFileReader reader, TeaFileWriter writer, String description) {\r\n\t\tthis.fileFormat = fileFormat;\r\n\t\tthis.reader = reader;\r\n\t\tthis.writer = writer;\r\n\t\tthis.description = description;\r\n\t}", "public Date(String sDate) {\r\n\t\tint m, d, y;\r\n\t\tString[] chopDate = sDate.split(\"-\");\r\n\t\tm = Integer.parseInt(chopDate[ZEROI]);\r\n\t\td = Integer.parseInt(chopDate[ONEI]);\r\n\t\ty = Integer.parseInt(chopDate[TWOI]);\r\n\t\tif (!isValid(m, d, y))\r\n\t\t\tthrow new RuntimeException(\"Invalid date\");\r\n\t\tmonth = m;\r\n\t\tday = d;\r\n\t\tyear = y;\r\n\t}", "public State(String fromString)\n {\n// Metrics.increment(\"State count\");\n //...\n }", "public DVD(){\n\n\t\t/*\n\t\t * Creates and stores multiple potential input formats\n\t\t */\n\t\tformats = new String[]{\"MM-dd-yy\",\"MM/dd/yy\",\"MM-dd-yyyy\",\n\t\t\"MM/dd/yyyy\"};\n\t}", "public void testCtorStr() throws Exception {\n ConfigManager.getInstance()\n .add(\"test_files\" + File.separator\n + \"RenameConverter.xml\");\n\n RenameConverter converter = new RenameConverter(DEFAULT_NAMESPACE);\n assertNotNull(\"Unable to create RenameConverter instance.\", converter);\n\n Field fdMaps = converter.getClass().getDeclaredField(\"toRenameNames\");\n fdMaps.setAccessible(true);\n\n Map map = (Map) fdMaps.get(converter);\n assertEquals(\"The UML2:TypedElement.type should be renamed to UML:StructuralFeature.type\",\n \"UML:StructuralFeature.type\", map.get(\"UML2:TypedElement.type\"));\n assertEquals(\"The UML:Class should be renamed to UML:Classifier\",\n \"UML:Classifier\", map.get(\"UML:Class\"));\n assertEquals(\"The UML:DateType should be renamed to UML:Class\",\n \"UML:Classifier\", map.get(\"UML:DateType\"));\n }", "public Transaction(String transactionLine){\r\n\t\t\t//String delims = \"[\\\\s+]\";\r\n\t\t\tString[] tokens = transactionLine.split(\" +\");\r\n\t\t\tif (tokens[0].equals(\"\")){\r\n\t\t\t\tid = 00;\r\n\t\t\t}else{\r\n\t\t\t\tid = Integer.parseInt(tokens[0]);\r\n\t\t\t}\r\n\t\t\tif (id == 0){\r\n\t\t\t\tdate = 0;\r\n\t\t\t\tticket = 0;\r\n\t\t\t\tname = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tdate = Integer.parseInt(tokens[2]);\r\n\t\t\t\tticket = Integer.parseInt(tokens[3]);\r\n\t\t\t\tname = tokens[1];\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t }", "protected final Object fromStringImpl(String string)\n throws TypeValueException {\n int y, m, d;\n try {\n y = Integer.parseInt(string.substring(0, 4));\n m = Integer.parseInt(string.substring(4, 6));\n d = Integer.parseInt(string.substring(6, 8));\n } catch (NumberFormatException nfe) {\n\n // Should never happen, since isValidValueImpl(String) will have been\n // called\n throw new TypeValueException(this, string);\n }\n\n // Check that the values are in the correct range\n return new Value(y, m, d);\n }", "public c(PhotoInteractorImpl photoInteractorImpl, String str) {\n super(1);\n this.a = photoInteractorImpl;\n this.b = str;\n }", "public Tag(String str) {\n\t}", "public /* synthetic */ Validation(String str, String str2, String str3, String str4, int i, j jVar) {\n this((i & 1) != 0 ? null : str, (i & 2) != 0 ? \"*\" : str2, (i & 4) != 0 ? null : str3, str4);\n }", "public Value(String s) {\n string = s;\n itemClass = String.class;\n type = DataType.STRING;\n }", "private PolyString() {\n }", "public JSONBuilder(CaseFormat sourceCaseFormat, CaseFormat targetCaseFormat) {\n\t\tthis.sourceCaseFormat = sourceCaseFormat;\n\t\tthis.targetCaseFormat = targetCaseFormat;\n\t\taddStandardTransformers();\n\t}", "protected void onConstructor(E_ReplacementStrategies strat) {\n\t\tthis.Assemblyteam = new ArrayList<>();\n\t\tthis.strat = this.chooseReplacer(strat);\n\t\tthis.gatherTeam();\n\t}", "public Position(final String str) throws NumberFormatException,\n\t\t\tPositionOutOfTheMapException {\n\t\tthis(new Integer(str.split(\".\")[0]).intValue(), new Integer(\n\t\t\t\tstr.split(\".\")[1]).intValue());\n\t}", "public StringParser() {\n this(ParserOptions.DEFAULT);\n }", "public static String stringFormat(String format, Object... objs) {\n\n String retVal = \"\";\n\n Pattern p = Pattern.compile(\"([{][^}]*[}])\");\n\n Matcher m = p.matcher(format);\n\n String individualFormat;\n int order = -1;\n int pos = -1;\n\n //loc_re.match(format);\n\n retVal = format;\n\n int loc_Conta = 0;\n\n while (m.find()) {\n\n if (m.group().length() == 0) {\n continue;\n }\n\n pos = m.group().indexOf(\":\");\n\n if (pos > 0) {\n individualFormat = m.group().substring(pos + 1, m.group().length() - pos + 1);\n\n order = Integer.parseInt(m.group().substring(1, pos));\n\n //Logger.getLogger(GeneralFunc.class).log(Level.DEBUG, \"individualFormat \" + individualFormat + \"orden: \" + order);\n\n retVal = retVal.replace(m.group(), formatObject(objs[order], individualFormat, '.'));\n } else {\n retVal = retVal.replace(m.group(), formatObject(objs[Integer.parseInt(m.group().substring(1, m.group().length() - 1))], \"\", '.'));\n }\n\n loc_Conta++;\n }\n\n\n return retVal;\n }", "public ConversionMoneda(String moneda1, String moneda2){\n this.moneda1 = moneda1;\n this.moneda2 = moneda2;\n }", "public Point(String str) {\n String[] parsed = str.substring(1,-1).split(\" \");\n setName(parsed[0]);\n setX(Integer.parseInt(parsed[1]));\n setY(Integer.parseInt(parsed[2]));\n }", "public Event (String eventline){\r\n\t\t\t//String delims = \"[ +]\";\r\n\r\n\t\t\tString[] tokens = eventline.split(\" +\");\r\n\t\t\tdate = Integer.parseInt(tokens[0]);\r\n\t\t\tticket = Integer.parseInt(tokens[1]);\r\n\t\t\tname = tokens[2];\r\n\t\t\toriginal = eventline;\r\n\t\t}", "public Object stringToObject(String s, Class c){\n Gson gson = new Gson();\n Object o = gson.fromJson(s, c);\n return o;\n }", "public MyObject(String titleFrom, String DetailFrom,String Urifrom) {\n\t\t titleFromEdittext=titleFrom;\n\t\t UriFroFramgnet=Urifrom;\n\t\t DetailFromEdittext=DetailFrom;\n\t}", "private FormattedTextEncoder() {\r\n\t\tsuper();\r\n\t}", "public MessageFormatter(Locale locale, String format) {\n\t\tif (locale == null || format == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tthis.locale = locale;\n\t\tdecimalFormatSymbols = DecimalFormatSymbols.getInstance(locale);\n\t\tthis.zero = decimalFormatSymbols.getZeroDigit();\n\t\tthis.formatFragments = parse(format);\n\t}", "private Global(String param2String, boolean param2Boolean) {\n/* 459 */ this.pattern = param2String;\n/* 460 */ this.checkComponentType = param2Boolean;\n/* */ \n/* 462 */ this.maxArrayLength = Long.MAX_VALUE;\n/* 463 */ this.maxDepth = Long.MAX_VALUE;\n/* 464 */ this.maxReferences = Long.MAX_VALUE;\n/* 465 */ this.maxStreamBytes = Long.MAX_VALUE;\n/* */ \n/* 467 */ String[] arrayOfString = param2String.split(\";\");\n/* 468 */ this.filters = new ArrayList<>(arrayOfString.length);\n/* 469 */ for (byte b = 0; b < arrayOfString.length; b++) {\n/* 470 */ String str = arrayOfString[b];\n/* 471 */ int i = str.length();\n/* 472 */ if (i != 0)\n/* */ {\n/* */ \n/* 475 */ if (!parseLimit(str)) {\n/* */ \n/* */ \n/* */ \n/* 479 */ boolean bool = (str.charAt(0) == '!') ? true : false;\n/* */ \n/* 481 */ if (str.indexOf('/') >= 0) {\n/* 482 */ throw new IllegalArgumentException(\"invalid character \\\"/\\\" in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* */ \n/* 485 */ if (str.endsWith(\"*\")) {\n/* */ \n/* 487 */ if (str.endsWith(\".*\")) {\n/* */ \n/* 489 */ String str1 = str.substring(bool ? 1 : 0, i - 1);\n/* 490 */ if (str1.length() < 2) {\n/* 491 */ throw new IllegalArgumentException(\"package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* 493 */ if (bool) {\n/* */ \n/* 495 */ this.filters.add(param2Class -> matchesPackage(param2Class, param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 498 */ this.filters.add(param2Class -> matchesPackage(param2Class, param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* 500 */ } else if (str.endsWith(\".**\")) {\n/* */ \n/* 502 */ String str1 = str.substring(bool ? 1 : 0, i - 2);\n/* 503 */ if (str1.length() < 2) {\n/* 504 */ throw new IllegalArgumentException(\"package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* 506 */ if (bool) {\n/* */ \n/* 508 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 511 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } else {\n/* */ \n/* 515 */ String str1 = str.substring(bool ? 1 : 0, i - 1);\n/* 516 */ if (bool) {\n/* */ \n/* 518 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 521 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } \n/* */ } else {\n/* 525 */ String str1 = str.substring(bool ? 1 : 0);\n/* 526 */ if (str1.isEmpty()) {\n/* 527 */ throw new IllegalArgumentException(\"class or package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* */ \n/* 530 */ if (bool) {\n/* */ \n/* 532 */ this.filters.add(param2Class -> param2Class.getName().equals(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 535 */ this.filters.add(param2Class -> param2Class.getName().equals(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ } \n/* */ }", "public e(PhotoInteractorImpl photoInteractorImpl, String str) {\n super(1);\n this.a = photoInteractorImpl;\n this.b = str;\n }", "public SentenceItem(String parse){\n\t\tString[] split = pattern.split(parse);\n\t\tthis.origWord = split[0];\n\t\tthis.word = split[1].replaceAll(\"[,.:]\", \"\");\n\t\tthis.POS = split[2];\n\t}", "private Global(String param2String, boolean param2Boolean) {\n/* 461 */ this.pattern = param2String;\n/* 462 */ this.checkComponentType = param2Boolean;\n/* */ \n/* 464 */ this.maxArrayLength = Long.MAX_VALUE;\n/* 465 */ this.maxDepth = Long.MAX_VALUE;\n/* 466 */ this.maxReferences = Long.MAX_VALUE;\n/* 467 */ this.maxStreamBytes = Long.MAX_VALUE;\n/* */ \n/* 469 */ String[] arrayOfString = param2String.split(\";\");\n/* 470 */ this.filters = new ArrayList<>(arrayOfString.length);\n/* 471 */ for (byte b = 0; b < arrayOfString.length; b++) {\n/* 472 */ String str = arrayOfString[b];\n/* 473 */ int i = str.length();\n/* 474 */ if (i != 0)\n/* */ {\n/* */ \n/* 477 */ if (!parseLimit(str)) {\n/* */ \n/* */ \n/* */ \n/* 481 */ boolean bool = (str.charAt(0) == '!') ? true : false;\n/* */ \n/* 483 */ if (str.indexOf('/') >= 0) {\n/* 484 */ throw new IllegalArgumentException(\"invalid character \\\"/\\\" in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* */ \n/* 487 */ if (str.endsWith(\"*\")) {\n/* */ \n/* 489 */ if (str.endsWith(\".*\")) {\n/* */ \n/* 491 */ String str1 = str.substring(bool ? 1 : 0, i - 1);\n/* 492 */ if (str1.length() < 2) {\n/* 493 */ throw new IllegalArgumentException(\"package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* 495 */ if (bool) {\n/* */ \n/* 497 */ this.filters.add(param2Class -> matchesPackage(param2Class, param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 500 */ this.filters.add(param2Class -> matchesPackage(param2Class, param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* 502 */ } else if (str.endsWith(\".**\")) {\n/* */ \n/* 504 */ String str1 = str.substring(bool ? 1 : 0, i - 2);\n/* 505 */ if (str1.length() < 2) {\n/* 506 */ throw new IllegalArgumentException(\"package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* 508 */ if (bool) {\n/* */ \n/* 510 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 513 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } else {\n/* */ \n/* 517 */ String str1 = str.substring(bool ? 1 : 0, i - 1);\n/* 518 */ if (bool) {\n/* */ \n/* 520 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 523 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } \n/* */ } else {\n/* 527 */ String str1 = str.substring(bool ? 1 : 0);\n/* 528 */ if (str1.isEmpty()) {\n/* 529 */ throw new IllegalArgumentException(\"class or package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* */ \n/* 532 */ if (bool) {\n/* */ \n/* 534 */ this.filters.add(param2Class -> param2Class.getName().equals(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 537 */ this.filters.add(param2Class -> param2Class.getName().equals(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ } \n/* */ }" ]
[ "0.6171454", "0.6159375", "0.58315325", "0.5830682", "0.57633525", "0.57513195", "0.5748675", "0.57463205", "0.5721905", "0.5708671", "0.5684956", "0.5680722", "0.56785387", "0.5617688", "0.5600071", "0.55945295", "0.5516166", "0.55110824", "0.547821", "0.5474212", "0.54656726", "0.54588485", "0.54526514", "0.5437581", "0.54351765", "0.54341567", "0.54327637", "0.54114276", "0.5410768", "0.5393916", "0.53848153", "0.5381731", "0.53798664", "0.5376744", "0.53677046", "0.53675795", "0.5357326", "0.53553903", "0.53473026", "0.5345535", "0.5343002", "0.53041905", "0.5283054", "0.5265468", "0.52469987", "0.52309406", "0.5217276", "0.5207329", "0.52061015", "0.51739854", "0.51739854", "0.51725346", "0.51699466", "0.5152207", "0.51474553", "0.51445794", "0.51430285", "0.5142966", "0.5141436", "0.5138102", "0.51197064", "0.5117558", "0.5115757", "0.51074463", "0.5105572", "0.5102739", "0.51015913", "0.50936073", "0.50887185", "0.5088279", "0.50824285", "0.5079835", "0.5074642", "0.50609946", "0.505947", "0.50570923", "0.50560784", "0.5052813", "0.5051818", "0.5048257", "0.5044852", "0.5042804", "0.503874", "0.50386053", "0.50385803", "0.503108", "0.5027775", "0.50273854", "0.5026169", "0.5020723", "0.50160575", "0.5015289", "0.50143147", "0.5001784", "0.4994672", "0.4992104", "0.49914747", "0.49890685", "0.4987866", "0.4985674", "0.49735364" ]
0.0
-1
This Constructor receives the modifications in String Format and will transform them into different objects.
public ModificationList(ArrayList aFModStringArrayList, ArrayList aVModStringArrayList, String aFixedModifications_ParameterSection) { generateVModVector(aVModStringArrayList); if (aFixedModifications_ParameterSection != null) { generateFModVector(aFixedModifications_ParameterSection); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void fromString(String s, String context);", "private Format()\n {\n super();\n }", "private ARXDate(final String formatString) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string = \"dd.MM.yyyy\";\r\n this.format = new SimpleDateFormat(string);\r\n this.locale = null;\r\n } else {\r\n this.format = new SimpleDateFormat(formatString);\r\n this.string = formatString;\r\n this.locale = null;\r\n }\r\n }", "private Formats() {\n }", "protected void initializeFromFormat(String p_150269_1_) {\n\t\tfinal Matcher var3 = stringVariablePattern.matcher(p_150269_1_);\n\t\tint var4 = 0;\n\t\tint var5 = 0;\n\n\t\ttry {\n\t\t\tint var7;\n\n\t\t\tfor (; var3.find(var5); var5 = var7) {\n\t\t\t\tfinal int var6 = var3.start();\n\t\t\t\tvar7 = var3.end();\n\n\t\t\t\tif (var6 > var5) {\n\t\t\t\t\tfinal ChatComponentText var8 = new ChatComponentText(\n\t\t\t\t\t\t\tString.format(p_150269_1_.substring(var5, var6),\n\t\t\t\t\t\t\t\t\tnew Object[0]));\n\t\t\t\t\tvar8.getChatStyle().setParentStyle(getChatStyle());\n\t\t\t\t\tchildren.add(var8);\n\t\t\t\t}\n\n\t\t\t\tfinal String var14 = var3.group(2);\n\t\t\t\tfinal String var9 = p_150269_1_.substring(var6, var7);\n\n\t\t\t\tif (\"%\".equals(var14) && \"%%\".equals(var9)) {\n\t\t\t\t\tfinal ChatComponentText var15 = new ChatComponentText(\"%\");\n\t\t\t\t\tvar15.getChatStyle().setParentStyle(getChatStyle());\n\t\t\t\t\tchildren.add(var15);\n\t\t\t\t} else {\n\t\t\t\t\tif (!\"s\".equals(var14))\n\t\t\t\t\t\tthrow new ChatComponentTranslationFormatException(this,\n\t\t\t\t\t\t\t\t\"Unsupported format: \\'\" + var9 + \"\\'\");\n\n\t\t\t\t\tfinal String var10 = var3.group(1);\n\t\t\t\t\tfinal int var11 = var10 != null ? Integer.parseInt(var10) - 1\n\t\t\t\t\t\t\t: var4++;\n\t\t\t\t\tchildren.add(getFormatArgumentAsComponent(var11));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (var5 < p_150269_1_.length()) {\n\t\t\t\tfinal ChatComponentText var13 = new ChatComponentText(\n\t\t\t\t\t\tString.format(p_150269_1_.substring(var5),\n\t\t\t\t\t\t\t\tnew Object[0]));\n\t\t\t\tvar13.getChatStyle().setParentStyle(getChatStyle());\n\t\t\t\tchildren.add(var13);\n\t\t\t}\n\t\t} catch (final IllegalFormatException var12) {\n\t\t\tthrow new ChatComponentTranslationFormatException(this, var12);\n\t\t}\n\t}", "public Parse(String str)\r\n {\r\n super(str);\r\n }", "@Test\n public void testConstructorTransformations() {\n\n String t1 = \"A C G T A C G T A A A A\";\n Sequence seq1 = new Sequence(\"t1\", t1, five);\n assertTrue(s1.equals(seq1.sequence()));\n\n String t2 = \"acgtacgtaaaa\";\n Sequence seq2 = new Sequence(\"t2\", t2, five);\n assertTrue(s1.equals(seq2.sequence()));\n\n }", "public Packman(String str) {\r\n\t\tString[] fields = str.split(\",\");\r\n\t\tType = fields[0].charAt(0);\r\n\t\tID = Integer.parseInt(fields[1]);\r\n\t\tLocation = new LatLonAlt(fields[2] + \",\" + fields[3] + \",\" + fields[4]);\r\n\t\tSpeed = Double.parseDouble(fields[5]);\r\n\t\tRadius = Double.parseDouble(fields[6]);\r\n\t\tInitTime = new Date().getTime();\r\n\t}", "private FormatUtilities() {}", "public Customer(String s) {\r\n\t\tString [] sr = s.split(\",\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(sr.length == 3)\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.seqNo = Integer.parseInt(sr[0].trim());\r\n\t\t\t\t\tthis.name = sr[1].trim();\r\n\t\t\t\t\tthis.parcelID = sr[2].trim();\r\n\t\t\t\t}\r\n\t\t\t\tcatch(NumberFormatException e)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Error in input file. Cannot convert to int\" + e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t\tcatch(ArrayIndexOutOfBoundsException e)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Error in input file. To few parts\" + e.getMessage());\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\tthrow new CustomerStringFormatException();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(CustomerStringFormatException cfse)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"String format error: Cannot convert string to Customer.\");\r\n\t\t}\r\n\t}", "private ARXOrderedString(){\r\n this(\"Default\");\r\n }", "protected abstract T prepareObject(String extracted);", "public DefaultFormat() {\n }", "public void parseString(String str) {\r\n\t\t\tint spaceAt = str.indexOf(' ');\r\n\r\n\t\t\tsrcService_ = str.substring(0, spaceAt);\r\n\t\t\tdestService_ = str.substring(spaceAt + 1);\r\n\t\t}", "public StringData1() {\n }", "public abstract String construct();", "public StringConverter()\n {\n \n }", "public MCAlarmInfo(String strTextInfo)\n\t{\n\t\tMCAlarmInfo srcInfo = MCAlarmInfo.StringToAlarmInfo(strTextInfo);\n\t\tcopyFrom(srcInfo);\n\t}", "private ARXOrderedString(String format){\r\n if (format==null || format.equals(\"Default\") || format.equals(\"\")) {\r\n this.order = null;\r\n } else {\r\n try {\r\n this.order = new HashMap<String, Integer>(); \r\n BufferedReader reader = new BufferedReader(new StringReader(format));\r\n int index = 0;\r\n String line = reader.readLine();\r\n while (line != null) {\r\n if (this.order.put(line, index) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+line+\"'\");\r\n }\r\n line = reader.readLine();\r\n index++;\r\n }\r\n reader.close();\r\n } catch (IOException e) {\r\n throw new IllegalArgumentException(\"Error reading input data\");\r\n }\r\n }\r\n }", "public Affettatore(String str) {\n this (str, \" \\t\\n\\r\\f\");\n }", "private ARXOrderedString(String[] format){\r\n if (format.length == 0) {\r\n this.order = null;\r\n } else {\r\n this.order = new HashMap<String, Integer>(); \r\n for (int i=0; i< format.length; i++){\r\n if (this.order.put(format[i], i) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+format[i]+\"'\");\r\n }\r\n }\r\n }\r\n }", "public DateParser(String dateAndTimeString) {\n this.dateAndTimeString = dateAndTimeString;\n }", "public ParseException() {\n super();\n specialConstructor = false;\n }", "public MyString2(String s) {\n\t\tthis.s = s;\n\t}", "private Templated parseFromFormat(String string, Text text) {\n int br = 0;\n int start = 0; // basically pattern matching but without regex cuz regex is slow\n List<String> remainingSparse = new ArrayList<>();\n List<String> orderedArgs = new ArrayList<>();\n // same args map as in classic, placeholder id -> it's args\n Map<String, PlaceholderArgs> args = new HashMap<>();\n int last = 0;\n char[] starr = string.toCharArray();\n boolean quoted = false; // pass over quotes and single quotes. '\"' ignores the \", and vice versa.\n boolean singlequoted = false;\n for (int i = 0; i < starr.length; i++) {\n char c = starr[i];\n if (c == '\\\\') {\n i++;\n continue;\n }\n if (c == '\\\"' && !singlequoted) {\n quoted = !quoted;\n continue;\n }\n if (c == '\\'' && !quoted) {\n singlequoted = !singlequoted;\n continue;\n }\n if (quoted || singlequoted) {\n continue; // quoted text ignored, this suck\n }\n // We don't parse JSON Arrays in this house -> placeholders are base json objects only.\n if (c == '{') { // starting new json bracket\n if (br == 0) {\n start = i;\n }\n br++;\n }\n if (c == '}') {\n br--;\n if (br == 0) { // ayy we found a complete placeholder json string.\n String json = string.substring(start, i + 1); // get that string\n Tuple<String, PlaceholderArgs> parsed = parseJSON(json, args); // parse that string\n if (parsed == null) { // ops failed give up\n continue;\n } // get in-between text for last placeholder and this one, don't omit anything\n remainingSparse.add(string.substring(last, start));\n last = i + 1; // shift frame of lsat\n remainingSparse.add(null); // add null to take 'slot' of placeholder, for iteration's sake.\n args.put(parsed.getFirst(), parsed.getSecond()); // put args yay\n orderedArgs.add(parsed.getFirst()); // put ordered args? i suppose this is nice\n }\n }\n }\n remainingSparse.add(string.substring(last)); // add last part of string (could be empty)\n TextTemplate t = TextTemplate.of(); // build template\n for (String s : remainingSparse) {\n if (s == null) { // if placeholder\n String arg = orderedArgs.remove(0); // remove next arg -> that's why this is nice (no hashmap)\n t = t.concat(TextTemplate.of(buildArg(arg, args.get(arg)))); // -> new arg in template\n } else {\n t = t.concat(TextTemplate.of(s)); // just string thanks :)\n }\n }\n return new Templated(t, args, text); // all done\n }", "public History(String str, String str2, String str3) {\n super(str, str2, str3, null);\n j.b(str, \"title\");\n this.title = str;\n this.subtitle = str2;\n this.referrer = str3;\n }", "public Normal(String str, String str2, String str3) {\n super(str, str2, str3, null);\n j.b(str, \"title\");\n this.title = str;\n this.subtitle = str2;\n this.referrer = str3;\n }", "public SampleData(Font newFont, Color newColor, String newString) {\n\tfont = newFont;\n\tcolor = newColor;\n\tstring = newString;\n }", "private ARXOrderedString(List<String> format){\r\n if (format.size()==0) {\r\n this.order = null;\r\n } else {\r\n this.order = new HashMap<String, Integer>(); \r\n for (int i=0; i< format.size(); i++){\r\n if (this.order.put(format.get(i), i) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+format.get(i)+\"'\");\r\n }\r\n }\r\n }\r\n }", "public Format(String s)\n {\n width = 0;\n precision = -1;\n pre = \"\";\n post = \"\";\n leading_zeroes = false;\n show_plus = false;\n alternate = false;\n show_space = false;\n left_align = false;\n fmt = ' ';\n\n int length = s.length();\n int parse_state = 0;\n\n // 0 = prefix, 1 = flags, 2 = width, 3 = precision,\n // 4 = format, 5 = end\n int i = 0;\n\n while (parse_state == 0)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (s.charAt(i) == '%')\n {\n if (i < (length - 1))\n {\n if (s.charAt(i + 1) == '%')\n {\n pre = pre + '%';\n i++;\n }\n else\n {\n parse_state = 1;\n }\n }\n else\n {\n throw new java.lang.IllegalArgumentException();\n }\n }\n else\n {\n pre = pre + s.charAt(i);\n }\n\n i++;\n }\n\n while (parse_state == 1)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (s.charAt(i) == ' ')\n {\n show_space = true;\n }\n else if (s.charAt(i) == '-')\n {\n left_align = true;\n }\n else if (s.charAt(i) == '+')\n {\n show_plus = true;\n }\n else if (s.charAt(i) == '0')\n {\n leading_zeroes = true;\n }\n else if (s.charAt(i) == '#')\n {\n alternate = true;\n }\n else\n {\n parse_state = 2;\n i--;\n }\n\n i++;\n }\n\n while (parse_state == 2)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (('0' <= s.charAt(i)) && (s.charAt(i) <= '9'))\n {\n width = ((width * 10) + s.charAt(i)) - '0';\n i++;\n }\n else if (s.charAt(i) == '.')\n {\n parse_state = 3;\n precision = 0;\n i++;\n }\n else\n {\n parse_state = 4;\n }\n }\n\n while (parse_state == 3)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (('0' <= s.charAt(i)) && (s.charAt(i) <= '9'))\n {\n precision = ((precision * 10) + s.charAt(i)) - '0';\n i++;\n }\n else\n {\n parse_state = 4;\n }\n }\n\n if (parse_state == 4)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else\n {\n fmt = s.charAt(i);\n }\n\n i++;\n }\n\n if (i < length)\n {\n post = s.substring(i, length);\n }\n }", "private void fromString(String serverInfoString) {\n\t\tif (serverInfoString != null && !serverInfoString.isEmpty()) {\n\t\t\tString[] tokens = serverInfoString.split(\" \");\n\t\t\tif (tokens.length == 3) {\n\t\t\t\tsetServerName(tokens[0]);\n\t\t\t\tsetAddress(tokens[1]);\n\t\t\t\tsetPort(Integer.parseInt(tokens[2]));\n\t\t\t} else\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"Config file is not formatted as expected. near \"\n\t\t\t\t\t\t\t\t+ serverInfoString);\n\n\t\t}\n\n\t}", "public Transformer(String input) throws Exception {\n // Remove spaces\n String inputReplaced = input.replace(\", \", \",\");\n inputReplaced = inputReplaced.replace(\" ,\", \",\");\n while (inputReplaced.length() != input.length()) {\n input = inputReplaced;\n inputReplaced = input.replace(\", \", \",\");\n inputReplaced = inputReplaced.replace(\" ,\", \",\");\n }\n input = input.replace(\":\", \",\");\n\n // Make sure the input uses the correct format\n if (!input.matches(\"^([a-z]|[A-Z]|[ ])+,.*$\"))\n throw new Exception(\"Bad formatting! Transformer \" + input + \" does not start with a valid name\");\n if (!input.matches(\"^.*,([aAdD]|([aA]utobots)|([dD]ecepticons)),.*$\"))\n throw new Exception(\"Bad formatting! Transformer \" + input + \" does not have a valid team\");\n if (!input.matches(\"^.*(,(10|[1-9])){8}$\"))\n throw new Exception(\"Bad formatting! Transformer \" + input + \" does not have valid specs\");\n\n // Build the transformer\n String[] inputArray = input.split(\",\");\n name = inputArray[NAME];\n team = inputArray[TEAM].matches(\"([aA]|[aA]utobots)\") ? \"Autobots\" : \"Decepticons\";\n\n int[] specs = new int[8];\n for (int i = 0; i < specs.length; i++)\n specs[i] = Integer.parseInt(inputArray[i + 2]);\n\n strength = specs[0];\n rank = specs[4];\n courage = specs[5];\n skill = specs[7];\n overall = specs[1] + specs[2] + specs[3] + specs[6];\n }", "public void init(String rawInfo) {\n try {\n destination = setValue(\"Destination\", rawInfo);\n vehicleNumber = Integer.parseInt(setValue(\"VehicleNo\", rawInfo));\n longitude = Double.parseDouble(setValue(\"Longitude\", rawInfo));\n latitude = Double.parseDouble(setValue(\"Latitude\", rawInfo));\n direction = setValue(\"Direction\", rawInfo);\n } catch (IllegalStateException e) {\n // This happens if the init string is in an invalid format. Set all members to their\n // default values.\n destination = \"null\";\n vehicleNumber = -1;\n longitude = 0.0;\n latitude = 0.0;\n direction = \"West\";\n }\n }", "public DateTime(String string) {\r\n\t\tSimpleDateFormat[] formats = new SimpleDateFormat[] {\r\n\t\t\t\tYYYY_MM_DD_FORMATTER, YYYY_MMT_DD_T_HH_MM_FORMATTER,\r\n\t\t\t\tYYYY_MMT_DD_T_HH_MM_SS_FORMATTER };\r\n\t\tfor (SimpleDateFormat format : formats) {\r\n\t\t\ttry {\r\n\t\t\t\tformat.parse(string);\r\n\t\t\t\tthis.timeString = string;\r\n\t\t\t\treturn;\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new IllegalArgumentException();\r\n\t}", "public Interval(@NotNull String str, @NotNull String str2, @NotNull String str3) {\n super(str3, null);\n a.Z0(str, \"from\", str2, \"to\", str3, \"title\");\n this.b = str;\n this.c = str2;\n }", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "@Test\n public void testConstructionString()\n {\n String constructed = StateUtils.construct(sensitiveString, externalContext);\n Object object = StateUtils.reconstruct(constructed, externalContext);\n Assertions.assertTrue(object instanceof String);\n String string = (String) object;\n Assertions.assertEquals(string, sensitiveString);\n }", "private Line(String inLine) {\n // Save the input line.\n this.lineText = inLine;\n // Get the number of fields in the line.\n int nFields = labels.length;\n // Normally, this will work.\n this.fields = TabbedLineReader.this.splitLine(inLine);\n // If the number of fields is wrong, we have to adjust.\n if (this.fields.length != nFields) {\n // Copy the old array and create a new one of the proper length.\n String[] buffer = this.fields;\n this.fields = new String[nFields];\n // Transfer the strings one by one, padding if necessary.\n for (int i = 0; i < nFields; i++) {\n if (i < buffer.length) {\n this.fields[i] = buffer[i];\n } else {\n this.fields[i] = \"\";\n }\n }\n }\n }", "public abstract DataType<T> newInstance(String format);", "CamembertdeNormandie(Machecoulais machecoulais, Context context, String str) {\n super(0);\n this.f16562a = machecoulais;\n this.f16563b = context;\n this.f16564c = str;\n }", "public StringObj(int d, String s) {\n\t\t\tthis.distance = d;\n\t\t\tthis.str = s;\n\t\t}", "@Override\n public Object construct(Object... args) {\n CharSequence stringData = (args.length > 0 ? ToString(realm(), args[0]) : \"\");\n ExoticString obj = new ExoticString(realm(), stringData);\n obj.setPrototype(realm().getIntrinsic(Intrinsics.StringPrototype));\n return obj;\n }", "public StringContent(String newString)\n {\n content=newString;\n }", "private VersionExpansionParser(String expansion) {\n\n this.expansionString = expansion;\n\n }", "public bwq(String paramString1, String paramString2)\r\n/* 10: */ {\r\n/* 11: 9 */ this.a = paramString1;\r\n/* 12:10 */ this.f = paramString2;\r\n/* 13: */ }", "public MultilingualString(String s, String languageCode) {\n }", "@JsonCreator\n public Filter(String filterStr) {\n Matcher matcher = FILTER_PATTERN.matcher(filterStr);\n if (matcher.find()) {\n _expression = filterStr;\n _leftOperand = getOperand(matcher.group(1));\n _operator = Operator.fromString(matcher.group(2).replaceAll(\"\\\\s+\", \"\"));\n _rightOperand = getOperand(matcher.group(4));\n } else {\n throw new IllegalArgumentException(\"Illegal filter string pattern: '\" + filterStr + \"'\");\n }\n }", "public EncodeAndDecodeStrings() {}", "public UnitP(ParseInfo parseInfo, String originalUnitString)\n {\n \tthis(parseInfo, originalUnitString, UnitSystems.None);\n }", "public InterrogationMeteoString() {\r\n\t\tthis(null, null, null, null, null);\r\n\t}", "protected void onConstructor(E_ReplacementStrategies strat) {\n\t\tthis.Assemblyteam = new ArrayList<>();\n\t\tthis.strat = this.chooseReplacer(strat);\n\t\tthis.gatherTeam();\n\t}", "public StringParser(String str) {\n this.str = str;\n currentPosition = 0;\n maxPosition = str == null ? 0 : str.length();\n }", "@Test\n\tpublic void prototype() {\n\t\tassertEquals(parseString().parse(\"abc\").toString(), \"abc\");\n\t\tassertEquals(parseString().parse(\"asDSD2_ff\").toString(), \"asDSD2_ff\");\n\n\t}", "private FileFormats(String fileFormat, TeaFileReader reader, TeaFileWriter writer, String description) {\r\n\t\tthis.fileFormat = fileFormat;\r\n\t\tthis.reader = reader;\r\n\t\tthis.writer = writer;\r\n\t\tthis.description = description;\r\n\t}", "public UnitP(UnitInfo unitInfo, UnitP unitP, String originalUnitString)\n {\n \tthis(unitInfo, unitP, originalUnitString, true); \t\n }", "private ComporMessageFormat() {\r\n }", "@Override\n\tpublic function initFromString(String s) {\n\t\treturn new Monom(s);\n\t}", "public StringInputSource(String s) {\n _index = 0;\n _input = s;\n }", "private Field(String jsonString) {\n this.jsonString = jsonString;\n }", "public State(String fromString)\n {\n// Metrics.increment(\"State count\");\n //...\n }", "public Transaction(String transactionLine){\r\n\t\t\t//String delims = \"[\\\\s+]\";\r\n\t\t\tString[] tokens = transactionLine.split(\" +\");\r\n\t\t\tif (tokens[0].equals(\"\")){\r\n\t\t\t\tid = 00;\r\n\t\t\t}else{\r\n\t\t\t\tid = Integer.parseInt(tokens[0]);\r\n\t\t\t}\r\n\t\t\tif (id == 0){\r\n\t\t\t\tdate = 0;\r\n\t\t\t\tticket = 0;\r\n\t\t\t\tname = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tdate = Integer.parseInt(tokens[2]);\r\n\t\t\t\tticket = Integer.parseInt(tokens[3]);\r\n\t\t\t\tname = tokens[1];\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t }", "@Override\n\tpublic function initFromString(String s) {\n\t\treturn null;\n\t}", "public Position(final String str) throws NumberFormatException,\n\t\t\tPositionOutOfTheMapException {\n\t\tthis(new Integer(str.split(\".\")[0]).intValue(), new Integer(\n\t\t\t\tstr.split(\".\")[1]).intValue());\n\t}", "public OperatorStringFormatException(String s) {\n\t\tsuper(s);\n\t}", "public Complex(String[] cStr){\r\n\t this(cStr[0], cStr[1]);\r\n\t}", "public SentenceItem(String parse){\n\t\tString[] split = pattern.split(parse);\n\t\tthis.origWord = split[0];\n\t\tthis.word = split[1].replaceAll(\"[,.:]\", \"\");\n\t\tthis.POS = split[2];\n\t}", "public void testCtorStr() throws Exception {\n ConfigManager.getInstance()\n .add(\"test_files\" + File.separator\n + \"RenameConverter.xml\");\n\n RenameConverter converter = new RenameConverter(DEFAULT_NAMESPACE);\n assertNotNull(\"Unable to create RenameConverter instance.\", converter);\n\n Field fdMaps = converter.getClass().getDeclaredField(\"toRenameNames\");\n fdMaps.setAccessible(true);\n\n Map map = (Map) fdMaps.get(converter);\n assertEquals(\"The UML2:TypedElement.type should be renamed to UML:StructuralFeature.type\",\n \"UML:StructuralFeature.type\", map.get(\"UML2:TypedElement.type\"));\n assertEquals(\"The UML:Class should be renamed to UML:Classifier\",\n \"UML:Classifier\", map.get(\"UML:Class\"));\n assertEquals(\"The UML:DateType should be renamed to UML:Class\",\n \"UML:Classifier\", map.get(\"UML:DateType\"));\n }", "private ARXDate(String formatString, Locale locale) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string = \"dd.MM.yyyy\";\r\n this.format = new SimpleDateFormat(string, locale);\r\n this.locale = locale;\r\n } else {\r\n this.format = new SimpleDateFormat(formatString, locale);\r\n this.string = formatString;\r\n this.locale = locale;\r\n }\r\n }", "public ConversionMoneda(String moneda1, String moneda2){\n this.moneda1 = moneda1;\n this.moneda2 = moneda2;\n }", "default T convert(final String value, final String format) {\n return convert(value);\n }", "public /* synthetic */ C0401b(String str, String str2, String str3, String str4, int i, g gVar) {\n this((i & 1) != 0 ? \"\" : str, (i & 2) != 0 ? \"\" : str2, (i & 4) != 0 ? \"\" : str3, (i & 8) != 0 ? \"\" : str4);\n }", "public BioFormatsFormat() {\n\t\tcacheReaderClasses();\n\t}", "public Date212 (String s){ //initial constructor\n full_Date = s;\n // System.out.println(full_Date + \"jdjdj\");\n if (!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\"); \n //If it is not true that the date is valid then throw a error.\n /* \n The substring methods to pull out the Year, Month, and Day.\n */\n Year = Integer.parseInt(full_Date.substring(0,3)); \n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n count++; \n addArray(this); //Calling the function \"addArray\" with 'this isntance of date212'\n // System.out.println(myDates[i]);\n\n }", "public JSONBuilder(CaseFormat sourceCaseFormat, CaseFormat targetCaseFormat) {\n\t\tthis.sourceCaseFormat = sourceCaseFormat;\n\t\tthis.targetCaseFormat = targetCaseFormat;\n\t\taddStandardTransformers();\n\t}", "public JSONString(String stringIn)\n {\n this.string = stringIn;\n }", "public DVD(){\n\n\t\t/*\n\t\t * Creates and stores multiple potential input formats\n\t\t */\n\t\tformats = new String[]{\"MM-dd-yy\",\"MM/dd/yy\",\"MM-dd-yyyy\",\n\t\t\"MM/dd/yyyy\"};\n\t}", "public /* synthetic */ Validation(String str, String str2, String str3, String str4, int i, j jVar) {\n this((i & 1) != 0 ? null : str, (i & 2) != 0 ? \"*\" : str2, (i & 4) != 0 ? null : str3, str4);\n }", "public MessageFormatter(Locale locale, String format) {\n\t\tif (locale == null || format == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tthis.locale = locale;\n\t\tdecimalFormatSymbols = DecimalFormatSymbols.getInstance(locale);\n\t\tthis.zero = decimalFormatSymbols.getZeroDigit();\n\t\tthis.formatFragments = parse(format);\n\t}", "public Incident(String str) throws MalformedIncidentException {\n\n // Null/Empty check\n if (str == null || str.length() == 0) {\n throw new MalformedIncidentException(\"The incident was \" + ((str == null) ? \"a null\" : \"an empty\") + \" string.\");\n }\n\n // Is the input the right size?\n String[] components = str.split(\",\");\n if(components.length != 17) {\n throw new MalformedIncidentException(str + \"\\n(There were not 17 CSV columns)\");\n }\n\n // Bind properties to object\n try {\n\n this.coordinates = new Coordinates(Double.parseDouble(components[15]), Double.parseDouble(components[1]));\n this.date = new DateTime(PDDConfig.getInstance().PhillyCrimeDataDateFormat.parse(components[5]));\n this.code = Integer.parseInt(components[11]);\n this.description = components[12];\n\n } catch (NumberFormatException nfe) {\n throw new MalformedIncidentException(str + \"\\n(One of the numbers/coordinates could not be parsed).\" + nfe.getLocalizedMessage());\n } catch (ParseException pe) {\n throw new MalformedIncidentException(str + \"\\n(The date was not supplied in the correct format. The date string was \" + components[5] + \".\");\n }\n }", "public Tag(String str) {\n\t}", "public Event (String eventline){\r\n\t\t\t//String delims = \"[ +]\";\r\n\r\n\t\t\tString[] tokens = eventline.split(\" +\");\r\n\t\t\tdate = Integer.parseInt(tokens[0]);\r\n\t\t\tticket = Integer.parseInt(tokens[1]);\r\n\t\t\tname = tokens[2];\r\n\t\t\toriginal = eventline;\r\n\t\t}", "public Date(String sDate) {\r\n\t\tint m, d, y;\r\n\t\tString[] chopDate = sDate.split(\"-\");\r\n\t\tm = Integer.parseInt(chopDate[ZEROI]);\r\n\t\td = Integer.parseInt(chopDate[ONEI]);\r\n\t\ty = Integer.parseInt(chopDate[TWOI]);\r\n\t\tif (!isValid(m, d, y))\r\n\t\t\tthrow new RuntimeException(\"Invalid date\");\r\n\t\tmonth = m;\r\n\t\tday = d;\r\n\t\tyear = y;\r\n\t}", "private void parse(String str) {\n if (str == null) {\n throw new IllegalArgumentException(\"Empty job execution instruction found!\");\n }\n String[] parts = str.split(\" \");\n if (parts.length == 1) {\n parseSpecial(str);\n } else if (parts.length == 5) {\n try {\n setMinutes(parseMinutes(parts[0].trim().toLowerCase()));\n setHours(parseHours(parts[1].trim().toLowerCase()));\n setDaysOfMonth(parseDaysOfMonth(parts[2].trim().toLowerCase()));\n setMonths(parseMonths(parts[3].trim().toLowerCase()));\n setDaysOfWeek(parseDaysOfWeek(parts[4].trim().toLowerCase()));\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Schedule \" + str + \" is malformed:\" + e.getMessage());\n }\n } else {\n throw new IllegalArgumentException(\"Schedule \" + str + \" is malformed!\");\n }\n }", "public UnitP\n (\n ParseInfo parseInfo, String originalUnitString, UnitSystems system, ExceptionHandlingTypes exceptionHandling\n )\n {\n \tthis(parseInfo, originalUnitString, system, exceptionHandling, PrefixUsageTypes.DefaultUsage);\n }", "public Point(String str) {\n String[] parsed = str.substring(1,-1).split(\" \");\n setName(parsed[0]);\n setX(Integer.parseInt(parsed[1]));\n setY(Integer.parseInt(parsed[2]));\n }", "public static String stringFormat(String format, Object... objs) {\n\n String retVal = \"\";\n\n Pattern p = Pattern.compile(\"([{][^}]*[}])\");\n\n Matcher m = p.matcher(format);\n\n String individualFormat;\n int order = -1;\n int pos = -1;\n\n //loc_re.match(format);\n\n retVal = format;\n\n int loc_Conta = 0;\n\n while (m.find()) {\n\n if (m.group().length() == 0) {\n continue;\n }\n\n pos = m.group().indexOf(\":\");\n\n if (pos > 0) {\n individualFormat = m.group().substring(pos + 1, m.group().length() - pos + 1);\n\n order = Integer.parseInt(m.group().substring(1, pos));\n\n //Logger.getLogger(GeneralFunc.class).log(Level.DEBUG, \"individualFormat \" + individualFormat + \"orden: \" + order);\n\n retVal = retVal.replace(m.group(), formatObject(objs[order], individualFormat, '.'));\n } else {\n retVal = retVal.replace(m.group(), formatObject(objs[Integer.parseInt(m.group().substring(1, m.group().length() - 1))], \"\", '.'));\n }\n\n loc_Conta++;\n }\n\n\n return retVal;\n }", "protected StringTranslator() {\n\n String from = \"-_\";\n String to = \"%/\";\n translationMap = new HashMap<Character, Character>();\n\n if (from.length() != to.length())\n throw new IllegalArgumentException(\"The from and to strings must be of the same length\");\n\n for (int i = 0; i < from.length(); i++)\n translationMap.put(from.charAt(i), to.charAt(i));\n }", "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}", "public c(PhotoInteractorImpl photoInteractorImpl, String str) {\n super(1);\n this.a = photoInteractorImpl;\n this.b = str;\n }", "public void fromTransformations(Transformations transformations);", "protected Compressor(int blockSize, int superblockSize, String formatString) throws IllegalArgumentException {\n\t\tif (blockSize < 1 || blockSize >= superblockSize) {\n\t\t\tthrow new IllegalArgumentException(String.format(\n\t\t\t\t\t\"Block size (%d) must be a positive integer.\", blockSize));\n\t\t}\n\t\tthis.blockSize = blockSize;\n\t\tif (superblockSize < 1 || superblockSize % blockSize != 0) {\n\t\t\tthrow new IllegalArgumentException(String.format(\n\t\t\t\t\t\"Superblock size (%d) must be a positive integer multiple of block size (%d).\",\n\t\t\t\t\tsuperblockSize, blockSize));\n\t\t}\n\t\tthis.superblockSize = superblockSize;\n\t\tif (formatString == null || formatString.length() == 0) {\n\t\t\tthrow new IllegalArgumentException(\"Format string cannot be null or empty string.\");\n\t\t}\n\t\tthis.formatString = formatString;\n\t\ttry {\n\t\t\tcompressionInterface = getCompressionInterface(formatString);\n\t\t\tSystem.out.println(String.format(\"Using compression interface \\\"%s\\\".%n\", formatString));\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\tString.format(\n\t\t\t\t\t\t\t\"Unable to locate Compressor for compression format \\\"%s\\\".\", formatString));\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(e.getMessage());\n\t\t}\n\t\tbytesRead = 0L;\n\t\tblocksRead = 0L;\n\t\tsuperblocksRead = 0L;\n\t\tcompressedBytes = 0L;\n\t\tcompressedBlocks = 0L;\n\t\tactualBytes = 0L;\n\t\tbuffer = new byte[superblockSize];\n\t\tclearBuffer();\n\t}", "private Global(String param2String, boolean param2Boolean) {\n/* 459 */ this.pattern = param2String;\n/* 460 */ this.checkComponentType = param2Boolean;\n/* */ \n/* 462 */ this.maxArrayLength = Long.MAX_VALUE;\n/* 463 */ this.maxDepth = Long.MAX_VALUE;\n/* 464 */ this.maxReferences = Long.MAX_VALUE;\n/* 465 */ this.maxStreamBytes = Long.MAX_VALUE;\n/* */ \n/* 467 */ String[] arrayOfString = param2String.split(\";\");\n/* 468 */ this.filters = new ArrayList<>(arrayOfString.length);\n/* 469 */ for (byte b = 0; b < arrayOfString.length; b++) {\n/* 470 */ String str = arrayOfString[b];\n/* 471 */ int i = str.length();\n/* 472 */ if (i != 0)\n/* */ {\n/* */ \n/* 475 */ if (!parseLimit(str)) {\n/* */ \n/* */ \n/* */ \n/* 479 */ boolean bool = (str.charAt(0) == '!') ? true : false;\n/* */ \n/* 481 */ if (str.indexOf('/') >= 0) {\n/* 482 */ throw new IllegalArgumentException(\"invalid character \\\"/\\\" in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* */ \n/* 485 */ if (str.endsWith(\"*\")) {\n/* */ \n/* 487 */ if (str.endsWith(\".*\")) {\n/* */ \n/* 489 */ String str1 = str.substring(bool ? 1 : 0, i - 1);\n/* 490 */ if (str1.length() < 2) {\n/* 491 */ throw new IllegalArgumentException(\"package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* 493 */ if (bool) {\n/* */ \n/* 495 */ this.filters.add(param2Class -> matchesPackage(param2Class, param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 498 */ this.filters.add(param2Class -> matchesPackage(param2Class, param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* 500 */ } else if (str.endsWith(\".**\")) {\n/* */ \n/* 502 */ String str1 = str.substring(bool ? 1 : 0, i - 2);\n/* 503 */ if (str1.length() < 2) {\n/* 504 */ throw new IllegalArgumentException(\"package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* 506 */ if (bool) {\n/* */ \n/* 508 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 511 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } else {\n/* */ \n/* 515 */ String str1 = str.substring(bool ? 1 : 0, i - 1);\n/* 516 */ if (bool) {\n/* */ \n/* 518 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 521 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } \n/* */ } else {\n/* 525 */ String str1 = str.substring(bool ? 1 : 0);\n/* 526 */ if (str1.isEmpty()) {\n/* 527 */ throw new IllegalArgumentException(\"class or package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* */ \n/* 530 */ if (bool) {\n/* */ \n/* 532 */ this.filters.add(param2Class -> param2Class.getName().equals(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 535 */ this.filters.add(param2Class -> param2Class.getName().equals(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ } \n/* */ }", "public Message(String unparsedData){\n\t\theaderLines = new ArrayList<ArrayList<String>>();\n\t\tString[] headFromEntity = unparsedData.split(\"\\n\\n\", 2);\n\t\tString[] msgInfo = headFromEntity[0].split(\"\\n\");\n\t\tString[] status = msgInfo[0].split(\" \");\n\t\t\n\t\tthis.messageInfo[0]= status[0];\t\t\t\t\t// Version\n\t\tthis.messageInfo[1] = status[1];\t\t\t\t// status code\n\t\tthis.messageInfo[2] = msgInfo[0].substring(2);\t// phrase\n\t\t\n\t\tfor (int i = 1; i < msgInfo.length; i++){\n\t\t\tstatus = msgInfo[i].split(\" \");\n\t\t\theaderLines.add(new ArrayList<String>());\n\t\t\theaderLines.get(headerLines.size()-1).add(status[0]);\n\t\t\theaderLines.get(headerLines.size()-1).add(msgInfo[i].substring(status[0].length()));\n\t\t}\n\t\t\n\t\tentity = headFromEntity[1].getBytes();\n\t}", "@Override\n\tprotected IPAddressStringParameters createFromStringParams() {\n\t\treturn new IPAddressStringParameters.Builder().\n\t\t\t\tgetIPv4AddressParametersBuilder().setNetwork(getNetwork()).getParentBuilder().\n\t\t\t\tgetIPv6AddressParametersBuilder().setNetwork(getIPv6Network()).getParentBuilder().toParams();\n\t}", "private Global(String param2String, boolean param2Boolean) {\n/* 461 */ this.pattern = param2String;\n/* 462 */ this.checkComponentType = param2Boolean;\n/* */ \n/* 464 */ this.maxArrayLength = Long.MAX_VALUE;\n/* 465 */ this.maxDepth = Long.MAX_VALUE;\n/* 466 */ this.maxReferences = Long.MAX_VALUE;\n/* 467 */ this.maxStreamBytes = Long.MAX_VALUE;\n/* */ \n/* 469 */ String[] arrayOfString = param2String.split(\";\");\n/* 470 */ this.filters = new ArrayList<>(arrayOfString.length);\n/* 471 */ for (byte b = 0; b < arrayOfString.length; b++) {\n/* 472 */ String str = arrayOfString[b];\n/* 473 */ int i = str.length();\n/* 474 */ if (i != 0)\n/* */ {\n/* */ \n/* 477 */ if (!parseLimit(str)) {\n/* */ \n/* */ \n/* */ \n/* 481 */ boolean bool = (str.charAt(0) == '!') ? true : false;\n/* */ \n/* 483 */ if (str.indexOf('/') >= 0) {\n/* 484 */ throw new IllegalArgumentException(\"invalid character \\\"/\\\" in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* */ \n/* 487 */ if (str.endsWith(\"*\")) {\n/* */ \n/* 489 */ if (str.endsWith(\".*\")) {\n/* */ \n/* 491 */ String str1 = str.substring(bool ? 1 : 0, i - 1);\n/* 492 */ if (str1.length() < 2) {\n/* 493 */ throw new IllegalArgumentException(\"package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* 495 */ if (bool) {\n/* */ \n/* 497 */ this.filters.add(param2Class -> matchesPackage(param2Class, param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 500 */ this.filters.add(param2Class -> matchesPackage(param2Class, param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* 502 */ } else if (str.endsWith(\".**\")) {\n/* */ \n/* 504 */ String str1 = str.substring(bool ? 1 : 0, i - 2);\n/* 505 */ if (str1.length() < 2) {\n/* 506 */ throw new IllegalArgumentException(\"package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* 508 */ if (bool) {\n/* */ \n/* 510 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 513 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } else {\n/* */ \n/* 517 */ String str1 = str.substring(bool ? 1 : 0, i - 1);\n/* 518 */ if (bool) {\n/* */ \n/* 520 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 523 */ this.filters.add(param2Class -> param2Class.getName().startsWith(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } \n/* */ } else {\n/* 527 */ String str1 = str.substring(bool ? 1 : 0);\n/* 528 */ if (str1.isEmpty()) {\n/* 529 */ throw new IllegalArgumentException(\"class or package missing in: \\\"\" + param2String + \"\\\"\");\n/* */ }\n/* */ \n/* 532 */ if (bool) {\n/* */ \n/* 534 */ this.filters.add(param2Class -> param2Class.getName().equals(param2String) ? ObjectInputFilter.Status.REJECTED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } else {\n/* */ \n/* 537 */ this.filters.add(param2Class -> param2Class.getName().equals(param2String) ? ObjectInputFilter.Status.ALLOWED : ObjectInputFilter.Status.UNDECIDED);\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ } \n/* */ }", "public Object stringToObject(String s, Class c){\n Gson gson = new Gson();\n Object o = gson.fromJson(s, c);\n return o;\n }", "private ARXInteger(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null; \r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n this.string = format;\r\n this.locale = null;\r\n }\r\n }", "protected final Object fromStringImpl(String string)\n throws TypeValueException {\n int y, m, d;\n try {\n y = Integer.parseInt(string.substring(0, 4));\n m = Integer.parseInt(string.substring(4, 6));\n d = Integer.parseInt(string.substring(6, 8));\n } catch (NumberFormatException nfe) {\n\n // Should never happen, since isValidValueImpl(String) will have been\n // called\n throw new TypeValueException(this, string);\n }\n\n // Check that the values are in the correct range\n return new Value(y, m, d);\n }", "public CommandParser(){\n setLanguage(\"ENGLISH\");\n commandTranslations = getPatterns(new String[] {TRANSLATION});\n commands = new ArrayList<>();\n addErrors();\n }", "public UnitP\n (\n ParseInfo parseInfo, String originalUnitString, UnitSystems system,\n ExceptionHandlingTypes exceptionHandling, PrefixUsageTypes prefixUsage\n )\n {\n \tthis\n \t(\n \t\tparseInfo, originalUnitString, system, exceptionHandling, prefixUsage, false\n \t);\n }" ]
[ "0.6100933", "0.6063526", "0.5779326", "0.5772099", "0.57404065", "0.5727314", "0.56851804", "0.5665566", "0.5608826", "0.5558007", "0.55440176", "0.5536855", "0.5520557", "0.5520522", "0.5469254", "0.5462495", "0.54539144", "0.54425716", "0.54422545", "0.5432972", "0.5418732", "0.5404732", "0.5400394", "0.5373426", "0.5349212", "0.5346789", "0.53393525", "0.5323158", "0.531375", "0.53068054", "0.52990186", "0.5295016", "0.52860826", "0.52767915", "0.526837", "0.5266757", "0.52496004", "0.524343", "0.52434117", "0.5240355", "0.5238129", "0.5221014", "0.5217453", "0.5216222", "0.5206383", "0.52026874", "0.5174714", "0.51727784", "0.51601195", "0.5158911", "0.5151131", "0.5139622", "0.51365346", "0.51354533", "0.5100255", "0.5099471", "0.50881934", "0.508322", "0.5080169", "0.5071246", "0.5066634", "0.5065806", "0.50596106", "0.5052219", "0.505114", "0.5043819", "0.50411046", "0.50348383", "0.50312054", "0.5030754", "0.5029699", "0.50277627", "0.50197464", "0.50170815", "0.501696", "0.50149", "0.5013639", "0.50118643", "0.5006532", "0.49959144", "0.49808818", "0.4976827", "0.49726486", "0.49655786", "0.4964805", "0.49635693", "0.4956904", "0.4954761", "0.4954761", "0.495437", "0.4951516", "0.49497578", "0.4942129", "0.4935869", "0.49309176", "0.4926551", "0.49200535", "0.49189708", "0.49175766", "0.491398", "0.49078107" ]
0.0
-1
Create a Vector containing all the variable modification instances.
private void generateVModVector(ArrayList aVModStringArrayList) { StringTokenizer st = null; String lStringV = null; // Run every element in the aVModStringArrayList trough a for loop. // Create a VariableModification instance at the end of each loop. // Put the instance into the vector. for (int i = 0; i < aVModStringArrayList.size(); i++) { // Save the value of the StringArrayList in this variable and refresh each time it gets trough the loop. lStringV = (String) aVModStringArrayList.get(i); st = new StringTokenizer(lStringV, ","); VariableModification lV = null; // 1. First element in the String is the mass. double lMass = Double.parseDouble(st.nextToken()); // 2. Second element in the String is the type AND location. String lTypeAndLocation = st.nextToken().trim(); // 2.a) // Use this token as the key to get the shortend notation of the modification. String lShortType = getShortType(lTypeAndLocation); // 2.b) // throw lTypeAndLocation to parseVariableModName method and // get a String[] in return containing the type @[0] and the location @[1] String[] lNameArray = parseVariableModName(lTypeAndLocation); String lType = lNameArray[0].trim(); String lLocation = lNameArray[1]; if (lLocation != null) { lLocation = lLocation.trim(); } // 3. Third element in the StringTokenizer is the (possible) Neutralloss. double lNeutralLoss = Double.parseDouble(st.nextToken()); // 4. The ModificationID runs parrallel with the for-loop. int lModificationID = i + 1; // 5. Finally create a new Variable modification instance. lV = new VariableModification(lType, lShortType, lMass, lNeutralLoss, lLocation, lModificationID); // 6. add the instance to this this class its VariableModification Vector. iVariableModifications.add(lV); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector getVariableModifications() {\n return iVariableModifications;\n }", "public ImmutableList<Variable> getVariables() {\n return ImmutableList.copyOf(members);\n }", "public Vector freeVars() {\r\n\t\tVector v = new Vector(2, 2);\r\n\t\tVector temp = ((SimpleNode) jjtGetChild(0)).freeVars();\r\n\t\ttemp.remove(\"\");\r\n\t\tVector temp2 = ((SimpleNode) jjtGetChild(1)).freeVars();\r\n\t\ttemp2.remove(\"\");\r\n\t\tfor (Object obj : temp2) {\r\n\t\t\tif (!temp.contains(obj)) {\r\n\t\t\t\tv.add(obj);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn v;\r\n\t}", "private void generateFModVector(ArrayList aFModStringArrayList) {\n StringTokenizer st = null;\n String lStringF = null;\n // Run every element in the aFModStringArrayList trough a for loop.\n // Create a FixedModification instance at the end of each loop.\n // Put the instance into the vector.\n for (int i = 0; i < aFModStringArrayList.size(); i++) {\n // Save the value of the StringArrayList in this variable and refresh each time it gets trough the loop.\n lStringF = (String) aFModStringArrayList.get(i);\n st = new StringTokenizer(lStringF, \",\");\n FixedModification lF = null;\n\n // 1. First element in the StringTokenizer is the mass.\n double lMass = Double.parseDouble(st.nextToken());\n\n // 2. Second element in the StringTokenizer is the type and location.\n String lTypeAndLocation = st.nextToken().trim();\n // We only need the type because the location is allready in the next token.\n String lType = parseFixedModName(lTypeAndLocation);\n // The type is also used to get the ShortType notation.\n String lShortType = getShortType(lTypeAndLocation);\n\n // 3. Third element in the StringTokenizer is the location.\n String lLocation = st.nextToken();\n\n // 4. The ModificationID runs parrallel with the for-loop.\n int lModificationID = i + 1;\n\n // 5. Finally create a new Fixed modification instance.\n lF = new FixedModification(lType, lShortType, lMass, lLocation, lModificationID);\n\n // 6. add the instance to this this class its VariableModification Vector.\n iFixedModifications.add(lF);\n }\n }", "public Vector toVector()\n\t{\n\t\tVector listeners = new Vector();\n\t\tlisteners.addElement(this);\n\n\t\treturn listeners;\n\t}", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "List<IVariableDef> getVariables();", "public ArrayList<Variable> getVariables() {\r\n\t\treturn variables;\r\n\t}", "Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }", "public abstract ImmutableVector getImmutableVector();", "protected java.util.Vector getFieldVector() throws Exception {\n java.util.Vector fieldVector = new java.util.Vector();\n Class c = getClass();\n while (c != Class.forName(\"java.lang.Object\")) {\n Field[] fields = c.getDeclaredFields();\n for (int i = fields.length - 1; i >= 0; i--) {\n fieldVector.add(0, fields[i]);\n }\n c = c.getSuperclass();\n }\n return fieldVector;\n }", "VariableExp createVariableExp();", "public List<Variable> getVariables() {\r\n\t\treturn variables;\r\n\t}", "void doVector() {\n Vector<String> v = new Vector<>();//creating vector\n v.add( \"umesh\" );//method of Collection\n v.addElement( \"irfan\" );//method of Vector\n v.addElement( \"kumar\" );\n //traversing elements using Enumeration\n Enumeration e = v.elements(); // creates enumeration objects\n while (e.hasMoreElements()) { //\n System.out.println( e.nextElement() );\n }\n }", "public java.util.List<Object> generateControlVars();", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tPilaVector p = new PilaVector();\n\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\tp.vector.add(this.vector.get(i));\n\t\t}\n\t\treturn p;\n\t}", "public List<VariableID<?>> getVariables()\n\t{\n\t\tList<VariableID<?>> vars = get(VARIABLES);\n\t\tif (vars == null)\n\t\t{\n\t\t\tvars = Collections.emptyList();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tvars = new ArrayList<>(vars);\n\t\t}\n\t\treturn vars;\n\t}", "Variables createVariables();", "public Vector()\r\n {\r\n // initialise instance variables\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "public List<String> getVariables() {\r\n List<String> newList = new ArrayList<String>();\r\n newList.addAll(e1.getVariables());\r\n return newList;\r\n }", "public MyVector() {\n\t\tarr = new int[10];\n\t\tend = 0;\n\t}", "private void addInstanceVariables(ClassWriterTracker ct) {\n // variable #1, the state manager\n ct.getCw().visitField(Opcodes.ACC_PRIVATE | Opcodes.ACC_TRANSIENT,\n \"sm\", Type.getDescriptor(OpenJPAStateManager.class), null, null).visitEnd();\n\n // variable #2, the state manager\n ct.getCw().visitField(Opcodes.ACC_PRIVATE | Opcodes.ACC_TRANSIENT,\n \"field\", Type.getDescriptor(int.class), null, null).visitEnd();\n }", "static Pool newVariablePool() {\n return new VariablePool();\n }", "public VOIVector() {\r\n super();\r\n }", "public List allVariables() {\r\n\t\tArrayList vars = new ArrayList();\r\n\t\tfor (int i = 0; i < elements.size(); ++i) {\r\n\t\t\tObject ob = elements.get(i);\r\n\t\t\tif (ob instanceof Variable) {\r\n\t\t\t\tvars.add(ob);\r\n\t\t\t} else if (ob instanceof FunctionDef) {\r\n\t\t\t\tExpression[] params = ((FunctionDef) ob).getParameters();\r\n\t\t\t\tfor (int n = 0; n < params.length; ++n) {\r\n\t\t\t\t\tvars.addAll(params[n].allVariables());\r\n\t\t\t\t}\r\n\t\t\t} else if (ob instanceof TObject) {\r\n\t\t\t\tTObject tob = (TObject) ob;\r\n\t\t\t\tif (tob.getTType() instanceof TArrayType) {\r\n\t\t\t\t\tExpression[] exp_list = (Expression[]) tob.getObject();\r\n\t\t\t\t\tfor (int n = 0; n < exp_list.length; ++n) {\r\n\t\t\t\t\t\tvars.addAll(exp_list[n].allVariables());\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 vars;\r\n\t}", "public Vector toVector(){\r\n\t\tVector v = new Vector();\r\n\r\n\t\t// ATTENTION l'ordre est très important !!\r\n\t\t// l'ordre doit être :\r\n\t\t// id, id localisation, adresse, code postal, ville, telephone\r\n\r\n\t\tv.add(id);\r\n\t\tv.add(localisation.getId());\r\n\t\tv.add(localisation.getAdresse());\r\n\t\tv.add(localisation.getCodePostal());\r\n\t\tv.add(localisation.getVille());\r\n\t\tv.add(telephone);\r\n\r\n\t\treturn v;\r\n\t}", "public java.util.Collection<VariableInfo> getLocalVariables(){\n\t\tjava.util.Collection<VariableInfo> variables = new java.util.ArrayList<VariableInfo>();\n\n\t\treturn variables;\n\t}", "public Iterable<Map.Entry<String,Double>> getVariables() {\r\n return Collections.unmodifiableMap(variables).entrySet();\r\n }", "private void generateFModVector(String aFixedModifications_ParameterSection) {\n //Acetyl (K),Carbamidomethyl (C)\n FixedModification lF;\n ArrayList lFixedMods = new ArrayList();\n StringTokenizer st = new StringTokenizer(aFixedModifications_ParameterSection, \",\");\n while (st.hasMoreTokens()) {\n lFixedMods.add(st.nextToken());\n }\n for (int i = 0; i < lFixedMods.size(); i++) {\n String lStringF = (String) lFixedMods.get(i);\n String lType = lStringF.substring(0, lStringF.indexOf(' '));\n String lLocation = lStringF.substring(lStringF.indexOf('(') + 1, lStringF.indexOf(')'));\n String lShortType = getShortType(lStringF);\n int lModificationID = i + 1;\n\n lF = new FixedModification(lType, lShortType, lLocation, lModificationID);\n iFixedModifications.add(lF);\n }\n }", "public List<String> getVariables() {\r\n List<String> list = new ArrayList<String>();\r\n list.add(this.variable);\r\n return list;\r\n }", "public HashSet<VarNode> getVariables(){\n\t\tif(this.Variables == null){\n\t\t\tthis.Variables = new HashSet<VarNode>();\n\t\t\tthis.ExprNode.addVariables(Variables);\n\t\t}\n\t\t\n\t\treturn Variables;\n\t}", "private final int[] initializeInstanceVariable() {\n\t\tint n = 10;\n\t\tint[] temp = new int[n];\n\t\tfor (int i = 0; i < n; i++) {temp[i] = i;}\n\t\treturn temp;\n\t}", "public Vector() {\n construct();\n }", "public static void updateVars() {\n IntVar tempo;\n for (Vars vars: getArrayutcc() ){\n tempo = (IntVar) Store.getModelStore().findVariable(vars.varname);\n vars.vinf = tempo.value();\n }\n\n }", "public Set<Variable> create(WF_Context myContext) {\n\n\t\tfinal WF_Static_List l = myContext.getList(target);\n\t\to = GlobalState.getInstance().getLogger();\n\t\tif (l==null) {\n\t\t\to.addRow(\"\");\n\t\t\to.addRedText(\"Couldn't find list with ID \"+target+\" in AddVariableToEveryListEntryBlock\");\n\t\t} else {\n\t\t\tLog.d(\"nils\",\"Calling AddVariableToEveryListEntry for \"+variableSuffix);\n\t\t\tl.addVariableToEveryListEntry(variableSuffix, displayOut,format,isVisible,showHistorical,initialValue);\t\t\n\t\t}\n\t\treturn null;\n\t}", "public Definition() {\n\tproductions = new Vector<Vector<String>>();\n }", "public Vec clone();", "public ArrayList<Integer> getVector() {\n\t\tif (vector != null) {\n\t\t\treturn vector;\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Error accessing vector in Sentence class for rawSen= '\"\n\t\t\t\t\t\t\t+ rawSen + \"'\\n\");\n\t\t\treturn null;\n\t\t}\n\t}", "VarAssignment createVarAssignment();", "public ArrayList<ASTNode> getVariables(ASTNode exp) {\n HashSet<ASTNode> tmp=new HashSet<ASTNode>();\n getVariablesInner(exp, tmp);\n return new ArrayList<ASTNode>(tmp);\n }", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "VectorType11 getVector();", "public Vector clone()\r\n {\r\n Vector<O> v = new Vector<O>();\r\n \r\n VectorItem<O> vi = first;\r\n while (vi != null)\r\n {\r\n v.pushBack (vi.getObject());\r\n vi = vi.getNext();\r\n }\r\n \r\n return v;\r\n }", "protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }", "public Vector3 clone(){\r\n\t\tVector3 vec = new Vector3();\r\n\t\tvec.set(this.x, this.y, this.z);\r\n\t\treturn vec;\r\n\t}", "@Deprecated\n public Variable addMemberVariable(Variable v) {\n if (isImmutable())\n throw new IllegalStateException(\"Cant modify\");\n members.add(v);\n memberHash.put(v.getShortName(), v);\n v.setParentStructure(this);\n return v;\n }", "public static void main(String[] args) {\n packages.package1.Vector v = new packages.package1.Vector();\n //List l = new List();\n }", "public Variable(String name) {\r\n\t\tName = name;\r\n\t\tValues = new ArrayList<>();\r\n\t\tParents = new ArrayList<>();\r\n\t\tCPT = new TreeMap<>();\r\n\t}", "public final FileMincVarElem[] getVarArray() {\r\n return varArray;\r\n }", "public void vector(List<Student> list)\r\n\t{\r\n\t\tlist.add(s1);\r\n\t\tlist.add(s2);\r\n\t\tlist.add(s3);\r\n\t\tlist.add(s4);\r\n\t\tlist.add(s5);\r\n\t\tlist.add(s6);\r\n\t\tSystem.out.println(\"Objects of Vector\");\r\n\t\tEnumeration<Student> enumeration = Collections.enumeration(list);\r\n\t\twhile (enumeration.hasMoreElements()) \r\n\t\t\tSystem.out.println(enumeration.nextElement()); \r\n\t}", "public ModificationList(ArrayList aFModStringArrayList, ArrayList aVModStringArrayList) {\n generateVModVector(aVModStringArrayList);\n generateFModVector(aFModStringArrayList);\n }", "protected Double[] allocateVariables() {\n\t\tDouble[] _variables = new Double[size];\n\t\treturn _variables;\n\t}", "private void genLoadVectorCode(String name, String classSimpleName, boolean primitive, int dimensions, String cppType) {\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n String prevVVarName = \"\";\n char prevLoopVarName = ' ';\n\n for (int i = 1; i <= dimensions; i++) {\n int level = dimensions + 1 - i;\n String vVarName = \"v\" + i + \"_\" + name;\n String vectorType = vectorCppTypeName(level, cppType);\n String lenVarName = vVarName + \"_length\";\n char loopVarName = (char) ('i' + (i - 1));\n\n if (i == 1) {\n load.println(\"\\t// \" + vectorType + \" this->\" + name);\n genDebug(load, \"\\tstd::cout << \\\"load \" + vectorType + \" \" + name + \"\\\" << std::endl;\");\n }\n\n load.println(tabs + \"int \" + lenVarName + \";\");\n\n load.println();\n load.println(tabs + INSTREAM_VAR_NAME + \".readInt( \" + lenVarName + \" );\");\n\n genDebugDumpValue(load, lenVarName, tabs);\n\n if (i > 1) {\n // inside a for loop, inner vector variable initialized by\n // dereferencing iterator\n load.println(tabs + vectorType + \"& \" + vVarName + \" = \" + prevVVarName + \".at( \" + prevLoopVarName + \" );\");\n } else {\n // outside for loop, inner vector variable initialized to member\n // variable\n load.println(tabs + vectorType + \"& \" + vVarName + \" = this->\" + name + \";\");\n }\n\n if (i <= dimensions - 1) {\n // initialize & pre-allocate the vector at this level\n load.println(tabs + vVarName + \" = \" + vectorType + \"( \" + lenVarName + \" );\");\n } else {\n // initialize & pre-allocate the vector at this level\n load.println(tabs + vVarName + \".reserve( \" + lenVarName + \" );\");\n }\n\n load.println();\n load.println(tabs + \"for( int \" + loopVarName + \" = 0; \" + loopVarName + \" < \" + lenVarName + \"; \" + loopVarName\n + \"++ ){\");\n\n tabLevel++;\n tabs = tabs(tabLevel);\n\n if (i == dimensions) {\n if (primitive || classSimpleName.equals(\"String\")) {\n load.println(tabs + cppType + \" v\" + i + \";\");\n load.println(tabs + genReadCode(\"v\" + i, cppType(classSimpleName)));\n load.println(tabs + vVarName + \".push_back( v\" + i + \" );\");\n } else {\n load.println(tabs + cppType + \" v\" + i + \";\");\n load.println(tabs + \"v\" + i + \".load( \" + INSTREAM_VAR_NAME + \" );\");\n load.println(tabs + vVarName + \".push_back( v\" + i + \" );\");\n }\n }\n prevVVarName = vVarName;\n prevLoopVarName = loopVarName;\n }\n for (int i = 0; i < dimensions; i++) {\n tabLevel--;\n tabs = tabs(tabLevel);\n load.println(tabs + \"}\");\n }\n }", "public FunctionVariable (Object names[])\n {\n super(names);\n }", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "private synchronized void updateVariables() throws DebugException {\n\t\tif (lastUpdated == target.getSuspendCount()\n\t\t\t\t|| (variables != null && oldLineNumber == lineNumber))\n\t\t\treturn;\n\t\t\n\t\tSynchronizer frontend = target.getFrontend();\n\t\tif (frontend != null) {\n\t\t\t// get local variables\n\t\t\tString localsSausage = frontend.GetLocals(thread.getID(),frameNumber);\n\t\t\tString[] locals;\n\t\t\tif (localsSausage == null || localsSausage.equals(\"--\")\n\t\t\t\t\t|| localsSausage.equals(\"\"))\n\t\t\t\tlocals = new String[0];\n\t\t\telse\n\t\t\t\tlocals = localsSausage.split(\" \");\n\t\t\t// get parameters\n\t\t\tString paramsSausage = frontend.GetParameters(thread.getID(),frameNumber);\n\t\t\tString[] params;\n\t\t\tif (paramsSausage == null || paramsSausage.equals(\"--\")\n\t\t\t\t\t|| paramsSausage.equals(\"\"))\n\t\t\t\tparams = new String[0];\n\t\t\telse\n\t\t\t\tparams = paramsSausage.split(\" \");\n\t\t\t// get static fields of the current class\n\t\t\tString className;\n\t\t\ttry {\n\t\t\t\tclassName = methodName.substring(0, methodName.lastIndexOf('.'));\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\t\t\t\tclassName = \"\";\n\t\t\t}\n\t\t\tString staticsSausage = frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\n\t\t\t\t\tclassName,true);\n\t\t\tString[] statics;\n\t\t\tif (staticsSausage == null || staticsSausage.equals(\"--\")\n\t\t\t\t\t|| staticsSausage.equals(\"\"))\n\t\t\t\tstatics = new String[0];\n\t\t\telse\n\t\t\t\tstatics = staticsSausage.split(\" \");\n\t\t\t// determine if \"this\" is valid\n\t\t\tboolean _this = true;\n\t\t\tif (frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\"this\",false).equals(\"--\"))\n\t\t\t\t_this = false;\n\t\t\t\n\t\t\t// create variable objects\n\t\t\tIVariable[] tempVariables = new EmonicVariable[locals.length + params.length\n\t\t\t + statics.length + (_this ? 1 : 0)];\n\n\t\t\tif (variables == null || variables.length != tempVariables.length) {\n\t\t\t\t// something changed\n\t\t\t\tint index = 0;\n\t\t\t\tif (_this) {\n\t\t\t\t\ttempVariables[0] = new EmonicVariable(this,\"this\",null);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tArrays.sort(locals);\n\t\t\t\tfor (int i=0; i<locals.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,locals[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=locals.length;\n\t\t\t\tArrays.sort(params);\n\t\t\t\tfor (int i=0; i<params.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,params[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=params.length;\n\t\t\t\tArrays.sort(statics);\n\t\t\t\tfor (int i=0; i<statics.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,statics[i],null);\n\t\t\t\t}\n\t\t\t\tvariables = tempVariables;\n\t\t\t} \n\t\t}\n\t\tlastUpdated = target.getSuspendCount();\n//\t\toldLineNumber = lineNumber;\n\t}", "Variable createVariable();", "Variable createVariable();", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "public void updateVarView() { \t\t\n if (this.executionHandler == null || this.executionHandler.getProgramExecution() == null) {\n \treturn;\n }\n HashMap<Identifier, Value> vars = this.executionHandler.getProgramExecution().getVariables();\n \n //insert Tree items \n this.varView.getVarTree().removeAll(); \n \t\tIterator<Map.Entry<Identifier, Value>> it = vars.entrySet().iterator();\t\t\n \t\twhile (it.hasNext()) {\n \t\t\tMap.Entry<Identifier, Value> entry = it.next();\n \t\t\tString type = entry.getValue().getType().toString();\n \t\t\tString id = entry.getKey().toString();\n \t\t\tValue tmp = entry.getValue();\n \t\t\tthis.checkValue(this.varView.getVarTree(), type, id, tmp);\n \t\t} \n \t}", "@Override\n public Vector3 clone()\n {\n return new Vector3(this);\n }", "public static void main(String[] args) {\n\t\t\n\t\tVector v = new Vector();\n\t\tv.add(3);\n\t\tv.add(90);\n\t\tv.add(67);\n\t\tInteger arr[] = new Integer[3];\n\t\tv.copyInto(arr);\n\t\tfor(Integer num:arr) {\n\t\t\tSystem.out.println(num);\n\t\t}\n\t}", "@Override String opStr() { return \"var\"; }", "@Override\n public LinearSequence getLinearVariables() {\n LinearSequence vars = new LinearSequence();\n\n vars.addAll(((ExtendedExpression) getA()).getLinearVariables());\n vars.addAll(((ExtendedExpression) getB()).getLinearVariables().negate());\n\n return vars;\n }", "@Override\n\tpublic Set<Variable> getDefVariables() {\n\t\tSet<Variable> used = new HashSet<Variable>();\n\t\treturn used;\n\t}", "@Override\n\tpublic Object clone() {\n\t\treturn new MeanVar(n, mean, s);\n\t}", "@Deprecated\n public void setMemberVariables(List<Variable> vars) {\n if (isImmutable())\n throw new IllegalStateException(\"Cant modify\");\n members = new ArrayList<>();\n memberHash = new HashMap<>(2 * vars.size());\n for (Variable v : vars) {\n addMemberVariable(v);\n }\n }", "public Vector getProcessVariables(String category) {\r\n Vector pvs = new Vector();\r\n for (int i = 0; i < pvValues.length; i++) {\r\n ProcessVariableDescription pv = (ProcessVariableDescription)pvValues[i][0];\r\n if (pv.getCategory().equals(category)) {\r\n pvs.add(pv);\r\n }\r\n }\r\n return pvs;\r\n }", "public Vector getFixedModifications() {\n return iFixedModifications;\n }", "Vector<Vector<Object>> getDataVector();", "public interface IVariable<A extends AbstractDomain<?>> extends IReferenceHolder<A>, ITerm {\n\n\t@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic default Set<IVariable<?>> getVariables() {\n\t\tSet<IVariable<?>> values = new HashSet<>();\n\t\tvalues.add((IVariable<AbstractDomain<?>>) this);\n\t\treturn values;\n\t}\n\n\t/**\n\t * Lets the visitor visit the variable.\n\t * \n\t * @param IVariableVisitor\n\t * The visitor.\n\t */\n\tpublic void processWith(IVariableVisitor iVariableVisitor);\n\n\t/**\n\t * Returns whether it is a constant.\n\t * \n\t * @return Whether it is a constant.\n\t */\n\tpublic boolean isConstant();\n}", "public void SetVector(int[] v){ this.vector=v;}", "public Vector getBuildListeners() {\n return (Vector) listeners.clone();\n }", "public void initVector(int n) {\n\t\tvector = new ArrayList<Integer>(n);\n\t\tfor(int i=0;i<n;i++)\n\t\tvector.add(0);\n\t}", "public ImmutableList<String> getVariableNames() {\n return members.stream().map(m -> m.getShortName()).collect(ImmutableList.toImmutableList());\n }", "public static void main(String[] args) {\n\t\tVector v1=new Vector(2,8);\n\t\tSystem.out.println(v1.capacity());\n\t\tv1.add(10);\n\t\tv1.add(20);\nv1.add(30);\n\tv1.add(40);\n\tv1.add(50);\n\tv1.add(60);\n\tv1.add(70);\n\tv1.add(80);\n\tv1.add(90);\n\t\tv1.add(10);\n\t\tv1.add(11);\n\t\tArrayList a1=new ArrayList(v1);\n\t\ta1.add(200);\n\t\tSystem.out.println(a1);\n\t\n\n\n\t}", "public FSVariableBox(VisualNode vNode) {\r\n\t\tvisualNode = vNode;\r\n\t\tvisualStates = new HashMap<Integer, VisualState>();\r\n\t\tcreateVisualStates();\r\n\t}", "public BaseObservable() {\n obs = new Vector<>();\n }", "public VariableView getVarView() {\n \t\treturn this.varView;\n \t}", "public Set<Object> getVariables() {\n return new HashSet<>(constraints.keySet());\n }", "public ListVS<V> getValues() {\n ListVS<V> result = new ListVS<V>(getUniverse());\n for (V value : this.entries.values()) {\n result = result.add(value);\n }\n return result;\n }", "private Vector(double x, double y){\n this.x = x;\n this.y = y;\n }", "@Test\n\tpublic void testConstructorForVectorInput()\n\t{\n\t\tfinal Object rawData = new Object();\n\t\tfinal String id = \"TestId\";\n\t\tVector<Variable> vars = new Vector<>();\n\t\tfinal Variable var = new Variable();\n\t\tvars.addElement(var);\n\t\tRawDataEvent testObj = new RawDataEvent(rawData, id, vars);\n\n\t\tassertEquals(vars, testObj.getVarObjects());\n\t\tassertEquals(var, testObj.getVarObjects().get(0));\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\n\t\tvars = new Vector<>();\n\t\ttestObj = new RawDataEvent(rawData, id, vars);\n\t\tassertEquals(vars, testObj.getVarObjects());\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\t}", "public IAspectVariable<V> createNewVariable(PartTarget target);", "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}", "private void genSaveVectorCode(String name, String classSimpleName, boolean primitive, int dimensions, String cppType) {\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n\n for (int i = 1; i <= dimensions; i++) {\n\n String itVarName = \"i\" + i + \"_\" + name;\n String vVarName = \"v\" + i + \"_\" + name;\n\n // another for(;;) loop...\n String vectorType = vectorCppTypeName(dimensions + 1 - i, cppType);\n\n if (i == 1) {\n save.println(\"\\t// \" + vectorType + \" \" + name);\n genDebug(save, \"\\tstd::cout << \\\"save \" + vectorType + \" \" + name + \"\\\" << std::endl;\");\n }\n\n if (i > 1) {\n // inside a for loop, inner vector variable initialized by\n // dereferencing iterator\n save.println(tabs + vectorType + \"& \" + vVarName + \" = (*i\" + (i - 1) + \"_\" + name + \");\");\n } else {\n // outside for loop, inner vector variable initialized to member\n // variable\n save.println(tabs + vectorType + \"& \" + vVarName + \" = this->\" + name + \";\");\n }\n\n save.println(tabs + \"int \" + vVarName + \"_length = \" + vVarName + \".size();\");\n\n save.println();\n save.println(tabs + OUTSTREAM_VAR_NAME + \".writeInt(\" + vVarName + \"_length);\");\n\n genDebugDumpValue(save, vVarName + \"_length\", tabs);\n\n save.println();\n save.println(tabs + vectorType + \"::iterator \" + itVarName + \";\");\n save.println(tabs + \"for( \" + itVarName + \" = \" + vVarName + \".begin(); \" + itVarName + \" != \" + vVarName\n + \".end(); ++\" + itVarName + \" ){\");\n\n tabLevel++;\n tabs = tabs(tabLevel);\n\n if (i == dimensions) {\n if (primitive || classSimpleName.equals(\"String\")) {\n save.println(tabs + cppType + \" v\" + i + \" = (*\" + itVarName + \");\");\n save.println(tabs + genWriteCode(\"v\" + i, cppType));\n } else {\n // save.println( tabs + type + \" v\" + i + \" = (*\" +\n // itVarName + \");\" );\n // save.println( tabs + \"v\" + i + \".save( output );\");\n save.println(tabs + itVarName + \" -> save( \" + OUTSTREAM_VAR_NAME + \" );\");\n }\n }\n\n if (i < dimensions) {\n } else {\n if (i > 1) {\n // not outside outer for(;;) loop\n // bottom\n }\n }\n }\n\n for (int i = 0; i < dimensions; i++) {\n tabLevel--;\n tabs = tabs(tabLevel);\n save.println(tabs + \"}\");\n }\n }", "public Entrepot(Vector v){\r\n\t\tthis.id =(Integer)v.get(0);\r\n\t\tthis.localisation=new Localisation(\r\n\t\t\t\t(Integer)v.get(1),\r\n\t\t\t\t(String)v.get(2),\r\n\t\t\t\t(String)v.get(3),\r\n\t\t\t\t(String)v.get(4));\r\n\t\tthis.telephone=(String)v.get(5);\r\n\t}", "@Override\n public List<String> getVariables() {\n return super.getVariables();\n }", "public static void main(String[] args) {\n net.mindview.simple.Vector vector = new net.mindview.simple.Vector();\n java.util.Vector vector1 = new java.util.Vector<>();\n }", "void mo54413a(int i, C20254v vVar);", "public float[] getVec() {\n return vec;\n }", "public Portlets() \r\n {\r\n super();\r\n _portletList = new Vector();\r\n }", "public final Instruction vector_op() throws RecognitionException {\r\n Instruction inst = null;\r\n\r\n\r\n Token it1=null;\r\n Token it2=null;\r\n Token it3=null;\r\n Token i1=null;\r\n Token it4=null;\r\n Token i2=null;\r\n Constant v0 =null;\r\n\r\n Type vt1 =null;\r\n\r\n Constant v1 =null;\r\n\r\n Constant e1 =null;\r\n\r\n Type vt2 =null;\r\n\r\n Constant v2 =null;\r\n\r\n Type et1 =null;\r\n\r\n Constant e2 =null;\r\n\r\n Constant e3 =null;\r\n\r\n Type vt3 =null;\r\n\r\n Constant v3 =null;\r\n\r\n Type vt4 =null;\r\n\r\n Constant v4 =null;\r\n\r\n Type vt5 =null;\r\n\r\n\r\n\r\n int opcode=0;\r\n Constant dest;\r\n List<Type> types = new ArrayList<Type>();\r\n List<Constant> operands = new ArrayList<Constant>();\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:284:5: (v0= variable '=' ( 'extractelement' vt1= vector_type v1= variable ',' it1= INTEGER_TYPE e1= expression | 'insertelement' vt2= vector_type v2= variable ',' et1= element_type e2= expression ',' it2= INTEGER_TYPE e3= expression | 'shufflevector' vt3= vector_type v3= variable ',' vt4= vector_type v4= variable ',' vt5= vector_type '<' it3= INTEGER_TYPE i1= INTEGER ( ',' it4= INTEGER_TYPE i2= INTEGER )* '>' ) )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:284:7: v0= variable '=' ( 'extractelement' vt1= vector_type v1= variable ',' it1= INTEGER_TYPE e1= expression | 'insertelement' vt2= vector_type v2= variable ',' et1= element_type e2= expression ',' it2= INTEGER_TYPE e3= expression | 'shufflevector' vt3= vector_type v3= variable ',' vt4= vector_type v4= variable ',' vt5= vector_type '<' it3= INTEGER_TYPE i1= INTEGER ( ',' it4= INTEGER_TYPE i2= INTEGER )* '>' )\r\n {\r\n pushFollow(FOLLOW_variable_in_vector_op1554);\r\n v0=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n dest = v0;\r\n\r\n match(input,47,FOLLOW_47_in_vector_op1557); \r\n\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:285:6: ( 'extractelement' vt1= vector_type v1= variable ',' it1= INTEGER_TYPE e1= expression | 'insertelement' vt2= vector_type v2= variable ',' et1= element_type e2= expression ',' it2= INTEGER_TYPE e3= expression | 'shufflevector' vt3= vector_type v3= variable ',' vt4= vector_type v4= variable ',' vt5= vector_type '<' it3= INTEGER_TYPE i1= INTEGER ( ',' it4= INTEGER_TYPE i2= INTEGER )* '>' )\r\n int alt43=3;\r\n switch ( input.LA(1) ) {\r\n case 63:\r\n {\r\n alt43=1;\r\n }\r\n break;\r\n case 71:\r\n {\r\n alt43=2;\r\n }\r\n break;\r\n case 80:\r\n {\r\n alt43=3;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 43, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt43) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:285:7: 'extractelement' vt1= vector_type v1= variable ',' it1= INTEGER_TYPE e1= expression\r\n {\r\n match(input,63,FOLLOW_63_in_vector_op1566); \r\n\r\n pushFollow(FOLLOW_vector_type_in_vector_op1570);\r\n vt1=vector_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_variable_in_vector_op1574);\r\n v1=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,44,FOLLOW_44_in_vector_op1576); \r\n\r\n it1=(Token)match(input,INTEGER_TYPE,FOLLOW_INTEGER_TYPE_in_vector_op1580); \r\n\r\n pushFollow(FOLLOW_expression_in_vector_op1584);\r\n e1=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n opcode = InstType.extractEleInst; \r\n types.add(vt1); operands.add(v1); \r\n String n = (it1!=null?it1.getText():null); n=n.substring(1,n.length()); types.add(typeFactory.getIntNType(Integer.parseInt(n))); operands.add(e1);\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:289:7: 'insertelement' vt2= vector_type v2= variable ',' et1= element_type e2= expression ',' it2= INTEGER_TYPE e3= expression\r\n {\r\n match(input,71,FOLLOW_71_in_vector_op1603); \r\n\r\n pushFollow(FOLLOW_vector_type_in_vector_op1607);\r\n vt2=vector_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_variable_in_vector_op1611);\r\n v2=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,44,FOLLOW_44_in_vector_op1613); \r\n\r\n pushFollow(FOLLOW_element_type_in_vector_op1617);\r\n et1=element_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_vector_op1621);\r\n e2=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,44,FOLLOW_44_in_vector_op1623); \r\n\r\n it2=(Token)match(input,INTEGER_TYPE,FOLLOW_INTEGER_TYPE_in_vector_op1627); \r\n\r\n pushFollow(FOLLOW_expression_in_vector_op1631);\r\n e3=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n opcode = InstType.insertEleInst; \r\n types.add(vt2); operands.add(v2); \r\n types.add(et1); operands.add(e2);\r\n String n = (it2!=null?it2.getText():null); n=n.substring(1,n.length()); types.add(typeFactory.getIntNType(Integer.parseInt(n))); operands.add(e3);\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:294:7: 'shufflevector' vt3= vector_type v3= variable ',' vt4= vector_type v4= variable ',' vt5= vector_type '<' it3= INTEGER_TYPE i1= INTEGER ( ',' it4= INTEGER_TYPE i2= INTEGER )* '>'\r\n {\r\n match(input,80,FOLLOW_80_in_vector_op1649); \r\n\r\n pushFollow(FOLLOW_vector_type_in_vector_op1653);\r\n vt3=vector_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_variable_in_vector_op1657);\r\n v3=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,44,FOLLOW_44_in_vector_op1659); \r\n\r\n pushFollow(FOLLOW_vector_type_in_vector_op1663);\r\n vt4=vector_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_variable_in_vector_op1667);\r\n v4=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,44,FOLLOW_44_in_vector_op1669); \r\n\r\n pushFollow(FOLLOW_vector_type_in_vector_op1673);\r\n vt5=vector_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n opcode = InstType.shuffleVecInst;\r\n types.add(vt3); operands.add(v3);\r\n types.add(vt4); operands.add(v4);\r\n types.add(vt5);\r\n\r\n match(input,46,FOLLOW_46_in_vector_op1693); \r\n\r\n it3=(Token)match(input,INTEGER_TYPE,FOLLOW_INTEGER_TYPE_in_vector_op1697); \r\n\r\n i1=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_vector_op1701); \r\n\r\n String n = (it3!=null?it3.getText():null); n=n.substring(1,n.length()); types.add(typeFactory.getIntNType(Integer.parseInt(n)));\r\n operands.add(valueFactory.createConstantValue(SimpleConstantValue.intConst, (i1!=null?i1.getText():null)));\r\n\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:302:8: ( ',' it4= INTEGER_TYPE i2= INTEGER )*\r\n loop42:\r\n do {\r\n int alt42=2;\r\n int LA42_0 = input.LA(1);\r\n\r\n if ( (LA42_0==44) ) {\r\n alt42=1;\r\n }\r\n\r\n\r\n switch (alt42) {\r\n \tcase 1 :\r\n \t // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:302:9: ',' it4= INTEGER_TYPE i2= INTEGER\r\n \t {\r\n \t match(input,44,FOLLOW_44_in_vector_op1722); \r\n\r\n \t it4=(Token)match(input,INTEGER_TYPE,FOLLOW_INTEGER_TYPE_in_vector_op1726); \r\n\r\n \t i2=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_vector_op1730); \r\n\r\n \t String n2 = (it4!=null?it4.getText():null); n2=n2.substring(1,n2.length()); types.add(typeFactory.getIntNType(Integer.parseInt(n2)));\r\n \t operands.add(valueFactory.createConstantValue(SimpleConstantValue.intConst, (i2!=null?i2.getText():null)));\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop42;\r\n }\r\n } while (true);\r\n\r\n\r\n match(input,48,FOLLOW_48_in_vector_op1752); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n inst = instFactory.createSimpleInst(dest, opcode, operands, types);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return inst;\r\n }", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "public VOIVector(int initialsize) {\r\n super(initialsize);\r\n }", "public Vector getControllers() {\n return (Vector) this.controllers.clone();\n }", "ElementVariable(IntVar index, IntVar[] list, IntVar value) {\n\n\t\tthis(index, list, value, 0);\n\n\t}", "public static void main(String[] args) {\n\t\tVector V = new Vector();\n\t\tSystem.out.println(V.capacity());\n\t\n\t\tfor(int i=0; i<10; i++) {\n\t\t\tV.addElement(i);\n\t\t}\n\t\tSystem.out.println(V.capacity());\n\t\tV.addElement(\"khushbu\");\n\t\tSystem.out.println(V.capacity());\n\t\tSystem.out.println(V);\n\t\tV.addElement(\"Rameshvar\");\n\t\tSystem.out.println(V.capacity());\n\t\tSystem.out.println(V);\n\t\tV.addElement(\"Bandewar\");\n\t\tSystem.out.println(V.capacity());\n\t\tSystem.out.println(V);\n\t}", "private void updateVars()\n {\n\n }", "protected Set<AeScriptVarDef> findVariableReferences() {\r\n AeXPathVariableNodeVisitor visitor = new AeXPathVariableNodeVisitor();\r\n getXPathAST().visitAll(visitor);\r\n return visitor.getVariableReferences();\r\n }" ]
[ "0.7182727", "0.63134015", "0.61732507", "0.61519516", "0.5964564", "0.5962124", "0.59618956", "0.59567314", "0.59126073", "0.5867643", "0.5834599", "0.5756596", "0.56916475", "0.567753", "0.56731063", "0.5670798", "0.561194", "0.5611228", "0.5573587", "0.55066234", "0.55029505", "0.54852164", "0.5483793", "0.54832244", "0.5462676", "0.54620516", "0.5446007", "0.54144716", "0.5403254", "0.5401968", "0.53972703", "0.53969836", "0.5386386", "0.536262", "0.534416", "0.5329163", "0.5302367", "0.5300729", "0.5292538", "0.5277874", "0.52420807", "0.522594", "0.5207595", "0.5203391", "0.51917106", "0.5188347", "0.5185528", "0.51759535", "0.51742256", "0.5163843", "0.5158607", "0.51571083", "0.51546144", "0.5152634", "0.514681", "0.51446176", "0.5136737", "0.5136737", "0.5130681", "0.51212883", "0.51146674", "0.5113005", "0.5109531", "0.5109457", "0.5109382", "0.51009333", "0.5100578", "0.510038", "0.50958025", "0.50935614", "0.5092743", "0.5080869", "0.50615495", "0.5060535", "0.50585884", "0.5052869", "0.5050704", "0.5050671", "0.50438243", "0.5037507", "0.50373524", "0.50309", "0.5026302", "0.5023176", "0.5015795", "0.49994186", "0.4993892", "0.49918956", "0.4985072", "0.4978518", "0.49756387", "0.4964844", "0.49613976", "0.49589962", "0.49579138", "0.495236", "0.49444166", "0.493962", "0.4932111", "0.49301878" ]
0.68140054
1
Create a Vector containing all the variable modification instances.
private void generateFModVector(ArrayList aFModStringArrayList) { StringTokenizer st = null; String lStringF = null; // Run every element in the aFModStringArrayList trough a for loop. // Create a FixedModification instance at the end of each loop. // Put the instance into the vector. for (int i = 0; i < aFModStringArrayList.size(); i++) { // Save the value of the StringArrayList in this variable and refresh each time it gets trough the loop. lStringF = (String) aFModStringArrayList.get(i); st = new StringTokenizer(lStringF, ","); FixedModification lF = null; // 1. First element in the StringTokenizer is the mass. double lMass = Double.parseDouble(st.nextToken()); // 2. Second element in the StringTokenizer is the type and location. String lTypeAndLocation = st.nextToken().trim(); // We only need the type because the location is allready in the next token. String lType = parseFixedModName(lTypeAndLocation); // The type is also used to get the ShortType notation. String lShortType = getShortType(lTypeAndLocation); // 3. Third element in the StringTokenizer is the location. String lLocation = st.nextToken(); // 4. The ModificationID runs parrallel with the for-loop. int lModificationID = i + 1; // 5. Finally create a new Fixed modification instance. lF = new FixedModification(lType, lShortType, lMass, lLocation, lModificationID); // 6. add the instance to this this class its VariableModification Vector. iFixedModifications.add(lF); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector getVariableModifications() {\n return iVariableModifications;\n }", "private void generateVModVector(ArrayList aVModStringArrayList) {\n StringTokenizer st = null;\n String lStringV = null;\n // Run every element in the aVModStringArrayList trough a for loop.\n // Create a VariableModification instance at the end of each loop.\n // Put the instance into the vector.\n for (int i = 0; i < aVModStringArrayList.size(); i++) {\n // Save the value of the StringArrayList in this variable and refresh each time it gets trough the loop.\n lStringV = (String) aVModStringArrayList.get(i);\n st = new StringTokenizer(lStringV, \",\");\n VariableModification lV = null;\n\n // 1. First element in the String is the mass.\n double lMass = Double.parseDouble(st.nextToken());\n\n // 2. Second element in the String is the type AND location.\n String lTypeAndLocation = st.nextToken().trim();\n // 2.a)\n // Use this token as the key to get the shortend notation of the modification.\n String lShortType = getShortType(lTypeAndLocation);\n\n // 2.b)\n // throw lTypeAndLocation to parseVariableModName method and\n // get a String[] in return containing the type @[0] and the location @[1]\n String[] lNameArray = parseVariableModName(lTypeAndLocation);\n String lType = lNameArray[0].trim();\n String lLocation = lNameArray[1];\n if (lLocation != null) {\n lLocation = lLocation.trim();\n }\n\n // 3. Third element in the StringTokenizer is the (possible) Neutralloss.\n double lNeutralLoss = Double.parseDouble(st.nextToken());\n\n // 4. The ModificationID runs parrallel with the for-loop.\n int lModificationID = i + 1;\n\n // 5. Finally create a new Variable modification instance.\n lV = new VariableModification(lType, lShortType, lMass, lNeutralLoss, lLocation, lModificationID);\n\n // 6. add the instance to this this class its VariableModification Vector.\n iVariableModifications.add(lV);\n }\n }", "public ImmutableList<Variable> getVariables() {\n return ImmutableList.copyOf(members);\n }", "public Vector freeVars() {\r\n\t\tVector v = new Vector(2, 2);\r\n\t\tVector temp = ((SimpleNode) jjtGetChild(0)).freeVars();\r\n\t\ttemp.remove(\"\");\r\n\t\tVector temp2 = ((SimpleNode) jjtGetChild(1)).freeVars();\r\n\t\ttemp2.remove(\"\");\r\n\t\tfor (Object obj : temp2) {\r\n\t\t\tif (!temp.contains(obj)) {\r\n\t\t\t\tv.add(obj);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn v;\r\n\t}", "public Vector toVector()\n\t{\n\t\tVector listeners = new Vector();\n\t\tlisteners.addElement(this);\n\n\t\treturn listeners;\n\t}", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "List<IVariableDef> getVariables();", "public ArrayList<Variable> getVariables() {\r\n\t\treturn variables;\r\n\t}", "Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }", "public abstract ImmutableVector getImmutableVector();", "protected java.util.Vector getFieldVector() throws Exception {\n java.util.Vector fieldVector = new java.util.Vector();\n Class c = getClass();\n while (c != Class.forName(\"java.lang.Object\")) {\n Field[] fields = c.getDeclaredFields();\n for (int i = fields.length - 1; i >= 0; i--) {\n fieldVector.add(0, fields[i]);\n }\n c = c.getSuperclass();\n }\n return fieldVector;\n }", "VariableExp createVariableExp();", "public List<Variable> getVariables() {\r\n\t\treturn variables;\r\n\t}", "void doVector() {\n Vector<String> v = new Vector<>();//creating vector\n v.add( \"umesh\" );//method of Collection\n v.addElement( \"irfan\" );//method of Vector\n v.addElement( \"kumar\" );\n //traversing elements using Enumeration\n Enumeration e = v.elements(); // creates enumeration objects\n while (e.hasMoreElements()) { //\n System.out.println( e.nextElement() );\n }\n }", "public java.util.List<Object> generateControlVars();", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tPilaVector p = new PilaVector();\n\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\tp.vector.add(this.vector.get(i));\n\t\t}\n\t\treturn p;\n\t}", "public List<VariableID<?>> getVariables()\n\t{\n\t\tList<VariableID<?>> vars = get(VARIABLES);\n\t\tif (vars == null)\n\t\t{\n\t\t\tvars = Collections.emptyList();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tvars = new ArrayList<>(vars);\n\t\t}\n\t\treturn vars;\n\t}", "Variables createVariables();", "public Vector()\r\n {\r\n // initialise instance variables\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "public List<String> getVariables() {\r\n List<String> newList = new ArrayList<String>();\r\n newList.addAll(e1.getVariables());\r\n return newList;\r\n }", "public MyVector() {\n\t\tarr = new int[10];\n\t\tend = 0;\n\t}", "private void addInstanceVariables(ClassWriterTracker ct) {\n // variable #1, the state manager\n ct.getCw().visitField(Opcodes.ACC_PRIVATE | Opcodes.ACC_TRANSIENT,\n \"sm\", Type.getDescriptor(OpenJPAStateManager.class), null, null).visitEnd();\n\n // variable #2, the state manager\n ct.getCw().visitField(Opcodes.ACC_PRIVATE | Opcodes.ACC_TRANSIENT,\n \"field\", Type.getDescriptor(int.class), null, null).visitEnd();\n }", "static Pool newVariablePool() {\n return new VariablePool();\n }", "public VOIVector() {\r\n super();\r\n }", "public List allVariables() {\r\n\t\tArrayList vars = new ArrayList();\r\n\t\tfor (int i = 0; i < elements.size(); ++i) {\r\n\t\t\tObject ob = elements.get(i);\r\n\t\t\tif (ob instanceof Variable) {\r\n\t\t\t\tvars.add(ob);\r\n\t\t\t} else if (ob instanceof FunctionDef) {\r\n\t\t\t\tExpression[] params = ((FunctionDef) ob).getParameters();\r\n\t\t\t\tfor (int n = 0; n < params.length; ++n) {\r\n\t\t\t\t\tvars.addAll(params[n].allVariables());\r\n\t\t\t\t}\r\n\t\t\t} else if (ob instanceof TObject) {\r\n\t\t\t\tTObject tob = (TObject) ob;\r\n\t\t\t\tif (tob.getTType() instanceof TArrayType) {\r\n\t\t\t\t\tExpression[] exp_list = (Expression[]) tob.getObject();\r\n\t\t\t\t\tfor (int n = 0; n < exp_list.length; ++n) {\r\n\t\t\t\t\t\tvars.addAll(exp_list[n].allVariables());\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 vars;\r\n\t}", "public Vector toVector(){\r\n\t\tVector v = new Vector();\r\n\r\n\t\t// ATTENTION l'ordre est très important !!\r\n\t\t// l'ordre doit être :\r\n\t\t// id, id localisation, adresse, code postal, ville, telephone\r\n\r\n\t\tv.add(id);\r\n\t\tv.add(localisation.getId());\r\n\t\tv.add(localisation.getAdresse());\r\n\t\tv.add(localisation.getCodePostal());\r\n\t\tv.add(localisation.getVille());\r\n\t\tv.add(telephone);\r\n\r\n\t\treturn v;\r\n\t}", "public java.util.Collection<VariableInfo> getLocalVariables(){\n\t\tjava.util.Collection<VariableInfo> variables = new java.util.ArrayList<VariableInfo>();\n\n\t\treturn variables;\n\t}", "public Iterable<Map.Entry<String,Double>> getVariables() {\r\n return Collections.unmodifiableMap(variables).entrySet();\r\n }", "private void generateFModVector(String aFixedModifications_ParameterSection) {\n //Acetyl (K),Carbamidomethyl (C)\n FixedModification lF;\n ArrayList lFixedMods = new ArrayList();\n StringTokenizer st = new StringTokenizer(aFixedModifications_ParameterSection, \",\");\n while (st.hasMoreTokens()) {\n lFixedMods.add(st.nextToken());\n }\n for (int i = 0; i < lFixedMods.size(); i++) {\n String lStringF = (String) lFixedMods.get(i);\n String lType = lStringF.substring(0, lStringF.indexOf(' '));\n String lLocation = lStringF.substring(lStringF.indexOf('(') + 1, lStringF.indexOf(')'));\n String lShortType = getShortType(lStringF);\n int lModificationID = i + 1;\n\n lF = new FixedModification(lType, lShortType, lLocation, lModificationID);\n iFixedModifications.add(lF);\n }\n }", "public List<String> getVariables() {\r\n List<String> list = new ArrayList<String>();\r\n list.add(this.variable);\r\n return list;\r\n }", "public HashSet<VarNode> getVariables(){\n\t\tif(this.Variables == null){\n\t\t\tthis.Variables = new HashSet<VarNode>();\n\t\t\tthis.ExprNode.addVariables(Variables);\n\t\t}\n\t\t\n\t\treturn Variables;\n\t}", "private final int[] initializeInstanceVariable() {\n\t\tint n = 10;\n\t\tint[] temp = new int[n];\n\t\tfor (int i = 0; i < n; i++) {temp[i] = i;}\n\t\treturn temp;\n\t}", "public Vector() {\n construct();\n }", "public static void updateVars() {\n IntVar tempo;\n for (Vars vars: getArrayutcc() ){\n tempo = (IntVar) Store.getModelStore().findVariable(vars.varname);\n vars.vinf = tempo.value();\n }\n\n }", "public Set<Variable> create(WF_Context myContext) {\n\n\t\tfinal WF_Static_List l = myContext.getList(target);\n\t\to = GlobalState.getInstance().getLogger();\n\t\tif (l==null) {\n\t\t\to.addRow(\"\");\n\t\t\to.addRedText(\"Couldn't find list with ID \"+target+\" in AddVariableToEveryListEntryBlock\");\n\t\t} else {\n\t\t\tLog.d(\"nils\",\"Calling AddVariableToEveryListEntry for \"+variableSuffix);\n\t\t\tl.addVariableToEveryListEntry(variableSuffix, displayOut,format,isVisible,showHistorical,initialValue);\t\t\n\t\t}\n\t\treturn null;\n\t}", "public Definition() {\n\tproductions = new Vector<Vector<String>>();\n }", "public Vec clone();", "public ArrayList<Integer> getVector() {\n\t\tif (vector != null) {\n\t\t\treturn vector;\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Error accessing vector in Sentence class for rawSen= '\"\n\t\t\t\t\t\t\t+ rawSen + \"'\\n\");\n\t\t\treturn null;\n\t\t}\n\t}", "VarAssignment createVarAssignment();", "public ArrayList<ASTNode> getVariables(ASTNode exp) {\n HashSet<ASTNode> tmp=new HashSet<ASTNode>();\n getVariablesInner(exp, tmp);\n return new ArrayList<ASTNode>(tmp);\n }", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "VectorType11 getVector();", "public Vector clone()\r\n {\r\n Vector<O> v = new Vector<O>();\r\n \r\n VectorItem<O> vi = first;\r\n while (vi != null)\r\n {\r\n v.pushBack (vi.getObject());\r\n vi = vi.getNext();\r\n }\r\n \r\n return v;\r\n }", "protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }", "public Vector3 clone(){\r\n\t\tVector3 vec = new Vector3();\r\n\t\tvec.set(this.x, this.y, this.z);\r\n\t\treturn vec;\r\n\t}", "@Deprecated\n public Variable addMemberVariable(Variable v) {\n if (isImmutable())\n throw new IllegalStateException(\"Cant modify\");\n members.add(v);\n memberHash.put(v.getShortName(), v);\n v.setParentStructure(this);\n return v;\n }", "public static void main(String[] args) {\n packages.package1.Vector v = new packages.package1.Vector();\n //List l = new List();\n }", "public Variable(String name) {\r\n\t\tName = name;\r\n\t\tValues = new ArrayList<>();\r\n\t\tParents = new ArrayList<>();\r\n\t\tCPT = new TreeMap<>();\r\n\t}", "public final FileMincVarElem[] getVarArray() {\r\n return varArray;\r\n }", "public void vector(List<Student> list)\r\n\t{\r\n\t\tlist.add(s1);\r\n\t\tlist.add(s2);\r\n\t\tlist.add(s3);\r\n\t\tlist.add(s4);\r\n\t\tlist.add(s5);\r\n\t\tlist.add(s6);\r\n\t\tSystem.out.println(\"Objects of Vector\");\r\n\t\tEnumeration<Student> enumeration = Collections.enumeration(list);\r\n\t\twhile (enumeration.hasMoreElements()) \r\n\t\t\tSystem.out.println(enumeration.nextElement()); \r\n\t}", "public ModificationList(ArrayList aFModStringArrayList, ArrayList aVModStringArrayList) {\n generateVModVector(aVModStringArrayList);\n generateFModVector(aFModStringArrayList);\n }", "protected Double[] allocateVariables() {\n\t\tDouble[] _variables = new Double[size];\n\t\treturn _variables;\n\t}", "private void genLoadVectorCode(String name, String classSimpleName, boolean primitive, int dimensions, String cppType) {\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n String prevVVarName = \"\";\n char prevLoopVarName = ' ';\n\n for (int i = 1; i <= dimensions; i++) {\n int level = dimensions + 1 - i;\n String vVarName = \"v\" + i + \"_\" + name;\n String vectorType = vectorCppTypeName(level, cppType);\n String lenVarName = vVarName + \"_length\";\n char loopVarName = (char) ('i' + (i - 1));\n\n if (i == 1) {\n load.println(\"\\t// \" + vectorType + \" this->\" + name);\n genDebug(load, \"\\tstd::cout << \\\"load \" + vectorType + \" \" + name + \"\\\" << std::endl;\");\n }\n\n load.println(tabs + \"int \" + lenVarName + \";\");\n\n load.println();\n load.println(tabs + INSTREAM_VAR_NAME + \".readInt( \" + lenVarName + \" );\");\n\n genDebugDumpValue(load, lenVarName, tabs);\n\n if (i > 1) {\n // inside a for loop, inner vector variable initialized by\n // dereferencing iterator\n load.println(tabs + vectorType + \"& \" + vVarName + \" = \" + prevVVarName + \".at( \" + prevLoopVarName + \" );\");\n } else {\n // outside for loop, inner vector variable initialized to member\n // variable\n load.println(tabs + vectorType + \"& \" + vVarName + \" = this->\" + name + \";\");\n }\n\n if (i <= dimensions - 1) {\n // initialize & pre-allocate the vector at this level\n load.println(tabs + vVarName + \" = \" + vectorType + \"( \" + lenVarName + \" );\");\n } else {\n // initialize & pre-allocate the vector at this level\n load.println(tabs + vVarName + \".reserve( \" + lenVarName + \" );\");\n }\n\n load.println();\n load.println(tabs + \"for( int \" + loopVarName + \" = 0; \" + loopVarName + \" < \" + lenVarName + \"; \" + loopVarName\n + \"++ ){\");\n\n tabLevel++;\n tabs = tabs(tabLevel);\n\n if (i == dimensions) {\n if (primitive || classSimpleName.equals(\"String\")) {\n load.println(tabs + cppType + \" v\" + i + \";\");\n load.println(tabs + genReadCode(\"v\" + i, cppType(classSimpleName)));\n load.println(tabs + vVarName + \".push_back( v\" + i + \" );\");\n } else {\n load.println(tabs + cppType + \" v\" + i + \";\");\n load.println(tabs + \"v\" + i + \".load( \" + INSTREAM_VAR_NAME + \" );\");\n load.println(tabs + vVarName + \".push_back( v\" + i + \" );\");\n }\n }\n prevVVarName = vVarName;\n prevLoopVarName = loopVarName;\n }\n for (int i = 0; i < dimensions; i++) {\n tabLevel--;\n tabs = tabs(tabLevel);\n load.println(tabs + \"}\");\n }\n }", "public FunctionVariable (Object names[])\n {\n super(names);\n }", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "private synchronized void updateVariables() throws DebugException {\n\t\tif (lastUpdated == target.getSuspendCount()\n\t\t\t\t|| (variables != null && oldLineNumber == lineNumber))\n\t\t\treturn;\n\t\t\n\t\tSynchronizer frontend = target.getFrontend();\n\t\tif (frontend != null) {\n\t\t\t// get local variables\n\t\t\tString localsSausage = frontend.GetLocals(thread.getID(),frameNumber);\n\t\t\tString[] locals;\n\t\t\tif (localsSausage == null || localsSausage.equals(\"--\")\n\t\t\t\t\t|| localsSausage.equals(\"\"))\n\t\t\t\tlocals = new String[0];\n\t\t\telse\n\t\t\t\tlocals = localsSausage.split(\" \");\n\t\t\t// get parameters\n\t\t\tString paramsSausage = frontend.GetParameters(thread.getID(),frameNumber);\n\t\t\tString[] params;\n\t\t\tif (paramsSausage == null || paramsSausage.equals(\"--\")\n\t\t\t\t\t|| paramsSausage.equals(\"\"))\n\t\t\t\tparams = new String[0];\n\t\t\telse\n\t\t\t\tparams = paramsSausage.split(\" \");\n\t\t\t// get static fields of the current class\n\t\t\tString className;\n\t\t\ttry {\n\t\t\t\tclassName = methodName.substring(0, methodName.lastIndexOf('.'));\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\t\t\t\tclassName = \"\";\n\t\t\t}\n\t\t\tString staticsSausage = frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\n\t\t\t\t\tclassName,true);\n\t\t\tString[] statics;\n\t\t\tif (staticsSausage == null || staticsSausage.equals(\"--\")\n\t\t\t\t\t|| staticsSausage.equals(\"\"))\n\t\t\t\tstatics = new String[0];\n\t\t\telse\n\t\t\t\tstatics = staticsSausage.split(\" \");\n\t\t\t// determine if \"this\" is valid\n\t\t\tboolean _this = true;\n\t\t\tif (frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\"this\",false).equals(\"--\"))\n\t\t\t\t_this = false;\n\t\t\t\n\t\t\t// create variable objects\n\t\t\tIVariable[] tempVariables = new EmonicVariable[locals.length + params.length\n\t\t\t + statics.length + (_this ? 1 : 0)];\n\n\t\t\tif (variables == null || variables.length != tempVariables.length) {\n\t\t\t\t// something changed\n\t\t\t\tint index = 0;\n\t\t\t\tif (_this) {\n\t\t\t\t\ttempVariables[0] = new EmonicVariable(this,\"this\",null);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tArrays.sort(locals);\n\t\t\t\tfor (int i=0; i<locals.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,locals[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=locals.length;\n\t\t\t\tArrays.sort(params);\n\t\t\t\tfor (int i=0; i<params.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,params[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=params.length;\n\t\t\t\tArrays.sort(statics);\n\t\t\t\tfor (int i=0; i<statics.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,statics[i],null);\n\t\t\t\t}\n\t\t\t\tvariables = tempVariables;\n\t\t\t} \n\t\t}\n\t\tlastUpdated = target.getSuspendCount();\n//\t\toldLineNumber = lineNumber;\n\t}", "Variable createVariable();", "Variable createVariable();", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "public void updateVarView() { \t\t\n if (this.executionHandler == null || this.executionHandler.getProgramExecution() == null) {\n \treturn;\n }\n HashMap<Identifier, Value> vars = this.executionHandler.getProgramExecution().getVariables();\n \n //insert Tree items \n this.varView.getVarTree().removeAll(); \n \t\tIterator<Map.Entry<Identifier, Value>> it = vars.entrySet().iterator();\t\t\n \t\twhile (it.hasNext()) {\n \t\t\tMap.Entry<Identifier, Value> entry = it.next();\n \t\t\tString type = entry.getValue().getType().toString();\n \t\t\tString id = entry.getKey().toString();\n \t\t\tValue tmp = entry.getValue();\n \t\t\tthis.checkValue(this.varView.getVarTree(), type, id, tmp);\n \t\t} \n \t}", "@Override\n public Vector3 clone()\n {\n return new Vector3(this);\n }", "public static void main(String[] args) {\n\t\t\n\t\tVector v = new Vector();\n\t\tv.add(3);\n\t\tv.add(90);\n\t\tv.add(67);\n\t\tInteger arr[] = new Integer[3];\n\t\tv.copyInto(arr);\n\t\tfor(Integer num:arr) {\n\t\t\tSystem.out.println(num);\n\t\t}\n\t}", "@Override String opStr() { return \"var\"; }", "@Override\n public LinearSequence getLinearVariables() {\n LinearSequence vars = new LinearSequence();\n\n vars.addAll(((ExtendedExpression) getA()).getLinearVariables());\n vars.addAll(((ExtendedExpression) getB()).getLinearVariables().negate());\n\n return vars;\n }", "@Override\n\tpublic Set<Variable> getDefVariables() {\n\t\tSet<Variable> used = new HashSet<Variable>();\n\t\treturn used;\n\t}", "@Override\n\tpublic Object clone() {\n\t\treturn new MeanVar(n, mean, s);\n\t}", "@Deprecated\n public void setMemberVariables(List<Variable> vars) {\n if (isImmutable())\n throw new IllegalStateException(\"Cant modify\");\n members = new ArrayList<>();\n memberHash = new HashMap<>(2 * vars.size());\n for (Variable v : vars) {\n addMemberVariable(v);\n }\n }", "public Vector getProcessVariables(String category) {\r\n Vector pvs = new Vector();\r\n for (int i = 0; i < pvValues.length; i++) {\r\n ProcessVariableDescription pv = (ProcessVariableDescription)pvValues[i][0];\r\n if (pv.getCategory().equals(category)) {\r\n pvs.add(pv);\r\n }\r\n }\r\n return pvs;\r\n }", "public Vector getFixedModifications() {\n return iFixedModifications;\n }", "Vector<Vector<Object>> getDataVector();", "public interface IVariable<A extends AbstractDomain<?>> extends IReferenceHolder<A>, ITerm {\n\n\t@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic default Set<IVariable<?>> getVariables() {\n\t\tSet<IVariable<?>> values = new HashSet<>();\n\t\tvalues.add((IVariable<AbstractDomain<?>>) this);\n\t\treturn values;\n\t}\n\n\t/**\n\t * Lets the visitor visit the variable.\n\t * \n\t * @param IVariableVisitor\n\t * The visitor.\n\t */\n\tpublic void processWith(IVariableVisitor iVariableVisitor);\n\n\t/**\n\t * Returns whether it is a constant.\n\t * \n\t * @return Whether it is a constant.\n\t */\n\tpublic boolean isConstant();\n}", "public void SetVector(int[] v){ this.vector=v;}", "public Vector getBuildListeners() {\n return (Vector) listeners.clone();\n }", "public void initVector(int n) {\n\t\tvector = new ArrayList<Integer>(n);\n\t\tfor(int i=0;i<n;i++)\n\t\tvector.add(0);\n\t}", "public ImmutableList<String> getVariableNames() {\n return members.stream().map(m -> m.getShortName()).collect(ImmutableList.toImmutableList());\n }", "public static void main(String[] args) {\n\t\tVector v1=new Vector(2,8);\n\t\tSystem.out.println(v1.capacity());\n\t\tv1.add(10);\n\t\tv1.add(20);\nv1.add(30);\n\tv1.add(40);\n\tv1.add(50);\n\tv1.add(60);\n\tv1.add(70);\n\tv1.add(80);\n\tv1.add(90);\n\t\tv1.add(10);\n\t\tv1.add(11);\n\t\tArrayList a1=new ArrayList(v1);\n\t\ta1.add(200);\n\t\tSystem.out.println(a1);\n\t\n\n\n\t}", "public FSVariableBox(VisualNode vNode) {\r\n\t\tvisualNode = vNode;\r\n\t\tvisualStates = new HashMap<Integer, VisualState>();\r\n\t\tcreateVisualStates();\r\n\t}", "public BaseObservable() {\n obs = new Vector<>();\n }", "public VariableView getVarView() {\n \t\treturn this.varView;\n \t}", "public Set<Object> getVariables() {\n return new HashSet<>(constraints.keySet());\n }", "public ListVS<V> getValues() {\n ListVS<V> result = new ListVS<V>(getUniverse());\n for (V value : this.entries.values()) {\n result = result.add(value);\n }\n return result;\n }", "private Vector(double x, double y){\n this.x = x;\n this.y = y;\n }", "@Test\n\tpublic void testConstructorForVectorInput()\n\t{\n\t\tfinal Object rawData = new Object();\n\t\tfinal String id = \"TestId\";\n\t\tVector<Variable> vars = new Vector<>();\n\t\tfinal Variable var = new Variable();\n\t\tvars.addElement(var);\n\t\tRawDataEvent testObj = new RawDataEvent(rawData, id, vars);\n\n\t\tassertEquals(vars, testObj.getVarObjects());\n\t\tassertEquals(var, testObj.getVarObjects().get(0));\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\n\t\tvars = new Vector<>();\n\t\ttestObj = new RawDataEvent(rawData, id, vars);\n\t\tassertEquals(vars, testObj.getVarObjects());\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\t}", "public IAspectVariable<V> createNewVariable(PartTarget target);", "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}", "private void genSaveVectorCode(String name, String classSimpleName, boolean primitive, int dimensions, String cppType) {\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n\n for (int i = 1; i <= dimensions; i++) {\n\n String itVarName = \"i\" + i + \"_\" + name;\n String vVarName = \"v\" + i + \"_\" + name;\n\n // another for(;;) loop...\n String vectorType = vectorCppTypeName(dimensions + 1 - i, cppType);\n\n if (i == 1) {\n save.println(\"\\t// \" + vectorType + \" \" + name);\n genDebug(save, \"\\tstd::cout << \\\"save \" + vectorType + \" \" + name + \"\\\" << std::endl;\");\n }\n\n if (i > 1) {\n // inside a for loop, inner vector variable initialized by\n // dereferencing iterator\n save.println(tabs + vectorType + \"& \" + vVarName + \" = (*i\" + (i - 1) + \"_\" + name + \");\");\n } else {\n // outside for loop, inner vector variable initialized to member\n // variable\n save.println(tabs + vectorType + \"& \" + vVarName + \" = this->\" + name + \";\");\n }\n\n save.println(tabs + \"int \" + vVarName + \"_length = \" + vVarName + \".size();\");\n\n save.println();\n save.println(tabs + OUTSTREAM_VAR_NAME + \".writeInt(\" + vVarName + \"_length);\");\n\n genDebugDumpValue(save, vVarName + \"_length\", tabs);\n\n save.println();\n save.println(tabs + vectorType + \"::iterator \" + itVarName + \";\");\n save.println(tabs + \"for( \" + itVarName + \" = \" + vVarName + \".begin(); \" + itVarName + \" != \" + vVarName\n + \".end(); ++\" + itVarName + \" ){\");\n\n tabLevel++;\n tabs = tabs(tabLevel);\n\n if (i == dimensions) {\n if (primitive || classSimpleName.equals(\"String\")) {\n save.println(tabs + cppType + \" v\" + i + \" = (*\" + itVarName + \");\");\n save.println(tabs + genWriteCode(\"v\" + i, cppType));\n } else {\n // save.println( tabs + type + \" v\" + i + \" = (*\" +\n // itVarName + \");\" );\n // save.println( tabs + \"v\" + i + \".save( output );\");\n save.println(tabs + itVarName + \" -> save( \" + OUTSTREAM_VAR_NAME + \" );\");\n }\n }\n\n if (i < dimensions) {\n } else {\n if (i > 1) {\n // not outside outer for(;;) loop\n // bottom\n }\n }\n }\n\n for (int i = 0; i < dimensions; i++) {\n tabLevel--;\n tabs = tabs(tabLevel);\n save.println(tabs + \"}\");\n }\n }", "public Entrepot(Vector v){\r\n\t\tthis.id =(Integer)v.get(0);\r\n\t\tthis.localisation=new Localisation(\r\n\t\t\t\t(Integer)v.get(1),\r\n\t\t\t\t(String)v.get(2),\r\n\t\t\t\t(String)v.get(3),\r\n\t\t\t\t(String)v.get(4));\r\n\t\tthis.telephone=(String)v.get(5);\r\n\t}", "@Override\n public List<String> getVariables() {\n return super.getVariables();\n }", "public static void main(String[] args) {\n net.mindview.simple.Vector vector = new net.mindview.simple.Vector();\n java.util.Vector vector1 = new java.util.Vector<>();\n }", "void mo54413a(int i, C20254v vVar);", "public float[] getVec() {\n return vec;\n }", "public Portlets() \r\n {\r\n super();\r\n _portletList = new Vector();\r\n }", "public final Instruction vector_op() throws RecognitionException {\r\n Instruction inst = null;\r\n\r\n\r\n Token it1=null;\r\n Token it2=null;\r\n Token it3=null;\r\n Token i1=null;\r\n Token it4=null;\r\n Token i2=null;\r\n Constant v0 =null;\r\n\r\n Type vt1 =null;\r\n\r\n Constant v1 =null;\r\n\r\n Constant e1 =null;\r\n\r\n Type vt2 =null;\r\n\r\n Constant v2 =null;\r\n\r\n Type et1 =null;\r\n\r\n Constant e2 =null;\r\n\r\n Constant e3 =null;\r\n\r\n Type vt3 =null;\r\n\r\n Constant v3 =null;\r\n\r\n Type vt4 =null;\r\n\r\n Constant v4 =null;\r\n\r\n Type vt5 =null;\r\n\r\n\r\n\r\n int opcode=0;\r\n Constant dest;\r\n List<Type> types = new ArrayList<Type>();\r\n List<Constant> operands = new ArrayList<Constant>();\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:284:5: (v0= variable '=' ( 'extractelement' vt1= vector_type v1= variable ',' it1= INTEGER_TYPE e1= expression | 'insertelement' vt2= vector_type v2= variable ',' et1= element_type e2= expression ',' it2= INTEGER_TYPE e3= expression | 'shufflevector' vt3= vector_type v3= variable ',' vt4= vector_type v4= variable ',' vt5= vector_type '<' it3= INTEGER_TYPE i1= INTEGER ( ',' it4= INTEGER_TYPE i2= INTEGER )* '>' ) )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:284:7: v0= variable '=' ( 'extractelement' vt1= vector_type v1= variable ',' it1= INTEGER_TYPE e1= expression | 'insertelement' vt2= vector_type v2= variable ',' et1= element_type e2= expression ',' it2= INTEGER_TYPE e3= expression | 'shufflevector' vt3= vector_type v3= variable ',' vt4= vector_type v4= variable ',' vt5= vector_type '<' it3= INTEGER_TYPE i1= INTEGER ( ',' it4= INTEGER_TYPE i2= INTEGER )* '>' )\r\n {\r\n pushFollow(FOLLOW_variable_in_vector_op1554);\r\n v0=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n dest = v0;\r\n\r\n match(input,47,FOLLOW_47_in_vector_op1557); \r\n\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:285:6: ( 'extractelement' vt1= vector_type v1= variable ',' it1= INTEGER_TYPE e1= expression | 'insertelement' vt2= vector_type v2= variable ',' et1= element_type e2= expression ',' it2= INTEGER_TYPE e3= expression | 'shufflevector' vt3= vector_type v3= variable ',' vt4= vector_type v4= variable ',' vt5= vector_type '<' it3= INTEGER_TYPE i1= INTEGER ( ',' it4= INTEGER_TYPE i2= INTEGER )* '>' )\r\n int alt43=3;\r\n switch ( input.LA(1) ) {\r\n case 63:\r\n {\r\n alt43=1;\r\n }\r\n break;\r\n case 71:\r\n {\r\n alt43=2;\r\n }\r\n break;\r\n case 80:\r\n {\r\n alt43=3;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 43, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt43) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:285:7: 'extractelement' vt1= vector_type v1= variable ',' it1= INTEGER_TYPE e1= expression\r\n {\r\n match(input,63,FOLLOW_63_in_vector_op1566); \r\n\r\n pushFollow(FOLLOW_vector_type_in_vector_op1570);\r\n vt1=vector_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_variable_in_vector_op1574);\r\n v1=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,44,FOLLOW_44_in_vector_op1576); \r\n\r\n it1=(Token)match(input,INTEGER_TYPE,FOLLOW_INTEGER_TYPE_in_vector_op1580); \r\n\r\n pushFollow(FOLLOW_expression_in_vector_op1584);\r\n e1=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n opcode = InstType.extractEleInst; \r\n types.add(vt1); operands.add(v1); \r\n String n = (it1!=null?it1.getText():null); n=n.substring(1,n.length()); types.add(typeFactory.getIntNType(Integer.parseInt(n))); operands.add(e1);\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:289:7: 'insertelement' vt2= vector_type v2= variable ',' et1= element_type e2= expression ',' it2= INTEGER_TYPE e3= expression\r\n {\r\n match(input,71,FOLLOW_71_in_vector_op1603); \r\n\r\n pushFollow(FOLLOW_vector_type_in_vector_op1607);\r\n vt2=vector_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_variable_in_vector_op1611);\r\n v2=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,44,FOLLOW_44_in_vector_op1613); \r\n\r\n pushFollow(FOLLOW_element_type_in_vector_op1617);\r\n et1=element_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_vector_op1621);\r\n e2=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,44,FOLLOW_44_in_vector_op1623); \r\n\r\n it2=(Token)match(input,INTEGER_TYPE,FOLLOW_INTEGER_TYPE_in_vector_op1627); \r\n\r\n pushFollow(FOLLOW_expression_in_vector_op1631);\r\n e3=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n opcode = InstType.insertEleInst; \r\n types.add(vt2); operands.add(v2); \r\n types.add(et1); operands.add(e2);\r\n String n = (it2!=null?it2.getText():null); n=n.substring(1,n.length()); types.add(typeFactory.getIntNType(Integer.parseInt(n))); operands.add(e3);\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:294:7: 'shufflevector' vt3= vector_type v3= variable ',' vt4= vector_type v4= variable ',' vt5= vector_type '<' it3= INTEGER_TYPE i1= INTEGER ( ',' it4= INTEGER_TYPE i2= INTEGER )* '>'\r\n {\r\n match(input,80,FOLLOW_80_in_vector_op1649); \r\n\r\n pushFollow(FOLLOW_vector_type_in_vector_op1653);\r\n vt3=vector_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_variable_in_vector_op1657);\r\n v3=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,44,FOLLOW_44_in_vector_op1659); \r\n\r\n pushFollow(FOLLOW_vector_type_in_vector_op1663);\r\n vt4=vector_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_variable_in_vector_op1667);\r\n v4=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,44,FOLLOW_44_in_vector_op1669); \r\n\r\n pushFollow(FOLLOW_vector_type_in_vector_op1673);\r\n vt5=vector_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n opcode = InstType.shuffleVecInst;\r\n types.add(vt3); operands.add(v3);\r\n types.add(vt4); operands.add(v4);\r\n types.add(vt5);\r\n\r\n match(input,46,FOLLOW_46_in_vector_op1693); \r\n\r\n it3=(Token)match(input,INTEGER_TYPE,FOLLOW_INTEGER_TYPE_in_vector_op1697); \r\n\r\n i1=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_vector_op1701); \r\n\r\n String n = (it3!=null?it3.getText():null); n=n.substring(1,n.length()); types.add(typeFactory.getIntNType(Integer.parseInt(n)));\r\n operands.add(valueFactory.createConstantValue(SimpleConstantValue.intConst, (i1!=null?i1.getText():null)));\r\n\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:302:8: ( ',' it4= INTEGER_TYPE i2= INTEGER )*\r\n loop42:\r\n do {\r\n int alt42=2;\r\n int LA42_0 = input.LA(1);\r\n\r\n if ( (LA42_0==44) ) {\r\n alt42=1;\r\n }\r\n\r\n\r\n switch (alt42) {\r\n \tcase 1 :\r\n \t // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:302:9: ',' it4= INTEGER_TYPE i2= INTEGER\r\n \t {\r\n \t match(input,44,FOLLOW_44_in_vector_op1722); \r\n\r\n \t it4=(Token)match(input,INTEGER_TYPE,FOLLOW_INTEGER_TYPE_in_vector_op1726); \r\n\r\n \t i2=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_vector_op1730); \r\n\r\n \t String n2 = (it4!=null?it4.getText():null); n2=n2.substring(1,n2.length()); types.add(typeFactory.getIntNType(Integer.parseInt(n2)));\r\n \t operands.add(valueFactory.createConstantValue(SimpleConstantValue.intConst, (i2!=null?i2.getText():null)));\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop42;\r\n }\r\n } while (true);\r\n\r\n\r\n match(input,48,FOLLOW_48_in_vector_op1752); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n inst = instFactory.createSimpleInst(dest, opcode, operands, types);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return inst;\r\n }", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "public VOIVector(int initialsize) {\r\n super(initialsize);\r\n }", "public Vector getControllers() {\n return (Vector) this.controllers.clone();\n }", "ElementVariable(IntVar index, IntVar[] list, IntVar value) {\n\n\t\tthis(index, list, value, 0);\n\n\t}", "public static void main(String[] args) {\n\t\tVector V = new Vector();\n\t\tSystem.out.println(V.capacity());\n\t\n\t\tfor(int i=0; i<10; i++) {\n\t\t\tV.addElement(i);\n\t\t}\n\t\tSystem.out.println(V.capacity());\n\t\tV.addElement(\"khushbu\");\n\t\tSystem.out.println(V.capacity());\n\t\tSystem.out.println(V);\n\t\tV.addElement(\"Rameshvar\");\n\t\tSystem.out.println(V.capacity());\n\t\tSystem.out.println(V);\n\t\tV.addElement(\"Bandewar\");\n\t\tSystem.out.println(V.capacity());\n\t\tSystem.out.println(V);\n\t}", "private void updateVars()\n {\n\n }", "protected Set<AeScriptVarDef> findVariableReferences() {\r\n AeXPathVariableNodeVisitor visitor = new AeXPathVariableNodeVisitor();\r\n getXPathAST().visitAll(visitor);\r\n return visitor.getVariableReferences();\r\n }" ]
[ "0.7182727", "0.68140054", "0.63134015", "0.61732507", "0.5964564", "0.5962124", "0.59618956", "0.59567314", "0.59126073", "0.5867643", "0.5834599", "0.5756596", "0.56916475", "0.567753", "0.56731063", "0.5670798", "0.561194", "0.5611228", "0.5573587", "0.55066234", "0.55029505", "0.54852164", "0.5483793", "0.54832244", "0.5462676", "0.54620516", "0.5446007", "0.54144716", "0.5403254", "0.5401968", "0.53972703", "0.53969836", "0.5386386", "0.536262", "0.534416", "0.5329163", "0.5302367", "0.5300729", "0.5292538", "0.5277874", "0.52420807", "0.522594", "0.5207595", "0.5203391", "0.51917106", "0.5188347", "0.5185528", "0.51759535", "0.51742256", "0.5163843", "0.5158607", "0.51571083", "0.51546144", "0.5152634", "0.514681", "0.51446176", "0.5136737", "0.5136737", "0.5130681", "0.51212883", "0.51146674", "0.5113005", "0.5109531", "0.5109457", "0.5109382", "0.51009333", "0.5100578", "0.510038", "0.50958025", "0.50935614", "0.5092743", "0.5080869", "0.50615495", "0.5060535", "0.50585884", "0.5052869", "0.5050704", "0.5050671", "0.50438243", "0.5037507", "0.50373524", "0.50309", "0.5026302", "0.5023176", "0.5015795", "0.49994186", "0.4993892", "0.49918956", "0.4985072", "0.4978518", "0.49756387", "0.4964844", "0.49613976", "0.49589962", "0.49579138", "0.495236", "0.49444166", "0.493962", "0.4932111", "0.49301878" ]
0.61519516
4
Create a vector with fixed modifications, mind they will only contain the modification type and location!
private void generateFModVector(String aFixedModifications_ParameterSection) { //Acetyl (K),Carbamidomethyl (C) FixedModification lF; ArrayList lFixedMods = new ArrayList(); StringTokenizer st = new StringTokenizer(aFixedModifications_ParameterSection, ","); while (st.hasMoreTokens()) { lFixedMods.add(st.nextToken()); } for (int i = 0; i < lFixedMods.size(); i++) { String lStringF = (String) lFixedMods.get(i); String lType = lStringF.substring(0, lStringF.indexOf(' ')); String lLocation = lStringF.substring(lStringF.indexOf('(') + 1, lStringF.indexOf(')')); String lShortType = getShortType(lStringF); int lModificationID = i + 1; lF = new FixedModification(lType, lShortType, lLocation, lModificationID); iFixedModifications.add(lF); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract ImmutableVector getImmutableVector();", "private void generateFModVector(ArrayList aFModStringArrayList) {\n StringTokenizer st = null;\n String lStringF = null;\n // Run every element in the aFModStringArrayList trough a for loop.\n // Create a FixedModification instance at the end of each loop.\n // Put the instance into the vector.\n for (int i = 0; i < aFModStringArrayList.size(); i++) {\n // Save the value of the StringArrayList in this variable and refresh each time it gets trough the loop.\n lStringF = (String) aFModStringArrayList.get(i);\n st = new StringTokenizer(lStringF, \",\");\n FixedModification lF = null;\n\n // 1. First element in the StringTokenizer is the mass.\n double lMass = Double.parseDouble(st.nextToken());\n\n // 2. Second element in the StringTokenizer is the type and location.\n String lTypeAndLocation = st.nextToken().trim();\n // We only need the type because the location is allready in the next token.\n String lType = parseFixedModName(lTypeAndLocation);\n // The type is also used to get the ShortType notation.\n String lShortType = getShortType(lTypeAndLocation);\n\n // 3. Third element in the StringTokenizer is the location.\n String lLocation = st.nextToken();\n\n // 4. The ModificationID runs parrallel with the for-loop.\n int lModificationID = i + 1;\n\n // 5. Finally create a new Fixed modification instance.\n lF = new FixedModification(lType, lShortType, lMass, lLocation, lModificationID);\n\n // 6. add the instance to this this class its VariableModification Vector.\n iFixedModifications.add(lF);\n }\n }", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Vector getFixedModifications() {\n return iFixedModifications;\n }", "public void modifierVie(int modificationVie);", "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "@Override\n public void update(float delta) {\n // Make sure to COPY the vector and not copy the reference\n position = new Vector3f(entity.getPosition()).add(offset);\n }", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "private void generateVModVector(ArrayList aVModStringArrayList) {\n StringTokenizer st = null;\n String lStringV = null;\n // Run every element in the aVModStringArrayList trough a for loop.\n // Create a VariableModification instance at the end of each loop.\n // Put the instance into the vector.\n for (int i = 0; i < aVModStringArrayList.size(); i++) {\n // Save the value of the StringArrayList in this variable and refresh each time it gets trough the loop.\n lStringV = (String) aVModStringArrayList.get(i);\n st = new StringTokenizer(lStringV, \",\");\n VariableModification lV = null;\n\n // 1. First element in the String is the mass.\n double lMass = Double.parseDouble(st.nextToken());\n\n // 2. Second element in the String is the type AND location.\n String lTypeAndLocation = st.nextToken().trim();\n // 2.a)\n // Use this token as the key to get the shortend notation of the modification.\n String lShortType = getShortType(lTypeAndLocation);\n\n // 2.b)\n // throw lTypeAndLocation to parseVariableModName method and\n // get a String[] in return containing the type @[0] and the location @[1]\n String[] lNameArray = parseVariableModName(lTypeAndLocation);\n String lType = lNameArray[0].trim();\n String lLocation = lNameArray[1];\n if (lLocation != null) {\n lLocation = lLocation.trim();\n }\n\n // 3. Third element in the StringTokenizer is the (possible) Neutralloss.\n double lNeutralLoss = Double.parseDouble(st.nextToken());\n\n // 4. The ModificationID runs parrallel with the for-loop.\n int lModificationID = i + 1;\n\n // 5. Finally create a new Variable modification instance.\n lV = new VariableModification(lType, lShortType, lMass, lNeutralLoss, lLocation, lModificationID);\n\n // 6. add the instance to this this class its VariableModification Vector.\n iVariableModifications.add(lV);\n }\n }", "@Secured({ \"GROUP_USER\", \"ACL_SECURABLE_EDIT\" })\n ExpressionExperiment addRawVectors( ExpressionExperiment eeToUpdate,\n Collection<RawExpressionDataVector> newVectors );", "public Vec clone();", "private void generateMovementVector() {\r\n\r\n\t\t// load the cell's old targeting vector and target location\r\n\t\tCellMovementVector oldTargetingVector = me.getTargetingVector();\r\n\t\tnewTargetX = me.getTargetX();\r\n\t\tnewTargetY = me.getTargetY();\r\n\r\n\t\tString oldBehaviorType = me.getCurrBehavior(); // the behavior the cell had on the previous update\r\n\t\tString newBehaviorType = sourceBehavior.getBehaviorType(); // the behavior which this order will apply\r\n\r\n\t\t// depending on the movement-type behavior; calculate the new target coordinates\r\n\t\t// and vector\r\n\r\n\t\tif (newBehaviorType.equals(\"pursue\")) { // pursuit: move along a straight line to the target cell\r\n\r\n\t\t\t// for pursuit, simply set the target coordinates to the location of the target\r\n\t\t\t// cell\r\n\t\t\t// movement vector scalar remains at default (1)\r\n\t\t\tnewTargetX = target.getX();\r\n\t\t\tnewTargetY = target.getY();\r\n\r\n\t\t} else if (newBehaviorType.equals(\"wander\")) { // wander: generate a random vector using the current position\r\n\r\n\t\t\t// if we just started wandering or as we are approaching our last wander target,\r\n\t\t\t// choose a new random target location\r\n\t\t\t// also has a 15% chance to choose a new target location regardless, to prevent getting stuck\r\n\t\t\tif (!oldBehaviorType.equals(\"wander\") || oldTargetingVector.getMagnitude() < 5 || me.getRNG().nextInt(100) < 14) {\r\n\t\t\t\tnewTargetX = me.getX() + (me.getRNG().nextDouble() - 0.5) * 200;\r\n\t\t\t\tnewTargetY = me.getY() + (me.getRNG().nextDouble() - 0.5) * 200;\r\n\r\n\t\t\t} else if (oldBehaviorType.equals(\"wander\")) { // if we're already wandering, shuffle our destination\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// slightly\r\n\t\t\t\tnewTargetX = me.getTargetX() + (me.getRNG().nextDouble() - 0.5) * 6;\r\n\t\t\t\tnewTargetY = me.getTargetY() + (me.getRNG().nextDouble() - 0.5) * 6;\r\n\t\t\t}\r\n\r\n\t\t} else if (newBehaviorType.equals(\"evade\")) { // evasion: like pursuit, but in the opposite direction\r\n\r\n\t\t\t// target a point in the opposite direction of the threat\r\n\t\t\t// movement vector scalar default at 1\r\n\t\t\tnewTargetX = 2 * me.getX() - target.getX();\r\n\t\t\tnewTargetY = 2 * me.getY() - target.getY();\r\n\r\n\t\t} else if (newBehaviorType.equals(\"hunt\")) { // hunt: like pursuit, but with an extra large vector\r\n\r\n\t\t\t// target our victim, like with pursuit\r\n\t\t\tnewTargetX = target.getX();\r\n\t\t\tnewTargetY = target.getY();\r\n\t\t\t// but we can expend a burst of energy to chase them down\r\n\t\t\tvectorScalar = 3;\r\n\r\n\t\t} else if (newBehaviorType.equals(\"sleep\")) { // sleep: do nothing\r\n\t\t\t\r\n\t\t\tvectorScalar = 0;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"WARNING: Unrecognized behavior: \" + newBehaviorType + \".\");\r\n\t\t}\r\n\r\n\t\t// correct the vector to avoid pointing out of the petri dish (leads to cell\r\n\t\t// stuck on wall)\r\n\t\tif (newTargetX < 15) {\r\n\t\t\tnewTargetX = 15;\r\n\t\t} else if (newTargetX > me.getPetri().getSimulationWidth() - 15) {\r\n\t\t\tnewTargetX = me.getPetri().getSimulationWidth() - 15;\r\n\t\t}\r\n\t\tif (newTargetY < 15) {\r\n\t\t\tnewTargetY = 15;\r\n\t\t} else if (newTargetY > me.getPetri().getSimulationHeight() - 15) {\r\n\t\t\tnewTargetY = me.getPetri().getSimulationHeight() - 15;\r\n\t\t}\r\n\r\n\t\tnewTargetingVector = me.getVectorToTarget(newTargetX, newTargetY); // if no changes were made to the targetX and\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Y, the cell will continue moving along\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the old path (based on old target coords)\r\n\t}", "public Vector getVariableModifications() {\n return iVariableModifications;\n }", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tPilaVector p = new PilaVector();\n\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\tp.vector.add(this.vector.get(i));\n\t\t}\n\t\treturn p;\n\t}", "public ModificationList(ArrayList aFModStringArrayList, ArrayList aVModStringArrayList, String aFixedModifications_ParameterSection) {\n generateVModVector(aVModStringArrayList);\n if (aFixedModifications_ParameterSection != null) {\n generateFModVector(aFixedModifications_ParameterSection);\n }\n }", "public void modify() {\n }", "@Override\n public Vector3 clone()\n {\n return new Vector3(this);\n }", "VectorType11 getVector();", "public MyVector() {\n\t\tarr = new int[10];\n\t\tend = 0;\n\t}", "public ModificationList(ArrayList aFModStringArrayList, ArrayList aVModStringArrayList) {\n generateVModVector(aVModStringArrayList);\n generateFModVector(aFModStringArrayList);\n }", "private static FieldVector createTimestampVector(int size, Calendar offset, long interval, int nullIndex, BufferAllocator allocator) {\n TimeStampSecTZVector vector = new TimeStampSecTZVector(\"F_TIMESTAMP\", allocator, \"GMT\");\n vector.allocateNew();\n vector.setValueCount(size);\n long offsetMillis = offset.getTimeInMillis();\n for (int i = 0; i < size; i ++) {\n if (i == nullIndex) {\n vector.setNull(i);\n } else {\n vector.set(i, offsetMillis + i * interval);\n }\n }\n return vector;\n }", "public Vector toVector(){\r\n\t\tVector v = new Vector();\r\n\r\n\t\t// ATTENTION l'ordre est très important !!\r\n\t\t// l'ordre doit être :\r\n\t\t// id, id localisation, adresse, code postal, ville, telephone\r\n\r\n\t\tv.add(id);\r\n\t\tv.add(localisation.getId());\r\n\t\tv.add(localisation.getAdresse());\r\n\t\tv.add(localisation.getCodePostal());\r\n\t\tv.add(localisation.getVille());\r\n\t\tv.add(telephone);\r\n\r\n\t\treturn v;\r\n\t}", "@Override\n\tpublic void modify() {\n\t\t\n\t}", "public Vector3 clone(){\r\n\t\tVector3 vec = new Vector3();\r\n\t\tvec.set(this.x, this.y, this.z);\r\n\t\treturn vec;\r\n\t}", "public static android.renderscript.Element createVector(android.renderscript.RenderScript rs, android.renderscript.Element.DataType dt, int size) { throw new RuntimeException(\"Stub!\"); }", "public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }", "public Vector clone()\r\n {\r\n Vector<O> v = new Vector<O>();\r\n \r\n VectorItem<O> vi = first;\r\n while (vi != null)\r\n {\r\n v.pushBack (vi.getObject());\r\n vi = vi.getNext();\r\n }\r\n \r\n return v;\r\n }", "public interface MutableIVData extends DataManipulator<MutableIVData, ImmutableIVData> {\n\n Value<Integer> hpIVS();\n Value<Integer> attackIVS();\n Value<Integer> defenseIVS();\n Value<Integer> spAttackIVS();\n Value<Integer> spDefenseIVS();\n Value<Integer> speedIVS();\n\n}", "public void SetVector(int[] v){ this.vector=v;}", "public Vector(boolean useGiven, double... elems) {\n\t\tif (useGiven) {\n\t\t\tthis.elements = elems;\n\t\t} else {\n\t\t\tthis.elements = new double[elems.length];\n\t\t\tfor (int i = elems.length - 1; i >= 0; i--) {\n\t\t\t\tthis.elements[i] = elems[i];\n\t\t\t}\n\t\t}\n\t\tdimensions = elems.length;\n\t}", "public void recalculateVector()\r\n {\r\n recalculateVector(destX, destY);\r\n }", "public Vector(double deltaX, double deltaY) {\n\t\tsuper();\n\t\tthis.deltaX = deltaX;\n\t\tthis.deltaY = deltaY;\n\t}", "public Vector at ( float x ) { return A.add(D.prod(x)); }", "@Override\n\tpublic void modify(int quantity) {\n\t}", "void doVector() {\n Vector<String> v = new Vector<>();//creating vector\n v.add( \"umesh\" );//method of Collection\n v.addElement( \"irfan\" );//method of Vector\n v.addElement( \"kumar\" );\n //traversing elements using Enumeration\n Enumeration e = v.elements(); // creates enumeration objects\n while (e.hasMoreElements()) { //\n System.out.println( e.nextElement() );\n }\n }", "public static void main(String[] args) {\n\t\tVector v1=new Vector(2,8);\n\t\tSystem.out.println(v1.capacity());\n\t\tv1.add(10);\n\t\tv1.add(20);\nv1.add(30);\n\tv1.add(40);\n\tv1.add(50);\n\tv1.add(60);\n\tv1.add(70);\n\tv1.add(80);\n\tv1.add(90);\n\t\tv1.add(10);\n\t\tv1.add(11);\n\t\tArrayList a1=new ArrayList(v1);\n\t\ta1.add(200);\n\t\tSystem.out.println(a1);\n\t\n\n\n\t}", "public VOIVector(int initialsize) {\r\n super(initialsize);\r\n }", "public void setItems(Object[] newItems)\n {\n items = new Vector(newItems.length);\n for (int i=0; i < newItems.length; i++)\n {\n items.addElement(newItems[i]);\n }\n }", "default void registerModification(Modification modification) {\n }", "private Vector(double x, double y){\n this.x = x;\n this.y = y;\n }", "@Secured({ \"GROUP_USER\", \"ACL_SECURABLE_EDIT\" })\n ExpressionExperiment replaceRawVectors( ExpressionExperiment ee, Collection<RawExpressionDataVector> vectors );", "public Vector<T> set(int aIndex, T aValue);", "void copyOffsetPosition (DVector3 pos);", "public VOIVector() {\r\n super();\r\n }", "public void modifierArgent(int modificationArgent);", "public abstract void mutate();", "public interface Vector<T> {\n\t/**\n\t * Return the length of the vector.\n\t * @return The number of elemets in the vector.\n\t */\n\tpublic int size();\n\t\n\t/**\n\t * Replace an element at specified index.\n\t * @param aIndex The index of the vector to replace.\n\t * @param aValue The replacement value.\n\t * @return A vector after the value replaced.\n\t */\n\tpublic Vector<T> set(int aIndex, T aValue);\n\t\n\t/**\n\t * Return an element at specified index.\n\t * @param aIndex The index of the vector to retrieve.\n\t * @return The element at the index.\n\t */\n\tpublic T get(int aIndex);\n\n\t/**\n\t * Add a scalar to this vector.\n\t * @param aScalar The scalar value to add.\n\t * @return The result of the operation.\n\t */\n\tpublic Vector<T> add(T aScalar);\n\n\t/**\n\t * Subtract a scalar from this vector.\n\t * @param aScalar The scalar value to subtract.\n\t * @return The result of the operation.\n\t */\n\tpublic Vector<T> subtract(T aScalar);\n\n\t/**\n\t * Multiply a scalar by this vector.\n\t * @param aScalar The scalar value to multiply by.\n\t * @return The result of the operation.\n\t */\n\tpublic Vector<T> multiply(T aScalar);\n\n\t/**\n\t * Divide a scalar by this vector.\n\t * @param aScalar The scalar value to divide by.\n\t * @return The result of the operation.\n\t */\n\tpublic Vector<T> divide(T aScalar);\n\n\t/**\n\t * Add two vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic Vector<T> add(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Subtract two vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic Vector<T> subtract(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Multiply two vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic Vector<T> multiply(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Add Divide vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic Vector<T> divide(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Calculate the dot product of two vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic T dotProduct(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Calculate the cross product of two vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic Vector<T> crossProduct(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Calculate the minimum value in the vector.\n\t * @return The minimum value.\n\t */\n\tpublic T min();\n\n\t/**\n\t * Calculate the maximum value in the vector.\n\t * @return The maximum value.\n\t */\n\tpublic T max();\n\n\t/**\n\t * Calculate the sum of all elements in the vector.\n\t * @return The sum of elements.\n\t */\n\tpublic T sum();\n\n\t/**\n\t * Calculate the mean value of all elements in the vector.\n\t * @return The mean of elements.\n\t */\n\tpublic T mean();\n\n\t/**\n\t * Calculate the median value of all elements in the vector.\n\t * @return The mean of elements.\n\t */\n\tpublic T median();\n\n\t/**\n\t * Calculate the mode value of all elements in the vector.\n\t * @return The mean of elements.\n\t */\n\tpublic T mode();\n\n\t/**\n\t * Calculate the square magnitude of the vector.\n\t * @return The square magnitude.\n\t */\n\tpublic T magnitudeSquared();\n\n\t/**\n\t * Calculate the magnitude of the vector.\n\t * @return The magnitude.\n\t */\n\tpublic T magnitude();\n\n\t/**\n\t * Normalise this vector.\n\t * @return The unit vector.\n\t */\n\tpublic Vector<T> normalise();\n\n\t/**\n\t * Normalise this vector.\n\t * @return The unit vector.\n\t */\n\tpublic T[] toArray();\n\t\n\t/**\n\t * Construct a new vector using elements contained in this one.\n\t * @param aIndices The indices of this vector to duplicate.\n\t * @return The resulting vector.\n\t */\n\tpublic Vector<T> swizzle(int[] aIndices);\n\t\n\t/**\n\t * Construct a new vector using elements contained in this one.\n\t * @param aIndices The indices of this vector to duplicate.\n\t * @return The resulting vector.\n\t */\n\tpublic Vector<T> swizzle(Vector<Integer> aIndices);\n}", "public VectorFloat subVector(int start, int length) {\n final VectorFloat v = new VectorFloat(length);\n for (int i = 0; i < length; i++) {\n v.storage[i] = storage[i + start];\n }\n return v;\n }", "private VectorArit CasteoVectores(VectorArit v, TipoPrimitivo t) {\r\n switch (t) {\r\n case STRING:\r\n return VectorToString(v);\r\n case NUMERIC:\r\n return VectorToDouble(v);\r\n case INTEGER:\r\n return VectorToInt(v);\r\n default:\r\n return v;\r\n }\r\n }", "private Vector getModifiedRows()\r\n {\r\n Vector vecUpdatedRows = new Vector();\r\n int rowCount = 0;\r\n \r\n /* CASE #607 Add deletes to the vector before inserts and updates to avoid \r\n * unique constraint error */\r\n \r\n if (vecDeletedRows.size() > 0 )\r\n {//append deleted rows to vecUpdatedRows\r\n for (int row = 0; row < vecDeletedRows.size(); row++)\r\n {\r\n vecUpdatedRows.add(vecDeletedRows.get(row));\r\n } \r\n } \r\n\r\n while(rowCount < tblProtoCorresp.getRowCount())\r\n {// check AC_TYPE field\r\n String tmpACType ;\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowCount), codeTableModel.getColumnCount()-1) != null)\r\n {\r\n vecUpdatedRows.add(getTableRow(rowCount)) ;\r\n }\r\n rowCount++ ;\r\n }//end while\r\n\r\n return vecUpdatedRows ;\r\n }", "public Vector add(Vector v, double dt){\n return new Vector(this.getX()+v.getX()*dt, this.getY()+v.getY()*dt, this.getZ()+v.getZ()*dt);\n }", "public abstract Vector4fc set(float x, float y, float z, float w);", "static TermVectorPosition of(int pos, PostingsEnum pe) throws IOException {\n Objects.requireNonNull(pe);\n\n int sOffset = pe.startOffset();\n int eOffset = pe.endOffset();\n if (sOffset >= 0 && eOffset >= 0) {\n return new TermVectorPosition(pos, sOffset, eOffset);\n }\n return new TermVectorPosition(pos);\n }", "protected Vector createVector(Number sequence, String seqName, int size) {\n BigDecimal nextSequence;\n BigDecimal increment = new BigDecimal(1);\n\n if (sequence instanceof BigDecimal) {\n nextSequence = (BigDecimal)sequence;\n } else {\n nextSequence = new BigDecimal(sequence.doubleValue());\n }\n\n Vector sequencesForName = new Vector(size);\n\n nextSequence = nextSequence.subtract(new BigDecimal(size));\n\n // Check for incorrect values return to validate that the sequence is setup correctly.\n // PRS 36451 intvalue would wrap\n if (nextSequence.doubleValue() < -1) {\n throw ValidationException.sequenceSetupIncorrectly(seqName);\n }\n\n for (int index = size; index > 0; index--) {\n nextSequence = nextSequence.add(increment);\n sequencesForName.addElement(nextSequence);\n }\n return sequencesForName;\n }", "public DmcAttribute<?> addModify(Object value) throws DmcValueException {\n DmcAttribute<?> attr = get(MetaDMSAG.__modify);\n if (attr == null)\n attr = new DmcTypeModifierMV(MetaDMSAG.__modify);\n \n setLastValue(attr.add(value));\n add(MetaDMSAG.__modify,attr);\n return(attr);\n }", "Position getNewPosition();", "public F64Vector(double[] values, int offset, int length) {\n this(length);\n System.arraycopy(values, offset, data, 0, length);\n }", "public List<Vector> swerveVectorCalculator(Vector translationVector, double rotation) {\n \tdouble xPerpendicular = X_PERPENDICULAR_CONSTANT;\n \tdouble yPerpendicular = Y_PERPENDICULAR_CONSTANT;\n \tif (headingControllerEnabled) {\n \t\txPerpendicular *= this.headingControllerOutput;\n \tyPerpendicular *= this.headingControllerOutput;\t\n \t} else {\n \t\txPerpendicular *= rotation;\n \tyPerpendicular *= rotation;\t\n \t}\n \t\n \tif (isFieldCentricDriveMode()) {\n \ttranslationVector.pushAngle(-getHeading());\n \t} \t\n \t\n \tList<Vector> moduleVector = new ArrayList<Vector>(Arrays.asList(\n \t\t\tnew Vector(translationVector.getX() + xPerpendicular, translationVector.getY() - yPerpendicular),\n \t\t\tnew Vector(translationVector.getX() - xPerpendicular, translationVector.getY() - yPerpendicular),\n \t\t\tnew Vector(translationVector.getX() - xPerpendicular, translationVector.getY() + yPerpendicular),\n \t\t\tnew Vector(translationVector.getX() + xPerpendicular, translationVector.getY() + yPerpendicular)\n \t\t\t));\n \t\n \tmoduleVector.stream().forEach(v -> v.scaleMagnitude((DEFAULT_DRIVE_POWER + ((MAX_DRIVE_POWER - DEFAULT_DRIVE_POWER) * OI.getTurboPower()))));\n \t\n \tdouble maxMagnitude = 0;\n \t\n \tfor (int i = 0; i < 4; i++) maxMagnitude = (moduleVector.get(i).getMagnitude() > maxMagnitude) ? moduleVector.get(i).getMagnitude() : maxMagnitude;\n \t\n \tdouble scaleFactor = ((maxMagnitude > 1.0) ? 1.0 / maxMagnitude : 1.0);\n \t\n \tmoduleVector.stream().forEach(v -> {\n \t\tv.scaleMagnitude(scaleFactor);\n \t\tif (v.getMagnitude() > 1.0) v.setMagnitude(1.0);\n \t});\n \treturn moduleVector;\n }", "public LorentzVector(LorentzVector vect){\n\t\tthis.vector = new Vector3(vect.px(), vect.py(), vect.pz());\n\t\tthis.energy = vect.e();\n\t}", "public Entrepot(Vector v){\r\n\t\tthis.id =(Integer)v.get(0);\r\n\t\tthis.localisation=new Localisation(\r\n\t\t\t\t(Integer)v.get(1),\r\n\t\t\t\t(String)v.get(2),\r\n\t\t\t\t(String)v.get(3),\r\n\t\t\t\t(String)v.get(4));\r\n\t\tthis.telephone=(String)v.get(5);\r\n\t}", "private Vector<PrivacySetting> createTestVectorPrivacySettings()\r\n\t{\n\t\tVector<PrivacySetting> vSettingsExpected = new Vector<PrivacySetting>();\r\n\t\tPrivacySetting settingOne = new PrivacySetting(1, \"descOne\", \"nameOne\", \"keyOne\", \"valueOne\");\r\n\t\tPrivacySetting settingTwo = new PrivacySetting(2, \"descTwo\", \"nameTwo\", \"keyTwo\", \"valueTwo\");\r\n\t\tvSettingsExpected.add(settingOne);\r\n\t\tvSettingsExpected.add(settingTwo);\r\n\t\treturn vSettingsExpected;\r\n\t}", "public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}", "@org.junit.Test\n public void inverser_vector() throws Exception {\n //voici un commentaire\n Vector<Integer> inppuut = new Vector<Integer>();\n inppuut.add(1);\n inppuut.add(2);\n inppuut.add(3);\n inppuut.add(4);\n\n Vector<Integer> expec = new Vector<Integer>();\n expec.add(4);\n expec.add(3);\n expec.add(2);\n expec.add(1);\n\n VectorHelper.inverser_vector(inppuut);\n assertEquals(expec, inppuut);\n\n }", "public DmcAttribute<?> addModify(Modifier value) {\n DmcAttribute<?> attr = get(MetaDMSAG.__modify);\n if (attr == null)\n attr = new DmcTypeModifierMV(MetaDMSAG.__modify);\n \n try{\n setLastValue(attr.add(value));\n add(MetaDMSAG.__modify,attr);\n }\n catch(DmcValueException ex){\n throw(new IllegalStateException(\"The type specific add() method shouldn't throw exceptions!\",ex));\n }\n return(attr);\n }", "public int[] getModifiedArray(int length, int[][] updates) {\n int[] result = new int[length];\n for (int[] update : updates) {\n int start = update[0];\n int end = update[1];\n int value = update[2];\n\n result[start] += value;\n if (end + 1 < length) {\n result[end + 1] = -value;\n }\n }\n int sum = 0;\n for (int i = 0; i < length; i++) {\n sum += result[i];\n result[i] = sum;\n }\n return result;\n }", "public Vector plus(Vector m) {\n\t\treturn new Vector((deltaX + m.getDeltaX()), (deltaY + m.getDeltaY()));\n\t}", "public Vector3 addAndCreate(Vector3 addition) {\n\t\treturn new Vector3(addition.x + this.x, addition.y + this.y, addition.z + this.z);\n\t}", "private static void setTest( int modifyAt\n ) {\n System.out.println(\n \"changed element \" + modifyAt + \" from \"\n + list.set( modifyAt, modifyAt + 1000) + \" to \"\n + list.get( modifyAt)\n );\n }", "Vector getZeroVector();", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "public static void generator(){\n int vector[]= new int[5];\r\n vector[10]=20;\r\n }", "protected <V> List<V> newObject(Collection<V> initialValues) {\n return new ArrayList<>(initialValues);\n }", "public Vector<T> swizzle(int[] aIndices);", "public RangeVector(RangeVector base) {\n int dimensions = base.values.length;\n this.values = Arrays.copyOf(base.values, dimensions);\n this.upper = Arrays.copyOf(base.upper, dimensions);\n this.lower = Arrays.copyOf(base.lower, dimensions);\n }", "private Vector initActionTypeVector() throws Exception {\n countCol = 0;\n actionTypeHeaderVector = new Vector();\n java.sql.Date date = null;\n Vector actionTypeVector = new Vector();\n ProtoActionAccessBeanTable table = new ProtoActionAccessBeanTable();\n ProtoActionAccessBean protoAction = new ProtoActionAccessBean();\n table.setProtoActionAccessBean(\n protoAction.findByProjecttypeOrderByOrderAsc(\n new Integer(projecttype.getProjecttype())));\n for (int i = 0; i < table.numberOfRows(); i++) {\n countCol++;\n protoAction = table.getProtoActionAccessBean(i);\n ProjectActionTypeAccessBean actionType = protoAction.getProjectActionType();\n actionTypeVector.add(actionType); //actionType\n\n actionTypeHeaderVector.add(\n actionType.getName()\n + (actionType.getResult() == null ? \"\" : \" (\" + actionType.getResult() + \")\"));\n //: (\"<b>\" + actionType.getResult()) + \"</b>\"));\n //: (\"&lt;\"+\"july:currmark\"+\"&gt;\"+ actionType.getResult()) + \"&lt;\"+\"/july:currmark\"+\"&gt;\"));\n //: (\"<july:currmark>\"+ actionType.getResult()) + \"</july:currmark>\"));\n\n }\n return actionTypeVector;\n}", "@Test\n public void getAngleVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getAngle() == 90);\n }", "public void learnVector(final Calendar when, final List<Double> vals) {\n throw new UnsupportedOperationException(\"Don't know what to do....\");\n }", "public static void main(String[] args) {\n\t\t\n\t\tVector v = new Vector();\n\t\tv.add(3);\n\t\tv.add(90);\n\t\tv.add(67);\n\t\tInteger arr[] = new Integer[3];\n\t\tv.copyInto(arr);\n\t\tfor(Integer num:arr) {\n\t\t\tSystem.out.println(num);\n\t\t}\n\t}", "public Vector(int v1, int v2, int v3) {\n\t\tx = v1;\n\t\ty = v2;\n\t\tz = v3;\n\t}", "@Override\r\n\tpublic void addElement(VOI o) {\r\n add(o); // add the voi to the vector\r\n }", "public Vector<T> swizzle(Vector<Integer> aIndices);", "ISModifyDataType createISModifyDataType();", "public void learnVector(final Calendar when, final double[] vals) {\n throw new UnsupportedOperationException(\"Don't know what to do....\");\n }", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "public IntVector prefix (int i) {\n return new ConstructedVector(i,this);\n }", "public Integer mutate(int index);", "public Vector transformTypes(Vector old_concepts, Vector parameters)\n {\n Vector old_types = (Vector)((Concept)old_concepts.elementAt(0)).types.clone();\n return old_types;\n }", "@Override\n public Point addVector(float[] vector) {\n this.x += vector[0];\n this.y += vector[1];\n setHeight(getHeight()+ vector[2]);\n return this;\n }", "Vec(double x, double y) {\n this.x = x; this.y = y;\n }", "public Vector()\r\n {\r\n // initialise instance variables\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "public void updateFireVector(){\n\t\tdouble difX = owner.getMouseX() - owner.getMidX();\n\t\tdouble difY = owner.getMouseY() - owner.getMidY();\n\t\tdouble magnitude = Math.pow(difX * difX + difY * difY, .5);\n//\t\tdouble newFireX = difX / magnitude;\n//\t\tdouble newFireY = difY / magnitude;\n//\t\tif(Math.abs(newFireX - fireX) > Math.abs(minChange)){\n//\t\t\tfireX = newFireX;\n//\t\t}\n//\t\tif(Math.abs(newFireY - fireY) > Math.abs(minChange)){\n//\t\t\tfireY = newFireY;\n//\t\t}\n\t\tfireX = difX / magnitude;\n\t\tfireY = difY / magnitude;\n//\t\tif(fireX < 0){\n//\t\t\tfacingRight = -1;\n//\t\t}\n//\t\telse{\n//\t\t\tfacingRight = 1;\n//\t\t}\n//\t\tSystem.out.println(fireX);\n//\t\tSystem.out.println(fireY);\n//\t\tSystem.out.println();\n\t}", "public Coordinates unitVector(Coordinates vector, Coordinates origin);", "public interface ComplexDopeVector\n\textends DopeVector, RealDopeVector\n{\n\n\n\t/**\n\t * Get the imaginary part of the specified index.\n\t * \n\t * @param index the index.\n\t * @return double the imaginary part.\n\t * @throws ArrayIndexOutOfBoundsException If <code>index</code> is out of\n\t * bounds.\n\t */\n\tpublic double getImaginary( int index )\n\t\tthrows ArrayIndexOutOfBoundsException;\n\n\n\t/**\n\t * Set the imaginary part of the specified number.\n\t * \n\t * @param value the value.\n\t * @param index the index.\n\t * @throws ArrayIndexOutOfBoundsException If <code>index</code> is out of\n\t * bounds.\n\t */\n\tpublic void setImaginary( double value, int index )\n\t\tthrows ArrayIndexOutOfBoundsException;\n\t\n\n}", "private Vector2d generateNewPositionForChild()\n {\n\n Random generator = new Random();\n List<Vector2d> freePositions = new LinkedList<>(); //tutaj przechowywane sa wolne pozycje wokol\n Vector2d position;\n Directions directionToAdd;\n\n for(int i = 0; i<8; i++)\n {\n directionToAdd = new Directions(i); //wykorzystujemy klase directions do generowania pozycji wokol\n position = this.position.add(directionToAdd.move());\n if(map.animalsAt(position).isEmpty())\n {\n freePositions.add(position);\n }\n }\n\n if(freePositions.isEmpty()) //jezeli nie ma wolnych pozycji\n {\n //jesli nie ma wolnych pozycji\n int x = generator.nextInt(8);\n directionToAdd = new Directions(x);\n return this.position.add(directionToAdd.move());\n }\n\n //jezeli mamy wolne pozycje to generujemy dowolna z listy\n int x = generator.nextInt(freePositions.size());\n Vector2d newPosition = freePositions.get(x);\n\n return newPosition;\n }", "public Vector add(Vector v){\n return new Vector(this.getX()+v.getX(), this.getY()+v.getY(), this.getZ()+v.getZ());\n }", "@Override\n\t\t\tpublic Vector getPosition() {\n\t\t\t\treturn new Vector(-2709.487, -4281.02, 3861.564); //-4409.0, 2102.0, -4651.0);\n\t\t\t}", "public Vector(double x, double y){\n this.x=x;\n this.y=y;\n }", "Vector<Vector<Object>> getDataVector();", "private void moveVector(double[] s, double c, List<Param> center) {\n Random gen = new Random();\n c *= gen.nextDouble();\n for (int i = 0; i < s.length; ++i) {\n center.get(i).add(new Double(c * s[i]).floatValue());\n }\n }" ]
[ "0.6180277", "0.5851003", "0.58347964", "0.57454205", "0.57330453", "0.5666968", "0.5666968", "0.56578606", "0.5596749", "0.55446124", "0.5420352", "0.54194176", "0.5382405", "0.53565013", "0.533994", "0.53296316", "0.53074837", "0.52907133", "0.5260661", "0.5255542", "0.52542603", "0.52448785", "0.52425784", "0.5232153", "0.52299887", "0.5210784", "0.5197234", "0.51915103", "0.5181487", "0.5150632", "0.5144239", "0.51044255", "0.50982606", "0.5092985", "0.50891995", "0.50841427", "0.5081532", "0.5080378", "0.5059403", "0.5048066", "0.5012662", "0.49971527", "0.49898043", "0.4987379", "0.49821705", "0.49677622", "0.49511513", "0.49426824", "0.49321616", "0.49059153", "0.49031985", "0.4899714", "0.48986453", "0.48957682", "0.4892647", "0.48815656", "0.48769733", "0.4874524", "0.48651046", "0.48557106", "0.48502535", "0.48482692", "0.48428053", "0.48389882", "0.48242348", "0.48213062", "0.48203048", "0.48185155", "0.4817099", "0.48160803", "0.4801643", "0.48005292", "0.4799816", "0.4794923", "0.47904852", "0.47897485", "0.47870183", "0.4785126", "0.47771418", "0.47744814", "0.47730824", "0.4770046", "0.4769604", "0.4769006", "0.47603974", "0.47564015", "0.47422606", "0.47420278", "0.47363734", "0.4735499", "0.4734447", "0.4734368", "0.47333103", "0.47266328", "0.47256008", "0.47156546", "0.47154462", "0.4713449", "0.47114417", "0.47109747" ]
0.604325
1
Returns this Vector holds the different FixedModificatins used in this Mascot search.
public Vector getFixedModifications() { return iFixedModifications; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateFModVector(String aFixedModifications_ParameterSection) {\n //Acetyl (K),Carbamidomethyl (C)\n FixedModification lF;\n ArrayList lFixedMods = new ArrayList();\n StringTokenizer st = new StringTokenizer(aFixedModifications_ParameterSection, \",\");\n while (st.hasMoreTokens()) {\n lFixedMods.add(st.nextToken());\n }\n for (int i = 0; i < lFixedMods.size(); i++) {\n String lStringF = (String) lFixedMods.get(i);\n String lType = lStringF.substring(0, lStringF.indexOf(' '));\n String lLocation = lStringF.substring(lStringF.indexOf('(') + 1, lStringF.indexOf(')'));\n String lShortType = getShortType(lStringF);\n int lModificationID = i + 1;\n\n lF = new FixedModification(lType, lShortType, lLocation, lModificationID);\n iFixedModifications.add(lF);\n }\n }", "public Vector getVariableModifications() {\n return iVariableModifications;\n }", "private void generateFModVector(ArrayList aFModStringArrayList) {\n StringTokenizer st = null;\n String lStringF = null;\n // Run every element in the aFModStringArrayList trough a for loop.\n // Create a FixedModification instance at the end of each loop.\n // Put the instance into the vector.\n for (int i = 0; i < aFModStringArrayList.size(); i++) {\n // Save the value of the StringArrayList in this variable and refresh each time it gets trough the loop.\n lStringF = (String) aFModStringArrayList.get(i);\n st = new StringTokenizer(lStringF, \",\");\n FixedModification lF = null;\n\n // 1. First element in the StringTokenizer is the mass.\n double lMass = Double.parseDouble(st.nextToken());\n\n // 2. Second element in the StringTokenizer is the type and location.\n String lTypeAndLocation = st.nextToken().trim();\n // We only need the type because the location is allready in the next token.\n String lType = parseFixedModName(lTypeAndLocation);\n // The type is also used to get the ShortType notation.\n String lShortType = getShortType(lTypeAndLocation);\n\n // 3. Third element in the StringTokenizer is the location.\n String lLocation = st.nextToken();\n\n // 4. The ModificationID runs parrallel with the for-loop.\n int lModificationID = i + 1;\n\n // 5. Finally create a new Fixed modification instance.\n lF = new FixedModification(lType, lShortType, lMass, lLocation, lModificationID);\n\n // 6. add the instance to this this class its VariableModification Vector.\n iFixedModifications.add(lF);\n }\n }", "public final ArrayList<VH> mo102895c() {\n return this.f80953d;\n }", "private double[] replacementVector(double[][] distanceMatrix) {\r\n double[] replacementVector = new double[distanceMatrix.length - 1];\r\n // Energy between archive member k and new solution\r\n double[] individualEnergy = new double[distanceMatrix.length - 1];\r\n // Sum of all individual energies\r\n double totalEnergy = 0.0;\r\n for (int i = 0; i < replacementVector.length; i++) {\r\n individualEnergy[i] = scalarization.getAttribute(archive.get(i)) / distanceMatrix[i][maxSize];\r\n totalEnergy += individualEnergy[i];\r\n }\r\n for (int i = 0; i < individualEnergy.length; i++) {\r\n replacementVector[i] = totalEnergy - individualEnergy[i];\r\n replacementVector[i] *= scalarization.getAttribute(archive.get(maxSize));\r\n }\r\n return replacementVector;\r\n }", "public double[] getCurrentMotorPositionsInCentimeters()\n {\n return finchController.getCurrentMotorPositionsInCentimeters();\n }", "protected java.util.Vector getFieldVector() throws Exception {\n java.util.Vector fieldVector = new java.util.Vector();\n Class c = getClass();\n while (c != Class.forName(\"java.lang.Object\")) {\n Field[] fields = c.getDeclaredFields();\n for (int i = fields.length - 1; i >= 0; i--) {\n fieldVector.add(0, fields[i]);\n }\n c = c.getSuperclass();\n }\n return fieldVector;\n }", "public gb_Vector3 getModOffset(){\n\t\treturn modOffset;\n\t}", "public List<String> getPTMs() {\n\n\t\tfinal List<String> modificationStrings = experimentList.getDifferentPeptideModificationNames();\n\t\tif (modificationStrings != null && !modificationStrings.isEmpty()) {\n\t\t\tfinal List<String> ret = new ArrayList<String>();\n\t\t\tfinal ControlVocabularyManager cvManager = OntologyLoaderTask.getCvManager();\n\t\t\tfinal ModReader preferredModifications = ModReader.getInstance();\n\t\t\tfor (final String modificationString : modificationStrings) {\n\t\t\t\tString modification = \"\";\n\t\t\t\tControlVocabularyTerm cvTerm = null;\n\t\t\t\tif (preferredModifications != null) {\n\t\t\t\t\tfinal List<PTM> mods = preferredModifications.getPTMListByEqualName(modificationString);\n\t\t\t\t\tif (mods != null && !mods.isEmpty()) {\n\t\t\t\t\t\tfinal String idPsiMod = mods.get(0).getAccession();\n\t\t\t\t\t\tcvTerm = PeptideModificationName.getInstance(cvManager)\n\t\t\t\t\t\t\t\t.getCVTermByAccession(new Accession(idPsiMod));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (cvTerm == null)\n\t\t\t\t\tcvTerm = PeptideModificationName.getInstance(cvManager)\n\t\t\t\t\t\t\t.getCVTermByPreferredName(modificationString);\n\n\t\t\t\tif (cvTerm != null) {\n\t\t\t\t\t// if it is from UNIMOD, try to convert to PSI MOD\n\t\t\t\t\tif (cvTerm.getCVRef().equals(UNIMODOntology.getCVLabel())) {\n\t\t\t\t\t\tlog.info(\"Converting \" + cvTerm.getTermAccession() + \" \" + cvTerm.getPreferredName()\n\t\t\t\t\t\t\t\t+ \" to PSI-MOD\");\n\t\t\t\t\t\tfinal PTM ptm = preferredModifications\n\t\t\t\t\t\t\t\t.getPTMbyAccession(cvTerm.getTermAccession().getAccession());\n\t\t\t\t\t\tif ((UNIMODOntology.getCVLabel() + \":\" + ptm.getAccession())\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(cvTerm.getTermAccession().toString())) {\n\t\t\t\t\t\t\tfinal ControlVocabularyTerm cvTerm2 = PeptideModificationName.getInstance(cvManager)\n\t\t\t\t\t\t\t\t\t.getCVTermByAccession(new Accession(ptm.getAccession()));\n\t\t\t\t\t\t\tif (cvTerm2 != null) {\n\t\t\t\t\t\t\t\tlog.info(cvTerm.getTermAccession() + \" \" + cvTerm.getPreferredName() + \" converter to \"\n\t\t\t\t\t\t\t\t\t\t+ cvTerm2.getTermAccession() + \" \" + cvTerm2.getPreferredName());\n\t\t\t\t\t\t\t\tcvTerm = cvTerm2;\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\n\t\t\t\t\t}\n\t\t\t\t\tmodification = \"[\" + cvTerm.getCVRef() + \",\" + cvTerm.getTermAccession().toString() + \",\"\n\t\t\t\t\t\t\t+ cvTerm.getPreferredName() + \",]\";\n\t\t\t\t} else {\n\t\t\t\t\t// userParam\n\t\t\t\t\tmodification = \"[,,\" + modificationString + \",]\";\n\t\t\t\t}\n\t\t\t\tret.add(ProteomeXchangeFilev2_1.MTD + TAB + \"modification\" + TAB + modification);\n\t\t\t}\n\t\t\treturn ret;\n\t\t} else {\n\t\t\tfinal List<String> ret = new ArrayList<String>();\n\t\t\tret.add(ProteomeXchangeFilev2_1.MTD + TAB + \"modification\" + TAB\n\t\t\t\t\t+ \"[PRIDE, PRIDE:0000398,No PTMs are included in the dataset,]\");\n\t\t}\n\t\treturn null;\n\t}", "public List<C0446fs> mo4741d() {\n return Collections.unmodifiableList(this.f1125c);\n }", "public float[] getVector() {\r\n\t\t\r\n\t\tfloat array[]=new float[12];\r\n\t\tint index=-1;\r\n\t\t\r\n\t\tfor(int i=0;i<4;i++) {\r\n\t\t\tfor(int j=0;j<3;j++) {\r\n\t\t\t\t++index;\r\n\t\t\t\tarray[index]=thecounts[i][j]; \r\n\t\t\t}\r\n\t\t}\r\n\t\treturn array;\r\n\t}", "public Vector<Integer> getGiven() {\n\t\treturn null;\n\t}", "public List<D> mo102893b() {\n return this.f80952c;\n }", "@Override\r\n\tdouble getBonificacao() {\n\t\treturn 0;\r\n\t}", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "@Override\n\tpublic double getBonificacao() {\n\t\treturn 0;\n\t}", "public abstract ParameterVector searchVector();", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tPilaVector p = new PilaVector();\n\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\tp.vector.add(this.vector.get(i));\n\t\t}\n\t\treturn p;\n\t}", "public List<String> mo13280v() {\n List<DmcDisclaimerLabel> list = this.f9145h0;\n if (list == null) {\n return null;\n }\n ArrayList arrayList = new ArrayList(C13187p.m40525a((Iterable) list, 10));\n for (DmcDisclaimerLabel X : list) {\n arrayList.add(X.mo12863X());\n }\n return arrayList;\n }", "public int[] getCurrentMotorPositions()\n {\n return finchController.getCurrentMotorPositions();\n }", "public float[] getVec() {\n return vec;\n }", "public double getStockFinal(long pv) {\n float entree = 0 ;\n float sortie = 0 ;\n\n ArrayList<Produit> produits = null ;\n if (pv==0) produits = produitDAO.getAll();\n else produits = produitDAO.getAllByPv(pv) ;\n\n ArrayList<Mouvement> mouvements = null;\n\n double valeur = 0 ;\n double total = 0 ;\n double quantite = 0 ;\n double cmpu = 0 ;\n double restant = 0 ;\n double qsortie = 0 ;\n double qentree = 0 ;\n // Vente par produit\n Mouvement mouvement = null ;\n Operation operation = null ;\n\n for (int i = 0; i < produits.size(); i++) {\n try {\n mouvements = mouvementDAO.getManyByProductInterval(produits.get(i).getId_externe(),DAOBase.formatter2.parse(datedebut),DAOBase.formatter2.parse(datefin)) ;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (mouvements != null){\n valeur = 0 ;\n quantite = 0 ;\n restant = 0 ;\n qentree = 0 ;\n cmpu = 0 ;\n qsortie = 0 ;\n\n for (int j = 0; j < mouvements.size(); j++) {\n mouvement = mouvements.get(j) ;\n operation = operationDAO.getOne(mouvement.getOperation_id()) ;\n if (operation==null || (operation.getAnnuler()==1 && operation.getDateannulation().before(new Date())) || operation.getTypeOperation_id().startsWith(OperationDAO.CMD)) continue;\n\n //if (pv!=0 && caisseDAO.getOne(operation.getCaisse_id()).getPointVente_id()!=pv) continue;\n if (j==0)\n if (mouvement.getRestant()==mouvement.getQuantite() && mouvement.getEntree()==0){\n restant = 0 ;\n }\n else restant = mouvement.getRestant() ;\n\n if (mouvement.getEntree()==0) {\n valeur -= mouvement.getPrixA() * mouvement.getQuantite() ;\n qentree += mouvement.getQuantite() ;\n cmpu = mouvement.getPrixA() ;\n }\n else {\n valeur += mouvement.getCmup() * mouvement.getQuantite() ;\n qsortie += mouvement.getQuantite() ;\n }\n /*\n if (restant!=0) cmpu = valeur / restant ;\n else cmpu = mouvement.getCmup() ;\n */\n }\n\n quantite = restant + qentree - qsortie ;\n total+=Math.abs(valeur) ;\n }\n }\n\n return total;\n }", "public final Collection<C14931j> mo37994b() {\n return this.f38612k.values();\n }", "public List<MathVarDec> getFields() {\n return fields;\n }", "public float[] BackSubstitution(){\n float[] solX = new float[this.NBrsEff];\n float temp;\n for (int i=this.NBrsEff-1; i>=0; i--){\n temp = this.M[i][this.NKolEff-1];\n for (int j=this.NKolEff-2; j>i; j--){\n temp -= solX[j] * this.M[i][j];\n }\n solX[i] = temp/this.M[i][i];\n System.out.println(\"SolX: \"+solX[i]);\n }\n return solX;\n }", "public Celda[][] getestadosiguientejardin(){\n\t\treturn vectorjardin;\r\n\t}", "public static NodoMVias nodoVacio() {\n return null;\n }", "static public List<GlobalSimilarityNode> getFunciones() {\n if (funciones == null) {\n addFunciones();\n }\n return funciones;\n }", "public abstract ImmutableVector getImmutableVector();", "public HashMap<Type, Double> getInversePossibilities() {\r\n\t\tHashMap<Type, Double> ret = new HashMap<Type, Double>();\r\n\t\tfor (Type t : Type.values()) ret.put(t, 0.0);\r\n\t\tfor (Type t : types) {\r\n\t\t\t//??? IS THIS CORRECT ??? --> Seems correct\r\n\t\t\t//get inverse of each relation that is 1.0 \r\n\t\t\tType inverseRelation = FuzzyAllenIntervalConstraint.getInverseRelation(t);\r\n\t\t\t\r\n\t\t\tHashMap<FuzzyAllenIntervalConstraint.Type, Double> possibilities = this.getPossibilities();\r\n\t\t\t\r\n\t\t\t//set poss of each inverse relation to 1.0\r\n\t\t\tret.put(inverseRelation, possibilities.get(t));\r\n\t\t\t\r\n\t\t\t//calculate the Freksa N of each inverse relation\r\n\t\t\tHashMap<FuzzyAllenIntervalConstraint.Type, Double> fr = new HashMap<FuzzyAllenIntervalConstraint.Type, Double>();\r\n\t\t\tfor(int i = 0; i < FuzzyAllenIntervalConstraint.freksa_neighbor[inverseRelation.ordinal()].length; i++)\r\n\t\t\t\tfr.put(FuzzyAllenIntervalConstraint.lookupTypeByInt(i), FuzzyAllenIntervalConstraint.getPossibilityDegree(FuzzyAllenIntervalConstraint.freksa_neighbor[inverseRelation.ordinal()][i]));\r\n\t\t\t\r\n\t\t\t//take the maximum between calculated Freksa N and previously added possibilities\r\n\t\t\t//(because this is an OR)\r\n\t\t\tfor(FuzzyAllenIntervalConstraint.Type t1: fr.keySet())\r\n\t\t\t\tret.put(t1, Math.max(ret.get(t1), fr.get(t1)));\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tSystem.out.println(\"=====================================\");\r\n\t\tSystem.out.println(\"DIRECT \" + this + \":\\n\" + this.possibilities);\r\n\t\tSystem.out.println(\"INVERSE:\\n\" + ret);\r\n\t\tSystem.out.println(\"=====================================\");\r\n\t\t*/\r\n\t\t\r\n\t\treturn ret;\r\n\t}", "VectorArray getNeutHar();", "public IDatatype getFixed() { \n\t\treturn myFixed;\n\t}", "public int getNbyMz() { return mByMz; }", "@Override\n public List<UnitModifier> getModifiers()\n {\n ArrayList<UnitModifier> output = new ArrayList<>();\n output.addAll(model.getModifiers());\n output.addAll(CO.getModifiers());\n output.addAll(unitMods);\n return output;\n }", "private void init(myVector[] _initSt, SnowGlobeWin.SolverType _solv) {\n\t\tcurIDX = 0;\t\t\t\t\t\t\t\t\t//cycling ptr to idx in arrays of current sim values\n\t\t\n\t\taPosition = new myVector[szAcc];\n\t\taLinMomentum = new myVector[szAcc];\n\t\taAngMomentum = new myVector[szAcc];\n\t\taForceAcc = new myVector[szAcc];\n\t\taTorqueAcc = new myVector[szAcc];\n\t\taOldPos = new myVector[szAcc];\n\t\taOldLinMmnt = new myVector[szAcc];\n\t\taOldAngMmnt = new myVector[szAcc];\n\t\taOldForceAcc = new myVector[szAcc];\n\t\taOldTorqueAcc = new myVector[szAcc];\n\t\t\n\t\tfor(int i=0;i<szAcc;++i){\n\t\t\taPosition[i] = new myVector();\n\t\t\taLinMomentum[i] = new myVector();\n\t\t\taAngMomentum[i] = new myVector();\n\t\t\taForceAcc[i] = new myVector();\n\t\t\taTorqueAcc[i] = new myVector();\n\t\t\taOldPos[i] = new myVector();\n\t\t\taOldLinMmnt[i] = new myVector();\n\t\t\taOldAngMmnt[i] = new myVector();\n\t\t\taOldForceAcc[i] = new myVector();\n\t\t\taOldTorqueAcc[i] = new myVector();\n\t\t}\n//\t\taPosition[0].set(_pos);\n//\t\taLinMomentum[0].set(_velocity);\n//\t\taAngMomentum[0].set(_velocity);\n//\t\taForceAcc[0].set(_forceAcc);\n//\t\taTorqueAcc.set(_forceAcc);\n//\t\taOldPos[0].set(_pos);\n//\t\taOldLinMmnt[0].set(_velocity);\n//\t\taOldAngMmnt[0].set(_velocity);\n//\t\taOldForceAcc[0].set(_forceAcc);\n//\t\taOldTorqueAcc[0].set(_forceAcc);\n\t\t\n\t\tsetOrigMass(mass);\n//\t\tinitPos = new myVector(_pos);\n//\t\tinitVel = new myVector(_velocity);\n\t\tsolveType = _solv;\n\t\tsolver = new mySolver( _solv);\n\t}", "public final Set<Class<?>> mo14296f() {\n return this.f9911a.zzazw();\n }", "public Invima getInvima(){\n\t\treturn invima;\n\t}", "private void estadoInicial(){\n double referencias[] = new double[sigmas.length];\n for(int i=0;i<sigmas.length;i++){\n referencias[i] = (ppl.limiteSuperiorR(i+1)+ppl.limiteInferiorR(i+1))/2;\n System.out.printf(\"limS:%g, limI:%g, Referencias[%d] = %g\\n\",ppl.limiteSuperiorR(i+1),ppl.limiteInferiorR(i+1),i,referencias[i]);\n }\n\n double Zc = ppl.Z(referencias[0],referencias[1]);\n TActual = Zc*0.2;\n System.out.printf(\"TActual:T%g \\n\",TActual);\n\n estadoMejor = new Estado(\n iteracionActual, \n TActual, \n referencias,\n Zc);\n\n calcularSoluciones(estadoMejor);\n calcularProbabilidadAceptacion(estadoMejor);\n\n historialEstados.add(estadoMejor);\n }", "final Object mo6080c() {\n return Float.valueOf(this.f2349i);\n }", "public int cima(){\n return VectorPila[cima];\n }", "public static Vector getGwmod() {\n\t\treturn null;\n\t}", "public ArrayList<Integer> obtenerYi(){\n ArrayList<Integer> res = new ArrayList<Integer>();\n int cont;\n \n for (float p:probabilidades){\n cont=0;\n while (Math.pow(base, cont)<1/p)\n cont++;\n res.add(cont);\n }\n return res;\n }", "public Vector listaTitulaciones()\n {\n try\n {\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM titulaciones WHERE activa='s'\";\n\n //Se crea un vector de asignaturas\n Vector vectorTitulaciones = new Vector();\n\n //Se ejecuta la query\n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n\n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n titulacion titulacion = new titulacion();\n\n titulacion.setCodigo(resultado.getString(\"codigo\"));\n titulacion.setTitulacion(resultado.getString(\"titulacion\"));\n\n //Se añade la asignatura al vector de asignaturas\n vectorTitulaciones.add(titulacion);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorTitulaciones;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las titulaciones de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public ArrayList<float []> getObjectPos(){\n ArrayList<float []> o_pos = new ArrayList<>();\n float [] pos = new float [3];\n for (int i = 0; i < field.length; i++){\n pos[0] = field[i].x;\n pos[1] = field[i].y;\n pos[2] = field[i].z;\n o_pos.add(pos);\n }\n return o_pos;\n }", "public C0088i mo289f() {\n return this.f272j;\n }", "public float getInteresFijo() {\r\n\t\treturn interesFijo;\r\n\t}", "public EstadoSimulacao[][] alvoSimulacao() {\n\n\t\tEstadoSimulacao[][] result = new EstadoSimulacao\n\t\t\t\t[this.quadricula.length][this.quadricula[0].length];\n\t\tfor (int i = 0 ; i < this.quadricula.length ; i++) {\n\t\t\tfor (int j = 0 ; j < this.quadricula[0].length ; j++) {\n\t\t\t\tswitch(this.quadricula[i][j]) {\n\t\t\t\tcase ESTRADA: case AGUA : case ARDIDO : \n\t\t\t\t\tresult[i][j] = EstadoSimulacao.OBSTACULO;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CASA: case TERRENO : \n\t\t\t\t\tresult[i][j] = EstadoSimulacao.LIVRE;\n\t\t\t\t\tbreak;\t\t\t\t \n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "public List<TermVectorPosition> getPositions() {\n return positions;\n }", "public INodo copy(){\n INodo copia = new FuncionMultiplicacion(getRaiz(), getNHijos());\n copia.setEtiqueta(getEtiqueta());\n for (INodo aux : getDescendientes()){\n copia.incluirDescendiente(aux.copy());\n }\n return copia;\n }", "private Vector returnRelevantVector(Vector segVectorList){\n\t\tVector segPts = new Vector();\n\t\tIterator iter = segVectorList.iterator();\n\t\tVector element = (Vector) iter.next();\n\t\tIterator iterator = element.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tInteger obj = (Integer) iterator.next();\n\t\t\tint index = obj.intValue();\n\t\t\tsegPts.add(new Integer(index));\n\t\t}\n\t\n\t\treturn segPts;\n\t}", "public double getNajvacsie() {\n\t\tif ((cislo1 >= cislo2) && (cislo1 >= cislo3)) {\n\t\t\tprve = cislo1;\n\t\t} else if ((cislo2 >= cislo1) && (cislo2 >= cislo3)) {\n\t\t\tprve = cislo2;\n\t\t} else if ((cislo3 >= cislo1) && (cislo3 >= cislo2)) {\n\t\t\tprve = cislo3;\n\t\t}\n\t\treturn prve;\n\n\t}", "public final List<C48714c> mo123474c() {\n return this.f124086b.f123971b;\n }", "public BigInteger[] coefficients()\n\t{\n\t\treturn coefficients;\n\t}", "public void calcularPesos(){\r\n StructursDecisors.weightsDecisors=new ArrayList();\r\n double [][] matrizEigenvectors=createMatriz();\r\n for(int i=0; i<Structurs.names.size();i++)\r\n for(int j=0; j<StructursDecisors.names.size(); j++)\r\n System.out.println(\"MatrizEigenvector[\"+i+\"][\"+j+\"]\"+\"=\"+matrizEigenvectors[i][j]);\r\n double eigenvectorCriterios[]=new double[Structurs.eigenvector.size()];\r\n for(int i=0; i<Structurs.eigenvector.size(); i++)\r\n eigenvectorCriterios[i]=(double) Structurs.eigenvector.get(i);\r\n double []vectorPesos=createArrayPesos(matrizEigenvectors, eigenvectorCriterios);\r\n \r\n }", "public float[] splCramer(){\n float [] solX = new float[(this.NKolEff) - 1];\n\n Matriks temp, temp1;\n float d,dx;\n temp = BuatMatriks(this.NBrsEff, this.NKolEff - 1);\n //mengisi temp dengan matriks koefisien variabel\n for (int i = 0 ; i<this.NBrsEff;i++){\n for (int j = 0; j<(this.NKolEff) -1 ; j++){\n temp.M[i][j] = this.M[i][j];\n }\n }\n \n d = temp.DeterminanOBE();\n if (d == 0){\n if (!this.isSolutionExist()) {\n System.out.println(\"SPL tidak memiliki solusi.\");\n this.Solusi = \"SPL tidak memiliki solusi.\";\n } else {\n System.out.println(\"SPL memiliki banyak solusi. Untuk melihat solusi parametrik gunakan eliminasi Gauss atau Gauss-Jordan\");\n this.Solusi = \"SPL memiliki banyak solusi. Untuk melihat solusi parametrik gunakan eliminasi Gauss atau Gauss-Jordan\";\n }\n }\n else{\n temp1 = BuatMatriks(this.NBrsEff, this.NKolEff - 1);\n for (int i = 0; i<temp1.NKolEff; i++){\n for (int j = 0; j<this.NBrsEff;j++){\n for (int k = 0; k<temp1.NKolEff;k++){\n if (k!=i){\n temp1.M[j][k] = this.M[j][k];\n }\n else{\n temp1.M[j][k] = this.M[j][this.NKolEff -1];\n }\n }\n }\n dx = temp1.DeterminanOBE();\n solX[i] = dx/d;\n int counter = i+1;\n System.out.println(\"x\" + counter +\" = \" + solX[i]);\n this.Solusi += \"x\" + counter +\" = \" + solX[i] + \"\\n\";\n }\n }\n return solX;\n }", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.FacturaModificadaType getFacturaModificada() {\r\n return facturaModificada;\r\n }", "public double[] getCurrentVector() {\r\n if (getCurrentItem() == null) {\r\n return new double[vectorLength];\r\n } else {\r\n return this.getMatchingVector(this.getCurrentItem().getText());\r\n }\r\n }", "public Vector<ServidorOcsp> getServidores() {\n\n\t\tVector<ServidorOcsp> copy = null;\n\t\tint total2 = servidores.size();\n\t\t\n\t\ttry {\n\t\t\tcopy = new Vector<ServidorOcsp>();\n\t\t\tfor (int i=0;i<total2;i++)\n\t\t\t\tcopy.add((ServidorOcsp)servidores.get(i).clone());\n\t\t} catch (CloneNotSupportedException e) {\t\t\n\t\t\tlogger.error(e.getMessage());\n\t\t}\n\t\treturn copy;\n\t}", "Vector getZeroVector();", "@Override\r\n\tpublic Double getModel_fixed_correlation() {\n\t\treturn super.getModel_fixed_correlation();\r\n\t}", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "public int getInversiones(){\r\n\t\treturn inversiones;\r\n\t}", "public com.sinosoft.sff.interf.JplanFeeVo[] getJplanFeeVos() {\n return jplanFeeVos;\n }", "public Collection<C4148a> mo28507c() {\n return Collections.unmodifiableCollection(this.f11168b);\n }", "protected ArrayList<Double> MVsIndex(Instance i) {\r\n\r\n\t\tArrayList<Double> out = new ArrayList<Double>();\r\n\r\n\t\tfor (int l = 0; l < nentradas; l++) {\r\n\t\t\tif (i.getInputMissingValues(l)) {\r\n\t\t\t\tout.add((double) l);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn out;\r\n\t}", "public SolutionVector cloneSolutionVector() {\n\n SolutionVector newSolutionVector\n = new SolutionVector(this.solutionVector.length);\n\n for (int i = 0; i < this.solutionVector.length; i++) {\n\n newSolutionVector.set(i, this.solutionVector[i]);\n }\n\n return newSolutionVector;\n }", "public static native void OpenMM_AmoebaPiTorsionForce_getPiTorsionParameters(PointerByReference target, int index, IntByReference particle1, IntByReference particle2, IntByReference particle3, IntByReference particle4, IntByReference particle5, IntByReference particle6, DoubleByReference k);", "public List<BigInteger> getFeeList() {\n List<BigInteger> nl = Collections.synchronizedList(new ArrayList<>());\n\n this.getFeeView().entrySet().parallelStream().forEach(e -> nl.add(e.getKey()));\n\n return nl.parallelStream().sorted(Collections.reverseOrder()).collect(Collectors.toList());\n }", "public List<ba> m21460i() {\n return this.f18796b;\n }", "public Matrice getMatrice(){\n int t = this.sommets.size();\n Matrice ret = new Matrice( (t), (t));\n\n List<Arc<T>> arcsTemps ;\n\n for(int i=0 ; i < t ;i++){\n arcsTemps = getArcsDepuisSource(this.sommets.get(i));\n\n for (Arc<T> arcsTemp : arcsTemps) {\n System.out.println(i + \" == \" + arcsTemp.getDepart().getInfo()+ \" , \" +arcsTemp.getArrivee().getId());\n ret.setValue(i, arcsTemp.getArrivee().getId(), 1);\n }\n System.out.println(\"***\");\n }\n\n return ret;\n }", "public List<C2411a> m10300a() {\n if (this.f8976d == null) {\n return null;\n }\n return this.f8976d.getShowRepair() == 1 ? this.f8971A : this.f8972B;\n }", "public static FixedFrameVector3DBasics newXZOnlyFixedFrameVector3DBasics(ReferenceFrame referenceFrame)\n {\n return new FixedFrameVector3DBasics()\n {\n private double x, z;\n\n @Override\n public ReferenceFrame getReferenceFrame()\n {\n return referenceFrame;\n }\n\n @Override\n public double getX()\n {\n return x;\n }\n\n @Override\n public double getY()\n {\n return 0.0;\n }\n\n @Override\n public double getZ()\n {\n return z;\n }\n\n @Override\n public void setX(double x)\n {\n this.x = x;\n }\n\n @Override\n public void setY(double y)\n {\n }\n\n @Override\n public void setZ(double z)\n {\n this.z = z;\n }\n\n @Override\n public String toString()\n {\n return EuclidCoreIOTools.getTuple3DString(this);\n }\n };\n }", "public List<DiskStorage.AbstractC3935a> mo27416a() {\n return Collections.unmodifiableList(this.f17420b);\n }", "@Override\n\tpublic double mangeViande() {\n\t\treturn quantiteViande*this.getPoids();\n\t}", "private List<C1085v> m15035c(C1085v vVar) {\n C1085v vVar2 = vVar;\n List<C1085v> list = this.f13682u;\n if (list == null) {\n this.f13682u = new ArrayList();\n this.f13683v = new ArrayList();\n } else {\n list.clear();\n this.f13683v.clear();\n }\n int a = this.f13674m.mo12720a();\n int round = Math.round(this.f13671j + this.f13669h) - a;\n int round2 = Math.round(this.f13672k + this.f13670i) - a;\n int i = a * 2;\n int width = vVar2.itemView.getWidth() + round + i;\n int height = vVar2.itemView.getHeight() + round2 + i;\n int i2 = (round + width) / 2;\n int i3 = (round2 + height) / 2;\n LayoutManager layoutManager = this.f13679r.getLayoutManager();\n int e = layoutManager.mo5278e();\n int i4 = 0;\n while (i4 < e) {\n View c = layoutManager.mo5265c(i4);\n if (c != vVar2.itemView && c.getBottom() >= round2 && c.getTop() <= height && c.getRight() >= round && c.getLeft() <= width) {\n C1085v g = this.f13679r.mo5094g(c);\n if (this.f13674m.mo12727a(this.f13679r, this.f13664c, g)) {\n int abs = Math.abs(i2 - ((c.getLeft() + c.getRight()) / 2));\n int abs2 = Math.abs(i3 - ((c.getTop() + c.getBottom()) / 2));\n int i5 = (abs * abs) + (abs2 * abs2);\n int size = this.f13682u.size();\n int i6 = 0;\n int i7 = 0;\n while (i6 < size && i5 > ((Integer) this.f13683v.get(i6)).intValue()) {\n i7++;\n i6++;\n C1085v vVar3 = vVar;\n }\n this.f13682u.add(i7, g);\n this.f13683v.add(i7, Integer.valueOf(i5));\n }\n }\n i4++;\n vVar2 = vVar;\n }\n return this.f13682u;\n }", "public ArrayList<Float> leerMapaDesdeBaseDeDatos() {\n listaNumeros.add(2.0f);\r\n listaNumeros.add(3.0f);\r\n listaNumeros.add(4.0f);\r\n listaNumeros.add(5.0f);\r\n listaNumeros.add(1.0f);\r\n return listaNumeros;\r\n }", "public ImmutableCollection<V> mo8391f() {\n return new C1375c(this.f9855g, 1, this.f9856h);\n }", "public List<DetalleFacturaProveedorSRI> getListaDetalleIVAFacturaProveedorSRI()\r\n/* 382: */ {\r\n/* 383:372 */ List<DetalleFacturaProveedorSRI> detalle = new ArrayList();\r\n/* 384:373 */ for (DetalleFacturaProveedorSRI dfpSRI : getFacturaProveedorSRI().getListaDetalleFacturaProveedorSRI()) {\r\n/* 385:374 */ if ((!dfpSRI.isEliminado()) && (dfpSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.IVA))) {\r\n/* 386:375 */ detalle.add(dfpSRI);\r\n/* 387: */ }\r\n/* 388: */ }\r\n/* 389:378 */ return detalle;\r\n/* 390: */ }", "public ControladorSoluciones() {\n this.soluciones = new ArrayList<Solucion>();\n }", "public void MOD( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n if(Float.parseFloat(val2) != 0){\n fresult = Integer.parseInt(val1) % Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Integer.parseInt(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Float.parseFloat(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n if(Integer.parseInt(val1) != 0){\n fresult = Integer.parseInt(val2) % Integer.parseInt(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n return;\n }\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else {\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n topo += -1;\n ponteiro += 1;\n }", "protected Vector getFeatureSet()\n {\n // get the superclass' vector\n Vector v = super.getFeatureSet();\n\n // add the features\n\n // return the vector\n return v;\n }", "public static native void OpenMM_AmoebaPiTorsionForce_getPiTorsionParameters(PointerByReference target, int index, IntBuffer particle1, IntBuffer particle2, IntBuffer particle3, IntBuffer particle4, IntBuffer particle5, IntBuffer particle6, DoubleBuffer k);", "public Fenetre_resultats_plaque(float debit_m_1, float debit_m_2, float capacite_th_1, float capacite_th_2, float viscosite_1, float viscosite_2, float conductivite_th_1, float conductivite_th_2, float masse_volumique_1, float masse_volumique_2, float tempc, float tempf, float longueur, float largeur, float hauteur) {\n\n Plaques plaque1;\n Finance F1;\n\n plaque1 = new Plaques(longueur, largeur, hauteur, debit_m_1, debit_m_2, capacite_th_1, capacite_th_2, tempc, tempf, masse_volumique_1, masse_volumique_2, viscosite_1, viscosite_2, conductivite_th_1, conductivite_th_2);\n F1 = new Finance();\n\n int nbre_plaques_total_main = plaque1.calcul_nbre_plaques_total();\n double surface_plaque_main = plaque1.calcul_surface_plaques();\n\n plaque1.calcul_surface_contact();\n\n double smod_main = plaque1.calcul_smod();\n\n plaque1.calcul_coeff_convection_h();\n plaque1.calcul_rth();\n plaque1.calcul_densite_couple();\n plaque1.calcul_rcharge();\n \n double pe_main = plaque1.calcul_Pe();\n\n int nbre_modules_main = plaque1.getter_nbre_modules();\n\n double prix_modules_main = F1.calcul_prix_modules(nbre_modules_main);\n if (prix_modules_main < 0) {\n prix_modules_main = 0;\n }\n \n F1.calcul_volume_plaques(surface_plaque_main, plaque1.getter_diam_tube(), plaque1.getter_epaisseur_plaque(), nbre_plaques_total_main, plaque1.getter_inter_plaque());\n \n double prix_materiaux_main = F1.calcul_prix_matiere();\n if (prix_materiaux_main < 0) {\n prix_materiaux_main = 0;\n }\n \n double prix_total_main = prix_modules_main + prix_materiaux_main;\n\n double energie_produite_main = F1.conversion_kwh(pe_main);\n double revenu_horaire_main = F1.calcul_revenu_horaire();\n double nbre_heures_main = F1.calcul_nbre_heures();\n \n DecimalFormat df2 = new DecimalFormat(\"#.##\");\n DecimalFormat df4 = new DecimalFormat(\"#.####\");\n DecimalFormat df5 = new DecimalFormat(\"#.#####\");\n DecimalFormat df7 = new DecimalFormat(\"#.#######\");\n \n\n String entetes[] = {\"Résultat\", \"Valeur\"};\n Object donnees[][] = {\n {\"Nombre de modules\", plaque1.getter_nbre_modules()},\n {\"Surface proposée (en m²)\", df5.format(plaque1.getter_surface_contact())},\n {\"Surface utilisée par les modules (en m²)\", df5.format(smod_main)},\n {\"Débit massique chaud(en m3/h)\", debit_m_1},\n {\"Débit massique froid(en m3/h)\", debit_m_2},\n {\"Température chaude (en °C)\", tempc},\n {\"Différence de température\", plaque1.getter_diff_temperature()},\n {\"Puissance électrique générée (en W)\", df2.format(pe_main)}};\n\n DefaultTableModel modele = new DefaultTableModel(donnees, entetes) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau = new JTable(modele);\n\n String entetes2[] = {\"Caractéristiques\", \"Valeurs\"};\n Object donnees2[][] = {\n {\"Surface d'un module (en m²)\", plaque1.getter_surface_module()},\n {\"Longueur d'une jambe (en m)\", df4.format(plaque1.getter_longueur_jambe())},\n {\"Surface d'une jambe (en m²)\", df7.format(plaque1.getter_surface_jambe())},\n {\"Densité de couple\", df5.format(plaque1.getter_densite_couple())},\n {\"Conductivité thermique du module (en W/m/K)\", df2.format(plaque1.getter_conduct_th_module())}\n };\n\n DefaultTableModel modele2 = new DefaultTableModel(donnees2, entetes2) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n Object donnees3[][] = {\n {\"Prix des modules (en €)\", df2.format(prix_modules_main)},\n {\"Prix de la matière première (en €)\", df2.format(prix_materiaux_main)},\n {\"Prix total échangeur (en €)\", df2.format(prix_total_main)},\n {\"Prix du kilowatt-heure\", F1.getter_prix_elec()},\n {\"Revenu horaire\", df2.format(revenu_horaire_main)},\n {\"Nbre d'heures pour remboursement\", df2.format(nbre_heures_main)}\n\n };\n String entetes3[] = {\"Caractéristiques\", \"Valeurs\"};\n\n DefaultTableModel modele3 = new DefaultTableModel(donnees3, entetes3) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau3 = new JTable(modele3);\n\n // Pour le graphique en camembert\n final JFXPanel fxPanel = new JFXPanel(); // On crée un panneau FX car on peut pas mettre des objet FX dans un JFRame\n final PieChart chart = new PieChart(); // on crée un objet de type camembert\n chart.setTitle(\"Répartition du prix de l'échangeur\"); // on change le titre de ce graph\n chart.getData().setAll(new PieChart.Data(\"Prix des modules \" + prix_modules_main + \" €\", prix_modules_main), new PieChart.Data(\"Prix du matériau \" + df2.format(prix_materiaux_main) + \" €\", prix_materiaux_main)\n ); // on implémente les différents case du camebert\n final Scene scene = new Scene(chart); // on crée une scene (FX) où l'on met le graph camembert\n fxPanel.setScene(scene);\n\n // a partir de là c'est plus le camembert\n tableau2 = new JTable(modele2);\n\n JScrollPane tableau_entete = new JScrollPane(tableau);\n JScrollPane tableau_entete2 = new JScrollPane(tableau2);\n JScrollPane tableau_entete3 = new JScrollPane(tableau3);\n\n tableau_entete.setViewportView(tableau);\n tableau_entete2.setViewportView(tableau2);\n tableau_entete3.setViewportView(tableau3);\n\n tableau_entete.setPreferredSize(new Dimension(550, 170));\n tableau_entete2.setPreferredSize(new Dimension(550, 110));\n tableau_entete3.setPreferredSize(new Dimension(550, 120));\n\n JLabel label_resultat = new JLabel(\"Resultat de la simulation\");\n JLabel label_module = new JLabel(\"Caractéristiques du module utilisé\");\n JLabel label_prix = new JLabel(\"Prix de l'échangeur\");\n \n setBounds(0, 0, 600, 950);\n setTitle(\"Résultats Technologie Plaques\");\n \n panneau = new JPanel();\n panneau.add(label_resultat);\n panneau.add(tableau_entete);\n panneau.add(label_module);\n panneau.add(tableau_entete2);\n panneau.add(label_prix);\n panneau.add(tableau_entete3);\n panneau.add(fxPanel); // on ajoute au Jframe notre panneau FX (qui contient donc UNE \"scene\" qui elle contient les object FX, ici notre camembert)\n getContentPane().add(panneau);\n \n this.setLocation(600, 0);\n this.setResizable(false);\n }", "public Vector clone()\r\n {\r\n Vector<O> v = new Vector<O>();\r\n \r\n VectorItem<O> vi = first;\r\n while (vi != null)\r\n {\r\n v.pushBack (vi.getObject());\r\n vi = vi.getNext();\r\n }\r\n \r\n return v;\r\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 }", "public NSArray tosRepartFdpComp() {\n\t\tNSArray tosRepartFdpComp = super.tosRepartFdpComp();\n\t\treturn CktlSort.sortedArray(tosRepartFdpComp, EORepartFdpComp.RFC_POSITION_KEY);\n\t}", "public Vector2f[][][] getVectorField() {\r\n\r\n\t\tif (vectorField == null) {\r\n\t\t\tmaxMagnitude = 0;\r\n\t\t\tVector2f v;\r\n\r\n\t\t\tif (image.getComponents() > 1) {\r\n\t\t\t\tvectorField = new Vector2f[rows][cols][slices];\r\n\t\t\t\tmagImage = new float[rows][cols][slices];\r\n\t\t\t\tfor (int i = 0; i < rows; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < cols; j++) {\r\n\t\t\t\t\t\tfor (int k = 0; k < slices; k++) {\r\n\t\t\t\t\t\t\tvectorField[i][j][k] = v = new Vector2f(\r\n\t\t\t\t\t\t\t\t\timage.getFloat(i, j, k, 0), image.getFloat(\r\n\t\t\t\t\t\t\t\t\t\t\ti, j, k, 1));\r\n\t\t\t\t\t\t\tfloat len = v.length();\r\n\t\t\t\t\t\t\tmagImage[i][j][k] = len;\r\n\t\t\t\t\t\t\tmaxMagnitude = Math.max(maxMagnitude, len);\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\tvectorField = new Vector2f[rows][cols][1];\r\n\t\t\t\tmagImage = new float[rows][cols][1];\r\n\t\t\t\tfor (int i = 0; i < rows; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < cols; j++) {\r\n\t\t\t\t\t\tvectorField[i][j][0] = v = new Vector2f(image.getFloat(\r\n\t\t\t\t\t\t\t\ti, j, 0), image.getFloat(i, j, 1));\r\n\t\t\t\t\t\tfloat len = v.length();\r\n\t\t\t\t\t\tmagImage[i][j][0] = len;\r\n\t\t\t\t\t\tmaxMagnitude = Math.max(maxMagnitude, len);\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 vectorField;\r\n\t}", "public List<ValorCondicionFinanciacionDTO> getLstValorCondicionFinanciacion() {\n if (this.lstValorCondicionFinanciacion == null) {\n this.lstValorCondicionFinanciacion = new java.util.ArrayList<>(1);\n }\n return this.lstValorCondicionFinanciacion;\n }", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "public Vertice GetExtremoFinal(){\r\n return this.Vf;\r\n }", "public List<Vector> swerveVectorCalculator(Vector translationVector, double rotation) {\n \tdouble xPerpendicular = X_PERPENDICULAR_CONSTANT;\n \tdouble yPerpendicular = Y_PERPENDICULAR_CONSTANT;\n \tif (headingControllerEnabled) {\n \t\txPerpendicular *= this.headingControllerOutput;\n \tyPerpendicular *= this.headingControllerOutput;\t\n \t} else {\n \t\txPerpendicular *= rotation;\n \tyPerpendicular *= rotation;\t\n \t}\n \t\n \tif (isFieldCentricDriveMode()) {\n \ttranslationVector.pushAngle(-getHeading());\n \t} \t\n \t\n \tList<Vector> moduleVector = new ArrayList<Vector>(Arrays.asList(\n \t\t\tnew Vector(translationVector.getX() + xPerpendicular, translationVector.getY() - yPerpendicular),\n \t\t\tnew Vector(translationVector.getX() - xPerpendicular, translationVector.getY() - yPerpendicular),\n \t\t\tnew Vector(translationVector.getX() - xPerpendicular, translationVector.getY() + yPerpendicular),\n \t\t\tnew Vector(translationVector.getX() + xPerpendicular, translationVector.getY() + yPerpendicular)\n \t\t\t));\n \t\n \tmoduleVector.stream().forEach(v -> v.scaleMagnitude((DEFAULT_DRIVE_POWER + ((MAX_DRIVE_POWER - DEFAULT_DRIVE_POWER) * OI.getTurboPower()))));\n \t\n \tdouble maxMagnitude = 0;\n \t\n \tfor (int i = 0; i < 4; i++) maxMagnitude = (moduleVector.get(i).getMagnitude() > maxMagnitude) ? moduleVector.get(i).getMagnitude() : maxMagnitude;\n \t\n \tdouble scaleFactor = ((maxMagnitude > 1.0) ? 1.0 / maxMagnitude : 1.0);\n \t\n \tmoduleVector.stream().forEach(v -> {\n \t\tv.scaleMagnitude(scaleFactor);\n \t\tif (v.getMagnitude() > 1.0) v.setMagnitude(1.0);\n \t});\n \treturn moduleVector;\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 }", "public static Vector TEST_LIST(Feature f) {\n\n Vector v = new Vector();\n if (IS_CONTINUOUS(f.type)) {\n if (f.dmax - f.dmin <= 0.0) {\n v = null;\n } else {\n double vmin = f.dmin;\n double vmax = f.dmax;\n double delta = (vmax - vmin) / ((double) (NUMBER_CONTINUOUS_TIES + 1));\n double vcur = vmin + delta;\n int i;\n for (i = 0; i < NUMBER_CONTINUOUS_TIES; i++) {\n v.addElement(new Double(vcur));\n vcur += delta;\n }\n }\n } else if (IS_INTEGER(f.type)) {\n if (f.imax - f.imin <= 0) {\n v = null;\n } else {\n int vmin = f.imin;\n int nvals = f.imax - f.imin;\n int i;\n for (i = 0; i < nvals; i++) {\n v.addElement(new Integer(vmin + i));\n }\n }\n } else if (IS_NOMINAL(f.type)) {\n if (!Discriminator_Tree.RANDOMISE_SPLIT_FINDING_WHEN_TOO_MANY_SPLITS)\n v = Utils.ALL_NON_TRIVIAL_SUBSETS(f.modalities);\n else if (f.modalities.size() <= Discriminator_Tree.MAX_CARD_MODALITIES_BEFORE_RANDOMISATION)\n v = Utils.ALL_NON_TRIVIAL_SUBSETS(f.modalities);\n else\n v =\n Utils.ALL_NON_TRIVIAL_BOUNDED_SUBSETS(\n f.modalities, Discriminator_Tree.MAX_SIZE_FOR_RANDOMISATION);\n if (v.size() == 0) v = null;\n }\n\n return v;\n }", "public Vec3d method_2833() {\n return this.field_1649;\n }", "public ArrayList<Integer> getVector() {\n\t\tif (vector != null) {\n\t\t\treturn vector;\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Error accessing vector in Sentence class for rawSen= '\"\n\t\t\t\t\t\t\t+ rawSen + \"'\\n\");\n\t\t\treturn null;\n\t\t}\n\t}", "public Vector<MakhlukHidup> get_daftar();", "public List<C1700ar> mo7090z() {\n return this.f4963e;\n }", "public List<C1700ar> mo7094b() {\n return C1576b.this.f4963e;\n }", "private void rv2Elements(VectorN r, VectorN v)\n\t{\n\t\tr.checkVectorDimensions(3);\n\t\tv.checkVectorDimensions(3);\n\t\t//Constants c = new Constants();\n\t\tVectorN evec = new VectorN(3); // e vector\n\t\tVectorN k = new VectorN(3); // unit vector in z direction\n\n\t\tthis.rv = new VectorN(r, v);\n\n\t\tdouble rmag = r.mag();\n\t\tdouble vmag = v.mag();\n\t\tdouble energy = vmag * vmag / 2.0 - this.mu / rmag;\n\n\t\tk.x[0] = 0.0;\n\t\tk.x[1] = 0.0;\n\t\tk.x[2] = 1.0;\n\n\t\tVectorN h = r.crossProduct(v);\n\t\tVectorN n = k.crossProduct(h);\n\n\t\tdouble rdotv = r.dotProduct(v);\n\n\t\tdouble q1 = (vmag * vmag - this.mu / rmag) / this.mu;\n\t\tdouble q2 = rdotv / this.mu;\n\n\t\tevec.x[0] = q1 * r.x[0] - q2 * v.x[0];\n\t\tevec.x[1] = q1 * r.x[1] - q2 * v.x[1];\n\t\tevec.x[2] = q1 * r.x[2] - q2 * v.x[2];\n\n\t\tthis.e = evec.mag();\n\n\t\tif (e != 1.0)\n\t\t{\n\t\t\tthis.a = -this.mu / (2.0 * energy);\n\t\t} else\n\t\t{\n\t\t\tthis.a = 1.0E30;\n\t\t\tSystem.out.println(\"parabolic orbit\");\n\t\t}\n\n\t\tthis.i = Math.acos(h.x[2] / h.mag()); // inclination\n\n\t\tthis.raan = Math.acos(n.x[0] / n.mag()); // raan\n\t\tif (n.x[1] < 0.0)\n\t\t{\n\t\t\tthis.raan = 2.0 * Constants.pi - raan;\n\t\t}\n\n\t\tthis.w = Math.acos(n.dotProduct(evec) / (n.mag() * e));\n\t\tif (evec.x[2] < 0.0)\n\t\t{\n\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t}\n\n\t\tif (i == 0.0) // equatorial orbit, things blow up\n\t\t{\n\t\t\t//\t\t System.out.println(\"KeplerElements: equatorial orbit, RAAN no good\");\n\t\t\tthis.raan = 0.0;\n\t\t\tthis.w = Math.acos(evec.x[0] / e);\n\t\t\tif (evec.x[1] < 0.0)\n\t\t\t{\n\t\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t\t}\n\t\t}\n\n\t\tif (i == Constants.pi) // equatorial orbit, things blow up\n\t\t{\n\t\t\t//\t\t System.out.println(\"KeplerElements: equatorial orbit, RAAN no good\");\n\t\t\tthis.raan = 0.0;\n\t\t\tthis.w = Math.acos(evec.x[0] / e);\n\t\t\tif (evec.x[1] > 0.0)\n\t\t\t{\n\t\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t\t}\n\t\t}\n\n\t\tthis.ta = Math.acos(evec.dotProduct(r) / (e * rmag));\n\t\tif (rdotv < 0.0)\n\t\t{\n\t\t\tthis.ta = 2.0 * Constants.pi - this.ta;\n\t\t}\n\t}", "public Vector getCenters(){\n\treturn synchroCenters;\n }" ]
[ "0.6024753", "0.568631", "0.53441584", "0.5043465", "0.4986201", "0.49721226", "0.49459836", "0.48837686", "0.48207754", "0.48106852", "0.48091727", "0.47886553", "0.47859734", "0.47660047", "0.4737418", "0.4726891", "0.47180185", "0.4690383", "0.4684444", "0.46680468", "0.465757", "0.46553755", "0.46538538", "0.46495762", "0.4641383", "0.4640064", "0.4636867", "0.46290198", "0.46250483", "0.46096623", "0.4603116", "0.46008265", "0.45957792", "0.45954996", "0.45859545", "0.45804328", "0.4572175", "0.45678782", "0.45645893", "0.45636764", "0.45635363", "0.4557478", "0.4555105", "0.4549713", "0.45441467", "0.4543429", "0.45341942", "0.45341897", "0.45324403", "0.45307022", "0.45290512", "0.4528813", "0.45267093", "0.45266053", "0.4524935", "0.45218992", "0.45205158", "0.45201498", "0.45163542", "0.4514293", "0.45102644", "0.45101726", "0.45087123", "0.45084336", "0.45076936", "0.45057943", "0.45057347", "0.4504243", "0.45033863", "0.4501727", "0.4498124", "0.4497102", "0.44970617", "0.44939163", "0.44872415", "0.4486273", "0.44856003", "0.44843528", "0.44796503", "0.44751924", "0.44730246", "0.4471049", "0.44697368", "0.44669732", "0.4466827", "0.4466618", "0.44658747", "0.44617945", "0.446028", "0.4458213", "0.4456359", "0.44532746", "0.44471613", "0.44439018", "0.44425958", "0.4440934", "0.44360235", "0.4435642", "0.44329292", "0.44322482" ]
0.6748959
0
Returns this Vector holds the different Variable Modificatins used in this Mascot search.
public Vector getVariableModifications() { return iVariableModifications; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateVModVector(ArrayList aVModStringArrayList) {\n StringTokenizer st = null;\n String lStringV = null;\n // Run every element in the aVModStringArrayList trough a for loop.\n // Create a VariableModification instance at the end of each loop.\n // Put the instance into the vector.\n for (int i = 0; i < aVModStringArrayList.size(); i++) {\n // Save the value of the StringArrayList in this variable and refresh each time it gets trough the loop.\n lStringV = (String) aVModStringArrayList.get(i);\n st = new StringTokenizer(lStringV, \",\");\n VariableModification lV = null;\n\n // 1. First element in the String is the mass.\n double lMass = Double.parseDouble(st.nextToken());\n\n // 2. Second element in the String is the type AND location.\n String lTypeAndLocation = st.nextToken().trim();\n // 2.a)\n // Use this token as the key to get the shortend notation of the modification.\n String lShortType = getShortType(lTypeAndLocation);\n\n // 2.b)\n // throw lTypeAndLocation to parseVariableModName method and\n // get a String[] in return containing the type @[0] and the location @[1]\n String[] lNameArray = parseVariableModName(lTypeAndLocation);\n String lType = lNameArray[0].trim();\n String lLocation = lNameArray[1];\n if (lLocation != null) {\n lLocation = lLocation.trim();\n }\n\n // 3. Third element in the StringTokenizer is the (possible) Neutralloss.\n double lNeutralLoss = Double.parseDouble(st.nextToken());\n\n // 4. The ModificationID runs parrallel with the for-loop.\n int lModificationID = i + 1;\n\n // 5. Finally create a new Variable modification instance.\n lV = new VariableModification(lType, lShortType, lMass, lNeutralLoss, lLocation, lModificationID);\n\n // 6. add the instance to this this class its VariableModification Vector.\n iVariableModifications.add(lV);\n }\n }", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "public ImmutableList<Variable> getVariables() {\n return ImmutableList.copyOf(members);\n }", "private void generateFModVector(String aFixedModifications_ParameterSection) {\n //Acetyl (K),Carbamidomethyl (C)\n FixedModification lF;\n ArrayList lFixedMods = new ArrayList();\n StringTokenizer st = new StringTokenizer(aFixedModifications_ParameterSection, \",\");\n while (st.hasMoreTokens()) {\n lFixedMods.add(st.nextToken());\n }\n for (int i = 0; i < lFixedMods.size(); i++) {\n String lStringF = (String) lFixedMods.get(i);\n String lType = lStringF.substring(0, lStringF.indexOf(' '));\n String lLocation = lStringF.substring(lStringF.indexOf('(') + 1, lStringF.indexOf(')'));\n String lShortType = getShortType(lStringF);\n int lModificationID = i + 1;\n\n lF = new FixedModification(lType, lShortType, lLocation, lModificationID);\n iFixedModifications.add(lF);\n }\n }", "public Vector getFixedModifications() {\n return iFixedModifications;\n }", "public Iterable<Map.Entry<String,Double>> getVariables() {\r\n return Collections.unmodifiableMap(variables).entrySet();\r\n }", "protected ArrayList<String> getVariableNames() {\n ArrayList<String> varNames = new ArrayList<String>();\n \n Element ncElement = getNetcdfElement();\n List<Element> vars = ncElement.getChildren(\"variable\", ncElement.getNamespace()); \n for (Element element : vars) {\n String name = getVariableName(element);\n varNames.add(name);\n }\n\n return varNames;\n }", "public final FileMincVarElem[] getVarArray() {\r\n return varArray;\r\n }", "public ArrayList<Variable> getVariables() {\r\n\t\treturn variables;\r\n\t}", "public static void updateVars() {\n IntVar tempo;\n for (Vars vars: getArrayutcc() ){\n tempo = (IntVar) Store.getModelStore().findVariable(vars.varname);\n vars.vinf = tempo.value();\n }\n\n }", "public ArrayList<Integer> getVector() {\n\t\tif (vector != null) {\n\t\t\treturn vector;\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Error accessing vector in Sentence class for rawSen= '\"\n\t\t\t\t\t\t\t+ rawSen + \"'\\n\");\n\t\t\treturn null;\n\t\t}\n\t}", "public List<String> getPTMs() {\n\n\t\tfinal List<String> modificationStrings = experimentList.getDifferentPeptideModificationNames();\n\t\tif (modificationStrings != null && !modificationStrings.isEmpty()) {\n\t\t\tfinal List<String> ret = new ArrayList<String>();\n\t\t\tfinal ControlVocabularyManager cvManager = OntologyLoaderTask.getCvManager();\n\t\t\tfinal ModReader preferredModifications = ModReader.getInstance();\n\t\t\tfor (final String modificationString : modificationStrings) {\n\t\t\t\tString modification = \"\";\n\t\t\t\tControlVocabularyTerm cvTerm = null;\n\t\t\t\tif (preferredModifications != null) {\n\t\t\t\t\tfinal List<PTM> mods = preferredModifications.getPTMListByEqualName(modificationString);\n\t\t\t\t\tif (mods != null && !mods.isEmpty()) {\n\t\t\t\t\t\tfinal String idPsiMod = mods.get(0).getAccession();\n\t\t\t\t\t\tcvTerm = PeptideModificationName.getInstance(cvManager)\n\t\t\t\t\t\t\t\t.getCVTermByAccession(new Accession(idPsiMod));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (cvTerm == null)\n\t\t\t\t\tcvTerm = PeptideModificationName.getInstance(cvManager)\n\t\t\t\t\t\t\t.getCVTermByPreferredName(modificationString);\n\n\t\t\t\tif (cvTerm != null) {\n\t\t\t\t\t// if it is from UNIMOD, try to convert to PSI MOD\n\t\t\t\t\tif (cvTerm.getCVRef().equals(UNIMODOntology.getCVLabel())) {\n\t\t\t\t\t\tlog.info(\"Converting \" + cvTerm.getTermAccession() + \" \" + cvTerm.getPreferredName()\n\t\t\t\t\t\t\t\t+ \" to PSI-MOD\");\n\t\t\t\t\t\tfinal PTM ptm = preferredModifications\n\t\t\t\t\t\t\t\t.getPTMbyAccession(cvTerm.getTermAccession().getAccession());\n\t\t\t\t\t\tif ((UNIMODOntology.getCVLabel() + \":\" + ptm.getAccession())\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(cvTerm.getTermAccession().toString())) {\n\t\t\t\t\t\t\tfinal ControlVocabularyTerm cvTerm2 = PeptideModificationName.getInstance(cvManager)\n\t\t\t\t\t\t\t\t\t.getCVTermByAccession(new Accession(ptm.getAccession()));\n\t\t\t\t\t\t\tif (cvTerm2 != null) {\n\t\t\t\t\t\t\t\tlog.info(cvTerm.getTermAccession() + \" \" + cvTerm.getPreferredName() + \" converter to \"\n\t\t\t\t\t\t\t\t\t\t+ cvTerm2.getTermAccession() + \" \" + cvTerm2.getPreferredName());\n\t\t\t\t\t\t\t\tcvTerm = cvTerm2;\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\n\t\t\t\t\t}\n\t\t\t\t\tmodification = \"[\" + cvTerm.getCVRef() + \",\" + cvTerm.getTermAccession().toString() + \",\"\n\t\t\t\t\t\t\t+ cvTerm.getPreferredName() + \",]\";\n\t\t\t\t} else {\n\t\t\t\t\t// userParam\n\t\t\t\t\tmodification = \"[,,\" + modificationString + \",]\";\n\t\t\t\t}\n\t\t\t\tret.add(ProteomeXchangeFilev2_1.MTD + TAB + \"modification\" + TAB + modification);\n\t\t\t}\n\t\t\treturn ret;\n\t\t} else {\n\t\t\tfinal List<String> ret = new ArrayList<String>();\n\t\t\tret.add(ProteomeXchangeFilev2_1.MTD + TAB + \"modification\" + TAB\n\t\t\t\t\t+ \"[PRIDE, PRIDE:0000398,No PTMs are included in the dataset,]\");\n\t\t}\n\t\treturn null;\n\t}", "List<IVariableDef> getVariables();", "public List<IntegerVariable> getObjectiveVariables() {\n return objectiveVariables;\n }", "public Vector getResultObjects() {\n\treturn _vcResults;\n }", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "public float[] getVector() {\r\n\t\t\r\n\t\tfloat array[]=new float[12];\r\n\t\tint index=-1;\r\n\t\t\r\n\t\tfor(int i=0;i<4;i++) {\r\n\t\t\tfor(int j=0;j<3;j++) {\r\n\t\t\t\t++index;\r\n\t\t\t\tarray[index]=thecounts[i][j]; \r\n\t\t\t}\r\n\t\t}\r\n\t\treturn array;\r\n\t}", "public Vector freeVars() {\r\n\t\tVector v = new Vector(2, 2);\r\n\t\tVector temp = ((SimpleNode) jjtGetChild(0)).freeVars();\r\n\t\ttemp.remove(\"\");\r\n\t\tVector temp2 = ((SimpleNode) jjtGetChild(1)).freeVars();\r\n\t\ttemp2.remove(\"\");\r\n\t\tfor (Object obj : temp2) {\r\n\t\t\tif (!temp.contains(obj)) {\r\n\t\t\t\tv.add(obj);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn v;\r\n\t}", "protected java.util.Vector getFieldVector() throws Exception {\n java.util.Vector fieldVector = new java.util.Vector();\n Class c = getClass();\n while (c != Class.forName(\"java.lang.Object\")) {\n Field[] fields = c.getDeclaredFields();\n for (int i = fields.length - 1; i >= 0; i--) {\n fieldVector.add(0, fields[i]);\n }\n c = c.getSuperclass();\n }\n return fieldVector;\n }", "public SortedSet<Variable> getVariableOrdering() {\n return variableOrdering;\n }", "public VariableMeta getMeta();", "public List<Variable> getVariables() {\r\n\t\treturn variables;\r\n\t}", "public abstract ParameterVector searchVector();", "public double[] getVentasXMes() {\r\n double vMes[] = new double[nm];\r\n int j;\r\n for (j = 0; j < nm; j++) {\r\n vMes[j] = getVentasMes(j);\r\n }\r\n return vMes;\r\n }", "@Override\n public List<UnitModifier> getModifiers()\n {\n ArrayList<UnitModifier> output = new ArrayList<>();\n output.addAll(model.getModifiers());\n output.addAll(CO.getModifiers());\n output.addAll(unitMods);\n return output;\n }", "public List<String> getCommonVariables() {\n if (this.commonVariables == null) {\n if (this.deleteExpr == null && this.insertExpr == null || this.whereExpr == null) {\n this.commonVariables = ImmutableList.of();\n } else {\n final Set<String> vars = new HashSet<>();\n if (this.deleteExpr != null) {\n vars.addAll(Algebra.extractVariables(this.deleteExpr, true));\n }\n if (this.insertExpr != null) {\n vars.addAll(Algebra.extractVariables(this.insertExpr, true));\n }\n vars.retainAll(Algebra.extractVariables(this.whereExpr, true));\n this.commonVariables = Ordering.natural().immutableSortedCopy(vars);\n }\n }\n return this.commonVariables;\n }", "VectorArray getNeutHar();", "private double[] replacementVector(double[][] distanceMatrix) {\r\n double[] replacementVector = new double[distanceMatrix.length - 1];\r\n // Energy between archive member k and new solution\r\n double[] individualEnergy = new double[distanceMatrix.length - 1];\r\n // Sum of all individual energies\r\n double totalEnergy = 0.0;\r\n for (int i = 0; i < replacementVector.length; i++) {\r\n individualEnergy[i] = scalarization.getAttribute(archive.get(i)) / distanceMatrix[i][maxSize];\r\n totalEnergy += individualEnergy[i];\r\n }\r\n for (int i = 0; i < individualEnergy.length; i++) {\r\n replacementVector[i] = totalEnergy - individualEnergy[i];\r\n replacementVector[i] *= scalarization.getAttribute(archive.get(maxSize));\r\n }\r\n return replacementVector;\r\n }", "private void generateFModVector(ArrayList aFModStringArrayList) {\n StringTokenizer st = null;\n String lStringF = null;\n // Run every element in the aFModStringArrayList trough a for loop.\n // Create a FixedModification instance at the end of each loop.\n // Put the instance into the vector.\n for (int i = 0; i < aFModStringArrayList.size(); i++) {\n // Save the value of the StringArrayList in this variable and refresh each time it gets trough the loop.\n lStringF = (String) aFModStringArrayList.get(i);\n st = new StringTokenizer(lStringF, \",\");\n FixedModification lF = null;\n\n // 1. First element in the StringTokenizer is the mass.\n double lMass = Double.parseDouble(st.nextToken());\n\n // 2. Second element in the StringTokenizer is the type and location.\n String lTypeAndLocation = st.nextToken().trim();\n // We only need the type because the location is allready in the next token.\n String lType = parseFixedModName(lTypeAndLocation);\n // The type is also used to get the ShortType notation.\n String lShortType = getShortType(lTypeAndLocation);\n\n // 3. Third element in the StringTokenizer is the location.\n String lLocation = st.nextToken();\n\n // 4. The ModificationID runs parrallel with the for-loop.\n int lModificationID = i + 1;\n\n // 5. Finally create a new Fixed modification instance.\n lF = new FixedModification(lType, lShortType, lMass, lLocation, lModificationID);\n\n // 6. add the instance to this this class its VariableModification Vector.\n iFixedModifications.add(lF);\n }\n }", "@Override\n\tpublic Set<Variable> getDefVariables() {\n\t\tSet<Variable> used = new HashSet<Variable>();\n\t\treturn used;\n\t}", "public HashSet<VarNode> getVariables(){\n\t\tif(this.Variables == null){\n\t\t\tthis.Variables = new HashSet<VarNode>();\n\t\t\tthis.ExprNode.addVariables(Variables);\n\t\t}\n\t\t\n\t\treturn Variables;\n\t}", "IntVar selectVariable(IntVar[] v) {\r\n\r\n if (v.length != 0) {\r\n int index = 0;\r\n int smallestDomain = Integer.MAX_VALUE;\r\n for(int i = 0; i< v.length-1; i++){\r\n if(v[i].domain.getSize()<smallestDomain){\r\n index = i;\r\n smallestDomain = v[i].domain.getSize();\r\n }\r\n\r\n }\r\n if(v[index].min() == v[index].max()){\r\n\r\n searchVariables = new IntVar[v.length-1];\r\n for (int i = 0; i < v.length-1; i++) {\r\n if(i<index){\r\n searchVariables[i] = v[i];\r\n }\r\n else searchVariables[i] = v[i+1];\r\n\r\n }\r\n }\r\n else{\r\n searchVariables = new IntVar[v.length];\r\n for(int i = 0; i < v.length; i++){\r\n searchVariables[i] = v[i];\r\n }\r\n }\r\n return v[index];\r\n\r\n }\r\n else {\r\n System.err.println(\"Zero length list of variables for labeling\");\r\n return new IntVar(store);\r\n }\r\n }", "@Override\n public LinearSequence getLinearVariables() {\n LinearSequence vars = new LinearSequence();\n\n vars.addAll(((ExtendedExpression) getA()).getLinearVariables());\n vars.addAll(((ExtendedExpression) getB()).getLinearVariables().negate());\n\n return vars;\n }", "public float[] getVec() {\n return vec;\n }", "public ModeloTablaVariables getModeloVariables() {\n\t\treturn modeloVariables;\n\t}", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "public Model[] getModelsOfVariable(int target_variable) {\r\n return null; //todo\r\n }", "protected ArrayList<Double> MVsIndex(Instance i) {\r\n\r\n\t\tArrayList<Double> out = new ArrayList<Double>();\r\n\r\n\t\tfor (int l = 0; l < nentradas; l++) {\r\n\t\t\tif (i.getInputMissingValues(l)) {\r\n\t\t\t\tout.add((double) l);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn out;\r\n\t}", "public double[] getVentasXVendedor() {\r\n double vVendedores[] = new double[nv];\r\n int i;\r\n for (i = 0; i < nv; i++) {\r\n vVendedores[i] = getVentasVendedor(i);\r\n }\r\n return vVendedores;\r\n }", "public List<String> getVariables() {\r\n List<String> newList = new ArrayList<String>();\r\n newList.addAll(e1.getVariables());\r\n return newList;\r\n }", "public double[] getCurrentVector() {\r\n if (getCurrentItem() == null) {\r\n return new double[vectorLength];\r\n } else {\r\n return this.getMatchingVector(this.getCurrentItem().getText());\r\n }\r\n }", "public List<String> getListaVariablesMotivosLlamadoAtencion()\r\n/* 144: */ {\r\n/* 145:148 */ if (this.listaVariablesMotivosLlamadoAtencion == null)\r\n/* 146: */ {\r\n/* 147:149 */ this.listaVariablesMotivosLlamadoAtencion = new ArrayList();\r\n/* 148:150 */ for (VariablesMotivosLlamadosAtencion variablesMotivo : VariablesMotivosLlamadosAtencion.values()) {\r\n/* 149:151 */ this.listaVariablesMotivosLlamadoAtencion.add(variablesMotivo.getVariable());\r\n/* 150: */ }\r\n/* 151: */ }\r\n/* 152:154 */ return this.listaVariablesMotivosLlamadoAtencion;\r\n/* 153: */ }", "public abstract ImmutableVector getImmutableVector();", "public ProcessVariableTableModel(Vector pv, Vector factions) {\r\n // get columns\r\n columns = new Object[factions.size() + 3];\r\n columns[0] = new String(\"PV\");\r\n columns[1] = new String(\"Category\");\r\n columns[2] = new String(StratmasConstants.factionAll);\r\n for (int i = 0; i < factions.size(); i++) {\r\n columns[i+3] = (StratmasObject)factions.get(i);\r\n }\r\n // get rows\r\n pvValues = new Object[pv.size()][factions.size() + 3];\r\n for (int i = 0; i < pv.size(); i++) {\r\n pvValues[i][0] = (ProcessVariableDescription)pv.get(i);\r\n } \r\n }", "public java.lang.Double getVar112() {\n return var112;\n }", "public Variable[] freeVariables() {\n\t\t\n\t\tVariable[] array1st = left.freeVariables();\n\n\t\tVariable[] array2st = left.freeVariables();\n\n\t\tArrayList<Variable> arrayListArray = new ArrayList<Variable>();\n\n\t\t//lägg in första arrayen in i Arraylist\n\t\tfor (int i = 0; i < array1st.length; i++) {\n\t\t\tarrayListArray.add(array1st[i]);\n\t\t}\n\n\t\tfor (int i = 0; i < array2st.length; i++) {\n\t\t\tboolean Double = false;\n\t\t\tfor (int j = 0; j < arrayListArray.size(); j++) {\n\n\t\t\t\tif (arrayListArray.get(j).getName().equals(array2st[i].getName())) {\n\t\t\t\t\tDouble = true;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (Double == false) {\n\t\t\t\tarrayListArray.add(array2st[i]);\n\t\t\t}\n\n\n\t\t}\n\n\t\tVariable[] allNonRepet = arrayListArray.toArray(new Variable[arrayListArray.size()]);\n\n\t\treturn allNonRepet;\t}", "public int[][] getMatriceValeurs()\n {\n return matriceValeurs;\n }", "public List<VariableID<?>> getVariables()\n\t{\n\t\tList<VariableID<?>> vars = get(VARIABLES);\n\t\tif (vars == null)\n\t\t{\n\t\t\tvars = Collections.emptyList();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tvars = new ArrayList<>(vars);\n\t\t}\n\t\treturn vars;\n\t}", "public int[] getSV(){\r\n\t\treturn SV;\r\n\t}", "public Structure select(List<String> memberNames) {\n Structure result = copy();\n List<Variable> members = new ArrayList<>();\n for (String name : memberNames) {\n Variable m = findVariable(name);\n if (null != m)\n members.add(m);\n }\n result.setMemberVariables(members);\n result.isSubset = true;\n return result;\n }", "public Vector2 getVectorOne(){\n return vecOne;\n }", "public Vector getProcessVariables(String category) {\r\n Vector pvs = new Vector();\r\n for (int i = 0; i < pvValues.length; i++) {\r\n ProcessVariableDescription pv = (ProcessVariableDescription)pvValues[i][0];\r\n if (pv.getCategory().equals(category)) {\r\n pvs.add(pv);\r\n }\r\n }\r\n return pvs;\r\n }", "public java.lang.Double getVar202() {\n return var202;\n }", "public ImmutableList<String> getVariableNames() {\n return members.stream().map(m -> m.getShortName()).collect(ImmutableList.toImmutableList());\n }", "public Celda[][] getestadosiguientejardin(){\n\t\treturn vectorjardin;\r\n\t}", "private Vector<DistrictModel> getDistrictAgentModelVector() {\r\n\t\tif (vDistrictAgentModel==null) {\r\n\t\t\tvDistrictAgentModel = this.getGridStateEstimationInit().buildDistrictAgentModel();\r\n\t\t}\r\n\t\treturn vDistrictAgentModel;\r\n\t}", "@Override\n public List<String[]> namesAndValues() {\n List<String[]> nAv = new ArrayList<>();\n String[] m = {\"Meno\", this.meno};\n String[] i = {\"Iso\", this.iso};\n String[] b = {\"Brummitt 1\", this.brumit1.getMeno(), \"F Brumit1\"};\n nAv.add(m);\n nAv.add(i);\n nAv.add(b);\n return nAv;\n }", "public java.lang.Double getVar112() {\n return var112;\n }", "Vector<Vector<Object>> getDataVector();", "public java.util.Collection<VariableInfo> getLocalVariables(){\n\t\tjava.util.Collection<VariableInfo> variables = new java.util.ArrayList<VariableInfo>();\n\n\t\treturn variables;\n\t}", "public ListVS<V> getValues() {\n ListVS<V> result = new ListVS<V>(getUniverse());\n for (V value : this.entries.values()) {\n result = result.add(value);\n }\n return result;\n }", "public void setModality() {\r\n\r\n for (final FileMincVarElem element : varArray) {\r\n\r\n if (element.name.equals(\"study\")) {\r\n\r\n for (final FileMincAttElem element2 : element.vattArray) {\r\n\r\n if (element2.name.equals(\"modality\")) {\r\n final String modality = element2.getValueString();\r\n\r\n if (modality.equals(\"PET__\")) {\r\n setModality(FileInfoBase.POSITRON_EMISSION_TOMOGRAPHY);\r\n } else if (modality.equals(\"MRI__\")) {\r\n setModality(FileInfoBase.MAGNETIC_RESONANCE);\r\n } else if (modality.equals(\"SPECT\")) {\r\n setModality(FileInfoBase.SINGLE_PHOTON_EMISSION_COMPUTED_TOMOGRAPHY);\r\n } else if (modality.equals(\"GAMMA\")) {\r\n // setModality(FileInfoBase.);\r\n } else if (modality.equals(\"MRS__\")) {\r\n setModality(FileInfoBase.MAGNETIC_RESONANCE_SPECTROSCOPY);\r\n } else if (modality.equals(\"MRA__\")) {\r\n setModality(FileInfoBase.MAGNETIC_RESONANCE_ANGIOGRAPHY);\r\n } else if (modality.equals(\"CT___\")) {\r\n setModality(FileInfoBase.COMPUTED_TOMOGRAPHY);\r\n } else if (modality.equals(\"DSA__\")) {\r\n // setModality(FileInfoBase.);\r\n } else if (modality.equals(\"DR___\")) {\r\n setModality(FileInfoBase.DIGITAL_RADIOGRAPHY);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "public java.util.Vector getVecData() {\r\n return vecData;\r\n }", "public java.lang.Double getVar202() {\n return var202;\n }", "public Matrix getV() {\n return v.like().assign(v);\n }", "public VariableView getVarView() {\n \t\treturn this.varView;\n \t}", "@Basic @Immutable\n\tpublic double getVxi() {\n\t\treturn this.vxi;\n\t}", "public CVector getV1() {\n\treturn v1;\n }", "public Vec3d method_2833() {\n return this.field_1649;\n }", "VectorType11 getVector();", "public void calcularPesos(){\r\n StructursDecisors.weightsDecisors=new ArrayList();\r\n double [][] matrizEigenvectors=createMatriz();\r\n for(int i=0; i<Structurs.names.size();i++)\r\n for(int j=0; j<StructursDecisors.names.size(); j++)\r\n System.out.println(\"MatrizEigenvector[\"+i+\"][\"+j+\"]\"+\"=\"+matrizEigenvectors[i][j]);\r\n double eigenvectorCriterios[]=new double[Structurs.eigenvector.size()];\r\n for(int i=0; i<Structurs.eigenvector.size(); i++)\r\n eigenvectorCriterios[i]=(double) Structurs.eigenvector.get(i);\r\n double []vectorPesos=createArrayPesos(matrizEigenvectors, eigenvectorCriterios);\r\n \r\n }", "public List allVariables() {\r\n\t\tArrayList vars = new ArrayList();\r\n\t\tfor (int i = 0; i < elements.size(); ++i) {\r\n\t\t\tObject ob = elements.get(i);\r\n\t\t\tif (ob instanceof Variable) {\r\n\t\t\t\tvars.add(ob);\r\n\t\t\t} else if (ob instanceof FunctionDef) {\r\n\t\t\t\tExpression[] params = ((FunctionDef) ob).getParameters();\r\n\t\t\t\tfor (int n = 0; n < params.length; ++n) {\r\n\t\t\t\t\tvars.addAll(params[n].allVariables());\r\n\t\t\t\t}\r\n\t\t\t} else if (ob instanceof TObject) {\r\n\t\t\t\tTObject tob = (TObject) ob;\r\n\t\t\t\tif (tob.getTType() instanceof TArrayType) {\r\n\t\t\t\t\tExpression[] exp_list = (Expression[]) tob.getObject();\r\n\t\t\t\t\tfor (int n = 0; n < exp_list.length; ++n) {\r\n\t\t\t\t\t\tvars.addAll(exp_list[n].allVariables());\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 vars;\r\n\t}", "public void getVentasdeUNMes(int m) {\r\n double vMes[] = new double[nv];\r\n int i;\r\n for (i = 0; i < nv; i++) {\r\n vMes[i] = ventas[i][m];\r\n }\r\n getMostrarVec(vMes);\r\n }", "java.util.List<org.tribuo.protos.core.VariableInfoProto> \n getInfoList();", "public List<MathVarDec> getFields() {\n return fields;\n }", "public Set<Object> getVariables() {\n return new HashSet<>(constraints.keySet());\n }", "public Momentum() {\r\n m1 = m2 = v1 = v2 = p1 = p2 = comx = cv = 0.0;\r\n xp1 = 0.0;\r\n xp2 = 900.0;\r\n m1 = 2.0;\r\n m2 = 1.0;\r\n v1 = 1.0;\r\n v2 = -1.0;\r\n\r\n //m1 = m2 = 1.0;\r\n //v1 = 2.0;\r\n //v2 = -4.0;\r\n d = dc = 8.0;\r\n }", "private int[] vtinit(ProblemData a) {\r\n\r\n\r\n int[] vector = new int[a.getProcesses().length];\r\n for (int i = 0; i < a.getProcesses().length; i++) {\r\n vector[i] = a.getProcesses()[i].getWeight();\r\n }\r\n return vector;\r\n\r\n }", "public java.lang.Double getVar273() {\n return var273;\n }", "public double darVelocidadMedia( )\n {\n return velocidadOrbitalMedia;\n }", "public final ArrayList<VH> mo102895c() {\n return this.f80953d;\n }", "public StatisticVariable getStatisticVariable();", "public Vector<String> getSubjectOfInterestVector() {\n\t\tSystem.out.println(this.name + \" subjects of interest are: \" + this.subjectsOfInterest);\n\t\treturn this.subjectsOfInterest;\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tPilaVector p = new PilaVector();\n\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\tp.vector.add(this.vector.get(i));\n\t\t}\n\t\treturn p;\n\t}", "private HashMap<String,String> getVarValues(Module m, Call c)\n {\n HashMap<String,String> vars = new HashMap<String,String>();\n String regex = replaceVars(c.assumption,\"[.[^,]]+\");\n Pattern pattern = Pattern.compile(regex);\n\n for(String result: m.getSceptical())\n {\n Matcher matcher = pattern.matcher(result);\n if(matcher.find())\n {\n String v = c.assumption;\n String r = result;\n int vCurrent = 0;\n int rCurrent = 0;\n while(vCurrent<v.length() && rCurrent<r.length())\n {\n if(v.toCharArray()[vCurrent] != r.toCharArray()[rCurrent])\n {\n String variable = getVar(v.substring(vCurrent));\n String value = getValue(r.substring(rCurrent));\n vars.put(variable,value);\n vCurrent = vCurrent + variable.length();\n rCurrent = rCurrent + value.length();\n }\n vCurrent++;\n rCurrent++;\n }\n }\n }\n return vars;\n }", "public List<String> getVariables() {\r\n List<String> list = new ArrayList<String>();\r\n list.add(this.variable);\r\n return list;\r\n }", "private Vector returnRelevantVector(Vector segVectorList){\n\t\tVector segPts = new Vector();\n\t\tIterator iter = segVectorList.iterator();\n\t\tVector element = (Vector) iter.next();\n\t\tIterator iterator = element.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tInteger obj = (Integer) iterator.next();\n\t\t\tint index = obj.intValue();\n\t\t\tsegPts.add(new Integer(index));\n\t\t}\n\t\n\t\treturn segPts;\n\t}", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "private static Collection<CompletionProposal> getVariableCompletionProposals(final CompletionContext context, CPModel model) {\n Collection<CompletionProposal> proposals = new LinkedHashSet<>();\n for (CPElement var : model.getVariables(context.getCaretOffset())) {\n if (var.getType() != CPElementType.VARIABLE_USAGE && !var.getRange().containsInclusive(context.getCaretOffset())) {\n ElementHandle handle = new CPCslElementHandle(context.getFileObject(), var.getName());\n VariableCompletionItem item = new VariableCompletionItem(\n handle,\n var.getHandle(),\n context.getAnchorOffset(),\n null); //no origin for current file\n// var.getFile() == null ? null : var.getFile().getNameExt());\n\n proposals.add(item);\n }\n }\n try {\n //now gather global vars from all linked sheets\n FileObject file = context.getFileObject();\n if (file != null) {\n Map<FileObject, CPCssIndexModel> indexModels = CPUtils.getIndexModels(file, DependencyType.REFERRING_AND_REFERRED, true);\n for (Entry<FileObject, CPCssIndexModel> entry : indexModels.entrySet()) {\n FileObject reff = entry.getKey();\n CPCssIndexModel cpIndexModel = entry.getValue();\n Collection<org.netbeans.modules.css.prep.editor.model.CPElementHandle> variables = cpIndexModel.getVariables();\n for (org.netbeans.modules.css.prep.editor.model.CPElementHandle var : variables) {\n if (var.getType() == CPElementType.VARIABLE_GLOBAL_DECLARATION) {\n ElementHandle handle = new CPCslElementHandle(context.getFileObject(), var.getName());\n VariableCompletionItem item = new VariableCompletionItem(\n handle,\n var,\n context.getAnchorOffset(),\n reff.getNameExt());\n\n proposals.add(item);\n }\n\n }\n\n }\n }\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n\n return proposals;\n }", "public abstract float mo12693b(C1085v vVar);", "public java.lang.Double getVar12() {\n return var12;\n }", "public Vector listaTitulaciones()\n {\n try\n {\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM titulaciones WHERE activa='s'\";\n\n //Se crea un vector de asignaturas\n Vector vectorTitulaciones = new Vector();\n\n //Se ejecuta la query\n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n\n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n titulacion titulacion = new titulacion();\n\n titulacion.setCodigo(resultado.getString(\"codigo\"));\n titulacion.setTitulacion(resultado.getString(\"titulacion\"));\n\n //Se añade la asignatura al vector de asignaturas\n vectorTitulaciones.add(titulacion);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorTitulaciones;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las titulaciones de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public int[] getFinalVectors() {\n if (getLastStep() != null) {\n return getLastStep().getVectors();\n }\n return getEntity().getVectors();\n }", "public EstadoSimulacao[][] alvoSimulacao() {\n\t\treturn this.ambiente.alvoSimulacao();\n\t}", "public static Modelo[] getValues() {\n\t\treturn VALUES;\n\t}", "public ArrayList<String> getCurrentVarNames() {\n\t\tArrayList<String> names = new ArrayList<String>();\n\t\tfor (NameSSA n : name.values())\n\t\t\tnames.add(n.current());\n\t\treturn names;\n\t}", "protected Vector getFeatureSet()\n {\n // get the superclass' vector\n Vector v = super.getFeatureSet();\n\n // add the features\n\n // return the vector\n return v;\n }", "public interface IVariable<A extends AbstractDomain<?>> extends IReferenceHolder<A>, ITerm {\n\n\t@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic default Set<IVariable<?>> getVariables() {\n\t\tSet<IVariable<?>> values = new HashSet<>();\n\t\tvalues.add((IVariable<AbstractDomain<?>>) this);\n\t\treturn values;\n\t}\n\n\t/**\n\t * Lets the visitor visit the variable.\n\t * \n\t * @param IVariableVisitor\n\t * The visitor.\n\t */\n\tpublic void processWith(IVariableVisitor iVariableVisitor);\n\n\t/**\n\t * Returns whether it is a constant.\n\t * \n\t * @return Whether it is a constant.\n\t */\n\tpublic boolean isConstant();\n}", "public java.lang.Double getVar273() {\n return var273;\n }", "private List<Variable> headerVariables(String headerLine) {\n LinkedList<Variable> vars = new LinkedList<Variable>();\n Matcher matcher = headerVariablePattern.matcher(headerLine);\n while (matcher.find()) {\n String varname = matcher.group(1);\n if (null != varname) {\n Map<String,Object> attrs = new TreeMap<String,Object>();\n // assuming float for all var for now\n Variable var = new Variable(varname, NCUtil.XType.NC_FLOAT, attrs);\n vars.add(var);\n }\n }\n return vars;\n }" ]
[ "0.57714474", "0.55467516", "0.54901505", "0.5475169", "0.54382724", "0.5412275", "0.5399996", "0.53702337", "0.5343639", "0.5310237", "0.5297461", "0.5290033", "0.52865654", "0.52522016", "0.5238319", "0.52380836", "0.5234567", "0.523358", "0.5222652", "0.5208536", "0.52068555", "0.52018136", "0.51912785", "0.5168629", "0.51660603", "0.51643276", "0.51588917", "0.51572603", "0.5155181", "0.51419806", "0.5131064", "0.5116973", "0.51122063", "0.51105416", "0.5106261", "0.50984627", "0.5093783", "0.5092003", "0.5090503", "0.50607455", "0.5058202", "0.50503075", "0.5033816", "0.50216895", "0.5018218", "0.5006348", "0.5002196", "0.49979964", "0.49979192", "0.49960902", "0.49925208", "0.4983369", "0.49768403", "0.49740347", "0.49701256", "0.49684158", "0.49570483", "0.4954498", "0.49353996", "0.49337834", "0.49297002", "0.49271265", "0.49131083", "0.49082744", "0.49025303", "0.49015436", "0.48948747", "0.48783818", "0.48779956", "0.48741353", "0.48725483", "0.48715296", "0.4870978", "0.48643175", "0.4858707", "0.48537964", "0.48490348", "0.48477295", "0.48472047", "0.48440152", "0.48435113", "0.4838482", "0.48383972", "0.48346946", "0.4834187", "0.48311615", "0.48309448", "0.48243326", "0.48207563", "0.48020446", "0.4799447", "0.47968218", "0.47961345", "0.47940987", "0.47927552", "0.47923106", "0.4790297", "0.4787276", "0.47841617", "0.4777728" ]
0.7112168
0
method Use the static TestModificationConversion instance HashMap.
private String getShortType(String aKey) { if (iConnection == null){ return ModificationConversion.getShortType(aKey); } else { return ModificationConversion.getShortType(aKey,iConnection); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testMaps() throws Exception {\n\t\ttestWith(TestClassMap.getInstance());\n\t}", "@Test\n public void test25() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1346,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test25\");\n HashMap<StringTokenizer, Properties> hashMap0 = new HashMap<StringTokenizer, Properties>();\n EntrySetMapIterator<StringTokenizer, Properties> entrySetMapIterator0 = new EntrySetMapIterator<StringTokenizer, Properties>((Map<StringTokenizer, Properties>) hashMap0);\n Object[] objectArray0 = IteratorUtils.toArray((Iterator<?>) entrySetMapIterator0);\n assertNotNull(objectArray0);\n }", "@Test\n public void test12() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1332,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test12\");\n MapIterator<Class<StringTokenizer>, StringTokenizer> mapIterator0 = IteratorUtils.emptyMapIterator();\n MapIterator<Class<StringTokenizer>, StringTokenizer> mapIterator1 = IteratorUtils.unmodifiableMapIterator(mapIterator0);\n assertNotSame(mapIterator1, mapIterator0);\n }", "protected Map<String, Object> assertMap() {\n if (type == Type.LIST) {\n throw new FlexDataWrongTypeRuntimeException(type, Type.OBJECT); \n }\n if (entryCollectionMap == null) {\n entryCollectionMap = new LinkedHashMap<String, Object>();\n type = Type.OBJECT;\n }\n return entryCollectionMap;\n }", "@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}", "private void testInfoCopyTest(boolean changed, TestInfo testInfo) {\n TestBattle battle = testInfo.createBattle();\n PokemonNamesies attacking = battle.getAttacking().namesies();\n PokemonNamesies defending = battle.getDefending().namesies();\n Assert.assertNotEquals(PokemonNamesies.SQUIRTLE, attacking);\n Assert.assertNotEquals(PokemonNamesies.PIKACHU, defending);\n assertTestInfoSpecies(attacking, defending, testInfo);\n\n // Create a copy of testInfo, replacing Pokes with Squirtle and Pikachu ONLY IF NOT CHANGED\n TestInfo copy = testInfo.copy(PokemonNamesies.SQUIRTLE, PokemonNamesies.PIKACHU);\n if (changed) {\n assertTestInfoSpecies(attacking, defending, copy);\n } else {\n assertTestInfoSpecies(PokemonNamesies.SQUIRTLE, PokemonNamesies.PIKACHU, copy);\n }\n }", "@Test\n public void testMapErreur() {\n System.out.println(\"mapErreur\");\n Map<String, Object> map = new HashMap<String, Object>();\n boolean condition = false;\n String nomErreur = \"error\";\n String messageErreur = \"Erreur\";\n AbstractObjetAffaire.mapErreur(map, condition, nomErreur, messageErreur);\n assertTrue(map.isEmpty());\n map = new HashMap<String, Object>();\n condition = true;\n nomErreur = \"error\";\n messageErreur = \"Erreur\";\n AbstractObjetAffaire.mapErreur(map, condition, nomErreur, messageErreur);\n assertFalse(map.isEmpty());\n }", "@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }", "public static void test2(Map<Object,Object> map) \n\t{\n\t\tprint(map.getClass().getSimpleName()+\"~~~~~~~~~~~~\");\n\t\tmap.putAll(new CountingMapData(25));\n\t\t// Map has 'Set' behavior for keys:\n\t\tmap.putAll(new CountingMapData(25));\n\t\tprintKeys2(map);\n\t\t// Producing a collection of the values:\n\t\tprintnb(\"Values: \");\n\t\tprint(map.values());\n\t\tprint(map);\n\t\tprint(\"map.containsKey(11): \" + map.containsKey(11));\n\t\tprint(\"map.get(11): \" + map.get(11));\n\t\tprint(\"map.containsValue(\\\"F0\\\"): \" + map.containsValue(\"F0\"));\n\t\tObject key = map.keySet().iterator().next();\n\t\tprint(\"First key in map: \" + key);\n\t\tmap.remove(key);\n\t\tprintKeys2(map);\n\t\tmap.clear();\n\t\tprint(\"map.isEmpty(): \" + map.isEmpty());\n\t\tmap.putAll(new CountingMapData(25));\n\t\t// Operations on the Set change the Map:\n\t\tmap.keySet().removeAll(map.keySet());\n\t\tprint(\"map.isEmpty(): \" + map.isEmpty());\n\t}", "void setHashMap();", "private Map<String, String> m15124a(Map<String, String> map) {\n String str;\n String str2;\n HashMap hashMap = new HashMap();\n if (map != null) {\n for (Entry entry : map.entrySet()) {\n Object key = entry.getKey();\n Object value = entry.getValue();\n if (!(key instanceof String) || !(value instanceof String)) {\n C7262l b = this.f13489a.mo23049b();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Unexpected class type in trackEvent(); all keys and values passed as parameters must be String. Encountered \");\n sb.append(key.getClass().getCanonicalName());\n sb.append(\"/\");\n sb.append(value.getClass().getCanonicalName());\n sb.append(\"; will use toString() value instead, which may be unexpected...\");\n b.mo22913a(\"EventServiceImpl\", sb.toString());\n str = key.toString();\n str2 = value.toString();\n } else {\n str = (String) key;\n str2 = (String) value;\n }\n hashMap.put(str, str2);\n }\n }\n return hashMap;\n }", "@Before\r\n public void test_change(){\r\n HashTable<String,String> table = new HashTable<>(1);\r\n MySet<String> s = (MySet<String>) table.keySet();\r\n table.put(\"AA\",\"BB\");\r\n table.put(\"AA\",\"CC\");\r\n assertTrue(s.contains(\"AA\"));\r\n table.remove(\"AA\");\r\n assertFalse(s.contains(\"AA\"));\r\n }", "private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}", "public void testCtor() throws Exception {\n ConfigManager.getInstance()\n .add(\"test_files\" + File.separator\n + \"RenameConverter1.xml\");\n\n RenameConverter converter = new RenameConverter();\n assertNotNull(\"Unable to create RenameConverter instance.\", converter);\n\n Field fdMaps = converter.getClass().getDeclaredField(\"toRenameNames\");\n fdMaps.setAccessible(true);\n\n Map map = (Map) fdMaps.get(converter);\n assertEquals(\"There is not rename maps.\", 0, map.size());\n }", "private static HashMap<String, String> initMapping()\n {\n HashMap<String, String> typeMapping = new HashMap<String, String>();\n\n typeMapping.put(\"boolean\", \"boolean\");\n typeMapping.put(\"float\", \"float\");\n typeMapping.put(\"double\", \"double\");\n typeMapping.put(\"byte\", \"byte\");\n typeMapping.put(\"unsignedByte\", \"short\");\n typeMapping.put(\"short\", \"short\");\n typeMapping.put(\"unsignedShort\", \"int\");\n typeMapping.put(\"int\", \"int\");\n typeMapping.put(\"integer\", \"java.math.BigDecimal\");\n typeMapping.put(\"positiveInteger\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedInt\", \"java.math.BigInteger\");\n typeMapping.put(\"long\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedLong\", \"java.math.BigDecimal\");\n typeMapping.put(\"decimal\", \"java.math.BigDecimal\");\n typeMapping.put(\"string\", \"String\");\n typeMapping.put(\"hexBinary\", \"byte[]\");\n typeMapping.put(\"base64Binary\", \"byte[]\");\n typeMapping.put(\"dateTime\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"time\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"date\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonthDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYear\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYearMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"duration\", \"javax.xml.datatype.Duration\");\n typeMapping.put(\"NOTATION\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"QName\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"anyURI\", \"String\");\n typeMapping.put(\"Name\", \"String\");\n typeMapping.put(\"NCName\", \"String\");\n typeMapping.put(\"negativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"NMTOKEN\", \"String\");\n typeMapping.put(\"nonNegativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"nonPositiveInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"normalizedString\", \"String\");\n typeMapping.put(\"token\", \"String\");\n typeMapping.put(\"any\", \"Object\");\n\n return typeMapping;\n }", "public InternalWorkingOfHashSet() {\r\n map = new HashMap<>();\r\n }", "public TimeMap2() {\n map = new HashMap<>();\n }", "public static Map<String, Double> getMutMap(){\r\n\t\treturn new HashMap<String, Double>(codeToMutRateMap);\r\n\t}", "private Map<String, TestModuleHolder> getTestModules() {\n\t\treturn testModuleSupplier.get();\n\t}", "public void setInstanceOfMapForTesting(){\n instanceOfMap = null;\n }", "private void replace(final Map tmp)\n\t{\n\n\t\t_collector.clear();\n\t\t((Map<String, Object>) tmp).entrySet().forEach(e -> _collector.put(e.getKey(), (Map) e.getValue()));\n\t}", "private Map<String, Mutator> createMutatorMap() {\n Map<String, Mutator> mutators = new HashMap<String, Mutator>();\n\n Method[] methods = type.getMethods();\n for (int i = 0; i < methods.length; i++) {\n Method method = methods[i];\n\n // implement some rules to decide if this method is a mutator or not\n\n // not interested in methods declared by Object\n if (method.getDeclaringClass() == Object.class) continue;\n\n // method name should start with 'get'\n String fieldName = mutatorMethodNameToFieldName(method.getName());\n if (fieldName == null) continue;\n\n // method should have a single parameter\n Class<?>[] parameterTypes = method.getParameterTypes();\n if (parameterTypes.length != 1) continue;\n Class<?> parameterType = parameterTypes[0];\n\n // method have void return type\n Class<?> returnType = method.getReturnType();\n if (returnType != Void.TYPE) continue;\n\n // everything checks out, add mutator to list\n mutators.put(fieldName, new MethodMutatorImpl(method, fieldName, parameterType));\n }\n\n return mutators;\n }", "public FinalClassExample(int id, String name, HashMap<String, String> testMap) {\n\t\tsuper();\n\t\tSystem.out.println(\"Performing Deep Copy for Object initialization\");\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t\tHashMap<String, String> tempMap = new HashMap<>();\n\t\tIterator<String> keySet = testMap.keySet().iterator();\n\t\twhile(keySet.hasNext()) {\n\t\t\tString key = keySet.next();\n\t\t\ttempMap.put(key, testMap.get(key));\n\t\t}\n\t\tthis.testMap = tempMap;\n\t\t\n\t}", "public static void main(String[] args) {\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"a\", \"A\");\r\n map.put(\"b\", \"B\");\r\n map.put(\"c\", \"C\");\r\n \r\n \r\n int h = (new TestMap()).hashCode();\r\n \r\n String a = map.get(\"a\");\r\n \r\n \r\n \r\n \r\n for (String o : map.keySet()){\r\n \tSystem.out.println(o);\r\n \tSystem.out.println(map.get(o));\r\n \t\r\n }\r\n \r\n Map<String, String> map2 = new HashMap<String, String>();\r\n map2.putAll(map);\r\n \r\n for (Map.Entry<String, String> o : map2.entrySet()){\r\n \tSystem.out.println(o.getKey());\r\n \tSystem.out.println(o.getValue());\r\n }\r\n \r\n System.out.println(map2.containsValue(\"A\")); \r\n System.out.println(map2.equals(map)); \r\n\r\n\t}", "public MagicDictionary() {\n this.map = new HashMap<>();\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "public void testNormalEntrySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkEntrySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "@Test\n public void test12() {\n cashRegister.addPennies(99);\n cashRegister.addDimes(2);\n cashRegister.addDimes(3);\n cashRegister.addFives(10);\n cashRegister.addNickels(4);\n cashRegister.addOnes(1);\n cashRegister.addQuarters(1);\n cashRegister.addTens(5);\n Map<Integer, Integer> map = new TreeMap<Integer, Integer>();\n map.put(1000,5);\n map.put(500,10);\n map.put(100,1);\n map.put(25,1);\n map.put(10,5);\n map.put(5,4);\n map.put(1,99);\n\n assertEquals(map,cashRegister.getContents());\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n map1 = cashRegister.getContents();\n map1.put(0,1);\n assertEquals(map,cashRegister.getContents());\n }", "private void test(final Map<String, String> assertions) {\n final DeduplicatingMap.Builder<Object> b = DeduplicatingMap.stringBuilder();\n\n for (final String k : assertions.values()) {\n b.put(k, new Object());\n }\n\n final ImmutableMap<String, Object> m = b.build();\n\n Assert.assertEquals(\"Assertions and resulting map should be the same size.\", assertions.size(), m.size());\n for (final String a : assertions.keySet()) {\n Assert.assertTrue(\"Resulting map should contain everything we asked for.\"\n \t\t+ m.keySet() + \" / \" + a\n \t\t, \n \t\tm.containsKey(a));\n }\n }", "protected WumpusMap() {\n\t\t\n\t}", "@Before\n public void setUp() {\n dict = new Dictionary();\n\n\n }", "private static Map<String, Set<String>> getPotionToReagentsTestCaseMap()\n\t{\n\t\t// Set up the potions manual for this particular test case.\n\t\tList<PotionInfo> potionsManual = getPotionsManual();\n\n\t\t// Build a potion -> reagents map from this potions manual.\n\t\tMap<String, Set<String>> map = PotionMaster.potionToReagentsMap(potionsManual);\n\n\t\t// Check that the resulting map has exactly the right contents.\n\t\tif (!checkPotionToReagentsMapContents(map))\n\t\t{\n\t\t\tSystem.out.println(\"Incorrect map. Aborting test case.\");\n\t\t\tPotionInfo.printMap(map);\n\n\t\t\t// Kill the program.\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\treturn map;\n\t}", "protected Map createPropertiesMap() {\n return new HashMap();\n }", "@Test\r\n void test3(){\r\n HashDictionary D=new HashDictionary();\r\n D.set(8,9);\r\n assertEquals(D.set(8,7),9);\r\n }", "public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "private static Map<String, Set<String>> getReagentToPotionsTestCaseMap()\n\t{\n\t\t// Set up the potions manual for this particular test case.\n\t\tList<PotionInfo> potionsManual = getPotionsManual();\n\n\t\t// Build a reagent -> potions map from this potions manual.\n\t\tMap<String, Set<String>> map = PotionMaster.reagentToPotionsMap(potionsManual);\n\n\t\t// Check that the resulting map has exactly the right contents.\n\t\tif (!checkReagentToPotionsMapContents(map))\n\t\t{\n\t\t\tSystem.out.println(\"Incorrect map. Aborting test case.\");\n\t\t\tPotionInfo.printMap(map);\n\n\t\t\t// Kill the program.\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\treturn map;\n\t}", "@Test\n\tpublic void doEqualsTestSameMapDifferentInstances() {\n\t\tassertTrue(bigBidiMap.equals(bigBidiMap_other));\n\n\t}", "@Test\r\n\tpublic void testDimensiuneHashMap() {\n\t\tcompanie.adaugaComanda(\"nume1\", new Comanda());\r\n\t\tcompanie.adaugaComanda(\"nume2\", new Comanda());\r\n\t\tassertEquals(\"test lungime tabela comenzi: \", 2, companie.getNumarComenzi2());\r\n\t}", "@Test\n public void testBackdoorModificationSameKey()\n {\n testBackdoorModificationSameKey(this);\n }", "@Test\n public void testInfoCopyTest() {\n assertTestInfoSpecies(PokemonNamesies.BULBASAUR, PokemonNamesies.CHARMANDER, new TestInfo());\n\n // Changing information other than species will not affect the copy\n testInfoCopyTest(false, new TestInfo());\n testInfoCopyTest(false, new TestInfo().attacking(AbilityNamesies.OVERGROW));\n testInfoCopyTest(false, new TestInfo().defending(AbilityNamesies.BLAZE));\n\n // Even if the default Pokemon are explicitly set, it will override the setting in the copy\n testInfoCopyTest(true, new TestInfo(PokemonNamesies.BULBASAUR, PokemonNamesies.CHARMANDER));\n testInfoCopyTest(true, new TestInfo().attacking(PokemonNamesies.BULBASAUR));\n testInfoCopyTest(true, new TestInfo().defending(PokemonNamesies.CHARMANDER));\n }", "@Test\n public void testChangeMetadataMap() {\n HashMap<String, String> map = new HashMap<>();\n map.put(\"color\", \"red\");\n map.put(\"r\", \"2\");\n metaDataProcessor.editMetaData(1, map);\n assertTrue(CommandController.getInstance().getCommandQ().poll() instanceof CommandComposite);\n }", "public void testNormalValues()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkValues(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "@Test\n public void testPutAll_Existing() {\n Map<String, String> toAdd = fillMap(1, 10, \"\", \"Old \");\n\n map.putAll(toAdd);\n\n Map<String, String> toUpdate = fillMap(1, 10, \"\", \"New \");\n\n configureAnswer();\n testObject.putAll(toUpdate);\n\n for (String k : toAdd.keySet()) {\n String old = toAdd.get(k);\n String upd = toUpdate.get(k);\n\n verify(helper).fireReplace(entry(k, old), entry(k, upd));\n }\n verifyNoMoreInteractions(helper);\n }", "@Test\n public void whenHaveListOfUsersThenMakeMapOfUsers() {\n HashMap<Integer, User> expect = new HashMap<>();\n User firstUser = new User(1, \"Vasya\", \"Murmansk\");\n User secondUser = new User(5, \"Vova\", \"Vologda\");\n expect.put(1, firstUser);\n expect.put(5, secondUser);\n List<User> list = new ArrayList<>();\n list.add(firstUser);\n list.add(secondUser);\n UserConvert userConvert = new UserConvert();\n assertThat(userConvert.process(list), is(expect));\n }", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "private ModuleMapper() {\n mapper = new HashMap<String, String>();\n mapper.put(\"accounts\", \"Accounts\");\n mapper.put(\"acl_actions\", \"ACLActions\");\n mapper.put(\"acl_roles\", \"ACLRoles\");\n mapper.put(\"bugs\", \"Bugs\");\n mapper.put(\"calls\", \"Calls\");\n mapper.put(\"campaign_log\", \"CampaignLog\");\n mapper.put(\"campaign_trkrs\", \"CampaignTrackers\");\n mapper.put(\"campaigns\", \"Campaigns\");\n mapper.put(\"cases\", \"Cases\");\n mapper.put(\"contacts\", \"Contacts\");\n mapper.put(\"currencies\", \"Currencies\");\n mapper.put(\"document_revisions\", \"DocumentRevisions\");\n mapper.put(\"documents\", \"Documents\");\n mapper.put(\"eapm\", \"EAPM\");\n mapper.put(\"email_addresses\", \"EmailAddresses\");\n mapper.put(\"email_marketing\", \"EmailMarketing\");\n mapper.put(\"email_templates\", \"EmailTemplates\");\n mapper.put(\"emailman\", \"EmailMan\");\n mapper.put(\"emails\", \"Emails\");\n mapper.put(\"inbound_email\", \"InboundEmail\");\n mapper.put(\"job_queue\", \"SchedulersJobs\");\n mapper.put(\"leads\", \"Leads\");\n mapper.put(\"meetings\", \"Meetings\");\n mapper.put(\"notes\", \"Notes\");\n mapper.put(\"oauth_consumer\", \"OAuthKeys\");\n mapper.put(\"oauth_tokens\", \"OAuthTokens\");\n mapper.put(\"opportunities\", \"Opportunities\");\n mapper.put(\"project\", \"Project\");\n mapper.put(\"project_task\", \"ProjectTask\");\n mapper.put(\"prospect_lists\", \"ProspectLists\");\n mapper.put(\"prospects\", \"Prospects\");\n mapper.put(\"releases\", \"Releases\");\n mapper.put(\"roles\", \"Roles\");\n mapper.put(\"saved_search\", \"SavedSearch\");\n mapper.put(\"schedulers\", \"Schedulers\");\n mapper.put(\"sugarfeed\", \"SugarFeed\");\n mapper.put(\"tasks\", \"Tasks\");\n mapper.put(\"users\", \"Users\");\n }", "public void initEvaluatorMap() {\n putObject(CoreConstants.EVALUATOR_MAP, new HashMap());\n }", "public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }", "private MapTransformer(Map map) {\n super();\n iMap = map;\n }", "public void testInverseKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap2.class,\r\n HashMap2Item.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap2.class);\r\n clean(HashMap2Item.class);\r\n }\r\n }", "protected Map createAttachmentsMap() {\n return new HashMap();\n }", "@Test\n public void testDisplayOrders() {\n System.out.println(\"displayOrders\");\n\n HashMap<String, HashMap<Integer, Order>> testMap = new HashMap<>();\n HashMap<Integer, Order> testMap2 = new HashMap<>();\n OrderOperations instance = new OrderOperations();\n Order testOrder = new Order();\n int orderNumber = 1;\n String date = \"03251970\";\n testOrder.setOrderNumber(1);\n testOrder.setCustomerName(\"Barack\");\n testOrder.setState(\"MI\");\n testOrder.setTaxRate(5.75);\n testOrder.setProductType(\"Wood\");\n testOrder.setArea(700);\n testOrder.setCostPerSquareFoot(5.15);\n testOrder.setLaborCostPerSquareFoot(4.75);\n testMap2.put(orderNumber, testOrder);\n instance.getOrderMap().put(date, testMap2);\n assertEquals(instance.displayOrders(date).contains(\"Wood\"), true);\n assertEquals(instance.displayOrders(date).contains(\"700\"), true);\n assertEquals(instance.displayOrders(date).contains(\"Laminate\"), false);\n\n }", "@Test\n public void testLibrosReservados() {\n System.out.println(\"LibrosReservados\");\n BibliotecarioController instance = new BibliotecarioController();\n Map<Libro, List<Usuario>> expResult = new HashMap<>();\n List<Usuario> usuarios = new ArrayList<>();\n usuarios.add(new UsuariosList().getUsuarios().get(0));\n expResult.put(new LibrosList().getLibros().get(0), usuarios);\n Map<Libro, List<Usuario>> result = instance.LibrosReservados();\n assertEquals(expResult, result);\n System.out.println(result);\n }", "public static void main(String[] args) {\n\t\tHashMap<String, String> h1 = new HashMap<String,String>();\n\t\th1.put(\"1\", \"first\");\n\t\th1.put(\"2\", \"second\");\n\t\t\n\t\tString s = \"original\";\n\t\t\n\t\tint i=10;\n\t\t\n\t\tFinalClassExample ce = new FinalClassExample(i,s,h1);\n\t\t\n\t\t//Lets see whether its copy by field or reference\n\t\tSystem.out.println(s==ce.getName());\n\t\tSystem.out.println(h1 == ce.getTestMap());\n\t\t//print the ce values\n\t\tSystem.out.println(\"ce id:\"+ce.getId());\n\t\tSystem.out.println(\"ce name:\"+ce.getName());\n\t\tSystem.out.println(\"ce testMap:\"+ce.getTestMap());\n\t\t//change the local variable values\n\t\ti=20;\n\t\ts=\"modified\";\n\t\th1.put(\"3\", \"third\");\n\t\t//print the values again\n\t\tSystem.out.println(\"ce id after local variable change:\"+ce.getId());\n\t\tSystem.out.println(\"ce name after local variable change:\"+ce.getName());\n\t\tSystem.out.println(\"ce testMap after local variable change:\"+ce.getTestMap());\n\t\t\n\t\tHashMap<String, String> hmTest = ce.getTestMap();\n\t\thmTest.put(\"4\", \"new\");\n\t\t\n\t\tSystem.out.println(\"ce testMap after changing variable from accessor methods:\"+ce.getTestMap());\n\n\t}", "@Before\n public void setUp() throws Exception {\n labRat = (LinkedMap) makeEmptyMap();\n }", "@Test\n public void hashCodeTest()\n {\n MapAdapter test1 = new MapAdapter();\n test1.put(1, \"test1\");\n\n MapAdapter test2 = new MapAdapter();\n test2.put(2, \"test2\");\n\n map.put(1, \"test1\");\n\n assertEquals(test1.hashCode(), map.hashCode());\n assertNotEquals(test2.hashCode(), map.hashCode());\n\n test1.put(1, 1);\n assertNotEquals(test1.hashCode(), map.hashCode());\n }", "public void testInverseEntrySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkEntrySet(pmf,\r\n HashMap2.class,\r\n HashMap2Item.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap2.class);\r\n clean(HashMap2Item.class);\r\n }\r\n }", "public void testInverseValues()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkValues(pmf,\r\n HashMap2.class,\r\n HashMap2Item.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap2.class);\r\n clean(HashMap2Item.class);\r\n }\r\n }", "public CjtMap(){\r\n cjtMap = new TreeMap();\r\n sequence = new Sequence(1, 0, 1, false);\r\n }", "private void m12807a(Map<String, String> map) {\n map.put(\"exoplayer\", String.valueOf(this.f10118e.mo1835a()));\n map.put(\"prep\", Long.toString(this.f10118e.getInitialBufferTime()));\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"TortId\", this.TortId);\n this.setParamSimple(map, prefix + \"TortTitle\", this.TortTitle);\n this.setParamSimple(map, prefix + \"TortPlat\", this.TortPlat);\n this.setParamSimple(map, prefix + \"TortURL\", this.TortURL);\n this.setParamSimple(map, prefix + \"PubTime\", this.PubTime);\n this.setParamSimple(map, prefix + \"Author\", this.Author);\n this.setParamSimple(map, prefix + \"DetectTime\", this.DetectTime);\n this.setParamSimple(map, prefix + \"ObtainStatus\", this.ObtainStatus);\n this.setParamSimple(map, prefix + \"RightStatus\", this.RightStatus);\n this.setParamSimple(map, prefix + \"BlockStatus\", this.BlockStatus);\n this.setParamSimple(map, prefix + \"TortNum\", this.TortNum);\n this.setParamSimple(map, prefix + \"ObtainNote\", this.ObtainNote);\n this.setParamSimple(map, prefix + \"WorkTitle\", this.WorkTitle);\n this.setParamSimple(map, prefix + \"TortSite\", this.TortSite);\n this.setParamSimple(map, prefix + \"ICP\", this.ICP);\n this.setParamSimple(map, prefix + \"RightNote\", this.RightNote);\n this.setParamSimple(map, prefix + \"ObtainType\", this.ObtainType);\n this.setParamSimple(map, prefix + \"BlockNote\", this.BlockNote);\n this.setParamSimple(map, prefix + \"WorkId\", this.WorkId);\n this.setParamSimple(map, prefix + \"WorkName\", this.WorkName);\n this.setParamSimple(map, prefix + \"AuthStatus\", this.AuthStatus);\n this.setParamSimple(map, prefix + \"CommStatus\", this.CommStatus);\n this.setParamSimple(map, prefix + \"EvidenceStatus\", this.EvidenceStatus);\n this.setParamSimple(map, prefix + \"IsProducer\", this.IsProducer);\n this.setParamSimple(map, prefix + \"IsOverseas\", this.IsOverseas);\n this.setParamSimple(map, prefix + \"IPLoc\", this.IPLoc);\n\n }", "private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }", "@Test\n public void test1(){\n Map map = us.selectAll(1, 1);\n System.out.println(map);\n }", "@Test\n public void test10() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1330,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test10\");\n HashMap<String, StringTokenizer>[] hashMapArray0 = (HashMap<String, StringTokenizer>[]) Array.newInstance(HashMap.class, 3);\n ObjectArrayListIterator<HashMap<String, StringTokenizer>> objectArrayListIterator0 = new ObjectArrayListIterator<HashMap<String, StringTokenizer>>(hashMapArray0, 0, 0);\n Iterator<HashMap<String, StringTokenizer>> iterator0 = IteratorUtils.unmodifiableIterator((Iterator<HashMap<String, StringTokenizer>>) objectArrayListIterator0);\n assertEquals(false, iterator0.hasNext());\n }", "public void testCtorStr() throws Exception {\n ConfigManager.getInstance()\n .add(\"test_files\" + File.separator\n + \"RenameConverter.xml\");\n\n RenameConverter converter = new RenameConverter(DEFAULT_NAMESPACE);\n assertNotNull(\"Unable to create RenameConverter instance.\", converter);\n\n Field fdMaps = converter.getClass().getDeclaredField(\"toRenameNames\");\n fdMaps.setAccessible(true);\n\n Map map = (Map) fdMaps.get(converter);\n assertEquals(\"The UML2:TypedElement.type should be renamed to UML:StructuralFeature.type\",\n \"UML:StructuralFeature.type\", map.get(\"UML2:TypedElement.type\"));\n assertEquals(\"The UML:Class should be renamed to UML:Classifier\",\n \"UML:Classifier\", map.get(\"UML:Class\"));\n assertEquals(\"The UML:DateType should be renamed to UML:Class\",\n \"UML:Classifier\", map.get(\"UML:DateType\"));\n }", "@Test\n public void testEjemplaresPrestados() {\n System.out.println(\"EjemplaresPrestados\");\n Libro libro = new LibrosList().getLibros().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Map<Ejemplar, List<Usuario>> expResult = new HashMap<>();\n List<Usuario> usuarios = new ArrayList<>();\n usuarios.add(new UsuariosList().getUsuarios().get(0));\n expResult.put(new EjemplaresList().getEjemplares().get(0), usuarios);\n Map<Ejemplar, List<Usuario>> result = instance.EjemplaresPrestados(libro);\n assertEquals(expResult, result);\n System.out.println(result);\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"BaselineInstanceId\", this.BaselineInstanceId);\n this.setParamSimple(map, prefix + \"BaselineType\", this.BaselineType);\n this.setParamSimple(map, prefix + \"BaselineDataTime\", this.BaselineDataTime);\n this.setParamSimple(map, prefix + \"UpstreamInstanceIds\", this.UpstreamInstanceIds);\n this.setParamSimple(map, prefix + \"DownstreamInstanceIds\", this.DownstreamInstanceIds);\n this.setParamSimple(map, prefix + \"IsPromiseTask\", this.IsPromiseTask);\n this.setParamSimple(map, prefix + \"TaskId\", this.TaskId);\n this.setParamSimple(map, prefix + \"CurRunDate\", this.CurRunDate);\n this.setParamSimple(map, prefix + \"TaskName\", this.TaskName);\n this.setParamSimple(map, prefix + \"InCriticalPath\", this.InCriticalPath);\n this.setParamSimple(map, prefix + \"InFirstLevel\", this.InFirstLevel);\n this.setParamSimple(map, prefix + \"EstimatedCostTime\", this.EstimatedCostTime);\n this.setParamSimple(map, prefix + \"ActualCostTime\", this.ActualCostTime);\n this.setParamSimple(map, prefix + \"LatestStartTime\", this.LatestStartTime);\n this.setParamSimple(map, prefix + \"ActualStartTime\", this.ActualStartTime);\n this.setParamSimple(map, prefix + \"EstimatedEndTime\", this.EstimatedEndTime);\n this.setParamSimple(map, prefix + \"LatestEndTime\", this.LatestEndTime);\n this.setParamSimple(map, prefix + \"ActualEndTime\", this.ActualEndTime);\n this.setParamSimple(map, prefix + \"TaskInstanceStatus\", this.TaskInstanceStatus);\n this.setParamSimple(map, prefix + \"ProjectId\", this.ProjectId);\n this.setParamSimple(map, prefix + \"ShardKey\", this.ShardKey);\n this.setParamSimple(map, prefix + \"CreateTime\", this.CreateTime);\n this.setParamSimple(map, prefix + \"UpdateTime\", this.UpdateTime);\n this.setParamSimple(map, prefix + \"UserUin\", this.UserUin);\n this.setParamSimple(map, prefix + \"OwnerUin\", this.OwnerUin);\n this.setParamSimple(map, prefix + \"AppId\", this.AppId);\n\n }", "@Test\r\n\tpublic void testDictionaryChanged_manyDictionaries() {\n\t\toutputUpdater.dictionaryChanged(Arrays.asList(\"english-words.10.txt\",\r\n\t\t \"english-words.20.txt\",\r\n\t\t \"english-words.35.txt\"));\r\n\r\n\t\tverify(mockFactory).createAndExecute(eq(mockProgressBarWrapper),\r\n\t\t eq(mockOutputTextViewWrapper),\r\n\t\t any(List.class),\r\n\t\t any(Pattern.class));\r\n\t\t// verify(mockOutputTextViewWrapper)\r\n\t\t// .setText(\"apple\\napple's\\napples\\ngrapple\\ngrappled\\ngrapples\\npineapple\\npineapple's\\npineapples\");\r\n\t}", "@Test\n public void hashMapInitialised()\n {\n Map<Integer, String> strings = MapUtil.<Integer, String>hashMap().keyValue(1, \"Me\").keyValue(2, \"You\");\n // Is this really better than calling strings.put(..)?\n\n assertEquals(\"You\", strings.get(2));\n }", "@Test\n public void testSet() {\n Assert.assertTrue(map.set(\"key-1\", \"value-1\", 10));\n Assert.assertTrue(map.set(\"key-1\", \"value-2\", 10));\n Assert.assertTrue(map.set(\"key-2\", \"value-1\", 10));\n }", "private void doAPITest(Map<Object,Object> table) {\n\t\tint size = table.size();\n\t\tObject key, value;\n\t\t\n\t\tMap<Object,Object> clone = cloneMap(table);\n\t\t\n\t\t// retrieve values using values()\n\t\tCollection<Object> values = table.values();\n\t\t\n\t\t// retrieve keys using keySet()\n\t\tSet<Object> keySet = table.keySet();\t\t\n\t\tObject[] keySetArray = keySet.toArray();\n\t\t\n\t\tint step = 1 + random.nextInt(5);\n\t\t\n\t\tfor (int i=0; i<keySetArray.length; i=i+step)\n\t\t{\n\t\t\tkey = keySetArray[i];\n\t\t\t// retrieve value\n\t\t\tvalue = table.get(key);\n\t\t\t\n\t\t\t// assert value is in the table\n\t\t\tassertTrue(table.containsValue(value));\n\t\t\t/*\n\t\t\t * assertTrue(table.contains(value)); // Removed as not supported by the Map interface, and identical to containsValue\n\t\t\t * if value is a wrapped key then check it's equal \n\t\t\t * to the key \n\t\t\t */\n\t\t\tif (value instanceof CustomValue)\n\t\t\t{\n\t\t\t\tassertEquals(key, ((CustomValue)value).key);\n\t\t\t}\n\t\t\t\n\t\t\t// count how many occurrences of this value there are\n\t\t\tint occurrences = numberOccurrences(values, value);\n\t\t\t\n\t\t\t// find the Map.Entry\n\t\t\tSet<Map.Entry<Object, Object>> entrySet = table.entrySet();\n\t\t\tIterator<Map.Entry<Object, Object>> entrySetIterator = entrySet.iterator();\n\t\t\tMap.Entry<Object,Object> entry = null;\n\t\t\tdo\n\t\t\t{\n\t\t\t\tentry = entrySetIterator.next();\n\t\t\t} while (!entry.getKey().equals(key));\n\t\t\t\n\t\t\t// remove from table in different ways\n\t\t\tswitch (i % 3)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\ttable.remove(key);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tkeySet.remove(key);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t\n\t\t\t\tentrySet.remove(entry);\n\t\t\t}\n\t\t\t\n\t\t\t// assert key is no longer in the table\n\t\t\tassertFalse(table.containsKey(key));\n\t\t\t// assert key is no longer in the keyset\n\t\t\tassertFalse(keySet.contains(key));\n\t\t\t// assert key is no longer in the entrySet\n\t\t\tassertFalse(entrySet.contains(entry));\n\t\t\t\n\t\t\t// assert that there's one fewer of this value in the hashtable\n\t\t\tassertEquals(occurrences, numberOccurrences(values, value) + 1);\n\t\t\t\n\t\t\t// re-insert key\n\t\t\ttable.put(key, value);\n\t\t\t\n\t\t\t// assert key is in the table\n\t\t\tassertTrue(table.containsKey(key));\n\t\t\t// assert key is in the keyset\n\t\t\tassertTrue(keySet.contains(key));\n\t\t\t// assert EntrySet is same size\n\t\t\tassertEquals(size, entrySet.size());\n\t\t}\n\t\t\n\t\t// test hashtable is the same size\n\t\tassertEquals(size, table.size());\n\t\t\n\t\t// test keySet is expected size\n\t\tassertEquals(size, keySet.size());\n\t\t\n\t\t// retrieve keys using keys()\n\t\tIterator<?> keys = table.keySet().iterator();\n\t\t\n\t\t// remove a subset of elements from the table. store in a map\n\t\tint counter = table.size() / 4;\n\t\tMap<Object,Object> map = new HashMap<Object, Object>();\n\t\twhile (keys.hasNext() && counter-- >= 0)\n\t\t{\n\t\t\tkey = keys.next();\n\t\t\tvalue = table.get(key);\n\t\t\tmap.put(key, value);\n\t\t\tkeys.remove(); // removes the most recent retrieved element\n\t\t}\n\t\t// re-add the elements using putAll\n\t\ttable.putAll(map);\n\t\t\n\t\t// test equal to copy\n\t\tassertEquals(clone, table);\n\t\t\n\t\t// clear the copy\n\t\tclone.clear();\n\t\t\n\t\t// assert size of clone is zero\n\t\tassertEquals(0, clone.size());\n\t\t\n\t\t// assert size of original is the same\n\t\tassertEquals(size, table.size());\n\t}", "public synchronized static void internal_updateKnownTypes() {\r\n Set<ChangeLogType> changeLogTypes = GrouperDAOFactory.getFactory().getChangeLogType().findAll();\r\n GrouperCache<MultiKey, ChangeLogType> newTypes = new GrouperCache<MultiKey, ChangeLogType>(\r\n ChangeLogTypeFinder.class.getName() + \".typeCache\", 10000, false, 60*10, 60*10, false);\r\n \r\n Map<String, ChangeLogType> newTypesById = new HashMap<String, ChangeLogType>();\r\n \r\n for (ChangeLogType changeLogType : GrouperUtil.nonNull(changeLogTypes)) {\r\n newTypes.put(new MultiKey(changeLogType.getChangeLogCategory(), changeLogType.getActionName()), changeLogType);\r\n newTypesById.put(changeLogType.getId(), changeLogType);\r\n }\r\n \r\n //add builtins if necessary\r\n internal_updateBuiltinTypesOnce(newTypes, newTypesById);\r\n \r\n types = newTypes;\r\n typesById = newTypesById;\r\n }", "public Map<String, Object> map() {\n Map<String, Object> tomcatInstanceMap = new HashMap<>();\n tomcatInstanceMap.put(\"instanceUUID\", tomcatInstanceUUID);\n tomcatInstanceMap.put(\"instanceName\", instanceName);\n tomcatInstanceMap.put(\"environmentName\", environmentName);\n tomcatInstanceMap.put(\"tomcatVersion\", tomcatVersion);\n tomcatInstanceMap.put(\"destinationFolder\", destinationFolder.getAbsolutePath());\n tomcatInstanceMap.put(\"compressed\", compressed);\n tomcatInstanceMap.put(\"primaryPort\", primaryPort);\n tomcatInstanceMap.put(\"protocolPrimaryPort\", protocolPrimaryPort);\n tomcatInstanceMap.put(\"shutdownPort\", shutdownPort);\n tomcatInstanceMap.put(\"ajpPort\", ajpPort);\n tomcatInstanceMap.put(\"secureInstance\", secureInstance);\n tomcatInstanceMap.put(\"securePort\", securePort);\n tomcatInstanceMap.put(\"protocolSecurePort\", protocolSecurePort);\n tomcatInstanceMap.put(\"keystoreSourceFilename\", keystoreSourceFilename);\n tomcatInstanceMap.put(\"keystoreCredentials\", keystoreCredentials);\n tomcatInstanceMap.put(\"jvmOptionXms\", jvmOptionXms);\n tomcatInstanceMap.put(\"jvmOptionXmx\", jvmOptionXmx);\n tomcatInstanceMap.put(\"jvmOptionXss\", jvmOptionXss);\n tomcatInstanceMap.put(\"jvmOptionXXMaxMetaspaceSize\", jvmOptionXXMaxMetaspaceSize);\n tomcatInstanceMap.put(\"jvmOptions\", jvmOptions);\n tomcatInstanceMap.put(\"instanceManagement\", instanceManagement);\n /**\n * Serialize our Instance Management Properties\n */\n List<Map<String,String>> instanceManagementPropertiesMapList =\n new ArrayList<>(instanceManagementProperties.size());\n for(TomcatInstanceProperty tomcatInstanceProperty : instanceManagementProperties) {\n instanceManagementPropertiesMapList.add(tomcatInstanceProperty.map());\n }\n tomcatInstanceMap.put(\"instanceManagementProperties\", instanceManagementPropertiesMapList);\n /**\n * Serialize our Instance Properties\n */\n List<Map<String,String>> instancePropertiesMapList =\n new ArrayList<>(instanceProperties.size());\n for(TomcatInstanceProperty tomcatInstanceProperty : instanceProperties) {\n instancePropertiesMapList.add(tomcatInstanceProperty.map());\n }\n tomcatInstanceMap.put(\"instanceProperties\", instancePropertiesMapList);\n /**\n * Return the Map for Persisting as YAML.\n */\n return tomcatInstanceMap;\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"Title\", this.Title);\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Type\", this.Type);\n this.setParamSimple(map, prefix + \"Description\", this.Description);\n this.setParamSimple(map, prefix + \"Schema\", this.Schema);\n this.setParamSimple(map, prefix + \"CmsProject\", this.CmsProject);\n this.setParamSimple(map, prefix + \"PkgId\", this.PkgId);\n this.setParamSimple(map, prefix + \"SchemaVersion\", this.SchemaVersion);\n this.setParamSimple(map, prefix + \"CreatorId\", this.CreatorId);\n this.setParamSimple(map, prefix + \"CreatedAt\", this.CreatedAt);\n this.setParamSimple(map, prefix + \"UpdatedAt\", this.UpdatedAt);\n this.setParamSimple(map, prefix + \"EnvId\", this.EnvId);\n this.setParamSimple(map, prefix + \"DataSourceVersion\", this.DataSourceVersion);\n this.setParamArrayObj(map, prefix + \"AppUsageList.\", this.AppUsageList);\n this.setParamSimple(map, prefix + \"PublishedAt\", this.PublishedAt);\n this.setParamArraySimple(map, prefix + \"ChildDataSourceIds.\", this.ChildDataSourceIds);\n this.setParamSimple(map, prefix + \"Fun\", this.Fun);\n this.setParamSimple(map, prefix + \"ScfStatus\", this.ScfStatus);\n this.setParamSimple(map, prefix + \"Methods\", this.Methods);\n this.setParamArraySimple(map, prefix + \"ChildDataSourceNames.\", this.ChildDataSourceNames);\n this.setParamSimple(map, prefix + \"IsNewDataSource\", this.IsNewDataSource);\n this.setParamSimple(map, prefix + \"ViewId\", this.ViewId);\n this.setParamSimple(map, prefix + \"Configuration\", this.Configuration);\n this.setParamSimple(map, prefix + \"TemplateCode\", this.TemplateCode);\n this.setParamSimple(map, prefix + \"Source\", this.Source);\n this.setParamSimple(map, prefix + \"PublishVersion\", this.PublishVersion);\n this.setParamSimple(map, prefix + \"PublishViewId\", this.PublishViewId);\n this.setParamSimple(map, prefix + \"SubType\", this.SubType);\n this.setParamSimple(map, prefix + \"AuthStatus\", this.AuthStatus);\n this.setParamObj(map, prefix + \"AuthInfo.\", this.AuthInfo);\n\n }", "public void mo9224a(HashMap<String, String> hashMap) {\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"BusinessCodeName\", this.BusinessCodeName);\n this.setParamSimple(map, prefix + \"ProductCodeName\", this.ProductCodeName);\n this.setParamSimple(map, prefix + \"PayModeName\", this.PayModeName);\n this.setParamSimple(map, prefix + \"ProjectName\", this.ProjectName);\n this.setParamSimple(map, prefix + \"RegionName\", this.RegionName);\n this.setParamSimple(map, prefix + \"ZoneName\", this.ZoneName);\n this.setParamSimple(map, prefix + \"ResourceId\", this.ResourceId);\n this.setParamSimple(map, prefix + \"ResourceName\", this.ResourceName);\n this.setParamSimple(map, prefix + \"ActionTypeName\", this.ActionTypeName);\n this.setParamSimple(map, prefix + \"OrderId\", this.OrderId);\n this.setParamSimple(map, prefix + \"BillId\", this.BillId);\n this.setParamSimple(map, prefix + \"PayTime\", this.PayTime);\n this.setParamSimple(map, prefix + \"FeeBeginTime\", this.FeeBeginTime);\n this.setParamSimple(map, prefix + \"FeeEndTime\", this.FeeEndTime);\n this.setParamArrayObj(map, prefix + \"ComponentSet.\", this.ComponentSet);\n this.setParamSimple(map, prefix + \"PayerUin\", this.PayerUin);\n this.setParamSimple(map, prefix + \"OwnerUin\", this.OwnerUin);\n this.setParamSimple(map, prefix + \"OperateUin\", this.OperateUin);\n this.setParamArrayObj(map, prefix + \"Tags.\", this.Tags);\n this.setParamSimple(map, prefix + \"BusinessCode\", this.BusinessCode);\n this.setParamSimple(map, prefix + \"ProductCode\", this.ProductCode);\n this.setParamSimple(map, prefix + \"ActionType\", this.ActionType);\n this.setParamSimple(map, prefix + \"RegionId\", this.RegionId);\n this.setParamSimple(map, prefix + \"ProjectId\", this.ProjectId);\n this.setParamArraySimple(map, prefix + \"PriceInfo.\", this.PriceInfo);\n this.setParamObj(map, prefix + \"AssociatedOrder.\", this.AssociatedOrder);\n this.setParamSimple(map, prefix + \"Formula\", this.Formula);\n this.setParamSimple(map, prefix + \"FormulaUrl\", this.FormulaUrl);\n\n }", "@Test\n public void entrySetTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.entrySet());\n }", "@Test\n public void test3() {\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n assertEquals(map1, cashRegister.getContents());\n }", "public TimeMap() {\n timeMap = new HashMap<>();\n }", "private static void simpleMapExamples() {\n\t\tSystem.out.println(\"simpleMapExamples Start ----\");\n\t\t\n\t\tMap<String,Integer> mapEx1 = new HashMap<>();\n\t\t\n\t\tmapEx1.put(\"Amit\", 35);\n\t\tmapEx1.put(\"Gunjan\", 45);\n\t\tmapEx1.put(\"Vidut\", 55);\n\t\t\n\t\t//Loop over Map\n\t\tfor(Entry<String, Integer> entry : mapEx1.entrySet()) {\n\t\t\t\n\t\t\tString key = entry.getKey();\n\t\t\tInteger val = entry.getValue();\n\t\t\t\n\t\t\tSystem.out.println(\"KEY : \" + key + \" : VAL : \" + val);\n\t\t\t\n\t\t}\n\t\t\n\t\t//API to get collection of values from the map\n\t\tCollection<Integer> values = mapEx1.values();\n\t\t\n\t\t//Now browse over collection values using java8 lambda\n\t\tSystem.out.println(\"Printing values ...\");\n\t\tvalues.forEach((val) -> System.out.println(val));\n\t\t\n\t\t//Replace values in the map using \n\t\t//Here we are replacing each key's value to 46\n\t\tmapEx1.replaceAll(( s, i) -> {\n\t\t\treturn 46;\n\t\t});\n\t\t\n\t\tSystem.out.println(\"Printing after firing replaceAll...\");\n\t\t//Now print the key/value pair of map using lambda\n\t\tmapEx1.forEach((k,v) -> {\n\t\t\tSystem.out.println(\"Key : \" + k + \" Val \" + v);\n\t\t});\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"simpleMapExamples End ----\");\n\t}", "public void testNormalPutItems()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkPutItems(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"FileName\", this.FileName);\n this.setParamSimple(map, prefix + \"FilePath\", this.FilePath);\n this.setParamSimple(map, prefix + \"VirusName\", this.VirusName);\n this.setParamSimple(map, prefix + \"CreateTime\", this.CreateTime);\n this.setParamSimple(map, prefix + \"ModifyTime\", this.ModifyTime);\n this.setParamSimple(map, prefix + \"ContainerName\", this.ContainerName);\n this.setParamSimple(map, prefix + \"ContainerId\", this.ContainerId);\n this.setParamSimple(map, prefix + \"ContainerStatus\", this.ContainerStatus);\n this.setParamSimple(map, prefix + \"ImageName\", this.ImageName);\n this.setParamSimple(map, prefix + \"ImageId\", this.ImageId);\n this.setParamSimple(map, prefix + \"Status\", this.Status);\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"HarmDescribe\", this.HarmDescribe);\n this.setParamSimple(map, prefix + \"SuggestScheme\", this.SuggestScheme);\n this.setParamSimple(map, prefix + \"SubStatus\", this.SubStatus);\n this.setParamSimple(map, prefix + \"ContainerNetStatus\", this.ContainerNetStatus);\n this.setParamSimple(map, prefix + \"ContainerNetSubStatus\", this.ContainerNetSubStatus);\n this.setParamSimple(map, prefix + \"ContainerIsolateOperationSrc\", this.ContainerIsolateOperationSrc);\n this.setParamSimple(map, prefix + \"MD5\", this.MD5);\n this.setParamSimple(map, prefix + \"RiskLevel\", this.RiskLevel);\n this.setParamArraySimple(map, prefix + \"CheckPlatform.\", this.CheckPlatform);\n this.setParamSimple(map, prefix + \"NodeID\", this.NodeID);\n this.setParamSimple(map, prefix + \"NodeName\", this.NodeName);\n this.setParamSimple(map, prefix + \"PodIP\", this.PodIP);\n this.setParamSimple(map, prefix + \"PodName\", this.PodName);\n this.setParamSimple(map, prefix + \"ClusterID\", this.ClusterID);\n this.setParamSimple(map, prefix + \"NodeType\", this.NodeType);\n this.setParamSimple(map, prefix + \"PublicIP\", this.PublicIP);\n this.setParamSimple(map, prefix + \"InnerIP\", this.InnerIP);\n this.setParamSimple(map, prefix + \"NodeUniqueID\", this.NodeUniqueID);\n this.setParamSimple(map, prefix + \"HostID\", this.HostID);\n this.setParamSimple(map, prefix + \"ClusterName\", this.ClusterName);\n\n }", "@Test\n public void testQuickMap() {\n Demo demo = DemoData.random();\n Demo demo2 = BeanUtil.quickMap(demo, Demo.class);\n }", "@Test\n public void test() throws IOException {\n mapper.insertFile(new HashMap<String,Object>(){\n {put(\"fileName\",\"黑侠\");}\n });\n// List<Map<String, Object>> byId = mapper.findById(14L);\n\n\n }", "public void testInversePutItems()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkPutItems(pmf,\r\n HashMap2.class,\r\n HashMap2Item.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap2.class);\r\n clean(HashMap2Item.class);\r\n }\r\n }", "@Test\n public void testPrestamosRealizados() {\n System.out.println(\"prestamosRealizados\");\n BibliotecarioController instance = new BibliotecarioController();\n Map<Usuario, List<Historico>> expResult = new HashMap<>();\n Usuario usuario = new UsuariosList().getUsuarios().get(0);\n List<Historico> prestamos = new ArrayList<>();\n prestamos.add(new HistoricosList().getHistoricos().get(0));\n expResult.put(usuario, prestamos);\n Map<Usuario, List<Historico>> result = instance.prestamosRealizados();\n assertEquals(expResult, result);\n\n }", "Map<String, String> mo14888a();", "public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "public HashMap<String, String> toHashMap() {\n\n // Parse if needed\n run();\n\n if (cachedMap == null) {\n cachedMap = new LinkedHashMap<String, String>();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\");\n\n cachedMap.put(\"File name\", fileName);\n cachedMap.put(\"File size\", \"\" + fileSize);\n cachedMap.put(\"PDF version\", pdfVersion);\n cachedMap.put(\"Page count\", \"\" + numberOfPages);\n cachedMap.put(\"Page size\", \"\" + mediaBoxWidthInPoints + \" x \"\n + mediaBoxHeightInPoints + \" points\");\n cachedMap.put(\"Page width\", \"\" + mediaBoxWidthInPoints);\n cachedMap.put(\"Page height\", \"\" + mediaBoxHeightInPoints);\n cachedMap.put(\"Page layout\", pageLayout);\n cachedMap.put(\"Title\", title);\n cachedMap.put(\"Author\", author);\n cachedMap.put(\"Subject\", subject);\n cachedMap.put(\"PDF producer\", producer);\n cachedMap.put(\"Content creator\", contentCreator);\n if (creationDate != null) {\n cachedMap.put(\"Creation date\",\n dateFormat.format(creationDate.getTime()));\n } else {\n cachedMap.put(\"Creation date\", \"\");\n }\n if (modificationDate != null) {\n cachedMap.put(\"Modification date\",\n dateFormat.format(modificationDate.getTime()));\n } else {\n cachedMap.put(\"Modification date\", \"\");\n }\n\n // \"Others\"\n cachedMap.put(\"Encrypted\", \"\" + isEncrypted);\n cachedMap.put(\"Keywords\", keywords);\n cachedMap.put(\"Media box width\", \"\" + mediaBoxWidthInPoints);\n cachedMap.put(\"Media box height\", \"\" + mediaBoxHeightInPoints);\n cachedMap.put(\"Crop box width\", \"\" + cropBoxWidthInPoints);\n cachedMap.put(\"Crop box height\", \"\" + cropBoxHeightInPoints);\n \n if(permissions != null) {\n cachedMap.put(\"Can Print\", Boolean.toString(permissions.canPrint()));\n cachedMap.put(\"Can Modify\", Boolean.toString(permissions.canModify()));\n cachedMap.put(\"Can Extract\", Boolean.toString(permissions.canExtractContent()));\n cachedMap.put(\"Can Modify Annotations\", Boolean.toString(permissions.canModifyAnnotations()));\n cachedMap.put(\"Can Fill Forms\", Boolean.toString(permissions.canFillInForm()));\n cachedMap.put(\"Can Extract for Accessibility\", Boolean.toString(permissions.canExtractForAccessibility()));\n cachedMap.put(\"Can Assemble\", Boolean.toString(permissions.canAssembleDocument()));\n cachedMap.put(\"Can Print Degraded\", Boolean.toString(permissions.canPrintDegraded()));\n }\n }\n\n return cachedMap;\n }", "@Test\n public void test4 ()\n {\n MyMap m = new MyMap();\n int SIZE = 10000;\n \n // Add SIZE mappings\n for (int i = 0; i < SIZE; i++)\n {\n m.put(i+\"\", (i*17)+\"\");\n }\n \n // Add some of the keys again with new values.\n for (int i = 0; i < SIZE; i+=2)\n {\n m.put(i+\"\", (i*18)+\"\");\n }\n \n // Remove every third element.\n for (int i = 0; i < SIZE; i += 3)\n {\n m.remove(i+\"\");\n }\n \n // Remove some of them again. This should make no difference.\n for (int i = 0; i < SIZE; i += 6)\n {\n m.remove(i+\"\");\n }\n \n // Assert that the size is as expected\n assertEquals(SIZE - (int) Math.ceil(SIZE / 3.0), m.size());\n \n // Assert that membership is as expected\n for (int i = 0; i < SIZE; i++)\n {\n if (i%3 == 0)\n {\n assertNull(m.get(i+\"\"));\n }\n else if (i%2 == 0)\n {\n assertEquals((i*18)+\"\", m.get(i+\"\"));\n }\n else\n {\n \tassertEquals((i*17)+\"\", m.get(i+\"\"));\n }\n }\n }", "@Test\n public void test23() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1344,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test23\");\n OrderedMapIterator<Class<StringTokenizer>, Properties> orderedMapIterator0 = IteratorUtils.emptyOrderedMapIterator();\n AbstractOrderedMapIteratorDecorator<Class<StringTokenizer>, Properties> abstractOrderedMapIteratorDecorator0 = new AbstractOrderedMapIteratorDecorator<Class<StringTokenizer>, Properties>(orderedMapIterator0);\n Iterable<Object> iterable0 = IteratorUtils.asMultipleUseIterable((Iterator<?>) abstractOrderedMapIteratorDecorator0);\n assertNotNull(iterable0);\n }", "public void testMapGet() {\r\n }", "@Test\n public void testReservasRealizadas() {\n System.out.println(\"reservasRealizadas\");\n BibliotecarioController instance = new BibliotecarioController();\n Map<Usuario, List<Reserva>> expResult = new HashMap<>();\n Usuario usuario = new UsuariosList().getUsuarios().get(0);\n List<Reserva> reservas = new ArrayList<>();\n reservas.add(new ReservasList().getReservas().get(0));\n expResult.put(usuario, reservas);\n Map<Usuario, List<Reserva>> result = instance.reservasRealizadas();\n assertEquals(expResult, result);\n\n }", "public void setItemCollection(HashMap<String, Item> copy ){\n \titemCollection.putAll(copy);\r\n }", "private static void testMap(final OurMap<Integer, String> map) {\n System.out.printf(\"%n%s%n\", map.getClass());\n assert map.size() == 0;\n assert !map.containsKey(117);\n assert !map.containsKey(-2);\n assert map.get(117) == null;\n assert map.put(117, \"A\") == null;\n assert map.containsKey(117);\n assert map.get(117).equals(\"A\");\n assert map.put(17, \"B\") == null;\n assert map.size() == 2;\n assert map.containsKey(17);\n assert map.get(117).equals(\"A\");\n assert map.get(17).equals(\"B\");\n assert map.put(117, \"C\").equals(\"A\");\n assert map.containsKey(117);\n assert map.get(117).equals(\"C\");\n assert map.size() == 2;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n assert map.remove(117).equals(\"C\");\n assert !map.containsKey(117);\n assert map.get(117) == null;\n assert map.size() == 1;\n assert map.putIfAbsent(17, \"D\").equals(\"B\");\n assert map.get(17).equals(\"B\");\n assert map.size() == 1;\n assert map.containsKey(17);\n assert map.putIfAbsent(217, \"E\") == null;\n assert map.get(217).equals(\"E\");\n assert map.size() == 2;\n assert map.containsKey(217);\n assert map.putIfAbsent(34, \"F\") == null;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n }", "public void verifyMap() {\r\n // TODO: implement test to ensure that map is the same as confirmed if\r\n // its values were converted into collections.\r\n }", "static void prediacteDiffHelper(HashMap<String, ArrayList<String>> first, \n\t\t\t\t\t\t\t\t\t\t\t\t\t HashMap<String, ArrayList<String>> second, Role role,\n\t\t\t\t\t\t\t\t\t\t\t\t\t HashMap<String, ActionRoles> output) {\n\t\tHashMap<String, ArrayList<String>> copy = new HashMap<>();\n\t\tfor (Entry<String, ArrayList<String>> entry : second.entrySet()) {\n\t\t\tcopy.put(entry.getKey(), new ArrayList<String>(entry.getValue()));\n\t\t}\n\t\tSet<String> actions = first.keySet();\n\t\tfor (String action : actions) {\n\t\t\tArrayList<String> firstPredicates = first.get(action);\n\t\t\tArrayList<String> secondPredicates = copy.get(action);\n\t\t\t// find the difference\n\t\t\tsecondPredicates.removeAll(firstPredicates);\n\t\t\t// update the HashMap\n\t\t\tfor (String predicate: secondPredicates) {\n\t\t\t\tif (output.get(predicate) == null) {\n\t\t\t\t\toutput.put(predicate, new ActionRoles());\n\t\t\t\t}\n\t\t\t\toutput.get(predicate).add(action, role);\n\t\t\t}\n\t\t}\n\t}", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"InstanceId\", this.InstanceId);\n this.setParamSimple(map, prefix + \"InstanceName\", this.InstanceName);\n this.setParamSimple(map, prefix + \"AppId\", this.AppId);\n this.setParamSimple(map, prefix + \"ProjectId\", this.ProjectId);\n this.setParamSimple(map, prefix + \"Region\", this.Region);\n this.setParamSimple(map, prefix + \"Zone\", this.Zone);\n this.setParamSimple(map, prefix + \"VpcId\", this.VpcId);\n this.setParamSimple(map, prefix + \"SubnetId\", this.SubnetId);\n this.setParamSimple(map, prefix + \"Status\", this.Status);\n this.setParamSimple(map, prefix + \"Vip\", this.Vip);\n this.setParamSimple(map, prefix + \"Vport\", this.Vport);\n this.setParamSimple(map, prefix + \"WanDomain\", this.WanDomain);\n this.setParamSimple(map, prefix + \"WanVip\", this.WanVip);\n this.setParamSimple(map, prefix + \"WanPort\", this.WanPort);\n this.setParamSimple(map, prefix + \"CreateTime\", this.CreateTime);\n this.setParamSimple(map, prefix + \"UpdateTime\", this.UpdateTime);\n this.setParamSimple(map, prefix + \"AutoRenewFlag\", this.AutoRenewFlag);\n this.setParamSimple(map, prefix + \"PeriodEndTime\", this.PeriodEndTime);\n this.setParamSimple(map, prefix + \"Uin\", this.Uin);\n this.setParamSimple(map, prefix + \"TdsqlVersion\", this.TdsqlVersion);\n this.setParamSimple(map, prefix + \"Memory\", this.Memory);\n this.setParamSimple(map, prefix + \"Storage\", this.Storage);\n this.setParamSimple(map, prefix + \"UniqueVpcId\", this.UniqueVpcId);\n this.setParamSimple(map, prefix + \"UniqueSubnetId\", this.UniqueSubnetId);\n this.setParamSimple(map, prefix + \"OriginSerialId\", this.OriginSerialId);\n this.setParamSimple(map, prefix + \"NodeCount\", this.NodeCount);\n this.setParamSimple(map, prefix + \"IsTmp\", this.IsTmp);\n this.setParamSimple(map, prefix + \"ExclusterId\", this.ExclusterId);\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"Pid\", this.Pid);\n this.setParamSimple(map, prefix + \"Qps\", this.Qps);\n this.setParamSimple(map, prefix + \"Paymode\", this.Paymode);\n this.setParamSimple(map, prefix + \"Locker\", this.Locker);\n this.setParamSimple(map, prefix + \"StatusDesc\", this.StatusDesc);\n this.setParamSimple(map, prefix + \"WanStatus\", this.WanStatus);\n this.setParamSimple(map, prefix + \"IsAuditSupported\", this.IsAuditSupported);\n this.setParamSimple(map, prefix + \"Machine\", this.Machine);\n this.setParamSimple(map, prefix + \"IsEncryptSupported\", this.IsEncryptSupported);\n this.setParamSimple(map, prefix + \"Cpu\", this.Cpu);\n this.setParamSimple(map, prefix + \"Ipv6Flag\", this.Ipv6Flag);\n this.setParamSimple(map, prefix + \"Vipv6\", this.Vipv6);\n this.setParamSimple(map, prefix + \"WanVipv6\", this.WanVipv6);\n this.setParamSimple(map, prefix + \"WanPortIpv6\", this.WanPortIpv6);\n this.setParamSimple(map, prefix + \"WanStatusIpv6\", this.WanStatusIpv6);\n this.setParamSimple(map, prefix + \"DbEngine\", this.DbEngine);\n this.setParamSimple(map, prefix + \"DbVersion\", this.DbVersion);\n this.setParamSimple(map, prefix + \"DcnFlag\", this.DcnFlag);\n this.setParamSimple(map, prefix + \"DcnStatus\", this.DcnStatus);\n this.setParamSimple(map, prefix + \"DcnDstNum\", this.DcnDstNum);\n this.setParamSimple(map, prefix + \"InstanceType\", this.InstanceType);\n this.setParamArrayObj(map, prefix + \"ResourceTags.\", this.ResourceTags);\n this.setParamSimple(map, prefix + \"DbVersionId\", this.DbVersionId);\n\n }", "@Test\n\tpublic void testVirtualPetShelterHasACollectionOfVirtualPets() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter(); \n\n\t\tMap<String, VirtualPet> virtualPets = new HashMap<String, VirtualPet>(); // I want a map of VP's\n\t\t// Map<Key, Value (instances of virtualPet)> - the key will be the name of pet, the key is assigned to the pets instance\n\t\tString pet1 = \"Tui\"; //this is my first key called \"Tui\"\n\t\tVirtualPet tui = new VirtualPet(\"Tui\", \"Is a cute little calico\", 30, 30, 30);\n\t\tvirtualPets.put(pet1, tui);\n\n\t\tString pet2 = \"Ditch\";\n\t\tVirtualPet ditch = new VirtualPet(\"Ditch\", \"Is as cunning as a shithouse rat\", 10, 40, 15);\n\t\tvirtualPets.put(pet2, ditch);\n\n\t\tString pet3 = \"Blusey\";\n\t\tVirtualPet bluesy = new VirtualPet(\"Bluesy\", \"A black and tan Main coon who is a mushy cat who loves snuggles\",\n\t\t\t\t5, 5, 5);\n\t\tvirtualPets.put(pet3, bluesy);\n\n\t\tString pet4 = \"Jazzy\";\n\t\tVirtualPet jazzy = new VirtualPet(\"Jazzy\", \"Grey tiger who hunter who who be great in the barn\", 15, 20, 25);\n\t\tvirtualPets.put(pet4, jazzy);\n\n\t\tString pet5 = \"Nigel\";\n\t\tVirtualPet nigel = new VirtualPet(\"Nigel\", \"A big old ginger cat\", 10, 10, 50);\n\t\tvirtualPets.put(pet5, nigel);\n\n\t\t// Moved the Map/HashMap below to the VirtualPetShelter\n\t\t// Map<String, VirtualPet> virtualPets = new HashMap<String, VirtualPet>();\n\t\t// Then I created a method in VirtualPetShelter which returned the VirtualPets\n\t\t// \"Values\"\n\n\t\tCollection<VirtualPet> virtualPetCollection = testPetShelter.getVirtualPets(); //Initially got error, eclipse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// asked me to create collection in VPS\n\n\t\tAssert.assertNotNull(testPetShelter.virtualPets);//I got error, eclipse asked me to create a HashMap in VPS\n\t\tAssert.assertEquals(virtualPetCollection, testPetShelter.virtualPets.values()); //\".values() is a Maps \n\t\t //way to return a \"Collection\"\n\t\tAssert.assertEquals(\"Nigel\", virtualPets.get(pet5).name); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(30, virtualPets.get(pet1).hunger); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(40, virtualPets.get(pet2).boredom); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(5, virtualPets.get(pet3).thirst); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(\"Grey tiger who hunter who who be great in the barn\", virtualPets.get(pet4).description);\n\t}", "public void testGetObjSwap() {\n System.out.println(\"getObjSwap\");\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n HashMap result = instance.getObjSwap();\n assertNotNull(result);\n }" ]
[ "0.5616531", "0.555729", "0.5535305", "0.55067605", "0.54657704", "0.5457851", "0.54519886", "0.5442393", "0.5441529", "0.5389631", "0.5384079", "0.53666526", "0.5364296", "0.5352717", "0.5349597", "0.5347334", "0.53450924", "0.53147846", "0.5311366", "0.5293504", "0.5292057", "0.5276776", "0.52711934", "0.52700144", "0.52522165", "0.52437717", "0.52160084", "0.52040315", "0.5192402", "0.51897407", "0.5187907", "0.51634187", "0.51487887", "0.5148047", "0.51468694", "0.514387", "0.51181597", "0.5106608", "0.5106565", "0.5104954", "0.5099076", "0.5085723", "0.5080125", "0.5066266", "0.50605005", "0.50599635", "0.50406164", "0.5040382", "0.5037923", "0.5037323", "0.5033871", "0.5026965", "0.50227356", "0.5019384", "0.5017155", "0.50062406", "0.50027937", "0.49982917", "0.49944177", "0.4990094", "0.4983212", "0.49754658", "0.49557346", "0.49496502", "0.4943015", "0.4942661", "0.49405807", "0.4939937", "0.49393222", "0.49351117", "0.49313205", "0.49294847", "0.49287117", "0.49227718", "0.49219275", "0.49203512", "0.49163654", "0.49146166", "0.49125236", "0.4905963", "0.49015388", "0.4901154", "0.48912394", "0.48905694", "0.4888723", "0.48865408", "0.4878172", "0.48692057", "0.48684558", "0.48653197", "0.4864373", "0.48518828", "0.4850031", "0.48499823", "0.48471317", "0.48456007", "0.48396355", "0.48391852", "0.48388818", "0.4836277", "0.48354617" ]
0.0
-1
Method Parse the name string of a variable modidication into type of modifiction(ex: 'Acetyl') and the location(ex:'Nterm')
private String[] parseVariableModName(String aName) { String[] lNameArray = new String[2]; int lBeginIndex = aName.lastIndexOf('('); if (lBeginIndex > 0) { int lEndIndex = aName.lastIndexOf(')'); lNameArray[0] = aName.substring(0, (lBeginIndex)); lNameArray[1] = aName.substring(lBeginIndex + 1, lEndIndex); } else { lNameArray[0] = aName; lNameArray[1] = null; } return lNameArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String parseFixedModName(String aName) {\n aName = aName.trim(); //Cut of the leading whitespace.\n int lEndIndex = aName.lastIndexOf('(') - 1; //Find the last ')' bracket; minus 1 is the end of the Mod type.\n if (lEndIndex >= 0) {\n aName = aName.substring(0, lEndIndex);\n }\n return aName;\n }", "private Symbol.VariableSymbol varSymFromString(String name, String type) {\n Symbol.TypeSymbol typeSymbol = TypeUtils.typeFromStr(type);\n return new Symbol.VariableSymbol(name, typeSymbol);\n }", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "public void parse(String line)\n\t{\n\t\tif(line.length() == 0)\n\t\t\treturn;\n\t\tif(line.startsWith(\";\"))\n\t\t\treturn;\n\t\tline = line.toUpperCase();\n\t\t\n\t\tif(Utils.isCommand(line)){\n\t\t\texecuteCommand(line);\n\t\t\treturn;\n\t\t}\n\t\t//line syntax = <TYPE> <NAME> = {EXPR}\n\t\tStringBuilder build = new StringBuilder();\n\t\tString name = \"\";\n\t\tString type = \"\";\n\t\tint i = 0;\n\t\t//check if the line starts with a letter, we expect a Type declaration, made of letters :P\n\t\tif(!Utils.isLetter(line.charAt(i)))\n\t\t\terror(\"LETTER EXPECTED, NOT \" + line.charAt(i));\t\n\t\t\n\t\tchar c = line.charAt(i); //current character to analyze.\n\t\t\n\t\twhile(i < line.length() && Utils.isLetter(c))\n\t\t{\n\t\t\t//build.append(c);\n\t\t\tc = line.charAt(i); \t\n\t\t\ti++;\t\t\n\t\t}\n\t\t//space char expected before the type declaration.\n\t\tif(!Utils.isSpace(c) && i < line.length())\n\t\t\terror(\"INVALID CHARACTER \\\" \" + c + \"\\\" \");\n\t\t\n\t\t//here we obtain the type.\n\t\t//String t = build.toString();\n\t\tString t = line.substring(0, i-1);\n\t\tif(Utils.isValidType(t))\n\t\t{\n\t\t\ttype = t;\n\t\t}\n\t\telse\n\t\t\terror(t + \" IS NOT A VALID TYPE.\");\n\t\t\n\t\t//re-init stringbuilder.\n\t\tbuild = new StringBuilder();\t\n\t\t\n\t\t//ignore all whitespace chars.\n\t\twhile(i < line.length() && Utils.isSpace(line.charAt(i)))\n\t\t\ti++;\n\t\t\n\t\t//if name is not present, but the index reached the \" = \" sign, throw an Exception.\n\t\tif(line.charAt(i) == '=')\n\t\t\terror(\"NAME NOT FOUND, WHAT THE HECK ARE YOU TIPYING???\");\n\t\t\n\t\t//Names MUST start with a letter.\n\t\tif(!Utils.isLetter(line.charAt(i)))\n\t\t\terror(\"LETTER EXPECTED, NOT \" + line.charAt(i));\n\t\t\n\t\t//update the c char.\n\t\tc = line.charAt(i);\n\t\t\n\t\t//now we must obtain the name token.\n\t\twhile(i < line.length() && Utils.isLetter(c))\n\t\t{\n\t\t\tbuild.append(c);\n\t\t\ti++;\n\t\t\tc = line.charAt(i); \t\t\t\n\t\t}\n\t\t//here we have reached the edge of the name, this MUST be followed by a space char.\n\t\tif(i < line.length() && Utils.isSpace(c))\n\t\t{\n\t\t\tString n = build.toString();\n\t\t\tif(t.length() > 8)\n\t\t\t\terror(\"NAME LENGTH CAN'T BE GREATER THAN 8 CHARS\");\n\t\t\tif(t.length() == 8)\n\t\t\t\tSystem.out.println(\"name token hit the length limit, please use short names.\");\n\t\t\tname = n;\n\t\t}\n\t\telse\n\t\t\terror(\"ERROR IN CHARACTER \\\" \" + c + \" \\\", SPACE EXPECTED.\");\n\t\t\n\t\t//re-init stringbuilder.\n\t\tbuild = new StringBuilder();\n\t\t\n\t\t//ignore all whitespace chars.\n\t\twhile(i < line.length() && Utils.isSpace(line.charAt(i)))\n\t\t\ti++;\n\t\t\n\t\t//here we expect a \" = \" character.\n\t\tif(line.charAt(i) != '=')\n\t\t\terror(\"MISSING \\\" = \\\" SIMBOL\");\n\t\t\n\t\t//advance to next char, idk why, but without this, the compiler crashes.\n\t\ti++;\n\t\t\n\t\t//ignore all whitespace chars.\n\t\twhile(i < line.length() && Utils.isSpace(line.charAt(i)))\n\t\t\ti++;\n\t\t\n\t\t//get expr text.\n\t\tString e = line.substring(i);\n\t\t//solve any reference to other vars, only for basic types.\n\t\tif(Utils.containRefs(e) && Utils.isBasicType(type))\n\t\t\te = solveRefs(e);\n\t\te = e.trim();\n\t\tif(type.equals(\"INTEGER\"))\n\t\t\tints.add(new Int(name, solveMath(e)));\n\t\tif(type.equals(\"STRING\"))\n\t\t\tstrs.add(new Str(name,e));\n\t\tif(type.equals(\"BOOLEAN\"))\n\t\t\tbools.add(new Bool(name,Boolean.parseBoolean(e)));\n\t\tif(Utils.isFuncType(type))\n\t\t{}\n\t\tif(Utils.isCallType(type))\n\t\t{\n\t\t\tExecutable ex = null;\n\t\t\tif(type.equals(\"CALLX\"))\t\n\t\t\t\tex = solveCallx(name, e);\n\t\t\tif(type.equals(\"RETURN\"))\n\t\t\t\tex = solveReturn(name, e);\n\t\t\texecution.executionList.add(ex);\n\t\t}\n\t\tlnumber += 10;\n\t\tlines.add(line);\n\t}", "String getVarName(String name);", "String getTargetVariablePart();", "private String parseMaterialTemplateName(String line) {\n int space_index = line.indexOf(' ') + 1;\n String mtl_name = line.substring(space_index);\n mtl_name = mtl_name.trim();\n return mtl_name;\n }", "public String resolveVariableName(int slot, int l) {\n \t\treturn null;\n \t}", "public Variable getVariable(String name);", "String getVariableDefinition();", "private String getTypeVariableNamePrefix(String string)\r\n {\r\n string = string.trim();\r\n for (String typeVariableName : typeVariableNames)\r\n {\r\n if (string.equals(typeVariableName))\r\n {\r\n return typeVariableName;\r\n }\r\n if (string.startsWith(typeVariableName+\" \"))\r\n {\r\n return typeVariableName;\r\n }\r\n }\r\n return null;\r\n }", "private boolean isVariable(String refWord){\n\t\tif(refWord.charAt(0) == 'i' && Character.isDigit(refWord.charAt(1)))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "String getVarName();", "String getVarName();", "String getVarName();", "private void generateVModVector(ArrayList aVModStringArrayList) {\n StringTokenizer st = null;\n String lStringV = null;\n // Run every element in the aVModStringArrayList trough a for loop.\n // Create a VariableModification instance at the end of each loop.\n // Put the instance into the vector.\n for (int i = 0; i < aVModStringArrayList.size(); i++) {\n // Save the value of the StringArrayList in this variable and refresh each time it gets trough the loop.\n lStringV = (String) aVModStringArrayList.get(i);\n st = new StringTokenizer(lStringV, \",\");\n VariableModification lV = null;\n\n // 1. First element in the String is the mass.\n double lMass = Double.parseDouble(st.nextToken());\n\n // 2. Second element in the String is the type AND location.\n String lTypeAndLocation = st.nextToken().trim();\n // 2.a)\n // Use this token as the key to get the shortend notation of the modification.\n String lShortType = getShortType(lTypeAndLocation);\n\n // 2.b)\n // throw lTypeAndLocation to parseVariableModName method and\n // get a String[] in return containing the type @[0] and the location @[1]\n String[] lNameArray = parseVariableModName(lTypeAndLocation);\n String lType = lNameArray[0].trim();\n String lLocation = lNameArray[1];\n if (lLocation != null) {\n lLocation = lLocation.trim();\n }\n\n // 3. Third element in the StringTokenizer is the (possible) Neutralloss.\n double lNeutralLoss = Double.parseDouble(st.nextToken());\n\n // 4. The ModificationID runs parrallel with the for-loop.\n int lModificationID = i + 1;\n\n // 5. Finally create a new Variable modification instance.\n lV = new VariableModification(lType, lShortType, lMass, lNeutralLoss, lLocation, lModificationID);\n\n // 6. add the instance to this this class its VariableModification Vector.\n iVariableModifications.add(lV);\n }\n }", "String getSourceVariablePart();", "public SymName(String n) {\n\tn = n.trim();\n\tfullName = n;\n\tcomp = Util.findComponents(n);\n\tnum_comp = comp.length;\n\ttype = new int[num_comp];\n }", "private void process(String s) {\n try {\n String[] splt = s.split(\"_\");\n int type = Integer.parseInt(splt[0]);\n if(type == TYPE_PROXIMITY) GUI.setProximity(Float.parseFloat(splt[1]));\n else {\n String[] coords = splt[1].split(\" \");\n float x = Float.parseFloat(coords[0]);\n float y = Float.parseFloat(coords[1]);\n float z = Float.parseFloat(coords[2]);\n if(type == TYPE_ACCELEROMETER) GUI.setAccelerometer(x, y, z);\n else if(type == TYPE_ORIENTATION) GUI.setOrientation(x, y, z);\n }\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }", "public interface VariableExpander {\n /**\n * Return the input string with any variables replaced by their\n * corresponding value. If there are no variables in the string,\n * then the input parameter is returned unaltered.\n */\n public String expand(String param);\n }", "public Variable addVar(String n) {\n\t\t//System.out.println(\"SymbolTable addVar \" + n);\n\t\tNameSSA ssa = name.get(n);\n\t\tif (ssa != null) {\n\t\t\tVariable lastRenaming = var.get(ssa.current());\n\t\t\tssa.next();\n\t\t\tVariable v;\n\t\t\tif (lastRenaming instanceof ArrayVariable)\n\t\t\t\tv= new ArrayVariable(ssa.current(), lastRenaming.type, ((ArrayVariable)lastRenaming).length(),lastRenaming.use);\n\t\t\telse\n\t\t\t\tv= new Variable(ssa.current(), lastRenaming.type, lastRenaming.use);\n\t\t\tv.setOld(lastRenaming.oldValue());\n\t\t\tvar.put(ssa.current(), v);\n\t\t\tif (VerboseLevel.DEBUG.mayPrint()) {\n\t\t\t\tSystem.out.println(\"SymbolTable.addVar: \" + v.name());\n\t\t\t}\n\t\t\treturn v;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\t\t\n\t}", "String getVariable();", "public String parseStringMsg(String msg){\n String parsedMsg = msg;\n //Make second mthd w/o second param\n //replacements is like Variable:Replacement i.e. PLAYERTRADESENTTO:playerReceiver.getName()\n return parsedMsg;\n }", "public static Object parseOutput(String varname, String output) {\n // find the variable in the output\n int index = output.indexOf(\"Variable: \" + varname);\n\n // find the type\n int typeindex = output.indexOf(\"Type: \", index);\n int newline = output.indexOf(\"\\n\", typeindex);\n String typestr = output.substring(typeindex+6, newline);\n Class type = null;\n if (typestr.equals(\"integer\")) {\n type = Integer.class;\n } else if (typestr.equals(\"float\")) {\n type = Float.class;\n }\n\n // find the dimension\n int noDindex = output.indexOf(\"Number of Dimensions: \", newline);\n newline = output.indexOf(\"\\n\", noDindex);\n int numberOfDimensions = Integer.parseInt(output.substring(noDindex+22, newline));\n int DimsIndex = output.indexOf(\"Dimensions and sizes:\", newline);\n newline = output.indexOf(\"\\n\", DimsIndex);\n String DimStr = output.substring(DimsIndex+22, newline);\n String[] DimsStr = DimStr.split(\"]\");\n int[] dims = new int[numberOfDimensions];\n //go throw the each DimsStr from back to the front until a non numeric value is found\n for (int i=0;i<DimsStr.length;i++) {\n int startindex = DimsStr[i].length();\n for (int j=DimsStr[i].length()-1;j>=0;j--) {\n if (!DimsStr[i].substring(j, DimsStr[i].length()).matches(\"[0-9]*\")) {\n startindex = j+1;\n break;\n }\n }\n dims[i] = Integer.parseInt(DimsStr[i].substring(startindex, DimsStr[i].length()));\n }\n\n //parse the values\n int coorIndex = output.indexOf(\"Coordinates:\", newline);\n //create a new array for the output\n Object result = null;\n switch (numberOfDimensions) {\n case 1:\n result = new Object[dims[0]];\n for (int i0=0;i0<dims[0];i0++) {\n int bindex = output.indexOf(\")\", newline);\n newline = output.indexOf(\"\\n\", bindex);\n String value = output.substring(bindex+1,newline).trim();\n ((Object[])result)[i0] = parseStringToObject(value,type);\n }\n break;\n case 2:\n result = new Object[dims[0]][dims[1]];\n for (int i0=0;i0<dims[0];i0++) {\n for (int i1=0;i1<dims[1];i1++) {\n int bindex = output.indexOf(\")\", newline);\n newline = output.indexOf(\"\\n\", bindex);\n String value = output.substring(bindex+1,newline).trim();\n ((Object[][])result)[i0][i1] = parseStringToObject(value,type);\n }\n }\n break;\n case 3:\n result = new Object[dims[0]][dims[1]][dims[2]];\n for (int i0=0;i0<dims[0];i0++) {\n for (int i1=0;i1<dims[1];i1++) {\n for (int i2=0;i2<dims[2];i2++) {\n int bindex = output.indexOf(\")\", newline);\n newline = output.indexOf(\"\\n\", bindex);\n String value = output.substring(bindex+1,newline).trim();\n ((Object[][][])result)[i0][i1][i2] = parseStringToObject(value,type);\n }\n }\n }\n break;\n case 4:\n result = new Object[dims[0]][dims[1]][dims[2]][dims[3]];\n for (int i0=0;i0<dims[0];i0++) {\n for (int i1=0;i1<dims[1];i1++) {\n for (int i2=0;i2<dims[2];i2++) {\n for (int i3=0;i3<dims[3];i3++) {\n int bindex = output.indexOf(\")\", newline);\n newline = output.indexOf(\"\\n\", bindex);\n String value = output.substring(bindex+1,newline).trim();\n ((Object[][][][])result)[i0][i1][i2][i3] = parseStringToObject(value,type);\n }\n }\n }\n }\n break;\n default:\n System.out.println(\"ERROR: nclLauncher.parseOutput: maximum allowed number of dimensions is 4!\");\n return null;\n } \n return result;\n }", "private static int getVar(int initInd, String var)throws Exception{\n int num;\n int perInd;\n char addMode;\n String[] inst;\n\n try{//tries to retrieve relative field\n num = Integer.parseInt(var);\n }catch(Exception e){//if not relative then seperates the address mode\n addMode = var.charAt(0);\n num = Integer.parseInt(var.substring(1, var.length()));\n perInd = (initInd + num) % coreSize; //this makes sure that the index wraps around without being a negative number\n inst = sepInst(core[perInd]); //this is used if addMode is indirect\n\n switch(addMode){\n\n case '*':\n num = num + getVar(perInd, inst[1]);\n break;\n\n case '@':\n if(inst[2] == null){\n num = num + getVar(perInd, inst[1]);\n }else{\n num = num + getVar(perInd, inst[2]);\n }//end ifelse\n break;\n\n default:\n break;\n }//end switch\n }//end try\n\n return num;\n }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "private String resolveVars(String s, Module m, Call c)\n {\n HashMap<String,String> vars = getVarValues(m,c);\n // System.out.println(vars);\n s = groundVars(s, vars, c);\n return s;\n }", "public Variable(String name){\n this.name = name;\n }", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "private void extractVariables(String codeString) {\n // Remove array initializations\n codeString = arrayInitializer.matcher(codeString).replaceAll(\"\");\n \n // Merge multi declarations and instantiations\n codeString = codeString.replace(\" = \", \"=\").replace(\" , \", \",\");\n \n // Keep only declaration and initialization part\n String[] tmp = codeString.split(\" \");\n if (tmp.length > 1) {\n codeString = tmp[tmp.length - 2];\n \n // Split per declaration\n String[] declarations = codeString.split(\",\");\n for (String declaration : declarations) {\n int endIndex = declaration.indexOf('=');\n if (endIndex != -1) {\n declaration = declaration.substring(0, endIndex);\n }\n declaration = declaration.trim();\n \n // Check that we did not accidentally extracted a keyword, parenthesis or other language elements.\n if (!KEYWORDS.contains(declaration)) {\n addResult(new GlobalVariable(currentFile, declaration));\n }\n }\n }\n }", "public LlvmValue visit(Formal n){\n\t\n\t\tSystem.out.format(\"formal**********\\n\");\n\t\t\n\t\tStringBuilder name = new StringBuilder();\n\t\t\n\t\tname.append(\"%\");\n\t\tname.append(n.name.s);\n\t\t\n\t\t//variable -> %name, com tipo n.type\n\t\tLlvmNamedValue variable = new LlvmNamedValue(name.toString(), (LlvmType)n.type.accept(this));\n\t\t\n\t\treturn variable;\t\t\n\t}", "public String getVariable();", "String getVarDeclare();", "public abstract String parse(String name, List<CodeLine> c, Cluster cluster, Map<String,String> subs, Assemble compiler);", "@Override String opStr() { return \"var\"; }", "protected String varsetname() throws TableFunctionMalformedException {\r\n\t\t\r\n\t\t// we don't have to set header's varsetname here because ifStatement (upper caller) would do so.\r\n\t\t\r\n\t\tString ret = \"\";\t// a string containing \"varsetname\" (e.g. \"st.sr.z\")\r\n\t\t\r\n\t\t// scan for the ident\r\n\t\tdo {\r\n\t\t\t\r\n//\t\t\tscanNoSkip();\t// no white spaces should stay between ident and \".\" and next ident\r\n\t\t\tscan();\t\r\n\t\t\t\r\n\t\t\tif (token == 'x') {\r\n\t\t\t\t// Debug.println(\"SCANING IDENTIFIER \" + value);\r\n\t\t\t\tret += this.noCaseChangeValue;\r\n\t\t\t} else {\r\n\t\t\t\texpected(\"Identifier\");\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t// search for [\".\" ident]* loop\r\n\t\t\tif (this.look == '.' || this.look == ',') {\r\n\t\t\t\tthis.nextChar();\r\n\t\t\t\tif (this.ssbnnode != null) {\r\n\t\t\t\t\tret += this.ssbnnode.getStrongOVSeparator();\t// adds a separator (a dot \".\")\r\n\t\t\t\t} else {\r\n\t\t\t\t\tret += \".\";\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} while (index < text.length); \t// actually, this check is unreachable\r\n\t\t\r\n\t\tskipWhite();\r\n\t\treturn ret;\r\n\t}", "private ELOperandToken readVarToken() {\r\n \t\tfState = STATE_VAR;\r\n \t\tint endOfToken = index;\r\n \t\tint ch;\r\n \t\tint type = ELOperandToken.EL_PROPERTY_NAME_TOKEN;\r\n \t\twhile((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isJavaIdentifierPart(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t\t\t}\r\n \t\t}\r\n \t\treleaseChar();\r\n \t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t}", "public void buildPredicate(String s){\n\t\tint i = s.indexOf(\"(\");\n\t\tif(i>0){\n\t\t\tname = s.substring(0, i);\n\t\t\tStringTokenizer st = new StringTokenizer(s.substring(i),\"(),\");\n\t\t\twhile(st.hasMoreTokens()){\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tVarTerm vt = new VarTerm(tok);\n\t\t\t\taddTerm(vt);\n\t\t\t}\n\t\t}\n\t}", "public int GetVariableTypes(String plotName)\n {\n Hashtable namestovar = new Hashtable();\n namestovar.put(\"Boundary\", new Integer(MATERIAL));\n namestovar.put(\"Contour\", new Integer(SCALAR | SPECIES));\n namestovar.put(\"Curve\", new Integer(CURVE));\n namestovar.put(\"FilledBoundary\", new Integer(MATERIAL));\n namestovar.put(\"Histogram\", new Integer(SCALAR | ARRAY));\n namestovar.put(\"Kerbel\", new Integer(MESH));\n namestovar.put(\"Label\", new Integer(MESH | SCALAR | VECTOR | MATERIAL | SUBSET | TENSOR | SYMMETRICTENSOR | LABEL | ARRAY));\n namestovar.put(\"Mesh\", new Integer(MESH));\n namestovar.put(\"Molecule\", new Integer(SCALAR));\n namestovar.put(\"MultiCurve\", new Integer(CURVE));\n namestovar.put(\"ParallelCoordinates\", new Integer(0)); //SCALAR | ARRAY));\n namestovar.put(\"Poincare\", new Integer(VECTOR));\n namestovar.put(\"Pseudocolor\", new Integer(SCALAR | SPECIES));\n namestovar.put(\"Scatter\", new Integer(SCALAR));\n namestovar.put(\"Spreadsheet\", new Integer(SCALAR));\n namestovar.put(\"Subset\", new Integer(SUBSET | MESH));\n namestovar.put(\"Surface\", new Integer(SCALAR | SPECIES));\n namestovar.put(\"Tensor\", new Integer(TENSOR | SYMMETRICTENSOR));\n namestovar.put(\"Topology\", new Integer(SCALAR));\n namestovar.put(\"Truecolor\", new Integer(VECTOR));\n namestovar.put(\"Vector\", new Integer(VECTOR));\n namestovar.put(\"Volume\", new Integer(SCALAR | SPECIES));\n namestovar.put(\"WellBore\", new Integer(MESH));\n\n return ((Integer)namestovar.get(plotName)).intValue();\n }", "private void eatModifier() {\n\n if (currentTokenPointer >= tokenCount) {\n\n raiseParseProblem(\"run out of tokens to process\", expansionString.length());\n\n }\n\n Token token = tokens.get(currentTokenPointer);\n\n TokenKind k = token.kind;\n\n if (currentVersionComponent > 3) {\n\n raiseParseProblem(\"too many version components specified, only major.minor.micro.qualifier is allowed. Found '\" + string(token)\n\n + \"' at position \" + token.start, token.start);\n\n }\n\n if (k == TokenKind.EQUALS) {\n\n processEquals();\n\n } else if (k == TokenKind.WORD) {\n\n processWord();\n\n } else if (k == TokenKind.NUMBER) {\n\n processNumeric();\n\n } else if (k == TokenKind.PLUSNUMBER || k == TokenKind.NEGATIVENUMBER) {\n\n processNumericModifier();\n\n } else {\n\n if (currentVersionComponent < 3) {\n\n raiseParseProblem(\"expected one of: '=' '+nnn' '-nnn' or 'nnn' but found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n } else {\n\n raiseParseProblem(\"expected one of: '=' '+nnn' '-nnn' 'nnn' or 'xxx' but found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n }\n\n }\n\n currentTokenPointer++;\n\n }", "public void leerVariable(String nombre, Dato variable);", "private String matchVariable(String key) {\n\t\treturn variables.get(key);\n\t}", "private void parseMaterialProperties(String line) {\n int colonIdx = line.indexOf(\":\");\n //find matdef file\n if (colonIdx != -1) {\n line = line.replaceFirst(\"Material\", \"\");\n line = line.replace(\"{\", \"\");\n String[] lines = line.split(\":\");\n setName(lines[0].trim());\n setMatDefName(lines[1].trim());\n }\n }", "private static String parseName(String line) {\n if (null == line || !line.startsWith(QUALIFIER_TOKEN)) {\n throw new RuntimeException(\n \"Expected one line naming a qualifier. Line found was: \" + line);\n }\n\n String name = line.substring(QUALIFIER_TOKEN.length());\n LOG.debug(\"Found qualifier: \" + name);\n return name;\n }", "@Override public void enterParam_decl_list(MicroParser.Param_decl_listContext ctx) {\n\t\tString txt = ctx.getText();\n\t\tif(txt.compareTo(\"\") != 0) {\n\t\t\tString [] vars = txt.split(\",\");\n\t\t\tArrayList<String> tdata = new ArrayList<String>();\n\n\t\t\tfor (int i = 0; i < vars.length ; i++) {\n\t\t\t\tString name = vars[i].split(\"INT|FLOAT\")[1];\n\t\t\t\tString type = vars[i].split(name)[0];\n\n\t\t\t\t//Add Tiny to IRList\n\t\t\t\ttdata.clear();\n\t\t\t\ttdata.add(name);\n\t\t\t\tthis.meIRL.add(new IRNode(tdata, \"var\"));\n\n\t\t\t\t//Add variable info to current scope's val\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\n\t\t\t\ttemp.add(name);\n\t\t\t\ttemp.add(type);\n\t\t\t\tArrayList<List<String>> stHash = st.varMap.get(st.scope);\n\t\t\t\tif(stHash == null){\n\t\t\t\t\tstHash = new ArrayList<List<String>>();\n\t\t\t\t}\n\t\t\t\tst.checkDeclError(name);\n\t\t\t\tstHash.add(temp);\n\t\t\t\tst.varMap.put(st.scope, stHash);\n\t\t\t}\n\t\t}\n\t}", "public static String parsingType(String rawType){\n\t\t\tif(rawType.contains(\"(\")){\n\t\t\tString type=rawType.substring(0, rawType.indexOf('('));\n\t\t\treturn type;}\n\t\t\telse return rawType;\n\t\t}", "@Override\n public void parse(String var, Object val)\n {\n super.parse(var, val);\n try\n {\n switch (var.toLowerCase())\n {\n case \"job_id\":\n job_id = (String)val;\n break;\n case \"date_scheduled\":\n date_scheduled = Long.parseLong(String.valueOf(val));\n break;\n case \"date_assigned\":\n date_assigned = Long.parseLong(String.valueOf(val));\n break;\n case \"date_started\":\n date_started = Long.parseLong(String.valueOf(val));\n break;\n case \"date_completed\":\n date_completed = Long.parseLong(String.valueOf(val));\n break;\n case \"description\":\n description = (String)val;\n break;\n case \"location\":\n location = (String)val;\n break;\n default:\n IO.log(getClass().getName(), IO.TAG_ERROR, \"unknown \"+getClass().getName()+\" attribute '\" + var + \"'.\");\n break;\n }\n } catch (NumberFormatException e)\n {\n IO.log(getClass().getName(), IO.TAG_ERROR, e.getMessage());\n }\n }", "public String differentiate(Parser.Variable var){\n String expVar = var.toString();\n String output;\n if (expVar.equals(variable)){\n output = \"1\";\n return output;\n }\n else{\n output = \"0\";\n return output;\n }\n }", "private void parseLocation(String s) {\r\n String[] parsedString = s.split(\" \");\r\n location[0] = Integer.parseInt(parsedString[0]);\r\n location[1] = Integer.parseInt(parsedString[1]);\r\n orientation = parsedString[2].charAt(0);\r\n }", "public static String[] variableList(String s) {\n String[] vl = null;\n if (s == null) {\n return vl;\n }\n String st = s.trim();\n if (st.length() == 0) {\n return new String[0];\n }\n if (st.charAt(0) == '(') {\n st = st.substring(1);\n }\n if (st.charAt(st.length() - 1) == ')') {\n st = st.substring(0, st.length() - 1);\n }\n st = st.replaceAll(\",\", \" \");\n List<String> sl = new ArrayList<String>();\n Scanner sc = new Scanner(st);\n while (sc.hasNext()) {\n String sn = sc.next();\n sl.add(sn);\n }\n vl = new String[sl.size()];\n int i = 0;\n for (String si : sl) {\n vl[i] = si;\n i++;\n }\n return vl;\n }", "static int type_of_mov(String passed){\n\t\tif(passed.charAt(4)=='M' && general_registers.contains(passed.charAt(6)))\n\t\t\treturn 2;\n\t\telse if(passed.charAt(6)=='M' && general_registers.contains(passed.charAt(4)))\n\t\t\treturn 1;\n\t\telse if(general_registers.contains(passed.charAt(6)) && general_registers.contains(passed.charAt(4)))\n\t\t\treturn 3;\n\t\telse\n\t\t\treturn 0;\n\t}", "VariableExp createVariableExp();", "public static String extractVariable(String s) {\n Matcher matcher = VARS_RE.matcher(s);\n return matcher.find() ? matcher.group(1) : null;\n }", "public void store(final String text, final String variableName);", "static String type(String sin){\n String s = new String();\n for(int c = 0; 0<sin.length();c++){\n if(sin.charAt(c)>='a'&&sin.charAt(c)<='z'){\n s+=\"variable\";\n }else if(sin.charAt(c)>='0'&&sin.charAt(c)<='0'){\n s+=\"Integer\";\n }\n }\n return s;\n }", "String getIdentifierName(String name, String type);", "private static String parseTname(String sql) {\r\n\t\tString ret = \"\";\r\n\t\t// String[] ret = str.split(\"name |field |grade \");\r\n\r\n\t\tchar ch;\r\n\t\tString word = \"\";\r\n\t\tint control = 0;\r\n\r\n\t\tfor (int x = 0; x < sql.length(); x++) {\r\n\t\t\tch = sql.charAt(x);\r\n\t\t\t// word = word + ch;\r\n\r\n\t\t\tif (control == 1) {\r\n\t\t\t\tif (ch == '(' || ch == ' ') {\r\n\t\t\t\t\tcontrol++;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tret = ret + ch;\r\n\t\t\t\t}\r\n\t\t\t} else if (control == 0 && word.equals(\"TABLE\")) {\r\n\t\t\t\tcontrol++;\r\n\t\t\t} else if (ch == ' ') {\r\n\t\t\t\tword = \"\";\r\n\t\t\t} else {\r\n\t\t\t\tword = word + ch;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn (ret);\r\n\t}", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String parseVariable(String statement) {\r\n if (Asserts.isNullString(statement)) {\r\n return statement;\r\n }\r\n String[] strs = statement.split(SystemConfiguration.getInstances().getSqlSeparator());\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < strs.length; i++) {\r\n String str = strs[i];\r\n if (str.trim().length() == 0) {\r\n continue;\r\n }\r\n str = strs[i];\r\n if (str.contains(FlinkSQLConstant.FRAGMENTS)) {\r\n String[] strs2 = str.split(FlinkSQLConstant.FRAGMENTS);\r\n if (strs2.length >= 2) {\r\n if (strs2[0].length() == 0) {\r\n throw new ExpressionParserException(\"Illegal variable name.\");\r\n }\r\n String valueString = str.substring(str.indexOf(FlinkSQLConstant.FRAGMENTS) + 2);\r\n this.registerSqlFragment(strs2[0], replaceVariable(valueString));\r\n } else {\r\n throw new ExpressionParserException(\"Illegal variable definition.\");\r\n }\r\n } else {\r\n sb.append(replaceVariable(str));\r\n }\r\n }\r\n return sb.toString();\r\n }", "private LocalrmnameType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }", "public static String variable(String str)\n {\n\t\tint i=0;\n\t\tint state=1;\n\t\t/*\n\t\t\tif state ==1 then trim and add to hashmap;\n\t\t\tif state==2 then replace that string with corresponding value\n\t\t*/\n\t\t//System.out.println(\"Str is\\n\"+str);\n\t\tString part1=\"\";\n\t\tString part2=\"\";\n\t\tHashMap<String, String> map = new HashMap<>();\n\t\twhile(i<str.length()){\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch=='{'){\n\t\t\t\tstate=2;\n\t\t\t}\n\t\t\tif(ch=='}'){\n\t\t\t\tstate=1;\n\t\t\t}\n\t\t\tif(ch=='$'){\n\t\t\t\tif(state==1){\n\t\t\t\t\tpart1=\"\";\n\t\t\t\t\twhile(i<str.length()&&ch!=';'){\n\t\t\t\t\t\tpart1+=ch;\n\t\t\t\t\t\tch=str.charAt(++i);\n\t\t\t\t\t}\n\t\t\t\t\tString [] arrOfStr = part1.split(\":\", 2); \n\t\t\t\t\tmap.put(arrOfStr[0].trim(),arrOfStr[1].trim());\n\t\t\t\t}\n\t\t\t\tif(state==2){\n\t\t\t\t\tpart2=\"\";\n\t\t\t\t\tint end3 = 0;\n\t\t\t\t\tint start3 = i;\n\t\t\t\t\twhile(i<str.length()&&ch!=';'){\n\t\t\t\t\t\tpart2+=ch;\n\t\t\t\t\t\tch=str.charAt(++i);\n\t\t\t\t\t\tend3 = i;\n\t\t\t\t\t}\n\t\t\t\t\tpart2=part2.trim();\n\t\t\t\t\t if (map.containsKey(part2)) \n\t\t\t\t\t{\tString a = map.get(part2);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString s1 = str.substring(0,start3);\n\t\t\t\t\t\ts1 = s1 + a;\n\t\t\t\t\t\ts1 = s1 + str.substring(end3);\n\t\t\t\t\t\t//System.out.println(\"\\n S1 is \\n\"+s1);\n\t\t\t\t\t\tstr = s1;\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\telse\n\t\t\t\ti++;\t\t\t\n\t\t}\n \n //System.out.println(str);\n\t\t// System.out.println(\"------------------------------------------------------------\");\n // System.out.println(\"\\nAnswer is\");\n\t\t str = str.replaceAll(\"\\\\$.*?;\",\"\");\n\t\t //System.out.println(str);\n\t\t return str;\n }", "public Variable(String s, String in, String nom, int a, int b) {\n ident=new String(s);\n internal=new String(in);\n if (nom!=null) {name=new String(nom);} else {name=\"(Variable interne)\";}\n lowbound=a;\n highbound=b;\n noccur=0;\n \n \n }", "private String parseDescrName(String line) {\n\t\t// d1f74a_ 201-209;3-11 DGAIGSTFN LKGIFSALL #7\n\t\t// d1nvra_ 226-253;184-204 IDSAPLALL GIVLTAMLA 0_0:-5_-8 0.477587\n\t\t// GroupName is created as name of domain (remove proceeding 'd') + pdb\n\t\t// number of the first residue\n\t\t// in the second segment (3-11 in the example) increased by 10000 + '_'\n\t\t// + number of cluster (7 in the case)\n\t\t// the residue with fasta number 3 is translated into address A4_ - so\n\t\t// the pdb number is 4\n\t\t// finally the group name will be 1f74a_#10004_7\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tString dom = tokens[0].substring(1);\n\t\tString noClust = \"\";\n\t\t@SuppressWarnings(\"unused\")\n\t\tint shift1 = 0; // segment1 shift\n\t\tint shift2 = 0; // segment2 shift\n\t\ttry {\n\t\t\tif (tokens[4].startsWith(\"#\")) {\n\t\t\t\tnoClust = \"_\" + tokens[4].substring(1);\n\t\t\t} else {\n\t\t\t\tnoClust = \"\";\n\t\t\t}\n\t\t\tif (tokens[4].startsWith(\"0_0\")) {\n\t\t\t\ttokens[4] = tokens[4].replaceFirst(\"0_0:\", \"\");\n\t\t\t\tString[] shifts = tokens[4].split(\"_\");\n\t\t\t\tshift1 = Integer.valueOf(shifts[0]);\n\t\t\t\tshift2 = Integer.valueOf(shifts[1]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// do nothing keep default values\n\t\t}\n\t\t// get the first number of second segment : e.g. 3 from 201-209;3-11\n\t\tString[] tokensA = tokens[1].split(\";\");\n\t\tString[] tokensB = tokensA[1].split(\"-\");\n\t\tInteger fastaNo = (Integer.valueOf(tokensB[0]) - shift2 >= 0 ? Integer\n\t\t\t\t.valueOf(tokensB[0]) - shift2 : Integer.valueOf(tokensB[0]));\n\n\t\t// get pdb address\n\t\tString pdbResAddr = hashResMapInt2Str.get(dom).get(fastaNo);\n\t\tpdbResAddr = pdbResAddr.substring(1, pdbResAddr.length() - 1);\n\t\tint pdbResNo = Integer.valueOf(pdbResAddr);\n\n\t\treturn (dom + \"#\" + (10000 + pdbResNo) + noClust);\n\t}", "static List<String> splitNameTypeAndInitialValues(final String text)\n {\n final List<String> result = new ArrayList<>();\n\n // Check for <type in loc://name<type>(v1, v2, ..)\n int sep = text.indexOf('<');\n if (sep >= 0)\n { // \"name\"\n result.add(text.substring(0, sep).trim());\n\n // Find end of <type>\n int pos = text.indexOf('>', sep+1);\n if (pos < 0)\n // <type... is not terminated, use all as type\n result.add(text.substring(sep+1).trim());\n else\n {\n // <\"type\">\n result.add(text.substring(sep+1, pos).trim());\n\n // Check for initial values\n sep = text.indexOf('(', pos);\n if (sep >= 0)\n addInitialValues(result, text.substring(sep+1));\n }\n }\n else\n {\n // No type.\n // Check for initial values\n sep = text.indexOf('(');\n if (sep >= 0)\n { // Name, no type, values\n result.add(text.substring(0, sep).trim());\n result.add(null);\n addInitialValues(result, text.substring(sep+1));\n }\n else\n {\n // Just name, no type\n result.add(text.trim());\n result.add(null);\n }\n }\n return result;\n }", "private void varDcl2(ModuleEntry entry, VariableEntry varEntry) throws IOException, ParseException {\n\t\tif (token.equals(Token.Semicolon) || token.equals(Token.Comma)) {\r\n\t\t\tentry.addContained(varEntry);\r\n\t\t} else if (token.equals(Token.Equal)) {\r\n\t\t\tentry.addContained(varDcl3(entry, varEntry));\r\n\t\t} else {\r\n\t\t\tthrow ParseException.syntaxError(scanner, new int[] { Token.Semicolon, Token.Equal }, token.type);\r\n\t\t}\r\n\t\tif (token.equals(Token.Comma)) {\r\n\t\t\tmatch(Token.Comma);\r\n\t\t\t// 递归调用\r\n\t\t\tvarDcl(entry);\r\n\t\t}\r\n\t}", "public Vector resolveStringPjxVars(String ss)\r\n {\r\n Vector ammendedContent = new Vector();\r\n if (ss==null)\r\n return ammendedContent;\r\n Matcher matcher = pp0.matcher(ss);\r\n boolean matchfound = false;\r\n int a = 0, b = 0;\r\n \r\n while( matcher.find())\r\n {\r\n matchfound = true;\r\n \r\n int matches = matcher.groupCount();\r\n String matched0 = matcher.group();\r\n String matched2 = matcher.group(2);\r\n String matched3 = matcher.group(3);\r\n \r\n b = ss.indexOf(matched0, a);\r\n String sprior = ss.substring(a,b);\r\n a = b + matched0.length(); // start index of next match\r\n if (sprior.length()>0)\r\n ammendedContent.add(sprior);\r\n \r\n if(matches>=2 && matched3!=null)\r\n {\r\n Object o = resolveNamespacedVars(matched2, matched3);\r\n if (o instanceof Collection)\r\n ammendedContent.addAll((Collection) o);\r\n else\r\n ammendedContent.add(o);\r\n }\r\n else\r\n ammendedContent.add(matched0);\r\n }\r\n \r\n if (ss.length()>0 && !matchfound)\r\n ammendedContent.add(ss);\r\n else\r\n {\r\n String sprior = ss.substring(a);\r\n if (sprior.length()>0)\r\n ammendedContent.add(sprior);\r\n }\r\n \r\n return ammendedContent;\r\n }", "public void setVarName(String text) {\n\t\tvarName=text;\r\n\t}", "private String createName(String line) {\n line = line.replace(\"(L)\",\"\").replace(\"(D)\",\"\").replace(\"(R)\",\"\").replace(\"(I)\",\"\").replace(\"(\",\"\").replace(\")\",\"\");\n String firstName;\n String middleName = \"\";\n String lastName;\n String postNominal = \"\";\n\n firstName = line.split(\",\")[1].trim();\n if (firstName.contains(\" \")){\n middleName = firstName.split(\" \")[1];\n firstName = firstName.split(\" \")[0];\n }\n lastName = line.split(\",\")[0];\n if(lastName.split(\" \")[lastName.split(\" \").length-1].toLowerCase().equals(\"iii\")\n || lastName.split(\" \")[lastName.split(\" \").length-1].toLowerCase().equals(\"ii\")\n || lastName.split(\" \")[lastName.split(\" \").length-1].toLowerCase().equals(\"sr\")\n || lastName.split(\" \")[lastName.split(\" \").length-1].toLowerCase().equals(\"jr\")){\n postNominal = lastName.split(\" \")[1];\n lastName = lastName.split(\" \")[0];\n }\n\n return firstName.trim() + \",\" + middleName.trim() + \",\" + lastName.trim() + \",\" + postNominal.trim();\n }", "private static ParsedNameUsage fromParsedName(Name n, ParsedName pn, IssueContainer issues) {\n // if we parsed strains we do not keep them in the Name class\n if (!StringUtils.isBlank(pn.getStrain())) {\n if (pn.getUnparsed() == null) {\n pn.setState(ParsedName.State.PARTIAL);\n pn.setUnparsed(pn.getStrain());\n }\n }\n\n ParsedNameUsage pnu = new ParsedNameUsage();\n pnu.setName(n);\n copyToPNU(pn, pnu, issues);\n // name specifics\n n.setUninomial(pn.getUninomial());\n n.setGenus(pn.getGenus());\n n.setInfragenericEpithet(pn.getInfragenericEpithet());\n n.setSpecificEpithet(pn.getSpecificEpithet());\n n.setInfraspecificEpithet(pn.getInfraspecificEpithet());\n n.setCultivarEpithet(pn.getCultivarEpithet());\n n.setRank(pn.getRank());\n n.setCode(pn.getCode());\n n.setCandidatus(pn.isCandidatus());\n n.setNotho(pn.getNotho());\n n.setType(pn.getType());\n\n if (pn.isIncomplete()) {\n issues.addIssue(Issue.INCONSISTENT_NAME);\n }\n\n // we rebuilt the caches as we dont have any original authorship yet - it all came in through the single scientificName\n n.rebuildScientificName();\n n.rebuildAuthorship();\n return pnu;\n }", "private Integer varOffset( String defun, String varname ) {\n\treturn symbolTable.get( defun ).get( varname );\n }", "public String getVariable(String _name) {\r\n\t\treturn getVariable(_name, \",\");\r\n\t}", "private String getFullMonthNameFromHeader(String labelname) \r\n\t{\n\t\tString substringgetfirstthree = labelname;\r\n String getactualmonth = substringgetfirstthree.replaceAll(\"[^a-zA-Z]\", \"\").trim();\r\n \r\n return getactualmonth;\t\r\n\t\r\n\t}", "private String GetIOName(String type, String step, String sSequence) {\n\t\treturn type + \":\" + step + sSequence;\n\t}", "private SWRLVariable initalizeVariable(String name, SWRLVariable var1) {\n\n if (literalVocabulary.containsKey(name)) {\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + literalVocabulary.get(name)));\n } else {\n char variable = this.generateVariable();\n literalVocabulary.put(name, String.valueOf(variable));\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + variable));\n }\n\n return var1;\n }", "final SyntaxTreeNode lookupName(QName name) {\n // Is it a local var or param ?\n final SyntaxTreeNode result = _parser.lookupVariable(name);\n\tif (result != null)\n return(result);\n else\n\t return(_symbolTable.lookupName(name));\n }", "public String visit(VarDeclaration n, String ourclass) {\n String type, name;\n type = n.f0.accept(this, null);\n name = n.f1.accept(this, null);\n if(!ourclass.contains(\" \")){ //class members variables\n vcounter ++;\n integer++;\n variable x = new variable(type, name, vcounter, integer);\n ClassMembers cm = st.cmgetST(ourclass);\n if(cm.checkSameVar(x)){\n System.out.println(\"Variable already exists\");\n return null;\n }\n cm.var.add(x);\n st.cmputST(ourclass, cm);\n }\n else{ //method's variables\n integer++;\n variable x = new variable(type, name, integer);\n String[] parts = ourclass.split(\" \");\n String classname = parts[0]; \n String methodname = parts[1];\n ClassMembers cm=st.cmgetST(classname);\n Method m=cm.meth.get(methodname);\n m.localvars.add(x);\n cm.meth.put(methodname, m);\n st.cmputST(classname, cm);\n }\n return null; \n }", "public String getVariableName() {\n return _vname;\n }", "static int varno(String v) {\n int i=0;\n if (varlist==null) {System.out.println(\"Varlist null\");}\n while (i<varlist.size() && !v.equals( ((Variable)(varlist.get(i))).ident)) {i++;}\n if (i==varlist.size()) {i=-1;}\n return i;\n }", "public String isVar(Exp e) {\n if (e instanceof EId) {\n return ((EId) e).id_;\n } else\n throw new TypeException(\"Expected variable but found: \" + e);\n }", "@Override\n public VariableInfo[] getVariableInfo( TagData data ) {\n // loop through and expose all attributes\n List<VariableInfo> vars = new ArrayList<VariableInfo>();\n\n try {\n String clazz = data.getAttributeString( \"className\" );\n\n if ( clazz == null ) {\n clazz = Constants.class.getName();\n }\n\n Class<?> c = Class.forName( clazz );\n\n // if no var specified, get all\n if ( data.getAttributeString( \"var\" ) == null ) {\n Field[] fields = c.getDeclaredFields();\n\n AccessibleObject.setAccessible( fields, true );\n\n for ( int i = 0; i < fields.length; i++ ) {\n vars.add( new VariableInfo( fields[i].getName(), \"java.lang.String\", true, VariableInfo.AT_END ) );\n }\n } else {\n String var = data.getAttributeString( \"var\" );\n vars.add( new VariableInfo( c.getField( var ).getName(), \"java.lang.String\", true, VariableInfo.AT_END ) );\n }\n } catch ( Exception cnf ) {\n log.error( cnf.getMessage() );\n cnf.printStackTrace();\n }\n\n return vars.toArray( new VariableInfo[] {} );\n }", "public Var(String var) {\r\n this.variable = var;\r\n }", "DefinitionName getDefName(String n){\n \tDefinitionName rc = null;\n \ttry {\n\t\t\trc = new DefinitionName(n);\n\t\t} catch (DmcValueException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn(rc);\n }", "private void processIdentificator() {\r\n\t\tString identificator = generateString();\r\n\r\n\t\tif (identificator.equals(Constants.AND_STRING)) {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\r\n\t\t} else if (identificator.equals(Constants.XOR_STRING)) {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\r\n\t\t} else if (identificator.equals(Constants.OR_STRING)) {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\r\n\t\t} else if (identificator.equals(Constants.NOT_STRING)) {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\r\n\t\t} else if (identificator.equals(trueString)) {\r\n\t\t\ttoken = new Token(TokenType.CONSTANT, true);\r\n\r\n\t\t} else if (identificator.equals(falseString)) {\r\n\t\t\ttoken = new Token(TokenType.CONSTANT, false);\r\n\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.VARIABLE, identificator.toUpperCase());\r\n\t\t}\r\n\t}", "public VariableMeta getMeta();", "public abstract void mo57435a(String str, String str2, C12855p pVar);", "public static Expression var(String var) {\n if (var.equals(\"e\")) {\n throw new RuntimeException(\"Variable can't be named e.\");\n }\n\n return new Variable(var);\n }", "private HashMap<String,String> getVarValues(Module m, Call c)\n {\n HashMap<String,String> vars = new HashMap<String,String>();\n String regex = replaceVars(c.assumption,\"[.[^,]]+\");\n Pattern pattern = Pattern.compile(regex);\n\n for(String result: m.getSceptical())\n {\n Matcher matcher = pattern.matcher(result);\n if(matcher.find())\n {\n String v = c.assumption;\n String r = result;\n int vCurrent = 0;\n int rCurrent = 0;\n while(vCurrent<v.length() && rCurrent<r.length())\n {\n if(v.toCharArray()[vCurrent] != r.toCharArray()[rCurrent])\n {\n String variable = getVar(v.substring(vCurrent));\n String value = getValue(r.substring(rCurrent));\n vars.put(variable,value);\n vCurrent = vCurrent + variable.length();\n rCurrent = rCurrent + value.length();\n }\n vCurrent++;\n rCurrent++;\n }\n }\n }\n return vars;\n }", "private String getName(String name) {\n\t\tint n;\n\t\tif (name.startsWith(\"place_\")) {\n\t\t\tn = Integer.parseInt(name.substring(6));\n\t\t} else if (name.startsWith(\"t_\")) {\n\t\t\tn = Integer.parseInt(name.substring(2));\n\t\t} else {\n\t\t\treturn name;\n\t\t}\n\t\tif (n < net.getPlaces().size()) {\n\t\t\tPlace p = (Place) net.getPlaces().get(n);\n\t\t\treturn \"Place \" + p.getIdentifier();\n\t\t}\n\t\tn -= net.getPlaces().size();\n\t\tn--;\n\t\tif (n < net.getTransitions().size()) {\n\t\t\tTransition t = (Transition) net.getTransitions().get(n);\n\t\t\treturn \"Transition \" + t.getIdentifier();\n\t\t}\n\t\treturn name;\n\t}", "public static UpdateModuleType nameOf(String name) {\n if (name == null) { return null; }\n try { return valueOf(name); } catch (RuntimeException ignored) { return null; }\n }", "public StructuredQName getVariableQName();", "protected void method_6194(class_1583 var1) {\r\n super.method_6194(var1);\r\n String[] var10001 = field_5882;\r\n var1.method_8667(\"Type\", this.field_5880);\r\n }", "BedAssignment parse( String roomBedLabel );", "public void onParaNameChangeByVar(int i) {\n }", "public String getInternalValueFromInternalValues(String str,String type) {\n\t\tString r = \"\";\n\t\tString[] values = str.split(getOrConcatenatorSplitter());\n\t\tfor (int v = 0; v < values.length; v++) {\n\t\t\tif (values[v].contains(getValueConcatenator())) {\n\t\t\t\tString prefix = values[v].split(getValueConcatenator())[0] + getValueConcatenator();\n\t\t\t\tEntityObject eo = getEntityObject(prefix);\n\t\t\t\tif (eo!=null && (type.length()==0 || eo.getType().equals(type))) {\n\t\t\t\t\tr = values[v];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn r;\n\t}", "private void generateFModVector(String aFixedModifications_ParameterSection) {\n //Acetyl (K),Carbamidomethyl (C)\n FixedModification lF;\n ArrayList lFixedMods = new ArrayList();\n StringTokenizer st = new StringTokenizer(aFixedModifications_ParameterSection, \",\");\n while (st.hasMoreTokens()) {\n lFixedMods.add(st.nextToken());\n }\n for (int i = 0; i < lFixedMods.size(); i++) {\n String lStringF = (String) lFixedMods.get(i);\n String lType = lStringF.substring(0, lStringF.indexOf(' '));\n String lLocation = lStringF.substring(lStringF.indexOf('(') + 1, lStringF.indexOf(')'));\n String lShortType = getShortType(lStringF);\n int lModificationID = i + 1;\n\n lF = new FixedModification(lType, lShortType, lLocation, lModificationID);\n iFixedModifications.add(lF);\n }\n }", "private String processStatement() {\n StringBuilder result = new StringBuilder();\n //If the line is an instantiation or assignment statement\n if(line.contains(\"=\")) {\n //We get the parts of string before and after the '=' sign.\n String[] parts = line.split(\"=\");\n //Now we get the first and second part in separate strings.\n String firstPart = parts[0].trim();\n String secondPart = parts[1].trim();\n //Remove unnecessary spaces from the first part of the line.\n firstPart = removeUnnecessarySpaces(firstPart);\n //Split the parts further into single words.\n String[] firstPartWords = firstPart.split(\"\\\\s+\");\n\n //Now, process the first part of the line\n for(int i=0; i<firstPartWords.length; i++) {\n String word = firstPartWords[i];\n //Boolean value to check if this word is the last word\n boolean isLast = i==firstPartWords.length-1;\n //Now process each word\n processWordInFirstPart(word, result, isLast);\n }\n\n //Boolean value to check if this statement has anything to\n //do with objects. If secondPart contains 'new'.\n boolean relatedWithObject = secondPart.contains(\"new \");\n //Now adjust the value of secondPart for assigning.\n secondPart = secondPart.replace(\"new\", \"\");\n secondPart = secondPart.trim();\n\n //Now we have the result after processing the first part of\n //this statement.\n //If there are no spaces in the firstPart string, then this\n //is an assignment statement.\n if(firstPart.indexOf(' ')==-1) {\n if(relatedWithObject) {\n //If the second part of the string contains square and not round\n //brackets, this is not an object but an array.\n if(!secondPart.contains(\"(\") && secondPart.contains(\"[\"))\n result.insert(0,\"The array \").append(\" is initialized to value \").\n append(secondPart);\n //Else, this is obviously an object.\n else\n result.insert(0, \"The object \").append(\" is initialized to value \").\n append(secondPart);\n }\n else {\n //Now, we format the assignment statement.\n //Since there can be more than one assignments in the same\n //line, we add all the parts.\n //Here, \\u2190 is the left arrow in UTF-8.\n char arrow = '\\u2190';\n parts = line.split(\"\\\\s+\");\n result = new StringBuilder();\n for(String part : parts) {\n if(part.equals(\"=\")) {\n result.append(arrow).append(\" \");\n }\n else {\n result.append(part).append(\" \");\n }\n }\n }\n }\n //If this statement is not an assignment statement, then this\n //is an initialization statement.\n else {\n if(relatedWithObject) {\n result.append(\" is created with value \").append(secondPart).append(\".\");\n }\n //If the second part (the value) has something to do\n //with arrays, and not objects.\n else if(hasArrayAsMajorValue(secondPart)) {\n //Then process the second part according to array values.\n result.append(\" is instantiated to value in \").append(processArrayValue(secondPart));\n }\n else {\n result.append(\" is instantiated to value \").append(secondPart).append(\".\");\n }\n }\n }\n //If line does not contain \"=\" sign.\n else {\n //Incrementing statement.\n if(line.contains(\"++\")) {\n int index = line.indexOf('+');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Incremented.\");\n }\n //Decrementing statement.\n else if(line.contains(\"--\")) {\n int index = line.indexOf('-');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Decremented.\");\n }\n //If line has a dot operator, it means this line calls a function.\n else if(line.contains(\".\")) {\n String[] parts = line.split(\"\\\\.\");\n String object = parts[0].trim();\n String method = parts[1].trim();\n result.append(\"The function \").append(method).append(\" from object \").\n append(object).append(\" is called.\");\n if(parts.length>2) {\n result = new StringBuilder();\n result.append(removeUnnecessarySpaces(line)).append(\" is performed respectively.\");\n }\n }\n //If the line contains a bracket, it is calling a member method.\n else if(line.contains(\"(\")) {\n result.append(\"The member method \").append(line).append(\" is called.\");\n }\n else {\n String[] words = line.split(\"\\\\s+\");\n for(int i=0; i<words.length; i++) {\n String word = words[i];\n boolean isLast = i==words.length-1;\n processWordInFirstPart(word, result, isLast);\n }\n result.append(\" is declared.\");\n }\n }\n return result.toString();\n }", "Node getVariable();", "public final void setVarName(String varName){\n\t\tthis.varName = varName;\t\n\t}", "Variable(String _var) {\n this._var = _var;\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }" ]
[ "0.6320923", "0.613204", "0.56023055", "0.55834585", "0.5572832", "0.54678476", "0.5401953", "0.5351047", "0.53461134", "0.53260905", "0.5296942", "0.5278516", "0.52759784", "0.52759784", "0.52759784", "0.5272788", "0.52700263", "0.5269821", "0.5252848", "0.524913", "0.5217579", "0.520227", "0.5201234", "0.518438", "0.5171208", "0.5157931", "0.5130604", "0.51300234", "0.5075967", "0.5061343", "0.5041905", "0.50316036", "0.497399", "0.49729928", "0.4968108", "0.49658802", "0.4952558", "0.4949957", "0.4948589", "0.49321264", "0.49318105", "0.4930957", "0.49085757", "0.4905926", "0.49058315", "0.48981804", "0.48966068", "0.48829836", "0.48794544", "0.48777467", "0.4877466", "0.48752704", "0.48699743", "0.48678112", "0.48646727", "0.4857174", "0.48524028", "0.48509988", "0.48487848", "0.4844143", "0.48374102", "0.48373798", "0.48353004", "0.48307717", "0.48243627", "0.4820395", "0.48119274", "0.4811598", "0.48064104", "0.48037648", "0.48030764", "0.47945568", "0.4787842", "0.47863787", "0.477994", "0.47742262", "0.47730845", "0.4765183", "0.4761698", "0.475344", "0.47491786", "0.47392437", "0.4738819", "0.47380146", "0.47302192", "0.4729943", "0.47287545", "0.47274762", "0.47253287", "0.4719342", "0.47189954", "0.4700439", "0.46985617", "0.4698166", "0.4691664", "0.4684885", "0.46831265", "0.4680931", "0.46740004", "0.46726102" ]
0.72643274
0
Method Parse the name string of a fixed modidication into type of modifiction(ex: 'Acetyl_heavy').
private String parseFixedModName(String aName) { aName = aName.trim(); //Cut of the leading whitespace. int lEndIndex = aName.lastIndexOf('(') - 1; //Find the last ')' bracket; minus 1 is the end of the Mod type. if (lEndIndex >= 0) { aName = aName.substring(0, lEndIndex); } return aName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static UpdateModuleType nameOf(String name) {\n if (name == null) { return null; }\n try { return valueOf(name); } catch (RuntimeException ignored) { return null; }\n }", "public static Material getType(String name) {\n Material material = null;\n name = name.toUpperCase(Locale.ROOT).trim();\n if (!name.startsWith(\"#\")) {\n if (name.contains(NAMESPACE.toUpperCase(Locale.ROOT))) {\n name = name.split(\":\")[1];\n }\n\n name = BukkitAdapter.ADAPTER.parseLegacyName(name);\n material = Material.matchMaterial(name);\n }\n\n return material;\n }", "private String[] parseVariableModName(String aName) {\n String[] lNameArray = new String[2];\n int lBeginIndex = aName.lastIndexOf('(');\n if (lBeginIndex > 0) {\n int lEndIndex = aName.lastIndexOf(')');\n lNameArray[0] = aName.substring(0, (lBeginIndex));\n lNameArray[1] = aName.substring(lBeginIndex + 1, lEndIndex);\n } else {\n lNameArray[0] = aName;\n lNameArray[1] = null;\n }\n return lNameArray;\n }", "@Check\n \tpublic void checkModuleNameMatchesFileName(ModType modtype) {\n \t\tString idealName = modtype.eResource().getURI().trimFileExtension().lastSegment();\n \t\tif (!modtype.getName().getS().equals(idealName) ) {\n \t\t\tString msg = String.format(\"Module name \\\"%s\\\" differs from file name \\\"%s\\\"\", modtype.getName().getS(), idealName);\n \t\t\terror(msg, GFPackage.Literals.MOD_TYPE__NAME);\n \t\t}\n \t}", "public static CMakeModuleType parse(String str) {\n return Enums.parse(CMakeModuleType.class, str);\n }", "public static ResourceOperation.Target parseType(String str) {\n if (StringComparator.isSameIgnoreCase(str, \"jproject\")) {\n return JPROJECT;\n } else if (StringComparator.isSameIgnoreCase(str, \"jpackage\")) {\n return JPACKAGE;\n } else if (StringComparator.isSameIgnoreCase(str, \"jfile\")) {\n return JFILE;\n }\n \n return OTHERS;\n }", "public static Type findType(String name) {\n if (MZTabUtils.isEmpty(name)) {\n throw new IllegalArgumentException(\"Modification type name should not be empty!\");\n }\n\n Type type;\n try {\n type = Type.valueOf(name.trim().toUpperCase());\n } catch (IllegalArgumentException e) {\n type = null;\n }\n\n return type;\n }", "public static ResourceOperation.Type parseType(String str) {\n if (StringComparator.isSameIgnoreCase(str, \"added\")) {\n return ADDED;\n } else if (StringComparator.isSameIgnoreCase(str, \"removed\")) {\n return REMOVED;\n } else if (StringComparator.isSameIgnoreCase(str, \"moved_from\")) {\n return MOVED_FROM;\n } else if (StringComparator.isSameIgnoreCase(str, \"moved_to\")) {\n return MOVED_TO;\n } else if (StringComparator.isSameIgnoreCase(str, \"renamed_from\")) {\n return RENAMED_FROM;\n } else if (StringComparator.isSameIgnoreCase(str, \"renamed_to\")) {\n return RENAMED_TO;\n }\n \n return OTHERS;\n }", "private static String parseName(String line) {\n if (null == line || !line.startsWith(QUALIFIER_TOKEN)) {\n throw new RuntimeException(\n \"Expected one line naming a qualifier. Line found was: \" + line);\n }\n\n String name = line.substring(QUALIFIER_TOKEN.length());\n LOG.debug(\"Found qualifier: \" + name);\n return name;\n }", "public static CMakeModuleType tryParse(String str) {\n return Enums.tryParse(CMakeModuleType.class, str);\n }", "private String name(String module)\n {\n return module.split(\"%%\")[1];\n }", "String lookupMashFromName(String name);", "private String getSimpleName(String name) {\n\t\tint i = name.lastIndexOf(\".\");\n\t\treturn name.substring(i + 1);\n\t}", "public static RefactoringType getTypeRefactoring(String s) {\n\t\tif (s == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tRefactoringType res;\n\t\t\tswitch (s) {\n\t\t\tcase \"CollapseHierarchy\":\n\t\t\t\tres = RefactoringType.COLLAPSE_HIERARCHY; break;\n\t\t\tcase \"InlineClass\":\n\t\t\t\tres = RefactoringType.INLINE_CLASS; break;\n\t\t\tcase \"introduceParameterObject\":\n\t\t\t\tres = RefactoringType.INTRODUCE_PARAMETER_OBJECT; break;\n\t\t\tcase \"extractMethod\":\n\t\t\t\tres = RefactoringType.EXTRACT_METHOD; break;\n\t\t\tcase \"moveMethod\":\n\t\t\t\tres = RefactoringType.MOVE_METHOD; break;\n\t\t\tcase \"refactBlob\":\n\t\t\t\tres = RefactoringType.MOVE_METHOD; break;\n\t\t\tcase \"extractClass\":\n\t\t\t\tres = RefactoringType.EXTRACT_CLASS; break;\n\t\t\tcase \"RemoveParameter\":\n\t\t\t\tres = RefactoringType.REMOVE_PARAMETER; break;\n\t\t\tcase \"ReplaceMethodWithMethodObject\":\n\t\t\t\tres = RefactoringType.REPLACE_METHOD_WITH_METHOD_OJBECT; break;\n\t\t\tcase \"refactSpaghettiCode\":\n\t\t\t\tres = RefactoringType.EXTRACT_CLASS; break;\n\t\t\tdefault:\n\t\t\t\tSystem.err.println(\"New Smell detected: \" + s);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\t}", "public void parse(String line)\n\t{\n\t\tif(line.length() == 0)\n\t\t\treturn;\n\t\tif(line.startsWith(\";\"))\n\t\t\treturn;\n\t\tline = line.toUpperCase();\n\t\t\n\t\tif(Utils.isCommand(line)){\n\t\t\texecuteCommand(line);\n\t\t\treturn;\n\t\t}\n\t\t//line syntax = <TYPE> <NAME> = {EXPR}\n\t\tStringBuilder build = new StringBuilder();\n\t\tString name = \"\";\n\t\tString type = \"\";\n\t\tint i = 0;\n\t\t//check if the line starts with a letter, we expect a Type declaration, made of letters :P\n\t\tif(!Utils.isLetter(line.charAt(i)))\n\t\t\terror(\"LETTER EXPECTED, NOT \" + line.charAt(i));\t\n\t\t\n\t\tchar c = line.charAt(i); //current character to analyze.\n\t\t\n\t\twhile(i < line.length() && Utils.isLetter(c))\n\t\t{\n\t\t\t//build.append(c);\n\t\t\tc = line.charAt(i); \t\n\t\t\ti++;\t\t\n\t\t}\n\t\t//space char expected before the type declaration.\n\t\tif(!Utils.isSpace(c) && i < line.length())\n\t\t\terror(\"INVALID CHARACTER \\\" \" + c + \"\\\" \");\n\t\t\n\t\t//here we obtain the type.\n\t\t//String t = build.toString();\n\t\tString t = line.substring(0, i-1);\n\t\tif(Utils.isValidType(t))\n\t\t{\n\t\t\ttype = t;\n\t\t}\n\t\telse\n\t\t\terror(t + \" IS NOT A VALID TYPE.\");\n\t\t\n\t\t//re-init stringbuilder.\n\t\tbuild = new StringBuilder();\t\n\t\t\n\t\t//ignore all whitespace chars.\n\t\twhile(i < line.length() && Utils.isSpace(line.charAt(i)))\n\t\t\ti++;\n\t\t\n\t\t//if name is not present, but the index reached the \" = \" sign, throw an Exception.\n\t\tif(line.charAt(i) == '=')\n\t\t\terror(\"NAME NOT FOUND, WHAT THE HECK ARE YOU TIPYING???\");\n\t\t\n\t\t//Names MUST start with a letter.\n\t\tif(!Utils.isLetter(line.charAt(i)))\n\t\t\terror(\"LETTER EXPECTED, NOT \" + line.charAt(i));\n\t\t\n\t\t//update the c char.\n\t\tc = line.charAt(i);\n\t\t\n\t\t//now we must obtain the name token.\n\t\twhile(i < line.length() && Utils.isLetter(c))\n\t\t{\n\t\t\tbuild.append(c);\n\t\t\ti++;\n\t\t\tc = line.charAt(i); \t\t\t\n\t\t}\n\t\t//here we have reached the edge of the name, this MUST be followed by a space char.\n\t\tif(i < line.length() && Utils.isSpace(c))\n\t\t{\n\t\t\tString n = build.toString();\n\t\t\tif(t.length() > 8)\n\t\t\t\terror(\"NAME LENGTH CAN'T BE GREATER THAN 8 CHARS\");\n\t\t\tif(t.length() == 8)\n\t\t\t\tSystem.out.println(\"name token hit the length limit, please use short names.\");\n\t\t\tname = n;\n\t\t}\n\t\telse\n\t\t\terror(\"ERROR IN CHARACTER \\\" \" + c + \" \\\", SPACE EXPECTED.\");\n\t\t\n\t\t//re-init stringbuilder.\n\t\tbuild = new StringBuilder();\n\t\t\n\t\t//ignore all whitespace chars.\n\t\twhile(i < line.length() && Utils.isSpace(line.charAt(i)))\n\t\t\ti++;\n\t\t\n\t\t//here we expect a \" = \" character.\n\t\tif(line.charAt(i) != '=')\n\t\t\terror(\"MISSING \\\" = \\\" SIMBOL\");\n\t\t\n\t\t//advance to next char, idk why, but without this, the compiler crashes.\n\t\ti++;\n\t\t\n\t\t//ignore all whitespace chars.\n\t\twhile(i < line.length() && Utils.isSpace(line.charAt(i)))\n\t\t\ti++;\n\t\t\n\t\t//get expr text.\n\t\tString e = line.substring(i);\n\t\t//solve any reference to other vars, only for basic types.\n\t\tif(Utils.containRefs(e) && Utils.isBasicType(type))\n\t\t\te = solveRefs(e);\n\t\te = e.trim();\n\t\tif(type.equals(\"INTEGER\"))\n\t\t\tints.add(new Int(name, solveMath(e)));\n\t\tif(type.equals(\"STRING\"))\n\t\t\tstrs.add(new Str(name,e));\n\t\tif(type.equals(\"BOOLEAN\"))\n\t\t\tbools.add(new Bool(name,Boolean.parseBoolean(e)));\n\t\tif(Utils.isFuncType(type))\n\t\t{}\n\t\tif(Utils.isCallType(type))\n\t\t{\n\t\t\tExecutable ex = null;\n\t\t\tif(type.equals(\"CALLX\"))\t\n\t\t\t\tex = solveCallx(name, e);\n\t\t\tif(type.equals(\"RETURN\"))\n\t\t\t\tex = solveReturn(name, e);\n\t\t\texecution.executionList.add(ex);\n\t\t}\n\t\tlnumber += 10;\n\t\tlines.add(line);\n\t}", "String getIdentifierName(String name, String type);", "public void addModString(String name, String string)\n {\n modules.put(name,string);\n }", "public TypeDescriptor(String str) {\n handle = str;\n arrayDimensions = str.length() - str.replaceAll(\"\\\\[\", \"\").length();\n str = str.replaceAll(\"\\\\[\", \"\");\n if (primTypes.containsKey(str)) {\n canonicalName = primTypes.get(str);\n } else if (str.startsWith(\"L\") && str.endsWith(\";\")) {\n String className = str.substring(1, str.length() - 1);\n if (className.length() - className.replace(\"/\", \"\").length() == 2\n && className.startsWith(\"java/lang/\")) {\n canonicalName = className.substring(\"java/lang/\".length());\n } else {\n canonicalName = className.substring(className.lastIndexOf(\"/\") + 1);\n reqImport = className.replaceAll(\"/\", \".\");\n }\n } else {\n throw new IllegalArgumentException(\"Invalid descriptor: \" + str);\n }\n }", "public abstract String getModuleName( );", "public static String parsingType(String rawType){\n\t\t\tif(rawType.contains(\"(\")){\n\t\t\tString type=rawType.substring(0, rawType.indexOf('('));\n\t\t\treturn type;}\n\t\t\telse return rawType;\n\t\t}", "public static String formatNameForClassLoading(String name) {\n if (name == null) {\n return \"java.lang.Object;\";\n }\n\n if (name.equals(\"int\")\n || name.equals(\"long\")\n || name.equals(\"short\")\n || name.equals(\"float\")\n || name.equals(\"double\")\n || name.equals(\"byte\")\n || name.equals(\"char\")\n || name.equals(\"boolean\")\n || name.equals(\"void\")\n ) {\n return name;\n }\n\n if (name.startsWith(\"[\")) {\n return name.replace('/', '.');\n }\n\n if (name.startsWith(\"L\")) {\n name = name.substring(1);\n if (name.endsWith(\";\")) {\n name = name.substring(0, name.length() - 1);\n }\n return name.replace('/', '.');\n }\n\n String prefix = \"\";\n if (name.endsWith(\"[]\")) { // todo need process multi\n prefix = \"[\";\n name = name.substring(0, name.length() - 2);\n if (name.equals(\"int\")) {\n return prefix + \"I\";\n } else if (name.equals(\"long\")) {\n return prefix + \"J\";\n } else if (name.equals(\"short\")) {\n return prefix + \"S\";\n } else if (name.equals(\"float\")) {\n return prefix + \"F\";\n } else if (name.equals(\"double\")) {\n return prefix + \"D\";\n } else if (name.equals(\"byte\")) {\n return prefix + \"B\";\n } else if (name.equals(\"char\")) {\n return prefix + \"C\";\n } else if (name.equals(\"boolean\")) {\n return prefix + \"Z\";\n } else {\n return prefix + \"L\" + name.replace('/', '.') + \";\";\n }\n }\n return name.replace('/', '.');\n\n }", "public static String getElementName(String type) {\n switch(type){\n case(\"1\"):\n return \"Kinetic\";\n case(\"2\"):\n return \"Arc\";\n case(\"3\"):\n return \"Solar\";\n case(\"4\"):\n return \"Void\";\n default:\n return \"Damage Type Not Found\";\n }\n }", "private TYPE getType(final String type) {\n String temp = type.replaceAll(\"-\", \"_\");\n TYPE answer = Arrays.stream(\n TYPE.values()\n )\n .filter(value -> value.name().equals(temp))\n .findFirst()\n .orElse(TYPE.unknown);\n return answer;\n }", "private int getModTypeFromPosition(int position) {\n int modTypePosition = position + (isIdle ? 1 : 0); // If this is an idle image, increase the \"mod type position\" (i.e. skip the \"single slice\" option)\n\n switch (modTypePosition) {\n case 0:\n return Constants.SINGLE_SLICE;\n case 1:\n return Constants.REPEAT_SLICE;\n case 2:\n return Constants.REPEAT_PATTERN;\n default:\n return Constants.SINGLE_SLICE;\n }\n }", "public Extension(String s) {\n if (s.contains(\"#\")) {\n String[]ss = s.split(\"#\");\n name=ss[0];\n version = ss[1];\n } else {\n name = s;\n version = \"\";\n }\n }", "private String parseMaterialTemplateName(String line) {\n int space_index = line.indexOf(' ') + 1;\n String mtl_name = line.substring(space_index);\n mtl_name = mtl_name.trim();\n return mtl_name;\n }", "private String resolveAttrType(String aType){\n\t\tif(aType == \"int\" || aType == \"Int\") return \"int\";\n\t\telse if(aType == \"String\") return \"String\";\n\t\telse if(aType == \"univ\") assertMessage(\"TODO: Map univ with Java type\");\n\t\telse if(aType == \"none\") assertMessage(\"TODO: Map none with Java type\");\n\t\telse if(aType.contains(\"seq\")) assertMessage(\"TODO: Map seqInt with Java type\");\n\n\t\treturn aType;\n\t}", "@Override\n public String name(String name, Meter.Type type, @Nullable String baseUnit) {\n String conventionName = NamingConvention.snakeCase.name(name, type, baseUnit);\n\n switch (type) {\n case COUNTER:\n case DISTRIBUTION_SUMMARY:\n case GAUGE:\n if (baseUnit != null && !conventionName.endsWith(\"_\" + baseUnit))\n conventionName += \"_\" + baseUnit;\n break;\n }\n\n switch (type) {\n case COUNTER:\n if (!conventionName.endsWith(\"_total\"))\n conventionName += \"_total\";\n break;\n case TIMER:\n case LONG_TASK_TIMER:\n if (conventionName.endsWith(timerSuffix)) {\n conventionName += \"_seconds\";\n }\n else if (!conventionName.endsWith(\"_seconds\"))\n conventionName += timerSuffix + \"_seconds\";\n break;\n }\n\n String sanitized = nameChars.matcher(conventionName).replaceAll(SEPARATOR);\n if (!Character.isLetter(sanitized.charAt(0))) {\n sanitized = \"m_\" + sanitized;\n }\n return sanitized;\n }", "private void process(String s) {\n try {\n String[] splt = s.split(\"_\");\n int type = Integer.parseInt(splt[0]);\n if(type == TYPE_PROXIMITY) GUI.setProximity(Float.parseFloat(splt[1]));\n else {\n String[] coords = splt[1].split(\" \");\n float x = Float.parseFloat(coords[0]);\n float y = Float.parseFloat(coords[1]);\n float z = Float.parseFloat(coords[2]);\n if(type == TYPE_ACCELEROMETER) GUI.setAccelerometer(x, y, z);\n else if(type == TYPE_ORIENTATION) GUI.setOrientation(x, y, z);\n }\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }", "protected abstract Player getModPlayer(String name);", "public void testModifyName() {\r\n FaceRecognizer1 fr1 = new FaceRecognizer1();\r\n String name = \"Hiran N\";\r\n String expResult = \"Hiran_N\";\r\n String result = fr1.modifyName(name);\r\n assertEquals(expResult, result);\r\n }", "String getModID();", "String getModID();", "Bodymodtype getBodyModType();", "public static CloneType detectType(String name) {\n if (name.startsWith(\"vb-\"))\n return CloneType.VIRTUALBOX;\n else if (name.startsWith(\"amazon-\"))\n return CloneType.AMAZON;\n else if (name.startsWith(\"kvm-\"))\n return CloneType.KVM;\n else {\n// System.err.println(\"The type of this clone could not be determined\");\n// printInfoAboutCloneName();\n return CloneType.UNKNOWN;\n }\n }", "public Mod(int theMod) {\n\t\tswitch(theMod) {\n\t\t\tcase 1:\n\t\t\t\tthis.mod = \"Classique\";\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\tthis.mod = \"Contact Rapide\";\n\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tthis.mod = \"Duo\";\n\t\t\tbreak;\n\t\t}\n\t}", "public static Class resolveMarketDay(String name){\n if(name.startsWith(\"A\")){\n \treturn a_md.class;\n }\n else if(name.startsWith(\"B\")){\n \treturn b_md.class;\n }\n else if(name.startsWith(\"C\")){\n \treturn c_md.class;\n }\n else if(name.startsWith(\"D\")){\n \treturn d_md.class;\n }\n else if(name.startsWith(\"E\")){\n \treturn e_md.class;\n }\n else if(name.startsWith(\"F\")){\n \treturn f_md.class;\n }\n else if(name.startsWith(\"G\")){\n \treturn g_md.class;\n }\n else if(name.startsWith(\"H\")){\n \treturn h_md.class;\n }\n else if(name.startsWith(\"I\")){\n \treturn i_md.class;\n }\n else if(name.startsWith(\"K\")){\n \treturn k_md.class;\n }\n else if(name.startsWith(\"L\")){\n \treturn l_md.class;\n }\n else if(name.startsWith(\"M\")){\n \treturn m_md.class;\n }\n else if(name.startsWith(\"N\")){\n \treturn n_md.class;\n }\n else if(name.startsWith(\"O\")){\n \treturn o_md.class;\n }\n else if(name.startsWith(\"P\")){\n \treturn p_md.class;\n }\n else if(name.startsWith(\"Q\")){\n \treturn q_md.class;\n }\n else if(name.startsWith(\"R\")){\n \treturn r_md.class;\n }\n else if(name.startsWith(\"S\")){\n \treturn s_md.class;\n }\n else if(name.startsWith(\"T\")){\n \treturn t_md.class;\n }\n else if(name.startsWith(\"U\")){\n \treturn u_md.class;\n }\n else if(name.startsWith(\"V\")){\n \treturn v_md.class;\n }\n else if(name.startsWith(\"W\")){\n \treturn w_md.class;\n }\n else if(name.startsWith(\"X\")){\n \treturn x_md.class;\n }\n else if(name.startsWith(\"Y\")){\n \treturn y_md.class;\n }\n else if(name.startsWith(\"Z\")){\n \treturn z_md.class;\n }\n \n return null;\n\t\t//return c;\n\t}", "static int type_of_cm(String passed){\n\t\treturn 1;\n\t}", "public Modul buscarModul(String nomModul) throws ExceptionBuscar;", "private String getTypeFromExtension()\n {\n String filename = getFileName();\n String ext = \"\";\n\n if (filename != null && filename.length() > 0)\n {\n int index = filename.lastIndexOf('.');\n if (index >= 0)\n {\n ext = filename.substring(index + 1);\n }\n }\n\n return ext;\n }", "private String getMethodNameInStrucutreHandle(String structureHandle) {\n\t\tString methodName = \"\";\n\n\t\tif (structureHandle.contains(\"~\")) {\n\t\t\tint index = structureHandle.indexOf(\"~\");\n\t\t\tString substring = structureHandle.substring(index + 1);\n\t\t\tif (substring.contains(\"~\")) {\n\t\t\t\tmethodName = substring.substring(0, substring.indexOf(\"~\"));\n\t\t\t} else {\n\t\t\t\tmethodName = substring;\n\t\t\t}\n\t\t}\n\n\t\tmethodName = methodName.replace(\"[\", \"\");\n\n\t\treturn methodName;\n\t}", "public Modul(String modulname) {\n\t\tthis.modulname=modulname;\n\t}", "private String replaceNamesWithType(String filter, String name, String type) {\r\n int pos = filter.indexOf(ALIAS_PREFIX + name);\r\n int lastPos = 0;\r\n StringBuffer sb = new StringBuffer();\r\n\r\n while (pos > -1) {\r\n sb.append(filter.substring(lastPos, pos));\r\n sb.append(\"/\" + type);\r\n lastPos = pos + (ALIAS_PREFIX + name).length();\r\n pos = filter.indexOf(ALIAS_PREFIX + name, lastPos);\r\n }\r\n\r\n sb.append(filter.substring(lastPos));\r\n\r\n return sb.toString();\r\n }", "public EffectInfoModel mo30015io(String str) {\n EffectInfoModel effectInfoModel = null;\n if (TextUtils.isEmpty(str) || this.dcC.size() == 0) {\n return null;\n }\n Iterator it = this.dcC.iterator();\n while (true) {\n if (!it.hasNext()) {\n break;\n }\n EffectInfoModel effectInfoModel2 = (EffectInfoModel) it.next();\n if (str.equals(effectInfoModel2.mPath)) {\n effectInfoModel = effectInfoModel2;\n break;\n }\n }\n return effectInfoModel;\n }", "public static RefactoringType getTypeRefactoringFromColumn(String s) {\n\t\tif (s == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tRefactoringType res;\n\t\t\tswitch (s) {\n\t\t\tcase \"Collapse Hierarchy\":\n\t\t\t\tres = RefactoringType.COLLAPSE_HIERARCHY; break;\n\t\t\tcase \"Inline Class\":\n\t\t\t\tres = RefactoringType.INLINE_CLASS; break;\n\t\t\tcase \"Introduce Parameter Object\":\n\t\t\t\tres = RefactoringType.INTRODUCE_PARAMETER_OBJECT; break;\n\t\t\tcase \"Extract Method\":\n\t\t\t\tres = RefactoringType.EXTRACT_METHOD; break;\n\t\t\tcase \"Move Method\":\n\t\t\t\tres = RefactoringType.MOVE_METHOD; break;\n\t\t\tcase \"Extract Class\":\n\t\t\t\tres = RefactoringType.EXTRACT_CLASS; break;\n\t\t\tcase \"refactSpaghettiCode\":\n\t\t\t\tres = RefactoringType.EXTRACT_CLASS; break;\n\t\t\tcase \"Remove Parameter\":\n\t\t\t\tres = RefactoringType.REMOVE_PARAMETER; break;\n\t\t\tcase \"Replace Method with Method Object (manual)\":\n\t\t\t\tres = RefactoringType.REPLACE_METHOD_WITH_METHOD_OJBECT; break;\n\t\t\tdefault:\n\t\t\t\tSystem.err.println(\"New Smell detected: \" + s);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\t}", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String parseStringMsg(String msg){\n String parsedMsg = msg;\n //Make second mthd w/o second param\n //replacements is like Variable:Replacement i.e. PLAYERTRADESENTTO:playerReceiver.getName()\n return parsedMsg;\n }", "public static synchronized String getG_SetterName(String p, String type) {\r\n\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(type);//'get' or 'set'\r\n sb.append(Character.toUpperCase(p.charAt(0)));\r\n sb.append(p.substring(1));\r\n\r\n return sb.toString();\r\n }", "public String getPartString() { return \"Type\"; }", "public String determineTaskTypeFromFileLine(String line) {\n int indexOfFirstSquareBracket = line.indexOf(\"[\");\n String taskType = String.valueOf(line.charAt(indexOfFirstSquareBracket + 5));\n return taskType;\n }", "private static String cleanModuleName(String mn) {\n // replace non-alphanumeric\n mn = Patterns.NON_ALPHANUM.matcher(mn).replaceAll(\".\");\n\n // collapse repeating dots\n mn = Patterns.REPEATING_DOTS.matcher(mn).replaceAll(\".\");\n\n // drop leading dots\n if (!mn.isEmpty() && mn.charAt(0) == '.')\n mn = Patterns.LEADING_DOTS.matcher(mn).replaceAll(\"\");\n\n // drop trailing dots\n int len = mn.length();\n if (len > 0 && mn.charAt(len-1) == '.')\n mn = Patterns.TRAILING_DOTS.matcher(mn).replaceAll(\"\");\n\n return mn;\n }", "@Test\r\n public void testNamedImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.List\");\r\n typeParser.addImport(\"java. util . Collection \");\r\n\r\n Type t0 = typeParser.parse(\"List\");\r\n assertEquals(t0, java.util.List.class);\r\n \r\n Type t1 = typeParser.parse(\"Collection\");\r\n assertEquals(t1, java.util.Collection.class);\r\n \r\n }", "private String findTypeofOrder(String orderName)\n {\n\n for (String partNameofOrder : orderName.split(\" \"))\n {\n for (Food.Types typeName : Food.Types.values()) {\n if (typeName.toString().equals(partNameofOrder)) {\n return Food.type;\n }\n }\n\n for (Medicine.Types typeName : Medicine.Types.values()) {\n if (typeName.toString().equals(partNameofOrder)) {\n return Medicine.type;\n }\n }\n\n for (Book.Types typeName : Book.Types.values()) {\n if (typeName.toString().equals(partNameofOrder)) {\n return Book.type;\n }\n }\n }\n return OtherItem.type;\n }", "String typeName();", "public void setModifierName(String modifierName) {\n this.modifierName = modifierName;\n }", "ChangeName.Req getChangeNameReq();", "private String parseDescrName(String line) {\n\t\t// d1f74a_ 201-209;3-11 DGAIGSTFN LKGIFSALL #7\n\t\t// d1nvra_ 226-253;184-204 IDSAPLALL GIVLTAMLA 0_0:-5_-8 0.477587\n\t\t// GroupName is created as name of domain (remove proceeding 'd') + pdb\n\t\t// number of the first residue\n\t\t// in the second segment (3-11 in the example) increased by 10000 + '_'\n\t\t// + number of cluster (7 in the case)\n\t\t// the residue with fasta number 3 is translated into address A4_ - so\n\t\t// the pdb number is 4\n\t\t// finally the group name will be 1f74a_#10004_7\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tString dom = tokens[0].substring(1);\n\t\tString noClust = \"\";\n\t\t@SuppressWarnings(\"unused\")\n\t\tint shift1 = 0; // segment1 shift\n\t\tint shift2 = 0; // segment2 shift\n\t\ttry {\n\t\t\tif (tokens[4].startsWith(\"#\")) {\n\t\t\t\tnoClust = \"_\" + tokens[4].substring(1);\n\t\t\t} else {\n\t\t\t\tnoClust = \"\";\n\t\t\t}\n\t\t\tif (tokens[4].startsWith(\"0_0\")) {\n\t\t\t\ttokens[4] = tokens[4].replaceFirst(\"0_0:\", \"\");\n\t\t\t\tString[] shifts = tokens[4].split(\"_\");\n\t\t\t\tshift1 = Integer.valueOf(shifts[0]);\n\t\t\t\tshift2 = Integer.valueOf(shifts[1]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// do nothing keep default values\n\t\t}\n\t\t// get the first number of second segment : e.g. 3 from 201-209;3-11\n\t\tString[] tokensA = tokens[1].split(\";\");\n\t\tString[] tokensB = tokensA[1].split(\"-\");\n\t\tInteger fastaNo = (Integer.valueOf(tokensB[0]) - shift2 >= 0 ? Integer\n\t\t\t\t.valueOf(tokensB[0]) - shift2 : Integer.valueOf(tokensB[0]));\n\n\t\t// get pdb address\n\t\tString pdbResAddr = hashResMapInt2Str.get(dom).get(fastaNo);\n\t\tpdbResAddr = pdbResAddr.substring(1, pdbResAddr.length() - 1);\n\t\tint pdbResNo = Integer.valueOf(pdbResAddr);\n\n\t\treturn (dom + \"#\" + (10000 + pdbResNo) + noClust);\n\t}", "static int type_of_rm(String passed){\n\t\treturn 1;\n\t}", "public SymName(String n) {\n\tn = n.trim();\n\tfullName = n;\n\tcomp = Util.findComponents(n);\n\tnum_comp = comp.length;\n\ttype = new int[num_comp];\n }", "private String checkName(String filename,int start_off){\n String name=FilenameUtil.setForwardSlash(filename);\n\n // check that it is a possibility\n if(name==null || name.length()<=0) return null;\n if(name.indexOf(matchname)<0) \n if( name.indexOf( matchname1) < 0) return null;\n if(! name.endsWith(\".class\") ) return null;\n if(name.indexOf(\"$\")>name.lastIndexOf(\"/\")) return null;\n \n // chop off the class part\n name=name.substring(start_off,name.length()-6);\n name=name.replace('/','.');\n \n return name;\n }", "public abstract String getSimpleName( );", "public String mangle(String sName);", "private String parseModelName(String line) {\n\n String modelName;\n\n try {\n if (\"\".equals(line.trim()) ||\n line.indexOf(\":\") == -1 ||\n \"\".equals(modelName = line.substring(line.indexOf(\":\") + 1).trim()))\n throw new AutoException(EnumAutomobileErrors.MISSING_MODEL_NAME);\n } catch (AutoException ex) {\n modelName = (String) ex.fix();\n }\n\n return modelName;\n }", "public interface MetaData {\r\n\r\n\tpublic static final String CV_SBML = \"SBML\";\r\n\r\n\tpublic static final String ET_SBML = \"SBML_import\";\r\n\r\n\tpublic static final String AN_SBO = \"SBO\";\r\n\r\n\tpublic static final String RT_CONSUMED_BY = \"cs_by\";\r\n\r\n\tpublic static final String RT_PRODUCED_BY = \"pd_by\";\r\n\r\n\tpublic static final String RT_REGULATED_BY = \"rg_by\";\r\n\r\n\tpublic static final String RT_TRANSFORMATION_OF = \"transformation_of\";\r\n\r\n\tpublic static final String CC_REACTION = \"Reaction\";\r\n\r\n\tpublic static final String CC_COMPOUND = \"Comp\";\r\n\r\n\tpublic static final String CC_CELCOMP = \"CelComp\";\r\n\r\n}", "public String resolveElementName(String id, String type) {\r\n // resolve element name\r\n String elementName;\r\n if (id.startsWith(\"0c\")) {\r\n elementName = \"cabinet\";\r\n } else if (id.startsWith(\"0b\")) {\r\n elementName = \"folder\";\r\n } else if (id.startsWith(\"09\")) {\r\n elementName = \"document\";\r\n } else {\r\n elementName = type;\r\n }\r\n return elementName;\r\n }", "String getSimpleName();", "String getSimpleName();", "public static String m20348g(String str) {\n if (\".cnt\".equals(str)) {\n return \".cnt\";\n }\n if (\".tmp\".equals(str)) {\n return \".tmp\";\n }\n return null;\n }", "String getFriendlyName(YAPIContext ctx) throws YAPI_Exception\n {\n if (_classname.equals(\"Module\")) {\n if (_logicalName.equals(\"\"))\n return _serial + \".module\";\n else\n return _logicalName + \".module\";\n } else {\n YPEntry moduleYP = ctx._yHash.resolveFunction(\"Module\", _serial);\n String module = moduleYP.getFriendlyName(ctx);\n int pos = module.indexOf(\".\");\n module = module.substring(0, pos);\n if (_logicalName.equals(\"\"))\n return module + \".\" + _funcId;\n else\n return module + \".\" + _logicalName;\n }\n }", "private static String m24577oa(String str) {\n if (str == null) {\n return null;\n }\n String substring = str.substring(str.lastIndexOf(\".\") + 1);\n MimeTypeMap singleton = MimeTypeMap.getSingleton();\n if (singleton == null) {\n return null;\n }\n return singleton.getMimeTypeFromExtension(substring.toLowerCase(Locale.US));\n }", "protected abstract SimpleType doParseString(String s);", "private static String m31099c(String str) {\n if (str == null) {\n return null;\n }\n int indexOf = str.indexOf(47);\n if (indexOf != -1) {\n return str.substring(0, indexOf);\n }\n String str2 = \"Invalid mime type: \";\n String valueOf = String.valueOf(str);\n throw new IllegalArgumentException(valueOf.length() != 0 ? str2.concat(valueOf) : new String(str2));\n }", "private PileType getPileType(String sourceString) {\n String pileTyprString = sourceString.substring(0, 1);\n switch (pileTyprString) {\n case \"O\":\n return PileType.OPEN;\n case \"F\":\n return PileType.FOUNDATION;\n case \"C\":\n return PileType.CASCADE;\n default:\n // Should never return null - only called with valid strings\n return null;\n }\n }", "public abstract String getMissionName();", "public static synchronized String getShortTyp(String typ) {\r\n String[] parts = typ.split(\"\\\\.\");\r\n List<String> str = new ArrayList<>(Arrays.asList(parts));\r\n return str.get(str.size() - 1);\r\n }", "static int type_of_jm(String passed){\n\t\treturn 1;\n\t}", "private Class m16122a(String str) {\n try {\n return Class.forName(str);\n } catch (ClassNotFoundException unused) {\n return null;\n }\n }", "private LocalrmnameType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }", "private String doDynamicImport(String name) {\n\t\t// Trim any added spaces\n\t\tname = name.trim();\n\t\ttry {\n\t\t\t//If the class name is the SymbolicNameVersion class then we want the object's\n\t\t\t//toString, otherwise the Class's toString is fine, and allows us to load interfaces\n\t\t\tif(\"org.osgi.test.cases.framework.weaving.tb2.SymbolicNameVersion\".equals(name))\n\t\t\t\treturn Class.forName(name)\n\t\t\t\t\t\t.getConstructor()\n\t\t\t\t\t\t.newInstance()\n\t\t\t\t\t\t.toString();\n\t\t\telse\n\t\t\t\treturn Class.forName(name).toString();\n\t\t} catch (Throwable t) {\n\t\t\tthrow new RuntimeException(t);\n\t\t}\n\t}", "public Object mo22751a(String str) {\n if (str == null) {\n throw new IllegalArgumentException(\"Parameter name must not be null.\");\n }\n Object obj = null;\n if (this.f21017d != null) {\n obj = this.f21017d.mo22751a(str);\n }\n if (obj == null && this.f21016c != null) {\n obj = this.f21016c.mo22751a(str);\n }\n if (obj == null && this.f21015b != null) {\n obj = this.f21015b.mo22751a(str);\n }\n return (obj != null || this.f21014a == null) ? obj : this.f21014a.mo22751a(str);\n }", "private void eatModifier() {\n\n if (currentTokenPointer >= tokenCount) {\n\n raiseParseProblem(\"run out of tokens to process\", expansionString.length());\n\n }\n\n Token token = tokens.get(currentTokenPointer);\n\n TokenKind k = token.kind;\n\n if (currentVersionComponent > 3) {\n\n raiseParseProblem(\"too many version components specified, only major.minor.micro.qualifier is allowed. Found '\" + string(token)\n\n + \"' at position \" + token.start, token.start);\n\n }\n\n if (k == TokenKind.EQUALS) {\n\n processEquals();\n\n } else if (k == TokenKind.WORD) {\n\n processWord();\n\n } else if (k == TokenKind.NUMBER) {\n\n processNumeric();\n\n } else if (k == TokenKind.PLUSNUMBER || k == TokenKind.NEGATIVENUMBER) {\n\n processNumericModifier();\n\n } else {\n\n if (currentVersionComponent < 3) {\n\n raiseParseProblem(\"expected one of: '=' '+nnn' '-nnn' or 'nnn' but found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n } else {\n\n raiseParseProblem(\"expected one of: '=' '+nnn' '-nnn' 'nnn' or 'xxx' but found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n }\n\n }\n\n currentTokenPointer++;\n\n }", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}", "static String cutName(String input) { return input.split(\" \")[0]; }", "String getPresetName();", "private String getPType(String pType) {\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\treturn \"ongoing\";\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\treturn \"finished\";\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "String getName( String name );", "public static FileType fromString(String str) {\n if (str.equals(\"FILE\")) {\n return FILE;\n } else if (str.equals(\"DIRECTORY\")) {\n return DIRECTORY;\n } else if (str.equals(\"SYMLINK\")) {\n return SYMLINK;\n }\n //TODO: FIXME \n return FILE;\n }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public static BioRelTypes getRelationshipType(String str, String pattern) {\n if (str.contains(pattern)) { \n String str1 = str.split(pattern)[0].toUpperCase().trim();\n log.info(\"str1 =\" + str1);\n return BioRelTypes.getEnum(str1);\n }\n return null;\n }", "private String getName(String name) {\n\t\tint n;\n\t\tif (name.startsWith(\"place_\")) {\n\t\t\tn = Integer.parseInt(name.substring(6));\n\t\t} else if (name.startsWith(\"t_\")) {\n\t\t\tn = Integer.parseInt(name.substring(2));\n\t\t} else {\n\t\t\treturn name;\n\t\t}\n\t\tif (n < net.getPlaces().size()) {\n\t\t\tPlace p = (Place) net.getPlaces().get(n);\n\t\t\treturn \"Place \" + p.getIdentifier();\n\t\t}\n\t\tn -= net.getPlaces().size();\n\t\tn--;\n\t\tif (n < net.getTransitions().size()) {\n\t\t\tTransition t = (Transition) net.getTransitions().get(n);\n\t\t\treturn \"Transition \" + t.getIdentifier();\n\t\t}\n\t\treturn name;\n\t}", "public static State parseString(String name)\n\t\t{\n\t\t\tif (FULL.toString().equals(name))\n\t\t\t\treturn FULL;\n\t\t\telse if (PARTIAL.toString().equals(name))\n\t\t\t\treturn PARTIAL;\n\t\t\telse if (DELETED.toString().equals(name))\n\t\t\t\treturn DELETED;\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}", "public static FamilyType getExactFamilyTypeFromPart(String partName) {\n partName = removeSpeedGrade(partName);\n partName = partName.toLowerCase();\n if (!partName.startsWith(\"x\")) {\n return null;\n }\n // Chop up partName into regular pieces for matching\n String[] tokens = splitPartName(partName);\n\n // Match part name with family\n if (tokens[0].equals(\"xcv\")) {\n if (tokens.length >= 3 && tokens[2].startsWith(\"e\")) {\n return FamilyType.VIRTEXE;\n } else {\n return FamilyType.VIRTEX;\n }\n } else if (tokens[0].equals(\"xc\")) {\n if (tokens[1].equals(\"2\")) {\n if (tokens[2].equals(\"s\")) {\n if (tokens.length >= 5 && tokens[4].startsWith(\"e\")) {\n return FamilyType.SPARTAN2E;\n } else {\n return FamilyType.SPARTAN2;\n }\n } else if (tokens[2].startsWith(\"vp\")) {\n return FamilyType.VIRTEX2P;\n } else if (tokens[2].startsWith(\"v\")) {\n return FamilyType.VIRTEX2;\n }\n } else if (tokens[1].equals(\"3\")) {\n if (tokens[2].equals(\"sd\")) {\n return FamilyType.SPARTAN3ADSP;\n } else if (tokens[2].startsWith(\"s\")) {\n if (tokens.length >= 5 && tokens[4].startsWith(\"e\")) {\n return FamilyType.SPARTAN3E;\n } else if (tokens.length >= 5 && tokens[4].startsWith(\"a\")) {\n return FamilyType.SPARTAN3A;\n } else {\n return FamilyType.SPARTAN3;\n }\n }\n } else if (tokens[1].equals(\"4\")) {\n if (tokens[2].startsWith(\"v\")) {\n return FamilyType.VIRTEX4;\n }\n } else if (tokens[1].equals(\"5\")) {\n if (tokens[2].startsWith(\"v\")) {\n return FamilyType.VIRTEX5;\n }\n } else if (tokens[1].equals(\"6\")) {\n if (tokens[2].startsWith(\"v\")) {\n if (tokens.length >= 5 && (tokens[4].startsWith(\"l\") || tokens[4].startsWith(\"tl\"))) {\n return FamilyType.VIRTEX6L;\n } else {\n return FamilyType.VIRTEX6;\n }\n } else if (tokens[2].startsWith(\"s\")) {\n if (tokens.length >= 5 && tokens[4].startsWith(\"l\")) {\n return FamilyType.SPARTAN6L;\n } else {\n return FamilyType.SPARTAN6;\n }\n }\n } else if (tokens[1].equals(\"7\")) {\n if (tokens[2].startsWith(\"v\")) {\n return FamilyType.VIRTEX7;\n } else if (tokens[2].startsWith(\"a\")) {\n return FamilyType.ARTIX7;\n } else if (tokens[2].startsWith(\"k\")) {\n return FamilyType.KINTEX7;\n }\n }\n } else if (tokens[0].equals(\"xa\")) {\n if (tokens[1].equals(\"2\") && tokens.length >= 5 && tokens[4].startsWith(\"e\")) {\n return FamilyType.ASPARTAN2E;\n } else if (tokens[1].equals(\"3\")) {\n if (tokens[2].equals(\"sd\")) {\n return FamilyType.ASPARTAN3ADSP;\n } else if (tokens[2].startsWith(\"s\")) {\n if (tokens.length >= 5 && tokens[4].startsWith(\"e\")) {\n return FamilyType.ASPARTAN3E;\n } else if (tokens.length >= 5 && tokens[4].startsWith(\"a\")) {\n return FamilyType.ASPARTAN3A;\n } else {\n return FamilyType.ASPARTAN3;\n }\n }\n } else if (tokens[1].equals(\"6\")) {\n return FamilyType.ASPARTAN6;\n }\n } else if (tokens[0].equals(\"xq\")) {\n if (tokens[1].equals(\"2\")) {\n if (tokens[2].equals(\"v\")) {\n return FamilyType.QVIRTEX2;\n } else if (tokens[2].equals(\"vp\")) {\n return FamilyType.QVIRTEX2P;\n }\n\n } else if (tokens[1].equals(\"4\")) {\n if (tokens[2].startsWith(\"v\")) {\n return FamilyType.QVIRTEX4;\n }\n } else if (tokens[1].equals(\"5\")) {\n if (tokens[2].startsWith(\"v\")) {\n return FamilyType.QVIRTEX5;\n }\n } else if (tokens[1].equals(\"6\")) {\n if (tokens[2].startsWith(\"v\")) {\n return FamilyType.QVIRTEX6;\n } else if (tokens[2].startsWith(\"s\")) {\n if (tokens.length >= 5 && tokens[4].startsWith(\"l\")) {\n return FamilyType.QSPARTAN6L;\n } else {\n return FamilyType.QSPARTAN6;\n }\n }\n } else if (tokens[1].equals(\"7\")) {\n if (tokens[2].startsWith(\"v\")) {\n return FamilyType.QVIRTEX7;\n } else if (tokens[2].startsWith(\"a\")) {\n return FamilyType.QARTIX7;\n } else if (tokens[2].startsWith(\"k\")) {\n return FamilyType.QKINTEX7;\n }\n }\n } else if (tokens[0].equals(\"xqv\")) {\n if (tokens.length >= 3 && tokens[2].startsWith(\"e\")) {\n return FamilyType.QVIRTEXE;\n } else {\n return FamilyType.QVIRTEX;\n }\n } else if (tokens[0].equals(\"xqvr\")) {\n return FamilyType.QRVIRTEX;\n } else if (tokens[0].equals(\"xqr\")) {\n if (tokens[1].equals(\"2\")) {\n return FamilyType.QRVIRTEX2;\n } else if (tokens[1].equals(\"4\")) {\n return FamilyType.QRVIRTEX4;\n } else if (tokens[1].equals(\"5\")) {\n return FamilyType.QRVIRTEX5;\n } else if (tokens[1].equals(\"6\")) {\n return FamilyType.QRVIRTEX6;\n } else if (tokens[1].equals(\"7\")) {\n return FamilyType.QRVIRTEX7;\n }\n }\n return null;\n }", "String lookupNameFromMash(final String mash);", "public static String changeModality(Scanner input){\n String modality;\n System.out.println(\"\\nAvailable options in the current version are:\\n\"+\n \"(1) Flashcards (Practice with your questions and answers!)\\n\"+\n \"(2) Number mania (Practice your mathemathical abilities!\\n\"+\n \"(3) Russian Roulette (Answer as much questions as you can before you die!)\\n\"+\n \"(4) Hangman (Guess which letters form the answer for a given questions!)\\n\"+\n \"(5) Roch, Paper or Scissor (Try to beat the I.A. to get as much lives you can to answer a question!)\\n\"+\n \"(6) Create a new set of questions\\n\"+\n \"Exit (exit)\\n\"\n +\"Enter the number of the mini game you wish to load, or write \\\"exit\\\" to leave Teacher.app\");\n modality=input.nextLine();\n while(true){\n switch(modality){\n case \"1\":case \"2\":case \"3\":case \"4\": case \"5\": case \"6\": case \"exit\":\n return modality;\n default:\n System.out.println(\"Write a valid option\");\n modality=input.nextLine();\n }\n }\n }", "public static void saveReligionName(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_RELIGION, type);\n editor.apply();\n }", "public interface NameMangler\n {\n /**\n * Convert the given string to a new string using a convention determined\n * by the implementer.\n * \n * @param sName original string\n *\n * @return mangled string\n */\n public String mangle(String sName);\n }", "private String determinePieceType(Piece p) {\n\t\tif (p.isShield()) {\n\t\t\treturn \"shield\";\n\t\t} else if (p.isBomb()) {\n\t\t\treturn \"bomb\";\n\t\t} else {\n\t\t\treturn \"pawn\";\n\t\t}\n\t}", "String getFileExtensionByFileString(String name);", "private static double calcTypeMod(String powerType, String defenderType1, String defenderType2) {\r\n\r\n\t\tdouble firstMult = 0, secondMult = 0;\r\n\r\n\t\tif (defenderType1.equals(\"Normal\")) {\r\n\t\t\tfirstMult = type.normal(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Water\")) {\r\n\t\t\tfirstMult = type.water(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Grass\")) {\r\n\t\t\tfirstMult = type.grass(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Fire\")) {\r\n\t\t\tfirstMult = type.fire(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Dark\")) {\r\n\t\t\tfirstMult = type.dark(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Dragon\")) {\r\n\t\t\tfirstMult = type.dragon(powerType);\r\n\r\n\t\t} \r\n\t\t\r\n\t\telse if (defenderType1.equals(\"Ghost\")) {\r\n\t\t\tfirstMult = type.ghost(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Psychic\")) {\r\n\t\t\tfirstMult = type.psychic(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Rock\")) {\r\n\t\t\tfirstMult = type.rock(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Steel\")) {\r\n\t\t\tfirstMult = type.steel(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Electric\")) {\r\n\t\t\tfirstMult = type.electric(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Ground\")) {\r\n\t\t\tfirstMult = type.ground(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Flying\")) {\r\n\t\t\tfirstMult = type.flying(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Bug\")) {\r\n\t\t\tfirstMult = type.bug(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Fighting\")) {\r\n\t\t\tfirstMult = type.fighting(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Ice\")) {\r\n\t\t\tfirstMult = type.ice(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Poison\")) {\r\n\t\t\tfirstMult = type.poison(powerType);\r\n\r\n\t\t}\r\n\t\t\r\n\t\telse if (defenderType1.equals(\"Fairy\")) {\r\n\t\t\tfirstMult = type.fairy(powerType);\r\n\r\n\t\t}\r\n\r\n\t\tif (!defenderType2.equals(\"null\")) {\r\n\t\t\tif (defenderType2.equals(\"Normal\")) {\r\n\t\t\t\tsecondMult = type.normal(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Water\")) {\r\n\t\t\t\tsecondMult = type.water(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Grass\")) {\r\n\t\t\t\tsecondMult = type.grass(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Fire\")) {\r\n\t\t\t\tsecondMult = type.fire(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Dark\")) {\r\n\t\t\t\tsecondMult = type.dark(powerType);\r\n\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\telse if (defenderType2.equals(\"Dragon\")) {\r\n\t\t\t\tsecondMult = type.dragon(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Ghost\")) {\r\n\t\t\t\tsecondMult = type.ghost(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Psychic\")) {\r\n\t\t\t\tsecondMult = type.psychic(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Rock\")) {\r\n\t\t\t\tsecondMult = type.rock(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Steel\")) {\r\n\t\t\t\tsecondMult = type.steel(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Electric\")) {\r\n\t\t\t\tsecondMult = type.electric(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Ground\")) {\r\n\t\t\t\tsecondMult = type.ground(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Flying\")) {\r\n\t\t\t\tsecondMult = type.flying(powerType);\r\n\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\telse if (defenderType2.equals(\"Bug\")) {\r\n\t\t\t\tsecondMult = type.bug(powerType);\r\n\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\telse if (defenderType2.equals(\"Fighting\")) {\r\n\t\t\t\tsecondMult = type.fighting(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Ice\")) {\r\n\t\t\t\tsecondMult = type.ice(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Poison\")) {\r\n\t\t\t\tsecondMult = type.poison(powerType);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (defenderType2.equals(\"Fairy\")) {\r\n\t\t\t\tsecondMult = type.fairy(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\treturn firstMult * secondMult;\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn firstMult;\r\n\t}", "public static void parseLocket(final String responseText) {\n var mods = new Modifiers.ModifierList();\n\n // The plan here is to parse the locket description...\n DebugDatabase.parseItemEnchantments(\n responseText, mods, new ArrayList<>(), KoLConstants.EQUIP_ACCESSORY);\n\n // ...find the first modifier that can indicate the phylum...\n var indicativeMod =\n mods.stream()\n .map(Modifiers.Modifier::getName)\n .filter(Predicate.not(CONSTANT_MODS::contains))\n .findAny()\n .orElse(null);\n\n // ... grab the raw mod string for the locket from modifiers.txt...\n var locketModString =\n Modifiers.getItemModifiers(ItemPool.COMBAT_LOVERS_LOCKET).getString(Modifiers.MODIFIERS);\n\n String phylum = \"\";\n\n // ... and the locket has a phylum at all...\n if (indicativeMod != null) {\n // Weapon Damage: [pref(locketPhylum,weird)*25]\n int start = locketModString.indexOf(indicativeMod + \": \") + indicativeMod.length() + 21;\n // ... we find the indicative modifier in the raw mod string and see what phylum it is\n // associated with.\n phylum = locketModString.substring(start, locketModString.indexOf(\")\", start));\n }\n\n Preferences.setString(\"locketPhylum\", phylum);\n }" ]
[ "0.58767325", "0.5714474", "0.55769", "0.55346894", "0.55269146", "0.54806745", "0.54481584", "0.5409228", "0.53430754", "0.53039575", "0.5224738", "0.5181769", "0.51524943", "0.5133931", "0.51181656", "0.51135963", "0.5089333", "0.5074097", "0.50339895", "0.5029286", "0.5020488", "0.50183845", "0.5010866", "0.5008531", "0.5006915", "0.49935102", "0.49835828", "0.49761313", "0.4952153", "0.49245313", "0.49183154", "0.49139446", "0.49139446", "0.49089926", "0.48956177", "0.4887994", "0.48811302", "0.48722383", "0.48629385", "0.48584867", "0.4839919", "0.48383686", "0.48339906", "0.48269865", "0.48188898", "0.48185742", "0.4813501", "0.48078433", "0.48016322", "0.47977713", "0.47945803", "0.4786918", "0.47858828", "0.47793016", "0.47784328", "0.4773832", "0.47736853", "0.47700396", "0.47652122", "0.47604814", "0.47513625", "0.47486115", "0.47422582", "0.4738948", "0.4735899", "0.47301626", "0.47301626", "0.4724657", "0.4722292", "0.471621", "0.47025144", "0.4699287", "0.46951115", "0.46831965", "0.46816847", "0.4679183", "0.46738854", "0.46728876", "0.46606117", "0.4660552", "0.46582827", "0.46555993", "0.46529484", "0.4651983", "0.46419966", "0.4640379", "0.46352962", "0.4634403", "0.46331778", "0.4630296", "0.46275544", "0.46263155", "0.46234822", "0.46196976", "0.46187907", "0.46169907", "0.46159947", "0.46127042", "0.46066526", "0.45999414" ]
0.7062317
0
Calculates the records of a set of players based on their performance in a set of matches.
public List<Record> calculateRecords(List<Match> matches) { if (matches == null || matches.size() == 0) { throw new IllegalArgumentException("At least one match must be provided."); } HashMap<Player, Record> recordsList = new HashMap<>(); for (Match match : matches) { Player player1 = match.getPlayer1(); Player player2 = match.getPlayer2(); Record record1 = getOrAddRecord(recordsList, player1); Record record2 = getOrAddRecord(recordsList, player2); // Add points record1.setTotalPoints(record1.getTotalPoints() + match.getPlayer1TotalScore()); record2.setTotalPoints(record2.getTotalPoints() + match.getPlayer2TotalScore()); // Add won and lost games record1.setGameWins(record1.getGameWins() + match.getPlayer1GameScore()); record2.setGameLosses(record2.getGameLosses() + match.getPlayer1GameScore()); record2.setGameWins(record2.getGameWins() + match.getPlayer2GameScore()); record1.setGameLosses(record1.getGameLosses() + match.getPlayer2GameScore()); // Add won and lost matches Player winner = match.getWinner(); if (winner != null) { if (winner.equals(player1)) { record1.setMatchWins(record1.getMatchWins() + 1); record2.setMatchLosses(record2.getMatchLosses() + 1); } else { record1.setMatchLosses(record1.getMatchLosses() + 1); record2.setMatchWins(record2.getMatchWins() + 1); } } } return new ArrayList<>(recordsList.values()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doMatchesStats(int week){\r\n \r\n \r\n List<FantasyMatch> fMatches = fmatchBean.findByWeek(week);\r\n for(int i = 0; i < fMatches.size(); i++){\r\n FantasyMatch fm = fMatches.get(i);\r\n FantasyTeam team1 = fm.getTeam1();\r\n FantasyTeam team2 = fm.getTeam2();\r\n int team1Points = 0, team2Points = 0;\r\n \r\n team1Points += retrievePoints(fm.getTeam1QB(), week);\r\n team2Points += retrievePoints(fm.getTeam2QB(), week);\r\n \r\n team1Points += retrievePoints(fm.getTeam1RB1(), week);\r\n team2Points += retrievePoints(fm.getTeam2RB1(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1RB2(), week);\r\n team2Points += retrievePoints(fm.getTeam2RB2(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WR1(), week);\r\n team2Points += retrievePoints(fm.getTeam2WR1(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WR2(), week);\r\n team2Points += retrievePoints(fm.getTeam2WR2(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WRRB(), week);\r\n team2Points += retrievePoints(fm.getTeam2WRRB(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1TE(), week);\r\n team2Points += retrievePoints(fm.getTeam2TE(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1K(), week);\r\n team2Points += retrievePoints(fm.getTeam2K(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1DEF(), week);\r\n team2Points += retrievePoints(fm.getTeam2DEF(), week);\r\n \r\n fm.setTeam1Points(team1Points);\r\n fm.setTeam2Points(team2Points);\r\n \r\n if(team1Points > team2Points){\r\n team1.setWins(team1.getWins() + 1);\r\n team2.setLosses(team2.getLosses() + 1);\r\n }\r\n if(team1Points == team2Points){\r\n team1.setDraws(team1.getDraws() + 1);\r\n team2.setDraws(team2.getDraws() + 1);\r\n }\r\n if(team1Points < team2Points){\r\n team1.setLosses(team1.getLosses() + 1);\r\n team2.setWins(team2.getWins() + 1);\r\n }\r\n \r\n team1.setPointsFor(team1.getPointsFor() + team1Points);\r\n team1.setPointsAgainst(team1.getPointsAgainst() + team2Points);\r\n \r\n team2.setPointsFor(team2.getPointsFor() + team2Points);\r\n team2.setPointsAgainst(team2.getPointsAgainst() + team1Points);\r\n \r\n fmatchBean.edit(fm);\r\n ftBean.edit(team1);\r\n ftBean.edit(team2);\r\n }\r\n \r\n List<FantasyLeague> leagues = flBean.findAll();\r\n for(int i = 0; i < leagues.size(); i++){\r\n List<FantasyTeam> teams = ftBean.findByLeague(leagues.get(i));\r\n \r\n //DO SORTING BY WINS\r\n Collections.sort(teams, new TeamWinComparator());\r\n \r\n for(int j = 0; j < teams.size(); j++){\r\n FantasyTeam team = teams.get(j);\r\n team.setPreviousRank(team.getRank());\r\n team.setRank(j + 1); \r\n }\r\n }\r\n \r\n }", "public static void calculateResults(ArrayList<Record> records) throws Exception{\r\n\t\tfor(Record record : records)\r\n\t\t{\r\n\t\t\tInteger score = 0;\r\n\r\n\t\t\t// 100m\r\n\t\t\tscore += calculateTrackScore((float)25.434, 18, (float)1.81, record.getHundredMResult());\r\n\r\n\t\t\t//long jump\r\n\t\t\tscore += calculateJumpScore((float)0.1435, 220, (float)1.4, record.getLongJumpResult());\r\n\r\n\t\t\t// shot put\r\n\t\t\tscore += calculateThrowScore((float)51.39, (float)1.5, (float)1.05, record.getShotPutResult());\r\n\r\n\t\t\t// high jump\r\n\t\t\tscore += calculateJumpScore((float)0.8465, 75, (float)1.42, record.getHighJumpResult());\r\n\r\n\t\t\t// 400 m\r\n\t\t\tscore += calculateTrackScore((float)1.53775, 82, (float)1.81,\r\n\t\t\t\t\tUtils.minutesToSeconds(record.getFourHundredMResult()));\r\n\r\n\t\t\t// 110 m hurdles\r\n\t\t\tscore += calculateTrackScore((float)5.74352, (float)28.5, (float)1.92, record.getOneHundredTenResult());\r\n\r\n\t\t\t// Discus throw\r\n\t\t\tscore += calculateThrowScore((float)12.91, 4, (float)1.10, record.getDiscusResult());\r\n\r\n\t\t\t// pole vault\r\n\t\t\tscore += calculateJumpScore((float)0.2797, 100, (float)1.35, record.getPoleVaultResult());\r\n\r\n\t\t\t// javelin throw\r\n\t\t\tscore += calculateThrowScore((float)10.14, 7, (float)1.08, record.getJavelinResult());\r\n\r\n\t\t\t// 1500 m\r\n\t\t\tscore += calculateTrackScore((float)0.03768, 480, (float)1.85,\r\n\t\t\t\t\tUtils.minutesToSeconds(record.getThousandFiveHundredResult()));\r\n\r\n\t\t\trecord.setScore(score);\r\n\t\t}\r\n\t}", "public interface MatchSet {\n\n\t/**\n\t * @return query that produced the match set\n\t */\n\tpublic ProfileQuery getQuery();\n\t\n\t/**\n\t * @return all matches\n\t */\n\tpublic List<Match> getMatches();\n\n\t/**\n\t * @return all matches with rank\n\t */\n\tpublic List<Match> getMatchesWithRank(int rank);\n\t\n\t/**\n\t * @param rank\n\t * @return all matches <= rank\n\t */\n\tpublic List<Match> getMatchesWithOrBelowRank(int rank);\n\t\n\t/**\n\t * @param matchId\n\t * @return Match with identical matchId\n\t */\n\tpublic Match getMatchesWithId(String matchId);\n\t\n\t/**\n\t * @param createMatch\n\t */\n\tpublic void add(Match match);\n\n\t/**\n\t * sort all matches, best match first\n\t */\n\tpublic void sortMatches();\n\t\n\t/**\n\t * rank sorted matches, best has rank=1, \n\t * identical scores share ranks\n\t */\n\tpublic void rankMatches();\n\t\n\t// TODO - record kb metadata\n\tpublic ExecutionMetadata getExecutionMetadata();\n\tpublic void setExecutionMetadata(ExecutionMetadata executionMetadata);\n\n\tpublic MethodMetadata getMethodMetadata();\n\tpublic void setMethodMetadata(MethodMetadata methodMetadata);\n\n\t/**\n\t * Truncate the match set to the top n hits\n\t * \n\t * @param limit\n\t */\n\tpublic void truncate(int limit);\n\t\n\t/**\n\t * Matches for all reference individuals\n\t * \n\t * This is preserved even after truncation\n\t * \n\t * @return map between match id and match\n\t */\n\tpublic Map<String, Match> getReferenceMatches();\n\t\t\n\tpublic DescriptiveStatistics getScores();\n\n\t/**\n\t * @param background - distribution of scores to compare for significance\n\t */\n\tpublic void calculateMatchSignificance(DescriptiveStatistics background);\n\n\t// TODO - filters\n\t\n}", "private void getMatches(){\r\n\t\tString cLong = commandList.get(2);//holds client's longitude in string form\r\n\t\tString cLat = commandList.get(3);//holds the client's latitude in String form\r\n\r\n\t\tArrayList<String> matchList = new ArrayList<>();//holds user names of found matches\r\n\t\t\r\n\t\tString[] clientPSliders = getPSliders(commandList.get(1));\r\n\r\n\t\t//load in SQL command to find matches using given client's min and max values\r\n\t\tcommand =\"SELECT location.userName FROM (location INNER JOIN users \"\r\n\t\t\t\t+ \"ON location.userName = users.userName) INNER JOIN personalSlider \"\r\n\t\t\t\t+ \"ON users.userName = personalSlider.userName WHERE (((location.longitude) <= \";\r\n\t\tcommand += roundLongUp(cLong) + \" And (location.longitude) >= \";\r\n\t\tcommand += roundLongDown(cLong) + \") AND ((location.latitude) <= \";\r\n\t\tcommand += roundLatUp(cLat) + \" And (location.latitude) >= \";\r\n\t\tcommand += roundLatDown(cLat) + \") AND ((personalSlider.pGender) >= \";\r\n\t\tcommand += commandList.get(4) + \" And (personalSlider.pGender) <= \" + commandList.get(5);\r\n\t\tcommand += \" AND ((personalSlider.pExpression) >= \" + commandList.get(6) +\r\n\t\t\t\t\" And (personalSlider.pExpression) <= \" + commandList.get(7) + \")\";\r\n\t\tcommand += \" AND ((personalSlider.pOrientation) >= \" + commandList.get(8) +\r\n\t\t\t\t\" And (personalSlider.pOrientation) <= \" + commandList.get(9) + \")));\";\r\n\r\n\t\t\r\n\t\ttry {//try block for sending SQL command\r\n\t\t\trs = stmt.executeQuery(command);//send command\r\n\r\n\t\t\twhile(rs.next()){//while there are matches\r\n\t\t\t\tmatchList.add(rs.getString(\"userName\"));//load userName\r\n\t\t\t}\r\n\r\n\t\t\t//each String[] is a match, 0 = userName, 1 = pGenderMin, .....6=pOrientationMax, 7=distance (used later)\r\n\t\t\tArrayList<String[]> fullMatches = getSeekingSlider(matchList);\r\n\r\n\t\t\t//remove the non-overlapping matches, pass clients ratings and the list of matches\r\n\t\t\tcrossMatch(strArrToIntArr(clientPSliders), fullMatches);\r\n\t\t\t\r\n\t\t\t//remove matches over 25 miles away\r\n\t\t\tlimitDistance(Double.valueOf(cLat), Double.valueOf(cLong), fullMatches);\r\n\t\t\t\r\n\t\t\trs = null;//null the result set\r\n\t\t\t\r\n\t\t\tString[] tempStrArr;//holds the personal slider for the current match\r\n\t\t\tfor(String[] currArr: fullMatches){//for all the remaining matches\r\n\t\t\t\ttempStrArr = getPSliders(currArr[0]);//get personal slider for current matches\r\n\t\t\t\tout.println(tempStrArr[0] + \", \" + tempStrArr[1] + \", \"//loads userName, pGen, pExpr, pOrient\r\n\t\t\t\t\t\t\t+ tempStrArr[2] + \", \" + tempStrArr[3] + \", \" + currArr[7]);//line 2\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tout.println(e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n public String calculateMatchPoints(List<HandBallScorePoints> handBallScorePointsList) {\n\n String winnerTeam = this.whoIsWinnerTeam(handBallScorePointsList);\n\n int playerPoints;\n Map<String, Integer> playersScoreMatchMap = new HashMap<>();\n for (HandBallScorePoints handBallScorePoints : handBallScorePointsList) {\n\n //Avoid duplicity of a player in a match\n if (playersScoreMatchMap.containsKey(handBallScorePoints.getPlayerNickname())) {\n throw new RuntimeException(\"Duplicate player in same match \" + handBallScorePoints.getPlayerNickname());\n }\n\n //Apply formula\n playerPoints = this.handBallFormula(handBallScorePoints, winnerTeam);\n\n log.info(\"Player {} has {} points at this match\", handBallScorePoints.getPlayerNickname(), playerPoints);\n\n //Add player points to avoid duplicity\n playersScoreMatchMap.put(handBallScorePoints.getPlayerNickname(), playerPoints);\n\n //Add player point to total MVP points\n if (mvpPlayersMap.containsKey(handBallScorePoints.getPlayerNickname())) {\n mvpPlayersMap.put(handBallScorePoints.getPlayerNickname(),\n mvpPlayersMap.get(handBallScorePoints.getPlayerNickname()) + playerPoints);\n } else {\n mvpPlayersMap.put(handBallScorePoints.getPlayerNickname(), playerPoints);\n }\n\n }\n\n\n return this.whoIsMVP();\n }", "private List<PeptideSpectrumMatchNoFDR> rankAndConvertResults(IDPickerParams params, PercolatorParams percParams,\n List<PercolatorResult> allResults) {\n \n long s = System.currentTimeMillis();\n // Rank the Percolator results\n Map<Integer, Integer> resultRanks = rankResults(allResults, percParams);\n \n // make a list of peptide spectrum matches and read the matching proteins from the database\n PeptideDefinition peptideDef = params.getPeptideDefinition();\n \n // map of peptide_key and peptideHit\n Map<String, PeptideHit> peptideHitMap = new HashMap<String, PeptideHit>();\n \n // convert the list of PercolatorResult into a list of PeptideSpectrumMatchNoFDR objects\n List<PeptideSpectrumMatchNoFDR> psmList = new ArrayList<PeptideSpectrumMatchNoFDR>(allResults.size());\n Iterator<PercolatorResult> iter = allResults.iterator();\n while(iter.hasNext()) {\n\n PercolatorResult result = iter.next();\n \n // get the peptide key\n String peptideKey = PeptideKeyCalculator.getKey(result, peptideDef);\n \n PeptideHit peptHit = peptideHitMap.get(peptideKey);\n // If we haven't already seen this peptide, create a new entry\n if(peptHit == null) {\n Peptide peptide = new Peptide(result.getResultPeptide().getPeptideSequence(), peptideKey, -1);\n peptHit = new PeptideHit(peptide);\n peptideHitMap.put(peptideKey, peptHit);\n }\n \n SpectrumMatchNoFDRImpl specMatch = new SpectrumMatchNoFDRImpl();\n specMatch.setHitId(result.getId());\n specMatch.setScanId(result.getScanId());\n specMatch.setCharge(result.getCharge());\n specMatch.setSourceId(result.getRunSearchAnalysisId());\n specMatch.setModifiedSequence(result.getResultPeptide().getModifiedPeptide());\n specMatch.setRank(resultRanks.get(result.getId()));\n\n PeptideSpectrumMatchNoFDRImpl psm = new PeptideSpectrumMatchNoFDRImpl();\n psm.setPeptide(peptHit);\n psm.setSpectrumMatch(specMatch);\n\n psmList.add(psm);\n \n // remove the original result to free up space.\n result = null;\n iter.remove();\n }\n \n // free up unused maps\n allResults.clear(); allResults = null;\n resultRanks.clear(); resultRanks = null;\n peptideHitMap.clear(); peptideHitMap = null;\n \n long e = System.currentTimeMillis();\n log.info(\"\\tTime to rank peptide spectra and create list of spectrum matches: \"+TimeUtils.timeElapsedSeconds(s,e)+\" seconds.\");\n e = System.currentTimeMillis();\n return psmList;\n }", "private void readAllRelevantMatches(){\n\n DatabaseReference ref = db.getReference().child(\"matches\");\n\n //TODO\n //this is expensive for a huge database, but we\n //can't select matches distant x meters from the user position directly\n //in the database\n\n ref.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //prevent the attached listener to update the list\n //in the middle of a full read\n synchronized (FragmentAvailableMatches.this){\n matches.clear();\n for(DataSnapshot data: dataSnapshot.getChildren()){\n Match m = data.getValue(Match.class);\n boolean booked = data.child(\"members/\" + ActivityLogin.currentUserID).exists();\n assert m != null;\n //we show relevant matches only, this is self explaining\n if(m.getPlayersNumber() > 0 && m.getTimestamp() > Calendar.getInstance().getTimeInMillis() && !booked && isLocationNearby(m.getLatitude(), m.getLongitude())\n && !ActivityLogin.currentUserID.equals(m.getCreatorID()))\n addUI(m);\n }\n matchAdapter.notifyDataSetChanged();\n } //release the object only when we have read everything\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "public Matchdata(Match match, long _matchID, String _summonerName, long _playerID)\n {\n matchID = _matchID;\n summonerName = _summonerName;\n playerID = _playerID;\n\n \n participantID = getIdentityFromSummonerID(match);\n totalGoldEachMinute = goldEachMinute(match, participantID);\n minutes = totalGoldEachMinute.length;\n \n individualGEM = new int[totalGoldEachMinute.length];\n for(int i = totalGoldEachMinute.length-1; i>0; i--)\n {\n individualGEM[i] = totalGoldEachMinute[i]-totalGoldEachMinute[i-1];\n }\n individualGEM[0] = totalGoldEachMinute[0];\n \n \n totalCreepsEachMinute = creepsEachMinute(match, participantID);\n \n individualCEM = new int[totalCreepsEachMinute.length];\n for(int i = totalCreepsEachMinute.length-1; i>0; i--)\n {\n individualCEM[i] = totalCreepsEachMinute[i]-totalCreepsEachMinute[i-1];\n }\n individualCEM[0] = totalCreepsEachMinute[0];\n \n \n \n gpm = totalGoldEachMinute[totalGoldEachMinute.length-1]/totalGoldEachMinute.length;\n cpm = totalCreepsEachMinute[totalCreepsEachMinute.length-1]/totalCreepsEachMinute.length;\n \n //get(participantID-1) might seem weird, but it's how getParticipants is stored.\n victory = match.getParticipants().get(participantID-1).getStats().getWinner();\n champion = match.getParticipants().get(participantID-1).getChampionID();\n time = match.getCreation().getTime();\n \n lane = match.getParticipants().get(participantID-1).getTimeline().getLane();\n role = match.getParticipants().get(participantID-1).getTimeline().getRole();\n \n roleSanity = sanityCheck(match);\n \n map = match.getMap();\n \n }", "private Double calculateMatchScore(String query, ConceptMap matchedMapping) {\n return 10000d;\n }", "public void calcMatch() {\n if (leftResult == null || rightResult == null) {\n match_score = 0.0f;\n } else {\n match_score = FaceLockHelper.Similarity(leftResult.getFeature(), rightResult.getFeature(), rightResult.getFeature().length);\n match_score *= 100.0f;\n tvFaceMatchScore1.setText(Float.toString(match_score));\n llFaceMatchScore.setVisibility(View.VISIBLE);\n\n }\n }", "public List<Player> playMatch(List<Player> arrayListPlayers) {\n\n //instantiate Lists for winners / losers\n List<Player> winners = new ArrayList<>();\n List<Player> losers = new ArrayList<>();\n\n //Pairing up - each Player with the next Player, iterator runs for every 2\n for (int i = 0; i < arrayListPlayers.size(); i += 2) {\n\n System.out.println(arrayListPlayers.get(i).printName() + \" (\" + arrayListPlayers.get(i).score + \") vs \"\n + arrayListPlayers.get((i + 1) % arrayListPlayers.size()).printName() + \" (\" + arrayListPlayers.get(i + 1).score + \")\");\n\n //Extra layer of random scoring, so calculateScore is run with each round\n //Without this, players get an initial score that stay with them through the tournament\n arrayListPlayers.get(i).calculateScore();\n\n //Use score to decipher winner, if (i) score is greater than (i +1) score then add (i) to winners List\n if (arrayListPlayers.get(i).score > arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i));\n }\n //And if (i) score is less than (i + 1) score add (i + 1) to winners List\n if (arrayListPlayers.get(i).score < arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i + 1));\n\n\n //extra if statement to handle draws, if score is equal add player [0] to winners List, could randomise this?\n } else if\n (arrayListPlayers.get(i).score == arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i));\n }\n\n /**\n * Additional if statements for adding Player objects to new List 'losers'\n */\n //Create List of losers (not output)\n if (arrayListPlayers.get(i).score < arrayListPlayers.get(i + 1).score) {\n winners.remove(arrayListPlayers.get(i));\n losers.add(arrayListPlayers.get(i));\n\n } else if (arrayListPlayers.get(i).score > arrayListPlayers.get(i + 1).score) {\n winners.remove(arrayListPlayers.get(i + 1));\n losers.add(arrayListPlayers.get(i + 1));\n }\n }\n\n /**\n * This section of the playRound method outputs the list of winners for each round\n * A sleep function was added in attempt to slow down the output\n */\n\n System.out.println(\"\\n-x-x-x-x-x-x-x W I N N E R S x-x-x-x-x-x-x-\\n\");\n //Loop through winners and attach names\n try {\n sleep(10);\n for (int i = 0; i < winners.size(); i++) {\n //SysOut to console the winners\n System.out.println(winners.get(i).printName() + \" won with \" + winners.get(i).score + \" points\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //Execution completed return winners List<>\n return winners;\n\n }", "public boolean evaluateDataClientHeavy() {\n // reset labels\n resetLabels();\n // get IDs of players\n // create one map with playerName and playerID\n // create one map with playerID and the count how often this player participates in this game\n List<Map<String, Object>> returnList;\n Map<String, Integer> mapNameToID = new HashMap<>();\n HashMap<Integer, Integer> mapIDToCount = new HashMap<>();\n if (!dbAccess.openConn()) {\n showAlertDBError();\n return false;\n }\n for (String playerName : playerNameList) {\n returnList = dbAccess.selectSQL(\"SELECT players.id FROM players WHERE players.name = '\" + playerName + \"';\");\n if (returnList == null || returnList.isEmpty()) {\n showAlertDBError();\n return false;\n } else {\n int playerID = (int) returnList.get(0).get(\"id\");\n if (!mapNameToID.containsKey(playerName)) {\n mapNameToID.put(playerName, playerID);\n }\n if (!mapIDToCount.containsKey(playerID)) {\n mapIDToCount.put(playerID, 1);\n } else {\n mapIDToCount.put(playerID, mapIDToCount.get(playerID) + 1);\n }\n }\n }\n\n // get all games and all participants from DB\n List<Map<String, Object>> dbGames = dbAccess.selectSQL(\"SELECT * FROM games;\");\n List<Map<String, Object>> dbParticipants = dbAccess.selectSQL(\"SELECT * FROM participants;\");\n if (dbGames == null || dbParticipants == null) {\n showAlertDBError();\n return false;\n }\n dbAccess.closeConn();\n\n // create winners map\n // holds gameID and ID of winning participant, if game has no winner participantID is -1\n HashMap<Integer, Integer> mapGameIDToWinnerID = new HashMap<>();\n\n // iterate all games\n for (Map<String, Object> rowGames : dbGames) {\n boolean dumpGame = false;\n int gameId = (int) rowGames.get(\"id\");\n String endTime = null;\n if (rowGames.get(\"end_time\") != null)\n endTime = rowGames.get(\"end_time\").toString();\n boolean isAIOnly = (boolean) rowGames.get(\"ai_only\");\n // get deepCopy of mapIDToCount\n Map<Integer, Integer> idToCountCopy = copyHashMapIntInt(mapIDToCount);\n // check if game was aborted preemptively\n if (endTime == null)\n continue;\n int winner = -1;\n\n //iterate all participants\n for (Map<String, Object> rowParticipants : dbParticipants) {\n // check if game.id matches participants.game\n if (gameId == (int) rowParticipants.get(\"game\")) {\n // get participants.id\n int playerID = (int) rowParticipants.get(\"player\");\n // check if participant is in the map of participants, if not skip to next game (break)\n if (idToCountCopy.containsKey(playerID)) {\n // check if the count in this map is higher than 0, if not skip to next game (break)\n if (idToCountCopy.get(playerID) > 0) {\n // lower value of count in map of participants for this participant\n idToCountCopy.put(playerID, idToCountCopy.get(playerID) - 1);\n // if this participant is winner - store it temporarily\n if (rowParticipants.get(\"winner\") != null) {\n winner = playerID;\n }\n } else {\n dumpGame = true;\n break;\n }\n } else {\n dumpGame = true;\n break;\n }\n }\n }\n // check if every value in idToCountCopy is 0\n // if yes -> save game and winner in winners map\n // if not -> dump game\n for (Map.Entry<Integer, Integer> entry : idToCountCopy.entrySet()) {\n if (entry.getValue() != 0) {\n dumpGame = true;\n }\n }\n if (dumpGame == false) {\n mapGameIDToWinnerID.put(gameId, winner);\n }\n }\n\n // check if any games with this constellation of players was played\n if (mapGameIDToWinnerID.isEmpty()) {\n resetPieChart();\n resetLabels();\n showAlertSelectionFail(\"Selection error\", \"No games with this constellation were found.\");\n return false;\n }\n\n // calculate average turns until winner is determined\n if (!dbAccess.openConn()) {\n showAlertDBError();\n return false;\n }\n Integer turnSum = 0;\n Integer gameCounter = 0;\n int averageTurns = 0;\n for (Map.Entry<Integer, Integer> entry : mapGameIDToWinnerID.entrySet()) {\n // check if game has winner\n if (entry.getValue() != -1) {\n // get number of turns for this game\n List<Map<String, Object>> resultList = dbAccess.selectSQL(\"SELECT MAX(turn) FROM moves WHERE game = \" + entry.getKey() + \";\");\n if (resultList == null || resultList.isEmpty()) {\n showAlertDBError();\n return false;\n } else {\n turnSum += (int) resultList.get(0).get(\"MAX(turn)\");\n gameCounter++;\n }\n }\n }\n\n // calculate average turns\n String strAverageTurns = \"\";\n if (gameCounter > 0) {\n averageTurns = Math.round(turnSum / gameCounter);\n }\n strAverageTurns = String.valueOf(averageTurns);\n dbAccess.closeConn();\n\n // now process mapGameIDToWinnerID to pieChart and labels\n Map<String, Integer> mapNameToWins = new HashMap<>();\n // iterate over GameID-WinnerID map and count wins for each player\n int endlessGames = 0;\n for (Map.Entry<Integer, Integer> entryWins : mapGameIDToWinnerID.entrySet()) {\n if (entryWins.getValue() == -1)\n endlessGames++;\n for (Map.Entry<String, Integer> entryName : mapNameToID.entrySet()) {\n if (entryName.getValue() == entryWins.getValue()) {\n if (!mapNameToWins.containsKey(entryName.getKey())) {\n mapNameToWins.put(entryName.getKey(), 1);\n } else {\n mapNameToWins.put(entryName.getKey(), mapNameToWins.get(entryName.getKey()) + 1);\n }\n }\n }\n }\n // add players without wins to the map\n for (Map.Entry<String, Integer> entry : mapNameToID.entrySet()) {\n if (!mapNameToWins.containsKey(entry.getKey()))\n mapNameToWins.put(entry.getKey(), 0);\n }\n\n // fill labels with numbers\n lblTotalGames.setText(String.valueOf(mapGameIDToWinnerID.size()));\n lblGamesWithoutWinner.setText(String.valueOf(endlessGames));\n if (averageTurns == 0) {\n lblAverageTurns.setText(\"Not available\");\n } else {\n lblAverageTurns.setText(strAverageTurns);\n }\n int labelCounter = 1;\n for (Map.Entry<String, Integer> entry : mapNameToWins.entrySet()) {\n vBoxDesc.getChildren().add(labelCounter, new Label(entry.getKey() + \":\"));\n vBoxNumbers.getChildren().add(labelCounter, new Label(String.valueOf(entry.getValue()) + \" wins\"));\n }\n\n // fill pieChart\n pieChartData = FXCollections.observableArrayList();\n for (Map.Entry<String, Integer> entry : mapNameToWins.entrySet()) {\n pieChartData.add(new PieChart.Data(entry.getKey(), entry.getValue()));\n }\n if (endlessGames > 0) {\n pieChartData.add(new PieChart.Data(\"No winner\", endlessGames));\n }\n chart.setData(pieChartData);\n chart.setTitle(\"Winners by percentage\");\n\n lblCaption.setTextFill(Color.web(\"#404040\", 1.0));\n lblCaption.setStyle(\"-fx-font: 24 arial;\");\n\n // set percentages\n for (PieChart.Data data : chart.getData()) {\n data.getNode().addEventHandler(MouseEvent.MOUSE_PRESSED,\n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent e) {\n lblCaption.setTranslateX(e.getSceneX());\n lblCaption.setTranslateY(e.getSceneY());\n double percentage = (data.getPieValue() * 100) / Integer.valueOf(mapGameIDToWinnerID.size()).doubleValue();\n String strPercentage = formatDec(percentage);\n lblCaption.setText(String.valueOf(strPercentage + \"%\"));\n }\n });\n }\n // add pieChart and caption\n if (!diagramBox.getChildren().contains(chart))\n diagramBox.getChildren().add(chart);\n if (!root.getChildren().contains(lblCaption))\n root.getChildren().add(lblCaption);\n return true;\n }", "public void rankMatches();", "public void playRound(List<Player> players) {\n\n //winners ArrayList initializer\n List<Player> winners = new ArrayList<>();\n\n //When the tournament started\n start = System.currentTimeMillis();\n\n //Main loop for running rounds, loop x numberOfRounds\n for (int i = 0; i < numberOfRounds; i++) {\n //Loop for titles, if not the last iteration then roundTitle\n if (i != numberOfRounds - 1) {\n roundTitle();\n //else display finalTitle\n } else {\n finalTitle();\n }\n //winners List is passed as the players to run through the round\n winners = playMatch(players);\n players = winners;\n\n //for each loop that calls on Player object method calculateScore, this happens with each round iteration\n for (Player player : players) {\n player.calculateScore();\n }\n\n //Output for the champion\n if (i == numberOfRounds - 1) {\n lineDivider();\n //With numberOfRounds - 1, append remaining winner in the List output as Champion\n String champion = \"\\n\" + winners.get(0).printName() + \" is the champion !!\";\n //Convert string to uppercase for increased impact\n String championUpper = champion.toUpperCase();\n System.out.println(championUpper);\n lineDivider();\n System.out.println(\"******************************************************\");\n\n }\n\n\n }\n //Small method to calculate/sys out time taken to complete the tournament\n end = System.currentTimeMillis();\n timeTaken = start - end;\n System.out.println(\"\\n\\n This Tournament took\" + timeTaken + \" milliseconds to complete\");\n\n }", "public static ArrayList<Match> getMatchesForSeason(ArrayList<FootballClub> seasonBasedClub){\n\n // these both arrayList will be of the same size\n ArrayList<Match> matchesDisplayed = new ArrayList<>();\n ArrayList<Match> allMatches = new ArrayList<>();\n\n // populating the allMatches list will all the matches from the seasonBasedClub\n // adding all the matches played for that season inside the allMatches list\n for (FootballClub footballClub: seasonBasedClub) {\n allMatches.addAll(footballClub.getMatchesPlayed());\n\n }\n\n // sort the matches in ascending order of the date\n Comparator<Match> sortByDate = (match1, match2) -> {\n\n if(match1.getDate().getYear() == match2.getDate().getYear()){\n if (match1.getDate().getMonth() == match2.getDate().getMonth()) {\n if (match1.getDate().getDay() > match2.getDate().getDay()) {\n return 1;\n }\n } else if (match1.getDate().getMonth() > match2.getDate().getMonth()) {\n return 1;\n }\n }else if (match1.getDate().getYear() > match2.getDate().getYear()) {\n return 1;\n }\n\n return -1;\n };\n allMatches.sort(sortByDate); // sorting the matches according to the date\n\n // MAIN CODE FOR EXTRACTING THE NECESSARY SET OF MATCHES (NO DUPLICATES)\n for (Match match : allMatches) {\n\n boolean matchNotAvailable = true;\n\n // NOTE THAT THIS IS TO PREVENT THE REPEATING OF MATCHES IN ALL CLUBS WHICH IS DUPLICATING\n for (Match value : matchesDisplayed) {\n if (match.getOpponentClubName().equalsIgnoreCase(value.getParticipatedCLubName())) {\n // NOTE: goal scored from the club is equal to goal received from the opponent club\n if (\n (value.getGoalReceived() == match.getGoalScored()) &&\n (value.getGoalScored() == match.getGoalReceived()) &&\n (value.getMatchType().equalsIgnoreCase(match.getMatchType())) &&\n (value.getDate().equals(match.getDate()))\n ) {\n matchNotAvailable = false;\n }\n }\n }\n // WE ADD THE NON DUPLICATED MATCHES INTO THIS LIST AND SEND IT TO THE VIEWS\n if (matchNotAvailable) {\n matchesDisplayed.add(match);\n }\n }\n return matchesDisplayed;\n }", "public void obtainFinalRecs(){\n\n //Step 1 - obtain all scores and put in a data structure\n //Step 1a - get movie ID from commonRec\n //Step 1b - initialise data structure\n //Step 1c - search originalList for movie ID and get score\n //Step 1d - search ... recMap for movie ID and get scores?\n //pull each list out and search that\n //put each score into a list\n\n for (ScoredId aCommonRec : commonRec) {\n Long mID = aCommonRec.getId();\n Double score1 = aCommonRec.getScore();\n\n ArrayList<Double> scores = new ArrayList<>();\n scores.add(score1);\n\n for (Map.Entry<Long, List<ScoredId>> entry : recMap.entrySet()) {\n\n List<ScoredId> tempList = entry.getValue();\n\n for (ScoredId aTempList : tempList) {\n\n if (aTempList.getId() == mID) {\n Double tempscore = aTempList.getScore();\n scores.add(tempscore);\n }\n }\n\n }\n\n\n //Step 2 - average all scores\n\n Double averageScore;\n Double total = 0.0;\n\n for (Double score : scores) {\n total += score;\n }\n\n\n averageScore = total / scores.size();\n\n //Step 3 - put into finalRecs - Long = movie ID, Double = average predicted score\n\n finalRecs.put(mID, averageScore);\n }\n\n }", "public static ArrayList<ArrayList<ArrayList<Double>>> assignScoreToQueries() {\r\n\t\t\r\n\t\tArrayList<ArrayList<ArrayList<Double>>> allQueries = Queries.createQueries();\r\n\t\tArrayList<ArrayList<String>> dataset = ReadInDataset.finalDataset;\r\n\t\tint Counter = 0;\r\n\t\tDouble Score = 0.0;\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.####\");\r\n\t\tdf.setRoundingMode(RoundingMode.CEILING); // round up to 4 decimal places\r\n\t\t\r\n\t\t\r\n\t\t// initially assign to each query a score of 0\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) {\r\n\t\t\tArrayList<Double> zero = new ArrayList<Double>();\r\n\t\t\tzero.add(0.0);\r\n\t\t\tallQueries.get(i).add(zero);}\r\n\t\t\r\n\t\t// go through each query and check how many entries of the dataset it matches\r\n\t\t// with each match increase the score\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) { // for each query\r\n\t\t\tfor(int b=0; b < dataset.size(); b++) { // for each dataset\r\n\t\t\t\tCounter = 0; \r\n\t\t\t\tfor (int a=0; a < allQueries.get(i).size()-1; a++) { // for each query clause\r\n\t\t\t\t//check if the query criteria match the dataset and increase the Score accordingly\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //this counter ensures that all query requirements are met in order to increase the score\r\n\t\t\t\t\tif (a != allQueries.get(i).size() - 1) {\t\t\t\t\t\t // ensure that Score entry is not involved in Query Matching\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// take min and max from query along with an entry from the dataset, convert to a double of 4 decimal places\r\n\t\t\t\t\t\tdouble minPoint1 = allQueries.get(i).get(a).get(0);\r\n\t\t\t\t\t\tString minPoint2 = df.format(minPoint1);\r\n\t\t\t\t\t\tdouble minPoint = Double.parseDouble(minPoint2);\r\n\t\t\t\t\t\tdouble maxPoint1 = allQueries.get(i).get(a).get(1);\r\n\t\t\t\t\t\tString maxPoint2 = df.format(maxPoint1);\r\n\t\t\t\t\t\tdouble maxPoint = Double.parseDouble(maxPoint2);\r\n\t\t\t\t\t\tdouble dataPoint1 = Double.parseDouble(dataset.get(b).get(a+1));\r\n\t\t\t\t\t\tString dataPoint2 = df.format(dataPoint1);\r\n\t\t\t\t\t\tdouble dataPoint = Double.parseDouble(dataPoint2);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ( dataPoint<= maxPoint && dataPoint >= minPoint) { Counter++; \r\n\t\t\t\t\t//\tSystem.out.println(\"min:\" + minPoint+\" max: \"+maxPoint+\" data: \"+dataPoint+ \" of Query: \" + b+ \"| Query Match!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {//System.out.println(minPoint+\" \"+maxPoint+\" \"+dataPoint+ \" of \" + b);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\tif (Counter==(Queries.getDimensions())/2) { // if counter equals the dimensions of the query then increase score\r\n\t\t\t\t\tScore = allQueries.get(i).get(allQueries.get(i).size()-1).get(0);\r\n\t\t\t\t\tallQueries.get(i).get(allQueries.get(i).size()-1).set(0, Score+1.00); \r\n\t\t\t\t\t}}\r\n\t\t\t\t \r\n\t\t\t\t}\r\n\t\t//\tSystem.out.println(\"Score = \" + allQueries.get(i).get(allQueries.get(i).size()-1).get(0));\r\n\t\t}\t\r\n\t\treturn allQueries;\r\n\t}", "private void copyRostersToMatch(int week){\r\n List<FantasyMatch> fMatches = fmatchBean.findByWeek(week);\r\n for(int i = 0; i < fMatches.size(); i++){\r\n FantasyMatch fm = fMatches.get(i);\r\n List<RosterPlayer> rosterA = rpBean.getActiveByTeam(fm.getTeam1());\r\n List<RosterPlayer> rosterB = rpBean.getActiveByTeam(fm.getTeam2());\r\n \r\n int WRnum = 0;\r\n int RBnum = 0;\r\n for(int j = 0; j < rosterA.size(); j++){\r\n RosterPlayer rp = rosterA.get(j);\r\n NFLPlayer nflp = rp.getNflPlayer();\r\n int pos = nflp.getPosition();\r\n \r\n switch(pos){\r\n case 1:\r\n fm.setTeam1QB(nflp);\r\n break;\r\n case 2:\r\n switch(RBnum){\r\n case 0:\r\n fm.setTeam1RB1(nflp);\r\n RBnum++;\r\n break;\r\n case 1:\r\n fm.setTeam1RB2(nflp);\r\n RBnum++;\r\n break;\r\n case 2:\r\n fm.setTeam1WRRB(nflp);\r\n RBnum++;\r\n break;\r\n }\r\n break;\r\n case 3:\r\n switch(WRnum){\r\n case 0:\r\n fm.setTeam1WR1(nflp);\r\n WRnum++;\r\n break;\r\n case 1:\r\n fm.setTeam1WR2(nflp);\r\n WRnum++;\r\n break;\r\n case 2:\r\n fm.setTeam1WRRB(nflp);\r\n WRnum++;\r\n break;\r\n }\r\n break;\r\n case 4:\r\n fm.setTeam1TE(nflp);\r\n break;\r\n case 5:\r\n fm.setTeam1K(nflp);\r\n break;\r\n case 6:\r\n fm.setTeam1DEF(nflp);\r\n break;\r\n }\r\n }\r\n WRnum = 0;\r\n RBnum = 0;\r\n for(int j = 0; j < rosterB.size(); j++){\r\n RosterPlayer rp = rosterB.get(j);\r\n NFLPlayer nflp = rp.getNflPlayer();\r\n int pos = nflp.getPosition();\r\n \r\n switch(pos){\r\n case 1:\r\n fm.setTeam2QB(nflp);\r\n break;\r\n case 2:\r\n switch(RBnum){\r\n case 0:\r\n fm.setTeam2RB1(nflp);\r\n RBnum++;\r\n break;\r\n case 1:\r\n fm.setTeam2RB2(nflp);\r\n RBnum++;\r\n break;\r\n case 2:\r\n fm.setTeam2WRRB(nflp);\r\n RBnum++;\r\n break;\r\n }\r\n break;\r\n case 3:\r\n switch(WRnum){\r\n case 0:\r\n fm.setTeam2WR1(nflp);\r\n WRnum++;\r\n break;\r\n case 1:\r\n fm.setTeam2WR2(nflp);\r\n WRnum++;\r\n break;\r\n case 2:\r\n fm.setTeam2WRRB(nflp);\r\n WRnum++;\r\n break;\r\n }\r\n break;\r\n case 4:\r\n fm.setTeam2TE(nflp);\r\n break;\r\n case 5:\r\n fm.setTeam2K(nflp);\r\n break;\r\n case 6:\r\n fm.setTeam2DEF(nflp);\r\n break;\r\n }\r\n } \r\n fmatchBean.edit(fm);\r\n }\r\n \r\n }", "public static double getChampionMatchResult(String matchDetails, String accountID, double wins) {\n try {\r\n JSONObject searchResultsObj = new JSONObject(matchDetails);\r\n JSONArray searchResultsItems = searchResultsObj.getJSONArray(\"participantIdentities\");\r\n\r\n for (int i = 0; i < searchResultsItems.length(); i++) {\r\n JSONObject resultItem = searchResultsItems.getJSONObject(i);\r\n\r\n if (resultItem.getJSONObject(\"player\").getString(\"accountId\").equals(accountID)) {\r\n int participantId = resultItem.getInt(\"participantId\"); //store the user's id\r\n\r\n JSONArray teams = searchResultsObj.getJSONArray(\"teams\"); //fetch array of game results\r\n\r\n if (teams.getJSONObject(0).getString(\"win\").equals(\"Win\") && participantId < 5) { //check for user as blue team winning\r\n wins++; //the user won, increment to keep track of how many wins total\r\n }\r\n else if (teams.getJSONObject(0).getString(\"win\").equals(\"Fail\") && participantId > 5) { //check for user as red team winning\r\n wins++; //the user won, increment to keep track of how many wins total\r\n }\r\n else {\r\n //do nothing, the user lost this game\r\n }\r\n break; //break, the user has been found\r\n }\r\n }\r\n return wins;\r\n } catch (JSONException e) {\r\n System.out.println(\"JSON CHAMPION MATCH RESULT EXCEPTION: \" + e);\r\n return -1;\r\n }\r\n }", "public ArrayList<PlayerInMatchVO> getRecentMatchesforPlayer(String playerID);", "private void updatePlayersWorth(){\n for (Player e : playerList) {\n e.setPlayerWorth(getTotalShareValue(e) + e.getFunds());\n }\n }", "float getMatch();", "void loadBasicMatchData(MatchDTO match) {\n\n int mode = match.getTeamSize();\n this.labelGameMode.setText(mode + \" vs \" + mode);\n\n this.labelDate.setText(match.getFormattedDateTime());\n\n this.labelMatchDuration.setText(\"\" + String.format(\"%02d\", (int)Math.round(match.getMatchTime())/60) + \":\" + String.format(\"%02d\", (int)Math.round(match.getMatchTime())%60));\n\n List<MatchPlayerDTO> matchPlayers = match.getPlayerData();\n\n int redGoals = 0;\n int blueGoals = 0;\n\n ObservableList<MatchPlayerDTO> playerListBlue = FXCollections.observableArrayList();\n ObservableList<MatchPlayerDTO> playerListRed = FXCollections.observableArrayList();\n\n for (MatchPlayerDTO player : matchPlayers) {\n // team blue\n if (player.getTeam() == TeamSide.BLUE) {\n blueGoals += player.getGoals();\n\n playerListBlue.add(player);\n }\n if (player.getTeam() == TeamSide.RED) {\n redGoals += player.getGoals();\n\n playerListRed.add(player);\n }\n }\n\n this.labelTeamRed.setText(\"Tore: \" + redGoals);\n this.labelTeamBlue.setText(\"Tore: \" + blueGoals);\n\n tableTeamBlue.setItems(playerListBlue);\n tableTeamRed.setItems(playerListRed);\n }", "public void updateTeamFromResults(Match m){\r\n \r\n //Update team1\r\n m.getTeam1().setGoalsFor(m.getTeam1().getGoalsFor() + m.getScore1());\r\n m.getTeam1().setGoalsAgainst(m.getTeam1().getGoalsAgainst() + m.getScore2());\r\n \r\n //Update team2\r\n m.getTeam2().setGoalsFor(m.getTeam2().getGoalsFor() + m.getScore2());\r\n m.getTeam2().setGoalsAgainst(m.getTeam2().getGoalsAgainst() + m.getScore1());\r\n \r\n //Add points\r\n if (m.getScore1() < m.getScore2()){\r\n m.getTeam2().setPoints(m.getTeam2().getPoints() + 3);\r\n m.getTeam1().setMatchLost(m.getTeam1().getMatchLost() + 1);\r\n m.getTeam2().setMatchWon(m.getTeam2().getMatchWon() + 1);\r\n }\r\n else if (m.getScore1() > m.getScore2()){\r\n m.getTeam1().setPoints(m.getTeam1().getPoints() + 3);\r\n m.getTeam2().setMatchLost(m.getTeam2().getMatchLost() + 1);\r\n m.getTeam1().setMatchWon(m.getTeam1().getMatchWon() + 1);\r\n }\r\n else {\r\n m.getTeam1().setPoints(m.getTeam1().getPoints() + 1);\r\n m.getTeam2().setPoints(m.getTeam2().getPoints() + 1);\r\n m.getTeam1().setMatchDrawn(m.getTeam1().getMatchDrawn() + 1);\r\n m.getTeam2().setMatchDrawn(m.getTeam2().getMatchDrawn() + 1);\r\n }\r\n \r\n //Update the rankings\r\n this.updateTeamRank();\r\n }", "Match getMatches();", "public LeagueTable(final List<Match> matches) {\n\t\tif (matches != null && !matches.isEmpty()) {\n\t\t\tfinal Map<String, LeagueTableEntry> map = new HashMap<>();\n\t\t\ttry (Stream<Match> stream = matches.stream()) {\n\t\t\t\tstream.forEach(m -> {\n\t\t\t\t\tLeagueTableEntry homeTeam = map.getOrDefault(m.getHomeTeam(),\n\t\t\t\t\t\t\tnew LeagueTableEntry(m.getHomeTeam()));\n\t\t\t\t\tLeagueTableEntry awayTeam = map.getOrDefault(m.getAwayTeam(),\n\t\t\t\t\t\t\tnew LeagueTableEntry(m.getAwayTeam()));\n\n\t\t\t\t\thandleMatch(homeTeam, awayTeam, m);\n\n\t\t\t\t\tmap.put(homeTeam.getTeamName(), homeTeam);\n\t\t\t\t\tmap.put(awayTeam.getTeamName(), awayTeam);\n\t\t\t\t});\n\t\t\t}\n\t\t\tentries = map.values().stream().sorted(comparator).collect(Collectors.toList());\n\t\t}\n\n\t}", "public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }", "private void computeCurrentResults(int roundNumber) {\n\n\t\t// reset playersByResult;\n\t\tthis.groupsByResult = new HashMap<>();\n\t\tthis.orderedGroupKeys = new ArrayList<>();\n\n\t\t// players key\n\t\tthis.currentPoints = new HashMap<>();\n\n\t\tfor (int i = 1; i <= roundNumber; i++) {\n\t\t\tChesspairingRound round = getRound(i);\n\t\t\tList<ChesspairingGame> games = round.getGames();\n\t\t\tfor (ChesspairingGame game : games) {\n\n\t\t\t\tString whiteKey = game.getWhitePlayer().getPlayerKey();\n\t\t\t\t// if white is present\n\t\t\t\tif (this.presentPlayerKeys.contains(whiteKey)) {\n\t\t\t\t\tDouble whitePoints = this.currentPoints.get(whiteKey);\n\t\t\t\t\tif (whitePoints == null) {\n\t\t\t\t\t\twhitePoints = 0.0;\n\t\t\t\t\t\tthis.currentPoints.put(whiteKey, whitePoints);\n\t\t\t\t\t}\n\t\t\t\t\tif (game.getResult() == ChesspairingResult.WHITE_WINS) {\n\t\t\t\t\t\twhitePoints = whitePoints + 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (game.getResult() == ChesspairingResult.BYE) {\n\t\t\t\t\t\twhitePoints = whitePoints + 0.5;\n\t\t\t\t\t\t// go to the next game\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tString blackKey = game.getBlackPlayer().getPlayerKey();\n\t\t\t\t\tif (this.presentPlayerKeys.contains(blackKey)) {\n\t\t\t\t\t\tDouble blackPoints = this.currentPoints.get(blackKey);\n\t\t\t\t\t\tif (blackPoints == null) {\n\t\t\t\t\t\t\tblackPoints = 0.0;\n\t\t\t\t\t\t\tthis.currentPoints.put(blackKey, blackPoints);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (game.getResult() == ChesspairingResult.BLACK_WINS) {\n\t\t\t\t\t\t\tblackPoints = blackPoints + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (game.getResult() == ChesspairingResult.DRAW_GAME) {\n\t\t\t\t\t\t\twhitePoints = whitePoints + 0.5;\n\t\t\t\t\t\t\tblackPoints = blackPoints + 0.5;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.currentPoints.put(whiteKey, whitePoints);\n\t\t\t\t\t\tthis.currentPoints.put(blackKey, blackPoints);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//iterate over present players and if no current points then add 0 points\n\t\t\tfor (String key: presentPlayerKeys){\n\t\t\t\tif (!currentPoints.containsKey(key)){\n\t\t\t\t\tthis.currentPoints.put(key, 0.0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// simple test to validate some aspects are in order\n\t\tif (presentPlayerKeys.size() != this.currentPoints.entrySet().size()) {\n\t\t\tthrow new IllegalStateException(\"Present players size not the same as currentPoints set size\");\n\t\t}\n\t\t// put the results in playersByResult\n\t\tfor (Entry<String, Double> entry : currentPoints.entrySet()) {\n\t\t\t// if playersByResult group does not exist then create it\n\t\t\tDouble result = entry.getValue();\n\t\t\tif (!this.groupsByResult.containsKey(result)) {\n\t\t\t\tMap<String, ChesspairingPlayer> newGroup = new HashMap<>();\n\t\t\t\tthis.groupsByResult.put(result, newGroup);\n\t\t\t\tthis.orderedGroupKeys.add(result);\n\t\t\t}\n\t\t\tMap<String, ChesspairingPlayer> group = groupsByResult.get(result);\n\t\t\tString playerKey = entry.getKey();\n\t\t\tChesspairingPlayer player = getPlayer(playerKey);\n\t\t\tgroup.put(playerKey, player);\n\t\t}\n\t\t// order the results\n\t\tCollections.reverse(this.orderedGroupKeys);\n\t}", "public static void findScores(TrigonalPlayer[] players) {\r\n int[] scores = new int[MAX_NUM_PLAYERS];\r\n int firstTrigOfHexOwner = 0;\r\n boolean sampleNotTaken;\r\n hexagonsLoop:\r\n for (Trigon[] hexagon : hexagons) {\r\n sampleNotTaken = true;\r\n for (Trigon trig : hexagon) {\r\n if (sampleNotTaken) { // Taking fist non-null trig's user ID as sample\r\n if (trig != null) {\r\n firstTrigOfHexOwner = trig.getOwnerId();\r\n sampleNotTaken = false;\r\n }\r\n }\r\n if (trig == null || trig.getOwnerId() != firstTrigOfHexOwner || trig.getOwnerId() == 0) {\r\n // null is possibility as intended\r\n continue hexagonsLoop;\r\n }\r\n }\r\n scores[firstTrigOfHexOwner - 1] += BASIC_HEXAGON_SCORE;\r\n }\r\n for (int i = 0; i < MAX_NUM_PLAYERS; i++) { // Setting Players' scores to those calculated\r\n players[i + 1].setScore(scores[i]);\r\n }\r\n }", "private static void updateTeamRecord(Team t) {\n ArrayList<Object> records = new ArrayList<>();\n //Get existing team data\n ResultSet teamSet = SqlUtil.getTeamRecord(c, TABLE_NAME, t.getIntValue(Team.NUMBER_KEY));\n try {\n ArrayList<String> matches;\n if (teamSet != null) {\n matches = new ArrayList<>(Arrays.asList(SqlUtil.getArrayFromString(teamSet.getString(\"match_nums\"))));\n } else {\n Main.sendError(\"Cannoy read team data: \" + t.getValue(Team.NUMBER_KEY),false);\n return;\n }\n for (String m: matches) {\n //If the match number already exists\n System.out.println(m);\n if (t.getStringValue(Team.MATCH_KEY).equalsIgnoreCase(m.trim())) {\n return;\n }\n }\n records.add(t.getIntValue(Team.NUMBER_KEY));\n records.add(t.getValue(Team.COLOR_KEY));\n records.add(1+teamSet.getInt(\"num_matches\"));\n matches.add(t.getStringValue(Team.MATCH_KEY));\n records.add(matches.toArray(new String[matches.size()]));\n for(Element e: Main.getElements()){\n switch (e.getType()){\n\n case SEGMENTED_CONTROL:\n for (int i = 0; i<e.getArguments().length;i++){\n if (t.getStringValue(e.getKeys()[0]).equalsIgnoreCase(e.getArguments()[i])){\n records.add(1+teamSet.getInt(e.getColumnValues()[i]));\n } else {\n records.add(teamSet.getInt(e.getColumnValues()[i]));\n }\n }\n break;\n case TEXTFIELD:\n if (e.getArguments()[0].equalsIgnoreCase(\"number\")) {\n records.add(t.getIntValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n\n } else if (e.getArguments()[0].equalsIgnoreCase(\"decimal\")){\n records.add(t.getDoubleValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n }\n break;\n case STEPPER:\n records.add(t.getIntValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n break;\n case LABEL:\n break;\n case SWITCH:\n for (int i = 0; i<e.getKeys().length;i++){\n if (t.getStringValue(e.getKeys()[i]).equalsIgnoreCase(\"yes\")){\n records.add(1 + teamSet.getInt(e.getColumnValues()[i*2]));\n records.add(teamSet.getInt(e.getColumnValues()[i*2+1]));\n } else {\n records.add(teamSet.getInt(e.getColumnValues()[i*2]));\n records.add(1 + teamSet.getInt(e.getColumnValues()[i*2+1]));\n }\n }\n break;\n case SPACE:\n break;\n case SLIDER:\n records.add(t.getDoubleValue(e.getKeys()[0]) + teamSet.getDouble(e.getColumnValues()[0]));\n break;\n }\n }\n double total = 0.0;\n\n for (Equation e: Main.getEquations()){\n double value = e.evaluate(t) + teamSet.getDouble(e.getColumnValue());\n records.add(value);\n total +=value;\n }\n\n records.add(total);\n\n SqlUtil.updateTeamRecord(c,TABLE_NAME, records.toArray(new Object[records.size()]),t.getStringValue(Team.NUMBER_KEY));\n\n } catch (SQLException e) {\n Main.sendError(\"Problem updating team records\", false, e);\n } catch (NullPointerException e){\n Main.sendError(\"Cannot read team data for team \" + t.getValue(Team.NUMBER_KEY),false,e);\n }\n }", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }", "public void CalculatePointsFromEachPlayerToWinner(Player winner) {\n\n\t\tfor (int i = 0; i < players.size(); i++) { \n\t\t\tif (players.get(i).getName() != winner.getName()) {\n\t\t\t\tfor (int j = 0; j < players.get(i).getPlayersHand().size(); j++) {\n\t\t\t\t\twinner.setPlayerScore(players.get(i).getPlayersHand().get(j).getValue() + winner.getPlayerScore());\n\t\t\t}\n\t\t}\n\t}\n\t\t\n\t\tif (winner.getPlayerScore() > 500) {\n\t\t\t//End of game. Implement this later\n\t\t}\n\t}", "public static int generateScore(LinkedList<MatchInterface> subClasses,\r\n\t\t\tLinkedList<ElementMatch> elements) {\r\n\t\tdouble total_weight = 0;\r\n\t\tint score = 0;\r\n\r\n\t\tElementMatch el;\r\n\t\tMatchInterface mat;\r\n\t\tIterator<ElementMatch> iterel;\r\n\t\tIterator<MatchInterface> itermatch;\r\n\r\n\t\titerel = elements.iterator();\r\n\t\twhile (iterel.hasNext()) {\r\n\t\t\tel = iterel.next();\r\n\t\t\ttotal_weight += el.getWeight();\r\n\t\t}\r\n\t\titermatch = subClasses.iterator();\r\n\t\twhile (itermatch.hasNext()) {\r\n\t\t\tmat = itermatch.next();\r\n\t\t\ttotal_weight += mat.getWeight();\r\n\t\t}\r\n\t\tdouble temp;\r\n\t\tdouble elmlocalscore = 0.0;\r\n\r\n\t\titerel = elements.iterator();\r\n\t\twhile (iterel.hasNext()) {\r\n\t\t\tel = iterel.next();\r\n\t\t\ttemp = (el.getWeight() / total_weight) * 2000\r\n\t\t\t\t\t* el.numMatchedEntries()\r\n\t\t\t\t\t/ (el.numEntryFirstUser() + el.numEntrySecondUser());\r\n\r\n\t\t\ttry {\r\n\t\t\t\telmlocalscore = 2000 * el.numMatchedEntries()\r\n\t\t\t\t\t\t/ (el.numEntryFirstUser() + el.numEntrySecondUser());\r\n\t\t\t} catch (ArithmeticException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t// e.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (temp >= 0 && temp <= 1000) {\r\n\t\t\t\tscore += temp;\r\n\t\t\t\tel.setScore(elmlocalscore);\r\n\t\t\t} else {\r\n\t\t\t\tel.setScore(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\titermatch = subClasses.iterator();\r\n\t\twhile (itermatch.hasNext()) {\r\n\t\t\tmat = itermatch.next();\r\n\t\t\tscore += (mat.getWeight() / total_weight) * mat.generateScore();\r\n\t\t}\r\n\t\treturn score;\r\n\t}", "public boolean evaluateDataDBHeavy() {\n // reset labels\n resetLabels();\n\n // create Map with player-name and count how often he participates\n Map<String, Integer> nameToPart = new HashMap<>();\n for (String playerName : playerNameList) {\n if (nameToPart.containsKey(playerName)) {\n nameToPart.put(playerName, nameToPart.get(playerName) + 1);\n } else {\n nameToPart.put(playerName, 1);\n }\n }\n\n // open conn\n if (!dbAccess.openConn()) {\n showAlertDBError();\n return false;\n }\n\n // get List with all games that finished (end_time != null) and have\n // the right number of each participant -> goes to totalGames\n String strSQL = \"SELECT max_turn.game, max_turn.turn, players.name, participants.winner FROM max_turn INNER JOIN participants ON max_turn.game = participants.game \" +\n \"INNER JOIN players ON participants.player = players.id \" +\n \"INNER JOIN games ON games.id = max_turn.game WHERE end_time IS NOT null GROUP BY max_turn.game \" +\n \"HAVING \";\n // add criteria of how often a player participates in a game in a loop (for every player)\n int counter = 0;\n for (Map.Entry<String, Integer> entry : nameToPart.entrySet()) {\n if (counter != 0)\n strSQL += \"AND \";\n strSQL += \"(SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player WHERE participants.game = max_turn.game AND players.name = '\";\n strSQL += entry.getKey() + \"') = \";\n strSQL += entry.getValue() + \" \";\n counter++;\n }\n // add criteria total amount of participants in game (numberOfParticipants)\n strSQL += \"AND (SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player \" +\n \"WHERE participants.game = max_turn.game) = \" + numberOfParticipants +\";\";\n // do select on db\n List<Map<String, Object>> resultList = dbAccess.selectSQL(strSQL);\n // check for dbError\n if(resultList == null){\n showAlertDBError();\n return false;\n }\n totalGames = resultList.size();\n\n\n // first new map to save wins - copy names from nameToPart\n nameToWins = new HashMap<>();\n for(Map.Entry<String, Integer> entry : nameToPart.entrySet()){\n nameToWins.put(entry.getKey(), 0);\n }\n\n // get list with winners and average turns - iterate through resultList of all games WITH A WINNER and the max turns\n strSQL = \"SELECT max_turn.game, max_turn.turn, players.name, participants.winner FROM max_turn INNER JOIN participants ON max_turn.game = participants.game \" +\n \"INNER JOIN players ON participants.player = players.id \" +\n \"INNER JOIN games ON games.id = max_turn.game WHERE end_time IS NOT null AND winner = 1 \" +\n \"HAVING \";\n // add criteria of how often a player participates in a game in a loop (for every player)\n counter = 0;\n for (Map.Entry<String, Integer> entry : nameToPart.entrySet()) {\n if (counter != 0)\n strSQL += \"AND \";\n strSQL += \"(SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player WHERE participants.game = max_turn.game AND players.name = '\";\n strSQL += entry.getKey() + \"') = \";\n strSQL += entry.getValue() + \" \";\n counter++;\n }\n // add criteria total amount of participants in game (numberOfParticipants)\n strSQL += \"AND (SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player \" +\n \"WHERE participants.game = max_turn.game) = \" + numberOfParticipants +\";\";\n // do select on db\n resultList = dbAccess.selectSQL(strSQL);\n // check for dbError\n if(resultList == null){\n showAlertDBError();\n return false;\n }\n\n // close conn\n dbAccess.closeConn();\n\n // iterate resultList with winners, write winners, sum up turns\n int turnSum = 0;\n for(Map<String, Object> row : resultList){\n String name = (String) row.get(\"name\");\n nameToWins.put(name, nameToWins.get(name) + 1);\n int maxTurn = (int) row.get(\"turn\");\n turnSum += maxTurn;\n }\n // until now nameToWins only holds winners - adding players without wins to the map with (with 0 as wins)\n for(Map.Entry<String, Integer> entry : nameToPart.entrySet()){\n if(!nameToWins.containsKey(entry.getKey()))\n nameToWins.put(entry.getKey(), 0);\n }\n\n // calculate games without winner\n int gamesWithWinner = resultList.size();\n gamesWithoutWinner = totalGames-gamesWithWinner;\n // calculate average turns\n if(gamesWithWinner > 0){\n averageTurns = Math.round(turnSum/gamesWithWinner);\n }else{\n averageTurns = 0;\n }\n // update gui and end\n updateGUI();\n return true;\n }", "private void setupTestMatch(int t1Size, int t2Size, int teamSize, MatchmakerImpl.MatchMakingRule rule) {\n\n HashSet<Player> team1 = new HashSet<Player>();\n for(int i = 0; i < t1Size; i++) {\n\n Player p = new Player(\"Player \" + i, 100, 100);\n team1.add(p);\n }\n\n HashSet<Player> team2 = new HashSet<Player>();\n for(int i = 0; i < t2Size; i++) {\n\n Player p = new Player(\"Player \" + (i + t1Size), 100, 100);\n team2.add(p);\n }\n\n MatchmakerImpl dummyMatchmaker = new MatchmakerImpl();\n dummyMatchmaker.matchingRule = rule;\n testMatch = new Match(team1, team2, teamSize, dummyMatchmaker);\n }", "public static String[] getPlayerPossibles(int match)\n\t{\n\t\tString[] result;\n\t\tint start;\n\t\tArrayList<String> temp = new ArrayList<String>();\n\t\tif(match < 96)\n\t\t{\n\t\t\tstart = (match-64)*2;\n\t\t}else if(match < 112)\n\t\t{\n\t\t\tstart = (match-96)*2+64;\n\t\t}else if(match < 120)\n\t\t{\n\t\t\tstart = (match-112)*2+96;\n\t\t}else if(match < 124)\n\t\t{\n\t\t\tstart = (match-120)*2+112;\n\t\t}else if(match < 126)\n\t\t{\n\t\t\tstart = (match-124)*2+120;\n\t\t}else\n\t\t{\n\t\t\tstart = 124;\n\t\t}\n\t\tfor(int i = start; i < start+2; i++)\n\t\t{\n\t\t\ttemp.add(scenarioResults[i]);\n\t\t}\n\t\tresult = temp.toArray(new String[temp.size()]);\n\t\t\n\t\treturn result;\n\t}", "public void calculatePausedPlayers(Tournament tournament, Round round) {\r\n\t\t// this is the number of players in one match\r\n\t\tint numberOfMatchPlayers = tournament.getTeamSize() * 2; // home and away team\r\n\t\t// this is the maximum number of players in one round\r\n\t\tint maxNumberOfActivePlayers = tournament.getCourts() * numberOfMatchPlayers;\r\n\r\n\t\twhile (round.getPlayers().size() > maxNumberOfActivePlayers) {\r\n\t\t\taddPausedPlayer(tournament.getRounds(), round);\r\n\t\t}\r\n\r\n\t\twhile ((round.getPlayers().size() % numberOfMatchPlayers) != 0) {\r\n\t\t\taddPausedPlayer(tournament.getRounds(), round);\r\n\t\t}\r\n\t}", "public MeasurementTree prepareMeasurementTree(List<PerformanceTiming> matches) {\r\n Stack<PerformanceTiming> openTimings = new Stack<PerformanceTiming>();\r\n Stack<MeasurementTree> resultingMetrics = new Stack<MeasurementTree>();\r\n int lastNestingLevel = 0;\r\n\r\n for (PerformanceTiming match : matches) {\r\n if (match.isBeginEvent()) {\r\n openTimings.push(match);\r\n } else if (match.isEndEvent()) {\r\n PerformanceTiming startTiming = openTimings.pop();\r\n\r\n MeasurementTree metric = createMetric(match, startTiming);\r\n if (!resultingMetrics.isEmpty()) {\r\n if (lastNestingLevel != openTimings.size()) {\r\n for (MeasurementTree tree : resultingMetrics) {\r\n metric.addChild(tree);\r\n }\r\n resultingMetrics.clear();\r\n }\r\n resultingMetrics.push(metric);\r\n } else {\r\n resultingMetrics.push(metric);\r\n lastNestingLevel = openTimings.size();\r\n }\r\n }\r\n }\r\n\r\n return resultingMetrics.pop();\r\n }", "public static int generateScoreFromDB(\r\n\t\t\tLinkedList<MatchInterface> subClasses,\r\n\t\t\tLinkedList<ElementMatch> elements) {\r\n\t\tdouble total_weight = 0;\r\n\t\tint score = 0;\r\n\r\n\t\tElementMatch el;\r\n\t\tMatchInterface mat;\r\n\t\tIterator<ElementMatch> iterel;\r\n\t\tIterator<MatchInterface> itermatch;\r\n\r\n\t\titerel = elements.iterator();\r\n\t\twhile (iterel.hasNext()) {\r\n\t\t\tel = iterel.next();\r\n\t\t\ttotal_weight += el.getWeight();\r\n\t\t}\r\n\t\titermatch = subClasses.iterator();\r\n\t\twhile (itermatch.hasNext()) {\r\n\t\t\tmat = itermatch.next();\r\n\t\t\ttotal_weight += mat.getWeight();\r\n\t\t}\r\n\t\tdouble temp;\r\n\t\tdouble elmlocalscore = 0.0;\r\n\r\n\t\titerel = elements.iterator();\r\n\t\twhile (iterel.hasNext()) {\r\n\t\t\tel = iterel.next();\r\n\t\t\ttemp = (el.getWeight() / total_weight)\r\n\t\t\t\t\t* 2000\r\n\t\t\t\t\t* el.getDbnumMatchedEntries()\r\n\t\t\t\t\t/ (el.getDbnumEntrySecondUser() + el\r\n\t\t\t\t\t\t\t.getDbnumEntryFirstUser());\r\n\r\n\t\t\tif (temp > 0 && temp < 1001) {\r\n\t\t\t\tscore += temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\titermatch = subClasses.iterator();\r\n\t\t\r\n\t\twhile (itermatch.hasNext()) {\r\n\t\t\tmat = itermatch.next();\r\n\t\t\tscore += (mat.getWeight() / total_weight) * mat.generateScore();\r\n\t\t}\r\n\t\treturn score;\r\n\t}", "private void calculateAverages(){\n for (int i=0; i<40; i=i+4){\n totalGoalsScored1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored1 = totalGoalsScored1/numberItems;\n //Total and average scored goals of team 2\n for (int i=2; i<40; i=i+4){\n totalGoalsScored2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored2 = totalGoalsScored2/numberItems;\n //Total and average received goals of team 1\n for (int i=1; i<40; i=i+4){\n totalGoalsReceived1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived1 = totalGoalsReceived1/numberItems;\n //Total and average received goals of team 2\n for (int i=3; i<40; i=i+4){\n totalGoalsReceived2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived2 = totalGoalsReceived2/numberItems;\n }", "public void onDetectionsProcessed(Set<String> passwordSet, Set<String> matchedSSIDSet) {\n List<String> passwords = new ArrayList<>(passwordSet);\n Collections.sort(passwords, new PasswordComparator());\n\n List<String> matchedSSIDs = new ArrayList<>(matchedSSIDSet);\n Collections.sort(matchedSSIDs, new SSIDComparator());\n\n // Add the passwords and ssids to all passwords and all ssids\n mAllPasswords.addAll(passwords);\n for (String matchedSSID : matchedSSIDs) {\n if (!mSSIDMatchCounts.containsKey(matchedSSID)) {\n mSSIDMatchCounts.put(matchedSSID, 0);\n }\n mSSIDMatchCounts.put(matchedSSID, mSSIDMatchCounts.get(matchedSSID) + 1);\n }\n\n // Try the best match\n if (!matchedSSIDs.isEmpty() && !passwords.isEmpty()) {\n final String SSID = matchedSSIDs.get(0);\n final String password = passwords.get(0);\n\n // Display the match\n MainActivity.this.runOnUiThread(new Runnable() {\n public void run() {\n displayResults(SSID, password);\n }\n });\n }\n }", "public void calculateResult() {\n\t\tfor (GameEngineCallback callback : callbacks) {\n\t\t\t// Roll for house\n\t\t\tthis.rollHouse(INITIAL_DELAY, FINAL_DELAY, DELAY_INCREMENT);\n\t\t\t\n\t\t\tfor (Player player : this.players.values()) {\n\t\t\t\t// Players who are playing must have a bet and a score\n\t\t\t\t// This conditional may not be required in Assignment 2\n\t\t\t\tif (player.getBet() > 0 && player.getRollResult()\n\t\t\t\t\t\t.getTotalScore() > 0) {\n\t\t\t\t\t// Compare rolls, set result and add/subtract points\n\t\t\t\t\tif (this.houseDice.getTotalScore() > player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.LOST;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Subtract bet from player points\n\t\t\t\t\t\tint points = player.getPoints() - player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\telse if (houseDice.getTotalScore() == player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.DREW;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// No change to points on a draw\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.WON;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add bet to player points\n\t\t\t\t\t\tint points = player.getPoints() + player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Display result\n\t\t\t\t\tcallback.gameResult(this.getPlayer(player.getPlayerId()), \n\t\t\t\t\t\t\tthis.getPlayer(player.getPlayerId()).getGameResult(), this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void handleMatches(MatchContainer matchContainer) {\n Log.d(TAG, \"handleMatches method\");\n GamePieceFactory gamePieceFactory = levelManager.getGamePieceFactory();\n do {\n currentLevelScore += matchContainer.getMatchPoints();\n controller.updateScoreBoardView(matchContainer.getMatchPoints());\n gameBoard.highlightTile(matchContainer);\n controller.playSound(matchContainer);\n controller.controlGameBoardView(ONE_SECOND);\n boardManipulator.removeFromBoard(matchContainer, gamePieceFactory);\n boardManipulator.updateBoard(gamePieceFactory);\n matchContainer = matchFinder.findMatches();\n } while (matchContainer.hasMatches());\n checkForLevelUp();\n }", "public void addMatch() {\n totalMatches ++;\n }", "private void scoreSumUp(ArrayList<Player> players){\n for (Player player: players) {\n System.out.println(\"The Player \" + player.getUsername() + \" has total points of \" + player.getScore());\n }\n }", "public void addingPlayedMatch() throws IOException {\n\n displayStatistics();\n Scanner scn = new Scanner(System.in);\n System.out.println(\"Enter date (dd.mm.yyyy): \");\n String scanned = scn.nextLine();\n Date date;\n try {\n date = new SimpleDateFormat(\"dd.mm.yyyy\").parse(scanned);\n } catch (ParseException ex) {\n System.out.println(\"date should in this format!!! >> mm-dd-yyyy\");\n return;\n }\n System.out.println(\"Enter Team 1: \");\n scanned = scn.nextLine();\n FootballClub team1 = null;\n for (FootballClub club : footballClubArrayList) {\n if (club.getClubName().equals(scanned))\n team1 = club;\n }\n if (team1 == null) {\n System.out.println(\"Wrong club name!!!\");\n return;\n }\n System.out.println(\"Enter Team 2: \");\n scanned = scn.nextLine();\n FootballClub team2 = null;\n for (FootballClub club : footballClubArrayList) {\n if (club.getClubName().equals(scanned))\n team2 = club;\n }\n if (team2 == null) {\n System.out.println(\"Wrong club name!!!\");\n return;\n }\n\n System.out.println(\"Team 1 goals: \");\n scanned = scn.nextLine();\n int team1Goal = -1;\n try {\n team1Goal = Integer.parseInt(scanned);\n } catch (Exception e) {\n }\n if (team1Goal == -1) {\n System.out.println(\"Enter the number of goals\");\n return;\n }\n\n System.out.println(\"Team 2 goals: \");\n scanned = scn.nextLine();\n int team2Goal = -1;\n try {\n team2Goal = Integer.parseInt(scanned);\n } catch (Exception e) {\n }\n if (team2Goal == -1) {\n System.out.println(\"Enter the number of goals\");\n return;\n }\n\n\n Match match = new Match(date,team1,team2,team1Goal,team2Goal); //setting variables when user enter number of goals\n match.setDate(date);\n match.setTeam1(team1);\n match.setTeam2(team2);\n match.setTeam1Goal(team2Goal);\n match.setTeam2Goal(team1Goal);\n matchArrayList.add(match);\n team1.setNumOfGoalsScored(team1.getNumOfGoalsScored() + team1Goal);\n team2.setNumOfGoalsScored(team2.getNumOfGoalsScored() + team2Goal);\n team1.setNumOfGoalsReceived(team1.getNumOfGoalsReceived() + team2Goal);\n team2.setNumOfGoalsReceived(team2.getNumOfGoalsReceived() + team1Goal);\n team1.setNumOfMatchesPlayed(team1.getNumOfMatchesPlayed() + 1);\n team2.setNumOfMatchesPlayed(team2.getNumOfMatchesPlayed() + 1);\n\n if (team1Goal > team2Goal) {\n team1.setNumOfPoints(team1.getNumOfPoints() + 3);\n team1.setNumOfWins(team1.getNumOfWins() + 1);\n team2.setNumOfDefeats(team2.getNumOfDefeats() + 1);\n } else if (team1Goal < team2Goal) {\n team2.setNumOfPoints(team2.getNumOfPoints() + 3);\n team2.setNumOfWins(team2.getNumOfWins() + 1);\n team1.setNumOfDefeats(team1.getNumOfDefeats() + 1);\n } else {\n team1.setNumOfPoints(team1.getNumOfPoints() + 1);\n team2.setNumOfPoints(team2.getNumOfPoints() + 1);\n team1.setNumOfDraws(team1.getNumOfDraws() + 1);\n team2.setNumOfDraws(team2.getNumOfDraws() + 1);\n }\n\n FileOutputStream fis = new FileOutputStream(\"clubData.txt\");\n ObjectOutputStream oos = new ObjectOutputStream(fis);\n oos.writeObject(footballClubArrayList);\n oos.close();\n fis.close();\n\n displayStatistics();\n matchArrayList.add(new Match(date, team1, team2, team1Goal, team2Goal));\n\n\n try {\n FileOutputStream fileOut = new FileOutputStream(\"matchData.txt\");\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(matchArrayList);\n objectOut.close();\n fileOut.close();\n System.out.println(\"Match added Successfully\");\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n }", "@Override\n\tpublic void loadData() {\n\t\t\n\t\tint teamId = ((MatchPagerActivity)getActivity()).getTeamId();\n\t\tint matchId = ((MatchPagerActivity)getActivity()).getMatchId();\n\n\t\tUri teamUri = Matches.buildMatchIdTeamIdUri(\"\"+matchId, \"\"+teamId);\n\t\tfinal Cursor cur = getActivity().getContentResolver().query(teamUri, PROJECTION, null, null, null);\n\t\t\n\t\tif (cur != null && cur.moveToFirst()) {\n\t\t\tint numHighShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_HIGH));\n\t\t\tint numMedShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_MED));\n\t\t\tint numLowShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_LOW));\n\t\t\tint numHighShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_HIGH));\n\t\t\tint numMedShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_MED));\n\t\t\tint numLowShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_LOW));\n\t\t\n\t\t\tmHighCounter.setText(\"\" + numHighShotsMade);\n\t\t\tmMedCounter.setText(\"\" + numMedShotsMade);\n\t\t\tmLowCounter.setText(\"\" + numLowShotsMade);\n\t\t\tmHighMissCounter.setText(\"\" + (numHighShotsAtmp-numHighShotsMade));\n\t\t\tmMedMissCounter.setText(\"\" + (numMedShotsAtmp-numMedShotsMade));\n\t\t\tmLowMissCounter.setText(\"\" + (numLowShotsAtmp-numLowShotsMade));\n\t\t}\n\t\tcur.close();\n\t}", "public Stats getStatsByMatchId(int matchId) {\n\t\tStats s = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString matchesByTeamRecords_sql = \"SELECT * FROM \" + stats_table + \" WHERE idMatch='\" + matchId + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(matchesByTeamRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\ts = new Stats(rs.getInt(3), rs.getInt(4), rs.getInt(5), rs.getInt(6));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn s;\n\t}", "public void printAllPlayerStats(List<Player> players);", "public void calculations(){\n\n int temp_size1 = fight_list.get(0).t1.members.size();\n int[] t1_counter = new int[temp_size1 + 1]; //counter for deaths: 0, 1, 2..., party size.\n float t1_avg = 0; //Average number of deaths.\n\n //We don't need to calculate for t2 right now, because t2 is just monsters.\n //temp_size = fight_list.get(0).t2.members.size();\n //int[] t2_counter = new int[temp_size + 1];\n\n for(FightResult fig : this.fight_list){\n int i = 0;\n while(i != fig.t1_deaths){\n i++;\n }\n t1_counter[i]++;\n t1_avg += fig.t1_deaths;\n }//end for\n\n System.out.println(t1_avg);\n System.out.println(Float.toString(t1_avg/fight_list.size()) + \" / \" + Integer.toString(temp_size1));\n\n String axis = \"# of deaths: \\t\";\n int axis_int = 0;\n String t1_results = \"Happened: \\t\";\n for(int i : t1_counter){\n axis += Integer.toString(axis_int++) + \"\\t\";\n t1_results += Integer.toString(i) + \"\\t\";\n }//end for\n System.out.println(axis);\n System.out.println(t1_results);\n\n float tpk_amount = t1_counter[temp_size1]; //by taking the size, we take the item at the end of the array. In this case, the number where everyone dies.\n tpk_amount = (tpk_amount/fight_list.size())*100;\n System.out.println(\"Probability of TPK: \" + Float.toString(tpk_amount) + \" %.\");\n\n System.out.println(\"\\n--------\\n\");\n }", "@GetMapping(\"/bestplayers\")\n public String best(Map<String, Object> model) {\n\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.MINUTE, -5);\n Date date = calendar.getTime();\n System.out.println(date.toString());\n List<Match> matchs = matchRepo.findByMatchTimeAfter(date);\n\n\n Map<Chessplayer, Double> result = matchs.stream() //преобразуем в стрим\n // .map(Match::getMatchDetails) //мапа деталий матчей\n .flatMap(Match -> Match.getMatchDetails().stream()) //мапа деталей матча\n\n .collect(Collectors.groupingBy(MatchDetails::getChessplayer, Collectors.summingDouble(MatchDetails::getRatingChange)))\n\n .entrySet()\n .stream()\n .sorted(Map.Entry.<Chessplayer, Double>comparingByValue().reversed())\n .limit(5)\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));\n\n model.put(\"players\", result);\n\n return \"bestPlayers\";\n\n }", "private String calculateScore(DiceModel Player1, DiceModel Player2) {\n\t\tint p1d1 = Player1.getDie1();\n\t\tint p1d2 = Player1.getDie2();\n\t\tint p1d3 = Player1.getDie3();\n\t\t\n\t\tint p2d1 = Player2.getDie1();\n\t\tint p2d2 = Player2.getDie2();\n\t\tint p2d3 = Player2.getDie3();\n\t\t\n\t\tint p1P = Player1.getPoints();\n\t\tint p2P = Player2.getPoints();\n\t\n\t\t// impParts stands for the 'important parts' used when calculating pairs (the pair)\n\t\tint impPartsP1;\n\t\tint impPartsP2;\n\t\t\n\t\t// for when the sum is needed\n\t\tint sumP1 = (p1d1 + p1d2 + p1d3);\n\t\tint sumP2 = (p2d1 + p2d2 + p2d3);\n\t\t\n\t\t// ranks are the first step in determining who won\n\t\tint rankP1 = getRank(Player1);\n\t\tint rankP2 = getRank(Player2);\n\n\t\t// now that ranks have been gotten, calculate winner\n\t\t// if P1 had higher rank, he wins. the end.\n\t\tif (rankP1 > rankP2) {\n\t\t\twinner = \"Player1\";\n\t\t} else if (rankP2 > rankP1) { // if player2 has higher rank\n\t\t\twinner = \"Player2\";\n\t\t} else if (rankP1 == rankP2) { // if ranks are same\n\t\t\tif (rankP1 == 4) {\t\t\t// if player 1 rolled 421\n\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else {\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t}\n\t\t\t\twinner = \"Player1\";\n\t\t\t} else if (rankP1 == 3) { // if they are triples;\n\t\t\t\tif (sumP1 >= sumP2) { // highest wins\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else if (sumP2 > sumP1) {\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t} else {\n\t\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (rankP1 == 2) { // if they are doubles\n\t\t\t\tif (p1d1 == p1d2) {\n\t\t\t\t\timpPartsP1 = p1d1; // set the important part to the pair\n\t\t\t\t} else {\n\t\t\t\t\timpPartsP1 = p1d3;\n\t\t\t\t}\n\t\t\t\tif (p2d1 == p2d2) { // do it for player 2 also\n\t\t\t\t\timpPartsP2 = p2d1;\n\t\t\t\t} else {\n\t\t\t\t\timpPartsP2 = p2d3;\n\t\t\t\t}\n\t\t\t\tif (impPartsP1 > impPartsP2) { //if player1 pair is better\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else if (impPartsP2 > impPartsP1) { // or p2's > p1's\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t} else if (impPartsP1 == impPartsP2) { // if same pair\n\t\t\t\t\tif (sumP1 >= sumP2) {\t\t\t\t// add them up\n\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t} else if (sumP2 > sumP1) {\n\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tif (sumP1 >= sumP2) { // if no pairs or better, take sums\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else if (sumP2 > sumP1){\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t} else {\n\t\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} \t\n\t\t\n\t\tif (winner.equals(\"Player1\")) {\n\t\t\tplayer1.setPoints(p1P + 1);\n\t\t} else {\n\t\t\tplayer2.setPoints(p2P + 1);\n\t\t}\n\t\treturn winner;\n\t}", "public static void main(String[] args) throws IOException, InterruptedException, Household.InvalidHouseholdException, Matching.HouseholdAlreadyMatchedException, HousingMarket.FreeSpaceException, Matching.HouseAlreadyMatchedException, Matching.HouseholdLinkedToMultipleException, Matching.HouseholdLinkedToHouseholdException, DynamicMatching.TooManyTimestepsException, Matching.HouseLinkedToMultipleException, MatchingEvaluator.HouseholdIncomeTooHighException, CycleFinder.FullyExploredVertexDiscoveredException, Matching.PreferredNoHouseholdlessHouseException, Matching.HouseLinkedToHouseException {\n String inputFileName = \"../../Data/Input/test2.csv\";\n String outputfolder = \"../../Data/Output/Scores/\";\n\n int nTimes = 50; // Amount of matchings generated per configuration.\n long allowedRunningTime = 1_000; // Time an experiment for _nTimes_ matchings is allowed to run.\n int maxVal = 150; // Maximum lineCount.\n float timestepRatio = 2/3f; // Ratio of time-steps in a dynamic matching that have not yet been taken.\n // Uses H or F, whichever is lowest.\n // ---------------------------------------------------------------------------------------------------\n\n\n int[] startLines = new int[50];\n int counter = 0;\n for (int i = 0; i < 50; i++) {\n startLines[i] = counter;\n counter = counter + (1000 - maxVal) / nTimes; // == 17 with maxVal == 150 & nTimes == 50.\n }\n\n ArrayList<Double> envRatios = new ArrayList<>(Arrays.asList(0.5, 0.75, 1.0, 1.25, 1.5));\n\n ArrayList<Integer> lineCounts = new ArrayList<>(Arrays.asList(5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20, 25, 30, 35, 40, 45, 50, 75, 100, 125, 150));\n// ArrayList<Integer> lineCounts = new ArrayList<>(Arrays.asList(5, 6, 7, 8, 9, 10, 11, 12));\n// ArrayList<Integer> lineCounts = new ArrayList<>(Arrays.asList(20, 25, 30, 35, 40, 45, 50, 75, 100, 125, 150));\n\n Experimenter experimenter = new Experimenter(inputFileName, outputfolder, allowedRunningTime, nTimes, startLines, envRatios, lineCounts, timestepRatio);\n experimenter.runExperiments();\n }", "public void matchBets(MarketRunners marketRunners);", "public List<Result> getPlayerResults(Player player) {\t\n\t\treturn results.stream()\n\t\t\t\t.filter(result -> result.participated(player))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@Override\r\n\tpublic void allScore() {\r\n\t\tallScore = new ArrayList<Integer>();\r\n\t\tallPlayer = new ArrayList<String>();\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n \r\n String query = \"SELECT NAME_PLAYER, SUM(SCORE) AS 'SCORE'\" +\r\n \t\t\" FROM SINGLEPLAYERDB\" +\r\n \t\t\" GROUP BY NAME_PLAYER\" +\r\n \t\t\" ORDER BY SCORE DESC\" ;\r\n ResultSet rs = stmt.executeQuery(query);\r\n \r\n \r\n while (rs.next()) {\r\n \tallPlayer.add(rs.getString(1));\r\n \tallScore.add(Integer.parseInt(rs.getString(2)));\r\n }\r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}", "public ArrayList<BoardGame> filterByPlayer(ArrayList<BoardGame> list) {\n //int playerCount = Integer.parseInt(numPlayers);\n int playerCount = extractInt(numPlayers);\n ArrayList<BoardGame> tempList = new ArrayList<>();\n for (BoardGame game: list) {\n //Debug print out\n Log.i(\"FILTER PLAYERS\", \"Game: \" + game.getName() + \" Min players: \" + game.getMinPlayers() +\n \" Max players: \" + game.getMaxPlayers() + \" Target players: \" + playerCount);\n //TODO: Is there some case for 10+ that would differ from the below?\n if(game.getMinPlayers() <= playerCount && game.getMaxPlayers() >= playerCount) {\n addGameToList(tempList, game);\n }\n }\n return tempList;\n }", "public int[] calculateScore(Player[] players){\n players = board.getPlayers();\n int[] scores = new int[board.getPlayerCount()];\n for(int i = 0; i < players.length; i++){\n scores[i] = players[i].getMoney() + players[i].getCredits() + (players[i].getRank() * 5);\n }\n return scores;\n }", "private float distanceMoyenne(DMatchVector bestMatches){\n\n float DM=0.0f;\n for(int i=0;i<bestMatches.size();i++){\n\n DM+=bestMatches.get(i).distance();\n }\n\n DM=DM/bestMatches.size();\n return DM;\n\n }", "private void getMatchHistoryForPlayer(final long account_id, final int num_results,\n long latest_match_id, final long max_unix_timestamp, final APICallback callback){\n String url = STEAM_API_BASE_URL + GET_MATCHES + \"?\" + STEAM_API_KEY_PARAMETER + mContext.getResources().getString(R.string.steam_api_key) +\n \"&\" + ACCOUNT_ID + convert64IdTo32(account_id);\n if(num_results > 0){\n url += \"&\" + MATCHES_REQEUSTED_NUMBER + num_results;\n }\n if(latest_match_id < 1){\n //return the results so far;\n }\n else{\n url += \"&\" + START_AT_MATCH_ID + latest_match_id;\n }\n //if there's a timestamp include it to back in time!\n //TODO fix code when date_max gets fixed\n// if(max_unix_timestamp > 0){\n// url += \"&\" + DATE_MAX + max_unix_timestamp;\n// }\n\n Log.d(TAG, \"getMatchHistoryForPlayer: request url = \" + url);\n final List<HistoryMatch> matchList = new ArrayList<>();\n JsonObjectRequest getRequest = new JsonObjectRequest(Request.Method.GET, url, null,\n new Response.Listener<JSONObject>()\n {\n @Override\n public void onResponse(JSONObject response) {\n // display response\n Log.d(\"Response\", response.toString());\n Gson gson = new Gson();\n MatchHistoryResults.MatchHistory results = gson.fromJson(response.toString(), MatchHistoryResults.MatchHistory.class);\n matchList.addAll(results.getResult().getMatches());\n Log.d(TAG, \"onResponse: \" + results.getResult().getNum_results());\n\n if(results.getResult().hasMorePagedResults()){\n getMatchHistoryForPlayer(account_id, num_results, results.getResult().getLastMatchId() - 1, max_unix_timestamp, callback);\n }\n //if there were no results from the last call return what we have\n else if(results.getResult().getTotal_results() < 500 && results.getResult().getResults_remaining() < 1){\n callback.onMatchHistoryResponse(matchList);\n }\n\n //continue to earlier dates by taking one less than the last date and one less than the last match id\n //TODO fix code when date_max gets fixed\n /*\n else{\n getMatchHistoryForPlayer(account_id, num_results, results.getResponse().getLastMatchId() - 1, results.getResponse().getLastMatchTimestamp() - 1, callback);\n }\n */\n }\n },\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \" getMatchHistoryForPlayer Error.Response\");\n error.printStackTrace();\n }\n }\n );\n\n// add it to the RequestQueue\n mRequestQueue.add(getRequest);\n }", "public Map<String, Double> executeSQL14() {\n Map<String, Double> result = records.stream().filter(x -> x.getSource().equals(\"a\") || x.getSource().equals(\"b\")).filter(x -> x.getDestination().equals(\"f\")\n || x.getDestination().equals(\"h\")).filter(x -> x.getExtendedSecurityCheck().equals(\"n\")).collect(Collectors.groupingBy(Record::getDestination, Collectors.averagingInt(Record::getWeight)));\n System.out.println(\"SQL 14: \" + result);\n return result;\n }", "public Set<RecordPair> match(Record record) throws ApplicationException;", "@ModelAttribute(\"matchResults\")\n\tpublic List<Prediction> getMatchResults(UserSubscription subscription) {\n\t\treturn predictionService.getPredictionsForAllResults(subscription);\n\t}", "private void assignMatchingProteins(List<PeptideSpectrumMatchNoFDR> psmList) {\n \n MsSearchResultProteinDAO protDao = DAOFactory.instance().getMsProteinMatchDAO();\n \n long s = System.currentTimeMillis();\n // map of protein accession and protein\n Map<String, Protein> proteinMap = new HashMap<String, Protein>();\n \n for(PeptideSpectrumMatchNoFDR psm: psmList) {\n \n // read the matching proteins from the database now\n List<MsSearchResultProtein> msProteinList = protDao.loadResultProteins(psm.getHitId());\n\n for (MsSearchResultProtein protein: msProteinList) {\n // we could have multiple accessions, keep the first one only\n String[] accessionStrings = protein.getAccession().split(\"\\\\cA\");\n \n Protein prot = proteinMap.get(accessionStrings[0]);\n // If we have not already seen this protein create a new entry\n if(prot == null) {\n prot = new Protein(accessionStrings[0], -1);\n proteinMap.put(accessionStrings[0], prot);\n }\n psm.getPeptideHit().addProtein(prot);\n }\n }\n \n long e = System.currentTimeMillis();\n log.info(\"\\tTime to get matching proteins: \"+TimeUtils.timeElapsedSeconds(s,e)+\" seconds.\");\n }", "public void parseResult(Dealer d) {\n int runTime = d.getRunTime();\n int[] resultArray = d.getPvpResult();\n controller.p1WinPercentage = ((float) resultArray[0] / (runTime / 100));\n controller.p2WinPercentage = ((float) resultArray[1] / (runTime / 100));\n controller.tiePercentage = ((float) resultArray[2] / (runTime / 100));\n\n LinkedHashMap<String, Integer> p1 = d.getPlayer1ResultMap();\n int index = 0;\n for (Map.Entry<String, Integer> entry : p1.entrySet()) {\n controller.p1Results[index] = String.format(\"%.2f\", (float) entry.getValue() / (runTime / 100)) + \"%\";\n index++;\n }\n\n if (d.getPlayer2ResultMap() != null) {\n LinkedHashMap<String, Integer> p2 = d.getPlayer2ResultMap();\n index = 0;\n for (Map.Entry<String, Integer> entry : p2.entrySet()) {\n controller.p2Results[index] = String.format(\"%.2f\", (float) entry.getValue() / (runTime / 100)) + \"%\";\n index++;\n }\n }\n }", "public void startNewMatch() {\n // Limpia el score de cada jugador y los pone en no listo\n for (Player p : players) {\n p.resetScore();\n p.setReady(false);\n }\n }", "public void calculateScores()\r\n {\r\n for(int i = 0; i < gameBoard.getBoardRows(); i++)\r\n for(int j = 0; j < gameBoard.getBoardCols(); j++)\r\n {\r\n if(gameBoard.tilePlayer(i,j) == 0)\r\n currentRedScore = currentRedScore + gameBoard.tileScore(i,j);\r\n if(gameBoard.tilePlayer(i,j) == 1)\r\n currentBlueScore = currentBlueScore + gameBoard.tileScore(i,j);\r\n }\r\n }", "public static void playTournament(\n\t\t ArrayList<MazePlayer> players,\n\t\t int width, int depth, \n\t\t int reps, int steps) {\n\t System.out.println(\"Playing tournament!\");\n\n\t int[][] winners = new int[players.size()][players.size()];\n\t for (MazePlayer p1:players)\n\t\t for (MazePlayer p2:players)\n\t\t if (!p1.equals(p2))\n\t\t for (int k=0;k<reps;k++){\n\t\t\t MazeGame g = new MazeGame(width,depth);\n\t\t\t g.addPlayer(p1);\n\t\t\t g.addPlayer(p2);\n\n\t\t\t for(int i=0;i<steps;i++){\n\t\t\t\t\tif (MazeGame.debugging) System.out.println(\"\\n\\n************\\nround \"+i);\n\t\t\t\t\tif (MazeGame.debugging) System.out.println(g.theBoard.drawBoard(g.playerPosition,g.jewelPosition));\n\t\t\t\t for (MazePlayer p: g.player.values()){\n\t\t\t\t\t\t Direction d = p.nextMove(g.playerPosition,g.jewelPosition,g.theBoard);\n\t\t\t\t\t\t g.movePlayer(p,d);\n\t\t\t\t\t }\n\t\t\t }\n\t\t\t int scoreDiff = g.score.get(p1.name)-g.score.get(p2.name);\n\t\t\t System.out.println(p1.name+\" vs \"+p2.name+\" = \"+scoreDiff);\n\t\t\t if (scoreDiff>0){\n\t\t\t\t winners[players.indexOf(p1)][players.indexOf(p2)] += 1;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t winners[players.indexOf(p2)][players.indexOf(p1)] += 1;\t\t\t \n\t\t\t }\n\t\t }\n\t System.out.println(\"Results\");\n\t for (int i=0;i<players.size();i++){\n\t\t int sum=0;\n\t\t for(int j=0;j<players.size();j++){\n\t\t\t sum += winners[i][j];\n\t\t\t System.out.print(\"\\t\"+winners[i][j]);\n\t\t }\n\t\t System.out.println(\"\\t\"+sum+\"\\t\"+players.get(i).name);\n\t }\n\t for (int j=0;j<players.size();j++){\n\t\t int losses=0;\n\t\t for (int i=0;i<players.size();i++) {\n\t\t\t losses += winners[i][j];\n\t\t }\n\t\t System.out.print(\"\\t\"+losses);\n\t }\n\t System.out.println();\n }", "public void setMatches() {\r\n this.matches++;\r\n\r\n }", "public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }", "private void computePresentPleyers() {\n\t\tthis.presentPlayerKeys = new ArrayList<>();\n\t\tList<ChesspairingPlayer> players = mTournament.getPlayers();\n\t\tfor (ChesspairingPlayer player : players) {\n\t\t\tif (player.isPresent()) {\n\t\t\t\tthis.presentPlayerKeys.add(player.getPlayerKey());\n\t\t\t}\n\t\t}\n\t}", "public double getScore() {\n int as = this.attributes.size(); // # of attributes that were matched\n\n // we use thresholding ranking approach for numInstances to influence the matching score\n int instances = this.train.numInstances();\n int inst_rank = 0;\n if (instances > 100) {\n inst_rank = 1;\n }\n if (instances > 500) {\n inst_rank = 2;\n }\n\n return this.p_sum + as + inst_rank;\n }", "private void calculatePlayerStats(int pos) {\r\n\r\n initializeStatisticVariables();\r\n StatistisDAO statDAO = new StatistisDAO(Statistics.this);\r\n DAOUtilities daoUtil = new DAOUtilities(Statistics.this);\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n BagDAO bagDAO = new BagDAO(Statistics.this);\r\n\r\n Player player = new Player();\r\n long id = playerDAO.readIDFromName(players.get(pos));\r\n player.setID(id);\r\n\r\n averageScore = daoUtil.getAverageAdjustedScorePlayer(player);\r\n averagePlusMinus = averageScore - 72;\r\n averageFront9Score = daoUtil.getAverageAdjustedFrontNineScorePlayer(player);\r\n averageFront9PlusMinus = averageFront9Score - 36;\r\n averageBack9Score = daoUtil.getAverageAdjustedBackNineScorePlayer(player);\r\n averageBack9PlusMinus = averageBack9Score - 36;\r\n averageHoleScore = averageScore / 18;\r\n averageHolePlusMinus = averageHoleScore - 4;\r\n\r\n\r\n // get the number of each holes\r\n numberOfPar3Holes = statDAO.getNHolesPar(3, player);\r\n numberOfPar4Holes = statDAO.getNHolesPar(4, player);\r\n numberOfPar5Holes = statDAO.getNHolesPar(5, player);\r\n numberOfHoles = numberOfPar3Holes\r\n + numberOfPar4Holes\r\n + numberOfPar5Holes;\r\n\r\n // get the hole stats\r\n float nfairwayholes = numberOfPar4Holes + numberOfPar5Holes;\r\n fairways = nfairwayholes<=0 ? 0 : statDAO.getNFairways(player) / nfairwayholes * 100.;\r\n if (numberOfHoles > 0) {\r\n girs = statDAO.getNGiR(player) / (float) numberOfHoles * 100.;\r\n chips = statDAO.getNumofChips(player) / (float) numberOfHoles;\r\n putts = statDAO.getNumofPutts(player) / (float) numberOfHoles;\r\n penalties = statDAO.getNumofPenalties(player) / (float) numberOfHoles * 18.;\r\n }\r\n\r\n // get the counts for par 3's\r\n if (numberOfPar3Holes > 0) {\r\n par3Girs = statDAO.getNGiR(3, player) / (float)numberOfPar3Holes * 100.;\r\n par3Chips = statDAO.getNumofChips(3, player) / (float) numberOfPar3Holes;\r\n par3Putts = statDAO.getNumofPutts(3, player) / (float) numberOfPar3Holes;\r\n par3Penalties = statDAO.getNumofPenalties(3, player) / (float) numberOfPar3Holes;\r\n }\r\n par3EagleCount = statDAO.getNHolesParScore(3, -2, player);\r\n par3BirdieCount = statDAO.getNHolesParScore(3, -1, player);\r\n par3ParCount = statDAO.getNHolesParScore(3, 0, player);\r\n par3BogeyCount = statDAO.getNHolesParScore(3, 1, player);\r\n par3DoubleBogeyCount = statDAO.getNHolesParScore(3, 2, player);\r\n par3TripleBogeyCount = statDAO.getNHolesParScore(3, 3, player);\r\n par3QuadBogeyPlusCount = statDAO.getNHolesParGreaterThanScore(3, 4, player);\r\n\r\n // get the counts for par 4's\r\n if (numberOfPar4Holes > 0) {\r\n par4Fairways = statDAO.getNFairways(4, player) / (float) numberOfPar4Holes * 100.;\r\n par4Girs = statDAO.getNGiR(4, player) / (float) numberOfPar4Holes * 100.;\r\n par4Chips = statDAO.getNumofChips(4, player) / (float) numberOfPar4Holes;\r\n par4Putts = statDAO.getNumofPutts(4, player) / (float) numberOfPar4Holes;\r\n par4Penalties = statDAO.getNumofPenalties(4, player) / (float) numberOfPar4Holes;\r\n }\r\n par4AlbatrossCount = statDAO.getNHolesParScore(4, -3, player);\r\n par4EagleCount = statDAO.getNHolesParScore(4, -2, player);\r\n par4BirdieCount = statDAO.getNHolesParScore(4, -1, player);\r\n par4ParCount = statDAO.getNHolesParScore(4, 0, player);\r\n par4BogeyCount = statDAO.getNHolesParScore(4, 1, player);\r\n par4DoubleBogeyCount = statDAO.getNHolesParScore(4, 2, player);\r\n par4TripleBogeyCount = statDAO.getNHolesParScore(4, 3, player);\r\n par4QuadBogeyPlusCount = statDAO.getNHolesParGreaterThanScore(4, 4, player);\r\n\r\n // get the counts for the par 5's\r\n if (numberOfPar5Holes > 0) {\r\n par5Fairways = statDAO.getNFairways(5, player) / (float) numberOfPar5Holes * 100.;\r\n par5Girs = statDAO.getNGiR(5, player) / (float) numberOfPar5Holes * 100.;\r\n par5Putts = statDAO.getNumofPutts(5, player) / (float) numberOfPar5Holes;\r\n par5Chips = statDAO.getNumofChips(5, player) / (float) numberOfPar5Holes;\r\n par5Penalties = statDAO.getNumofPenalties(5, player) / (float) numberOfPar5Holes;\r\n }\r\n par5AlbatrossCount = statDAO.getNHolesParScore(5, -3, player);\r\n par5EagleCount = statDAO.getNHolesParScore(5, -2, player);\r\n par5BirdieCount = statDAO.getNHolesParScore(5, -1, player);\r\n par5ParCount = statDAO.getNHolesParScore(5, 0, player);\r\n par5BogeyCount = statDAO.getNHolesParScore(5, 1, player);\r\n par5DoubleBogeyCount = statDAO.getNHolesParScore(5, 2, player);\r\n par5TripleBogeyCount = statDAO.getNHolesParScore(5, 3, player);\r\n par5QuadBogeyPlusCount = statDAO.getNHolesParGreaterThanScore(5, 4, player);\r\n\r\n // sum various scores\r\n albatrossCount = par4AlbatrossCount + par5AlbatrossCount;\r\n eagleCount = par3EagleCount + par4EagleCount + par5EagleCount;\r\n birdieCount = par3BirdieCount + par4BirdieCount + par5BirdieCount;\r\n parCount = par3ParCount + par4ParCount + par5ParCount;\r\n bogeyCount = par3BogeyCount + par4BogeyCount + par5BogeyCount;\r\n doubleBogeyCount = par3DoubleBogeyCount\r\n + par4DoubleBogeyCount\r\n + par5DoubleBogeyCount;\r\n tripleBogeyCount = par3TripleBogeyCount\r\n + par4TripleBogeyCount\r\n + par5TripleBogeyCount;\r\n quadBogeyPlusCount = par3QuadBogeyPlusCount\r\n + par4QuadBogeyPlusCount\r\n + par5QuadBogeyPlusCount;\r\n\r\n\r\n clubs = bagDAO.readClubsInBag(player);\r\n // Remove the putter\r\n int idx = 0;\r\n int pidx = -1;\r\n for (Club club : clubs) {\r\n if (club.getClub().equals(\"Putter\"))\r\n pidx = idx;\r\n idx++;\r\n }\r\n if (pidx >= 0)\r\n clubs.remove(pidx);\r\n // Fill the distances and accuracy\r\n for (Club club : clubs) {\r\n club.setAvgDist(statDAO.getClubAvgDist(player, club));\r\n club.setAccuracy(statDAO.getClubAccuracy(player, club, (float) 10));\r\n }\r\n\r\n\r\n // get the number of rounds played\r\n int courseCount = 0;\r\n\t\t//Calls the method that displays the stats on the screen\r\n\t\tfillInList(courseCount++);\r\n\t}", "public int calculateNumberOfMatches(Tournament tournament, Round round) {\r\n\t\tint playersPerMatch = tournament.getTeamSize() * 2; // home and away team\r\n\t\tint possibleMatches = round.getPlayers().size() / playersPerMatch;\r\n\t\treturn Math.min(possibleMatches, tournament.getCourts());\r\n\t}", "public List<AlleleFootprintRecord> compute(Collection<Allele> alleles, Collection<PeptidePairRecord> pairRecords) {\n int recordCount = alleles.size() * pairRecords.size();\n\n List<AlleleFootprintRecord> footprintRecords =\n new ArrayList<AlleleFootprintRecord>(recordCount);\n\n for (Allele allele : alleles)\n footprintRecords.addAll(compute(allele, pairRecords));\n\n return footprintRecords;\n }", "public static int[] calculateScores(String[] resultsToCheck)\n\t{\n\t\tint[] scores = new int[entrants.length];\n\t\t//results = checkResults(preResults);\n\t\tfor(int i = 0; i < resultsToCheck.length; i++)\n\t\t{\n\t\t\tif(!resultsToCheck[i].equals(\"\"))\n\t\t\t{\n\t\t\t\t//for each player\n\t\t\t\tfor(int j = 0; j < entrants.length; j++)\n\t\t\t\t{\n\t\t\t\t\t//if the player's pick for the match is equal to the result\n\t\t\t\t\tif(allPicks.get(j)[i].equals(resultsToCheck[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\t//increase their points by the value of the match\n\t\t\t\t\t\tscores[j] += values[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn scores;\n\t}", "@SuppressWarnings(\"boxing\")\n @Override\n public void apply(SetUniqueList<SoftwareVersion> trainversionSet, SoftwareVersion testversion) {\n // reset these for each run\n this.mm = null;\n this.classifier = null;\n\n double score = 0; // matching score to select the best matching training data from the set\n int num = 0;\n int biggest_num = 0;\n MetricMatch tmp;\n for (SoftwareVersion trainversion : trainversionSet) {\n num++;\n\n tmp = new MetricMatch(trainversion.getInstances(), testversion.getInstances());\n\n // metric selection may create error, continue to next training set\n try {\n tmp.attributeSelection();\n tmp.matchAttributes(this.method, this.threshold);\n }\n catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n\n // we only select the training data from our set with the most matching attributes\n if (tmp.getScore() > score && tmp.attributes.size() > 0) {\n score = tmp.getScore();\n this.mm = tmp;\n biggest_num = num;\n }\n }\n\n // if we have found a matching instance we use it, log information about the match for\n // additional eval later\n Instances ilist = null;\n if (this.mm != null) {\n ilist = this.mm.getMatchedTrain();\n LOGGER.debug(\"[MATCH FOUND] match: [\" + biggest_num + \"], score: [\" +\n score + \"], instances: [\" + ilist.size() + \"], attributes: [\" +\n this.mm.attributes.size() + \"], ilist attrs: [\" + ilist.numAttributes() + \"]\");\n for (Map.Entry<Integer, Integer> attmatch : this.mm.attributes.entrySet()) {\n LOGGER.debug(\"[MATCHED ATTRIBUTE] source attribute: [\" +\n this.mm.train.attribute(attmatch.getKey()).name() + \"], target attribute: [\" +\n this.mm.test.attribute(attmatch.getValue()).name() + \"]\");\n }\n }\n else {\n LOGGER.debug(\"[NO MATCH FOUND]\");\n }\n\n // if we have a match we build the MetricMatchingClassifier, if not we fall back to FixClass\n // Classifier\n try {\n if (this.mm != null) {\n this.classifier = new MetricMatchingClassifier();\n this.classifier.buildClassifier(ilist);\n ((MetricMatchingClassifier) this.classifier).setMetricMatching(this.mm);\n }\n else {\n this.classifier = new FixClass();\n this.classifier.buildClassifier(ilist); // this is null, but the FixClass Classifier\n // does not use it anyway\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }", "public void getMatchHistoryForPlayer(final long account_id, final int num_results, final APICallback callback){\n String url = STEAM_API_BASE_URL + GET_MATCHES + \"?\" + STEAM_API_KEY_PARAMETER + mContext.getResources().getString(R.string.steam_api_key) +\n \"&\" + ACCOUNT_ID + convert64IdTo32(account_id);\n if(num_results > 0){\n url += \"&\" + MATCHES_REQEUSTED_NUMBER + num_results;\n }\n Log.d(TAG, \"getMatchHistoryForPlayer: request url = \" + url);\n final List<HistoryMatch> matchList = new ArrayList<>();\n JsonObjectRequest getRequest = new JsonObjectRequest(Request.Method.GET, url, null,\n new Response.Listener<JSONObject>()\n {\n @Override\n public void onResponse(JSONObject response) {\n // display response\n Log.d(\"Response\", response.toString());\n Gson gson = new Gson();\n MatchHistoryResults.MatchHistory results = gson.fromJson(response.toString(), MatchHistoryResults.MatchHistory.class);\n if(results.getResult().getMatches() != null) {\n matchList.addAll(results.getResult().getMatches());\n }\n Log.d(TAG, \"onResponse: \" + results.getResult().getNum_results());\n\n if(results.getResult().hasMorePagedResults()){\n getMatchHistoryForPlayer(account_id, num_results, results.getResult().getLastMatchId() - 1, 0, callback);\n }\n else{\n callback.onMatchHistoryResponse(matchList);\n }\n }\n },\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \" getMatchHistoryForPlayer Error.Response\");\n error.printStackTrace();\n }\n }\n );\n\n// add it to the RequestQueue\n mRequestQueue.add(getRequest);\n }", "private static void printResultsToConsole (List<Supplier> supplierData, ConsumerQuery query, Map<Supplier, Double> supplierScores, int numResults) throws IOException {\n\n\t\tMap<Supplier, Double> rankedResults = sortDescending(supplierScores);\n\n\t\tIterable<Entry<Supplier, Double>> firstEntries =\n\t\t\t\tIterables.limit(rankedResults.entrySet(), numResults);\n\n\t\t//below code is used for testing purposes\n\t\tSystem.out.println(\"Consumer query:\");\n\t\tint n = 1;\n\t\tfor (Process p : query.getProcesses()) {\n\t\t\tSystem.out.println(\"Process \" + n + \": \" + p.getName());\n\t\t\t\n\t\t\t//check if the query includes materials\n\t\t\tif (p.getMaterials() == null || p.getMaterials().isEmpty()) {\n\t\t\t\t//System.err.println(\"Note: No materials specified in the query!\");\n\t\t\t} else {\n\t\t\tfor (Material m : p.getMaterials()) {\n\t\t\t\tSystem.out.println(\" - Material: \" + m.getName());\n\t\t\t}\n\t\t\t}\n\t\t\tn++;\n\t\t}\n\t\t\n\t\t//check if the query includes certifications\n\t\tif (query.getCertifications() == null || query.getCertifications().isEmpty()) {\n\t\t\t//System.err.println(\"Note: No certifications specified in the query!\");\n\t\t} else {\n\t\tSystem.out.println(\"Certifications: \");\n\t\tfor (Certification c : query.getCertifications()) {\n\t\t\tSystem.out.println(c.getId());\t\t\t\n\t\t}\n\t\t}\n\n\t\t//get all processes for the suppliers included in the ranked list\n\t\tList<String> rankedSuppliers = new ArrayList<String>();\n\t\tfor (Entry<Supplier, Double> e : firstEntries) {\n\t\t\trankedSuppliers.add(e.getKey().getId());\n\t\t}\n\n\n\t\tSystem.out.println(\"\\nRanked results from semantic matching\");\n\t\tint ranking = 0;\n\n\n\t\tfor (Entry<Supplier, Double> e : firstEntries) {\n\t\t\tranking++;\n\t\t\tSystem.out.println(\"\\n\" + ranking + \"; Supplier ID: \" + e.getKey().getId() + \"; Sim score: \" + \"(\" + MathUtils.round(e.getValue(),4) + \")\");\n\n\t\t\tfor (Supplier sup : supplierData) {\n\t\t\t\tif (e.getKey().getId().equals(sup.getId())) {\n\n\t\t\t\t\tSystem.out.println(\"Processes:\");\n\t\t\t\t\tfor (Process pro : sup.getProcesses()) {\n\t\t\t\t\t\tSystem.out.println(pro.toString());\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(\"\\nCertifications:\");\n\t\t\t\t\tSet<String> certificationNames = new HashSet<String>();\n\t\t\t\t\tfor (Certification cert : sup.getCertifications()) {\n\t\t\t\t\t\tcertificationNames.add(cert.getId());\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(StringUtilities.printSetItems(certificationNames));\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\n\t\t}\n\n\t}", "private void calculatePointsPerGame(LeagueTableEntry entry) {\r\n\t\tfloat pointsPerGame = (float) entry.getPoints() / entry.getMatchesPlayed();\r\n\t\tentry.setPointsPerGame(pointsPerGame);\r\n\t}", "public static ArrayList<Match> generateMatch(String season){\n LeagueManager premierLeagueManagerService = PremierLeagueManager.getInstance();\n int numberOfClubsPresent = PremierLeagueManager.getPremierLeagueFootballClubList().size();\n\n // This condition is to make sure that there is at least 2 clubs to play a match\n if(numberOfClubsPresent > 1){\n\n // there 2 or more clubs present so we can generate a match\n // loading the data from the file\n PremierLeagueManager.loadingData();\n\n // getting the clubs with the filtered matches by season\n guiSeasonFilteredClubs = getGuiSeasonFilteredClubs(season);\n\n Random random = new Random();\n\n // step 01: randomly select 2 clubs\n int randomClub_01 = random.nextInt(guiSeasonFilteredClubs.size());\n FootballClub selectedClub_O1 = guiSeasonFilteredClubs.get(randomClub_01);\n int randomClub_02 = random.nextInt(guiSeasonFilteredClubs.size());\n\n // This is to make sure that the same club is not selected again for the match\n while (randomClub_02==randomClub_01){\n randomClub_02 = random.nextInt(guiSeasonFilteredClubs.size());\n }\n FootballClub selectedClub_O2 = guiSeasonFilteredClubs.get(randomClub_02);\n\n // step 02: randomly generate the necessary data\n int numberGoalScored_club_1 = random.nextInt(7);\n int numberGoalScored_club_2 = random.nextInt(7);\n\n // setting the random date and random season depending on the randomly selected year\n int[] possibleYears = new int[2];\n\n int seasonYear = Integer.parseInt(season.split(\"-\")[0]);\n\n possibleYears[0] = seasonYear;\n possibleYears[1] = seasonYear + 1;\n\n // making sure that the months are in given range for the year select for the season\n // premier league happens every year from August to next May\n int day = random.nextInt(30)+1;\n int randomYearIndexSelected = random.nextInt(2);\n int year = possibleYears[randomYearIndexSelected];\n int month;\n\n // if randomYearIndexSelected = 0, then the months have to be in the range from 8 to 12 else 1 to 5\n if(randomYearIndexSelected==0){\n // 8 to 12\n month = random.nextInt(5) + 8;\n\n }else{\n // 1 to 5\n month = random.nextInt(5) + 1;\n\n }\n\n DateMatch date = new DateMatch(day, month, year);\n String[] matchTypes = new String[]{\"Home\", \"Away\"};\n String matchType = matchTypes[random.nextInt(2)];\n\n // step 03: call the addPlayedMatch() wisely by passing all the generated random data\n premierLeagueManagerService.addPlayedMatch(season,selectedClub_O1.getName(), selectedClub_O2.getName(),\n numberGoalScored_club_1, numberGoalScored_club_2, date, matchType);\n\n // step 04: call the save file method\n premierLeagueManagerService.saveDataIntoFile();\n\n // step 05: call the load file method\n PremierLeagueManager.loadingData();\n\n // getting the clubs with the filtered matches by season\n guiSeasonFilteredClubs = getGuiSeasonFilteredClubs(season);\n\n // getting the matches for a season and returning\n return getMatchesForSeason(guiSeasonFilteredClubs);\n }\n // if there are less than 2 clubs we can't generate a match\n return null;\n }", "public static List<String> getScoreDetails(final Match match){\n\t\tArrayList<String> scoreList = new ArrayList<String>(2);\n\t\tString scoreDisplay = \"\";\n\t\t\t\t\n\t\t// If a game has been played, get the card information\n\t\tif(match.getCurrentStatus() == MatchStatus.PLAYED){\n\t\t\tString strScoreDetails = \"\";\n\t\t\t// Check if the match went to penalties\n\t\t\tif(match.isPenalties()){\n\t\t\t\tstrScoreDetails = \"<b>(</b>\" + Escaper.htmlEscape(match.getHomeTeamPenalties()) + \"<b>)</b>\" +\n\t\t\t\tEscaper.htmlEscape(match.getHomeTeamScore()) + \"-\" + Escaper.htmlEscape(match.getAwayTeamScore()) +\n\t\t\t\t\"<b>(</b>\" + Escaper.htmlEscape(match.getAwayTeamPenalties()) + \"<b>)</b>\";\n\t\t\t}else{\n\t\t\t\tstrScoreDetails = Escaper.htmlEscape(match.getHomeTeamScore()) + \"-\" + Escaper.htmlEscape(match.getAwayTeamScore());\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Writing the actual score\n\t\tif(match.getCurrentStatus() == MatchStatus.NOT_YET_PLAYED)\n\t\t{\t\n\t\t\tscoreDisplay = \"<td class=\\\"c3\\\"> Vs </td>\";\n\t\t}else if (match.getCurrentStatus() == MatchStatus.PLAYED){\n\t\t\tscoreDisplay = \"<td class=\\\"c3\\\">\";\n\t\t\n\t\t\t// If the match went to penalties, then display it in the score\n\t\t\tif(match.isPenalties()){\n\t\t\t\tscoreDisplay = scoreDisplay + \"<b>(</b>\" + Escaper.htmlEscape(match.getHomeTeamPenalties()) + \"<b>)</b>\" + \n\t\t\t\tEscaper.htmlEscape(match.getHomeTeamScore()) + \"-\" + Escaper.htmlEscape(match.getAwayTeamScore()) + \"<b>(</b>\" +\n\t\t\t\tEscaper.htmlEscape(match.getAwayTeamPenalties()) + \"<b>)</b></td>\";\n\t\t\t}else{\n\t\t\t\tscoreDisplay = scoreDisplay + Escaper.htmlEscape(match.getHomeTeamScore()) + \"-\" + Escaper.htmlEscape(match.getAwayTeamScore()) +\"</td>\";\t\t\n\t\t\t}\n\t\t}else if (match.getCurrentStatus() == MatchStatus.CANCELLED){\n\t\t\tscoreDisplay = \"<td class=\\\"c3\\\">CANCELLED</td>\";\n\t\t}else if (match.getCurrentStatus() == MatchStatus.POSTPONED){\n\t\t\tscoreDisplay = \"<td class=\\\"c3\\\">POSTPONED</td>\";\n\t\t}else if (match.getCurrentStatus() == MatchStatus.FORFEIT){\n\t\t\tscoreDisplay = \"<td class=\\\"c3\\\">\" + Escaper.htmlEscape(match.getHomeTeamScore()) + \"-\" + Escaper.htmlEscape(match.getAwayTeamScore()) + \"*</td>\";\n\t\t}else if (match.getCurrentStatus() == MatchStatus.DOUBLE_FORFEIT){\n\t\t\tscoreDisplay = \"<td class=\\\"c3\\\">\" + Escaper.htmlEscape(match.getHomeTeamScore()) + \"-\" + Escaper.htmlEscape(match.getAwayTeamScore()) + \"**</td>\";\n\t\t}\n\t\t\n\t\t// Populate the array with the tooltip and the score\n\t\tscoreList.add(scoreDisplay);\n\t\treturn scoreList;\n\t}", "private void findMatches() {\n this.user.getMatches().clear();\n final String HOST_MATCH = HOST_URL + \"/match/\" + user.getId() + \"/?page=0\" + HomeView.MATCH_LIMIT;\n RequestQueue que = Volley.newRequestQueue(this);\n JsonObjectRequest req = new JsonObjectRequest(Request.Method.GET, HOST_MATCH, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try { //String id, String firstName, String lastName, String email) {\n MatchView.parseEdges(response.getJSONArray(\"matches\"), toBeMatched);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"HomeView\", \"Could not find matches\");\n }\n });\n que.add(req);\n }", "public List<Match> formatMatches(ResultSet rs) {\n\t\tList<Match> mList = new ArrayList<Match>();\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tint matchId = rs.getInt(1);\n\t\t\t\tint homeTeamId = rs.getInt(2);\n\t\t\t\tint awayTeamId = rs.getInt(3);\n\t\t\t\tDate date = rs.getDate(4);\n\t\t\t\tTeam homeTeam = getTeamById(homeTeamId, rs);\n\t\t\t\tTeam awayTeam = getTeamById(awayTeamId, rs);\n\t\t\t\tMatch m = new Match(homeTeam, awayTeam, getStatsByMatchId(matchId), date, rs.getString(5));\n\t\t\t\tmList.add(m);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn mList;\n\t}", "public double matchData() {\n\t\tArrayList<OWLDataProperty> labels1 = getDataProperties(ontology1);\n\t\tArrayList<OWLDataProperty> labels2 = getDataProperties(ontology2);\n\t\tfor (OWLDataProperty lit1 : labels1) {\n\t\t\tfor (OWLDataProperty lit2 : labels2) {\n\t\t\t\tif (LevenshteinDistance.computeLevenshteinDistance(TestAlign.mofidyURI(lit1.toString())\n\t\t\t\t\t\t, TestAlign.mofidyURI(lit2.toString()))>0.8){\n\t\t\t\t\treturn 1.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0.;\n\n\n\t}", "public void calculateScore() {\n for (Sequence seq: currentSeq) {\n double wordWeight = Retriever.getWeight(seq);\n String token = seq.getToken();\n int size = seq.getRight() - seq.getLeft() + 1;\n int titleCount = getCount(token.toLowerCase(), title.toLowerCase());\n if (titleCount != 0) {\n setMatch(size);\n setTitleContains(true);\n }\n int lowerCount = getCount(token.toLowerCase(), lowerContent);\n if (lowerCount == 0) {\n// scoreInfo += \"Token: \" + token + \" Original=0 Lower=0 WordWeight=\" + wordWeight + \" wordTotal=0\\n\";\n continue;\n }\n int originalCount = getCount(token, content);\n lowerCount = lowerCount - originalCount;\n if (lowerCount != 0 || originalCount != 0) {\n setMatch(size);\n }\n double originalScore = formula(wordWeight, originalCount);\n double lowerScore = formula(wordWeight, lowerCount);\n final double weight = 1.5;\n double addedScore = weight * originalScore + lowerScore;\n// scoreInfo += \"Token: \" + token + \" Original=\" + originalScore + \" Lower=\" + lowerScore +\n// \" WordWeight=\" + wordWeight + \" wordTotal=\" + addedScore + \"\\n\";\n dependencyScore += addedScore;\n }\n currentSeq.clear();\n }", "public static void main(String[] args) throws IOException {\n if (args.length != 1) {\n System.err.println(\"Must provide a file to read from.\");\n } else { \n ArrayList<MatchPerson> allPeople = new ArrayList<MatchPerson>();\n ArrayList<MatchPerson> gayMalePool = new ArrayList<MatchPerson>();\n ArrayList<MatchPerson> gayFemalePool = new ArrayList<MatchPerson>();\n ArrayList<MatchPerson> straightMalePool = new ArrayList<MatchPerson>();\n ArrayList<MatchPerson> straightFemalePool = new ArrayList<MatchPerson>();\n ArrayList<MatchPerson> biPool = new ArrayList<MatchPerson>();\n\n File spreadsheet = new File(args[0]);\n File dest = new File(\"matchResults.txt\");\n BufferedWriter writer = new BufferedWriter(new FileWriter(dest));\n // get answers in ArrayList from tsv\n ArrayList<String[]> allAnswers = MatchCalculation.fillAnswersArray(spreadsheet);\n String[] questions = allAnswers.get(0); // store questions titles (may or may not need)\n allAnswers.remove(0); // remove titles\n for (String[] arr: allAnswers) { // fill allPeople array\n MatchPerson newPerson = MatchCalculation.parseResponses(arr);\n allPeople.add(newPerson); // fill in person objects\n // add to specific pool for romantic matches\n if (newPerson.getMatchType() == MatchType.ROMANTIC) {\n if (newPerson.getPreference() == Preference.STRAIGHT) {\n if (newPerson.getGender() == Gender.MALE) {\n straightMalePool.add(newPerson);\n } else {\n straightFemalePool.add(newPerson);\n }\n } else if (newPerson.getPreference() == Preference.GAY) {\n if (newPerson.getGender() == Gender.MALE) {\n gayMalePool.add(newPerson);\n } else {\n gayFemalePool.add(newPerson);\n }\n } else {\n biPool.add(newPerson);\n }\n }\n }\n for (MatchPerson person: allPeople) {\n person.setFriendshipMatches(MatchCalculation.findMatches(person, allPeople));\n if (person.getPreference() == Preference.STRAIGHT) {\n if (person.getGender() == Gender.FEMALE) {\n person.setRomanticMatches(MatchCalculation.findMatches(person, straightMalePool));\n } else if (person.getGender() == Gender.MALE) {\n person.setRomanticMatches(MatchCalculation.findMatches(person, straightFemalePool));\n }\n } else if (person.getPreference() == Preference.BI) {\n person.setRomanticMatches(person.getFriendshipMatches());\n } \n// person.setBdayMatches(MatchCalculation.findBirthdayMatches(person, allPeople));\n// writer.write(\"Birthday matches for \" + person.getName() + \" \" \n// + person.getBirthday() + \"\\n\");\n writer.write(person.birthdayMatchesToString() + \"\\n\");\n writer.write(\"Friendship matches for \" + person.getName() + \"\\n\");\n writer.write(person.friendshipMatchesToString() + \"\\n\");\n writer.write(\"Romantic matches for \" + person.getName() + \"\\n\");\n writer.write(person.romanticMatchesToString() + \"\\n\");\n }\n writer.close();\n }\n \n }", "public float calcBattleListScore(GameState gm, List<Battle> bList) {\n\t\tList<Player> pList = gm.getPlayers();\n\t\tint index = pList.indexOf(this);\n\t\tindex = (index + 1) % gm.getPlayers().size();\n\t\tHashMap<Battle, Float[]> bMatrix = new HashMap<Battle, Float[]>();\n\t\tHashMap<Battle, Boolean> bDone = new HashMap<Battle, Boolean>();\n\t\tFloat[] fTemp = new Float[gm.getPlayers().size()];\n\t\t\n\t\tint outs = 0;\n\t\tint diff = 0;\n\t\tint activeMShipSum = 0;\n\t\tfloat fScore = 0;\n\t\tfloat fTempScore = 1.0f;\n\n\n\t\t//initiate bMatrix\n\t\tfor (Battle b: bList) {\n\t\t\tbMatrix.put(b, new Float[gm.getPlayers().size()]);\n\t\t\tbDone.put(b, false);\n\t\t\tfor (int i = 0; i< gm.getPlayers().size(); i++) {\n\t\t\t\tbMatrix.get(b)[i] = 1.0f;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint turn = 1;\n\t\twhile (turn <= pList.size()){\n\t\t\tactiveMShipSum = 0;\n\t\t\tfor (Battle b: bList) {\n\t\t\t\tif (!bDone.get(b)) {\n\t\t\t\t\tif (pList.get(index) == b.getWinningPlayer()) {\n\t\t\t\t\t\tif (b.getWinningPlayer() != this) {\n\t\t\t\t\t\t\tfTemp = bMatrix.get(b);\n\t\t\t\t\t\t\tfTemp[turn-1] = -1.0f*(float)b.getMerchantShip().getValue();\n\t\t\t\t\t\t\tbMatrix.put(b, fTemp);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfTemp = bMatrix.get(b);\n\t\t\t\t\t\t\tfTemp[turn-1] = (float)b.getMerchantShip().getValue();\n\t\t\t\t\t\t\tbMatrix.put(b, fTemp);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/*if (sumOfPlayersPoints(pList) > 0) {\n\t\t\t\t\t\t\tfTemp[turn-1] *= (float)pList.get(index).getPoints()/(float)sumOfPlayersPoints(gm.getPlayers());\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\tbDone.put(b, true);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// sum up the count of merchantship value\n\t\t\t\t\t\tactiveMShipSum += b.getMerchantShip().getValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor (Battle b: bList) {\n\t\t\t\touts = 0;\n\t\t\t\tif (!bDone.get(b)) {\n\t\t\t\t\tAttacker attacker = b.getAttackerByPlayerId(pList.get(index).getId());\n\t\t\t\t\tif (attacker != null && attacker.getScore() > 0) {\n\t\t\t\t\t\t// this player is already attacking, what are the chances that she'll attack again\n\t\t\t\t\t\tif (!b.isBattleUsingTrumps()) {\n\t\t\t\t\t\t\tdiff = b.getHighScore() - attacker.getScore();\n\t\t\t\t\t\t\touts += findGreaterNumCards(diff, attacker.getAttackerColor(), false).getCount();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (getUnknownCards().hasCard(new Trump(Color.Admiral)) &&\n\t\t\t\t\t\t\t\tb.getOwnerPlayerId() == pList.get(index).getId()) {\n\t\t\t\t\t\t\t\touts++; // add admiral\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (getUnknownCards().hasCard(new Trump(attacker.getAttackerColor()))){\n\t\t\t\t\t\t\t\touts++; // add regular trump\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\telse {\n\t\t\t\t\t\t// not attacking currently, what are the chances that she'll attack at all\n\t\t\t\t\t\tif (b.isBattleUsingTrumps()) {\n\t\t\t\t\t\t\tif (b.getOwnerPlayerId() == pList.get(index).getId()) {\n\t\t\t\t\t\t\t\t// could play admiral\n\t\t\t\t\t\t\t\tif (getUnknownCards().hasCard(new Trump(Color.Admiral))) {\n\t\t\t\t\t\t\t\t\t// calc prob of playing it\n\t\t\t\t\t\t\t\t\t// rough approx for now. TODO: revisit\n\t\t\t\t\t\t\t\t\t//f *= (float)pList.get(index).getHandCount()/(getUnknownCards().getCount());\n\t\t\t\t\t\t\t\t\touts++;\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\t// this player can't compete in this battle\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\telse {\n\t\t\t\t\t\t\t// battle isn't using trumps\n\t\t\t\t\t\t\tif (b.getHighScore() <= 4) {\n\t\t\t\t\t\t\t\t// what's the probability that this player has a card worth this battle's highest score\n\t\t\t\t\t\t\t\t// in a different color?\n\t\t\t\t\t\t\t\t//f*= (float)pList\n\t\t\t\t\t\t\t\touts += findValidAttackCards(b, pList.get(index));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t// this player can't compete\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Outs found: \" + outs);\n\t\t\t\t\t//System.out.println(\"activeMShipSum: \" + activeMShipSum);\n\t\t\t\t\t\n\t\t\t\t\tfTemp = bMatrix.get(b);\n\t\t\t\t\t// trying to account for # of cards in a player's hands. Approximation at best.\n\t\t\t\t\t/*\n\t\t\t\t\tfloat outsProb = (float)outs*(float)pList.get(index).getHandCount()/(float)getUnknownCards().getCount();\n\t\t\t\t\tif (outsProb > 1){\n\t\t\t\t\t\toutsProb = 1.0f;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfTemp[turn-1] = 1.0f - (outsProb*(float)b.getMerchantShip().getValue()/(float)activeMShipSum);\n\t\t\t\t\t*/\n\t\t\t\t\tfTemp[turn-1] = 1.0f - ((float)outs/(float)getUnknownCards().getCount()*(float)b.getMerchantShip().getValue()/(float)activeMShipSum);\n\t\t\t\t\tbMatrix.put(b, fTemp);\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex = (index + 1) % gm.getPlayers().size();\n\t\t\tturn++;\n\t\t}\n\n\t\t// calculate final score per battle\n\t\t\n\t\tfor (Battle b: bList) {\n\t\t\tfTemp = bMatrix.get(b);\n\t\t\t//System.out.println(b);\n\t\t\tfTempScore = 1.0f;\n\t\t\tfor (int i = 0; i< gm.getPlayers().size(); i++) {\n\t\t\t\t//fTempScore *= fTemp[i];\n\t\t\t\tfTempScore *= fTemp[i];\n\t\t\t\t/*if (sumOfPlayersPoints(gm.getPlayers()) > 0) {\n\t\t\t\t\tfTempScore *= gm.getPlayers().get(i).getPoints()/sumOfPlayersPoints(gm.getPlayers());\n\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\tif (super.getVerbosity()) {\n\t\t\t\t\tSystem.out.print(fTemp[i] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// to account for ties that I'm not part of \n\t\t\tif (b.getWinningAttacker() == null) {\n\t\t\t\tif (b.getAttackerByPlayerId(getId()) == null) {\n\t\t\t\t\tfTempScore *=-1.0f;\n\t\t\t\t}\n\t\t\t\telse if (b.getAttackerByPlayerId(getId()).getScore() != b.getHighScore()) {\n\t\t\t\t\tfTempScore *=-1.0f;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (super.getVerbosity()) {\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tSystem.out.println(\"Battle: \" + b + \" | Score: \" + fTempScore);\n\t\t\t}\n\t\t\tfScore += fTempScore;\n\t\t}\n\t\t\n\t\treturn fScore;\n\t}", "private static List<FACMatch> findFACMatches(List<MACMatch> macMatches, List<Concept> entities) throws Exception\n\t{\n\t\tSystem.out.println(\"findingFACMatches\");\n\t\t\n\t\tConcept[] seedPair = new Concept[2];\n\t\tList<FACMatch> topMatches = new ArrayList<FACMatch>();\n\t\tPriorityQueue<FACMatch> pq = new PriorityQueue<FACMatch>();\n\t\tint matchNumber = 0;\n\t\t\n\t\tfor(MACMatch mm : macMatches)\n\t\t{\n\t\t\tConcept c = mm.match;\n\t\t\tseedPair[0] = mm.probe;\n\t\t\tseedPair[1] = c;\n\t\t\tList<Concept[]> seedPairs = new ArrayList<Concept[]>();\n\t\t\tseedPairs.add(seedPair);\n\t\t\tDirectedGraphAdapter<Concept> mapping = AnalogyEngine.map(seedPairs, entities);\n\t\t\tdouble scoreRaw = calculateAnalogyQuality(mapping);\n\t\t\t//normalize score\n\t\t\tdouble sim1 = calculateSelfSimilarityScore(mapping.getParents());\n\t\t\tdouble sim2 = calculateSelfSimilarityScore(mapping.getChildren());\n\t\t\tdouble scoreNormalized = scoreRaw / Math.sqrt(sim1 * sim2);\n\t\t\tFACMatch fm = new FACMatch(mapping, scoreRaw, scoreNormalized, seedPair[0], seedPair[1]);\n\t\t\tif(mm.sourceCapstone != null)\n\t\t\t{\n\t\t\t\tfm.sourceCapstone = mm.sourceCapstone;\n\t\t\t}\n\t\t\tif(mm.targetCapstone != null)\n\t\t\t{\n\t\t\t\tfm.targetCapstone = mm.targetCapstone;\n\t\t\t}\n\t\t\tpq.add(fm);\n\t\t\t\n\t\t\t//TODO need to get MAC value and FAC values for output... \n\t\t\tfacWriter.append(mm.simScore + \" \" + fm.scoreRaw + \" \" + fm.scoreNormalized + \"\\n\");\n\t\t\t\n\t\t}\n\t\t\n\t\tdouble maxScore;\n\t\tif(pq.isEmpty())\n\t\t{\n\t\t\tmaxScore = 0;\n\t\t}else{\n\t\t\tmaxScore = pq.peek().scoreRaw;\n\t\t}\n\t\tdouble scoreBound = maxScore * (1-facWidth);\n\t\tSystem.out.println();\n\t\tfor(FACMatch fm : pq)\n\t\t{\n\t\t\tif(fm.scoreRaw >= scoreBound && fm.scoreRaw >= facThreshold && matchNumber < facMaxMatches)\n\t\t\t{\n\t\t\t\ttopMatches.add(fm);\n\t\t\t\tmatchNumber++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"facMatchNumber:\" + matchNumber + \" :: score:\" + fm.scoreRaw);\n\t\t\t\t//facWriter.write(Double.toString(fm.score) + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(topMatches.size() == 0)\n\t\t{\n\t\t\tSystem.err.println(\"No FACMatches found\");\n\t\t}\n\t\treturn topMatches;\n\t}", "public interface RatingStore {\n\n void updateRating(int winnerId, int loserId);\n void init(List<PlayerInfo> players);\n\n\n Player getPlayerById(int id);\n List<Player> loadSorted(Comparator<Player> sorting);\n List<MatchPair> getFutureMatches(int matchesNumber);\n}", "private void updatePrecisionAndRecallAndAp(List<ScoreRetrieval> results, List<QuerieDocRelevance> queryRelevance){\n List<Double> precisionQuerieAP = new ArrayList<>();\n List<Double> precisionQuerieAPRankedTop = new ArrayList<>();\n int tp=0;\n int fp=0;\n int fn=0;\n int cont=0;\n int rankMax=10;\n \n //results.stream().map(ScoreRetrieval::getDocId).filter( docId -> querieRelevance.contains(docId)).mapToInt(List::size).sum();\n \n for(ScoreRetrieval result : results){\n if(queryRelevance.stream().filter(o -> o.getDocID()==result.getDocId()).findFirst().isPresent()){ \n tp++;\n precisionQuerieAP.add(tp/(double)(tp+fp));\n if(cont<rankMax){\n precisionQuerieAPRankedTop.add(tp/(double)(tp+fp));\n }\n }else{\n fp++;\n }\n cont++;\n }\n if(precisionQuerieAP.isEmpty()){\n apRes.add(0.0);\n }else{\n apRes.add(precisionQuerieAP.stream().mapToDouble(d->d).sum()/precisionQuerieAP.size());\n }\n if(precisionQuerieAPRankedTop.isEmpty()){\n apResRankedTopLimited.add(0.0);\n }else{\n apResRankedTopLimited.add(precisionQuerieAPRankedTop.stream().mapToDouble(d->d).sum()/precisionQuerieAPRankedTop.size());\n }\n \n \n for(QuerieDocRelevance querieRel : queryRelevance){\n if(!(results.stream().filter(q -> q.getDocId()==querieRel.getDocID()).findFirst().isPresent())){\n fn++; \n }\n }\n \n precision.add(tp/(double)(tp+fp));\n recall.add(tp/(double)(tp+fn));\n }", "public void storeMatchResults(HashMap<String, Integer> results) {\n\t\tSystem.out.println(\"Store Match Results!\");\n\t\tfor(Map.Entry<String, Integer> entry : results.entrySet()) {\n\t\t\tsynchronized(this.globalChart) {\n\t\t\t\tif(this.globalChart.containsKey(entry.getKey())) { // Se c'era già lo aggiorno\n\t\t\t\t\tthis.globalChart.replace(entry.getKey(), this.globalChart.get(entry.getKey()) + entry.getValue());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.globalChart.put(entry.getKey(), entry.getValue());\n\t\t\t\t\t// Perché suppongo che dentro la global chart abbia già tutta la classifica\n\t\t\t\t\t// (Diverso da prima)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Finito il for!\");\n\t\tSystem.out.flush();\n\t\t/* Poi aggiorno il file */\n\t\tthis.lock.lock();\n\t\ttry {\n\t\t\tthis.pendingUpdates.addLast(results);\n\t\t\tthis.waitOnQueue.signal(); // Wake up the ChartUpdater thread\n\t\t}\n\t\tfinally {\n\t\t\tthis.lock.unlock();\n\t\t}\n\t\t\n\t}", "private static List<MatchEntity> parseLiveMatchDocumentToListMatches(Document document)\n {\n List<MatchEntity> listMatches = new ArrayList<>();\n\n if(document != null)\n {\n\n switch (Urls.SOURCE_TYPE)\n {\n case LIVEFOOTBALLVIDEO:\n // Parser Ids\n final String SELECT_LIST_MATCHES = \"div#main div.listmatch li\"; // Should return a list of li.odd\n // Get Matches Elements\n Elements elements = document.select(SELECT_LIST_MATCHES);\n\n if(elements == null || elements.isEmpty())\n {\n // Cannot parrse Matches\n return listMatches;\n }\n\n // Complete each match\n for (Element element : elements)\n {\n try\n {\n listMatches.add(parseLiveMatchLineToMatchEntity(element));\n }\n catch (Exception e)\n {\n LogUtil.e(TAG, e.getMessage(), e);\n }\n }\n break;\n\n case LIVESPORTWS:\n final String selectMatches = \"ul.events li\";\n\n // Get Matches Elements\n elements = document.select(selectMatches);\n\n if(elements == null || elements.isEmpty())\n {\n // Cannot parrse Matches\n return listMatches;\n }\n\n for (Element element : elements)\n {\n try\n {\n listMatches.add(parseLiveMatchLineToMatchEntity(element));\n }\n catch (Exception e)\n {\n LogUtil.e(TAG, e.getMessage(), e);\n }\n }\n\n break;\n }\n\n }\n\n // Check if should log data\n if(LogUtil.IS_DEBUG)\n {\n // Logo Matches\n LogUtil.d(TAG, \"Request Url: \" + REQUEST_URL + \" ResponseData: \" + GSONParser.parseListObjectToString(listMatches));\n }\n\n return listMatches;\n }", "public void testScoreboardCaseFour () throws Exception {\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n\n \"1,1,A,1,No\", //20\n \"2,1,A,3,Yes\", //3 (first yes counts Minutes only)\n \"3,1,A,5,No\", //20\n \"4,1,A,7,Yes\", //20 \n \"5,1,A,9,No\", //20\n \n \"6,1,B,11,No\", //20 (all runs count)\n \"7,1,B,13,No\", //20 (all runs count)\n \n \"8,2,A,30,Yes\", //30\n \n \"9,2,B,35,No\", //20 (all runs count)\n \"10,2,B,40,No\", //20 (all runs count)\n \"11,2,B,45,No\", //20 (all runs count)\n \"12,2,B,50,No\", //20 (all runs count)\n \"13,2,B,55,No\", //20 (all runs count)\n\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 4 tests when all runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n \n// Team 1 -- 123 <-- Team 1 is winning again\n// Team 2 -- 130\n \n// String [] rankData = {\n// \"1,team1,1,123\",\n// \"2,team2,1,130\"\n// };\n \n scoreboardTest (2, runsData, rankData);\n }", "public static void main(String[] args) {\n\t\tMap<Club,Map<String,List<Player>>> complexMap = PlayerDB.fetchAllPlayers().stream()\r\n\t\t.collect(Collectors.groupingBy(Player::getClub, Collectors.groupingBy(player -> {\r\n\t\t\tPlayer p = (Player)player;\r\n\t\t\treturn p.getAge() <=33 ? \"young\": \"old\";\r\n\t\t})));\r\n\t\t\r\n\t\t//System.out.println(complexMap);\r\n\t\t\r\n\t\tMap<Club,Long> countKing = PlayerDB.fetchAllPlayers().stream()\r\n\t\t.collect(Collectors.groupingBy(Player::getClub, Collectors.counting()));\r\n\t\tSystem.out.println(countKing);\r\n\t}", "public void updatePlayerModel() {\n double average = 0.0;\n for (int i = 0; i < playerModelDiff1.size(); i++) {\n average += (double) playerModelDiff1.get(i);\n }\n if ( playerModelDiff1.size() > 0 )\n average = average / playerModelDiff1.size();\n playerModel[0] = average;\n\n //Update playerModel[1] - difficulty 4\n average = 0.0;\n for (int i = 0; i < playerModelDiff4.size(); i++) {\n average += (double) playerModelDiff4.get(i);\n }\n if ( playerModelDiff4.size() > 0 )\n average = average / playerModelDiff4.size();\n playerModel[1] = average;\n\n //Update playerModel[2] - difficulty 7\n average = 0.0;\n for (int i = 0; i < playerModelDiff7.size(); i++) {\n average += (double) playerModelDiff7.get(i);\n }\n if ( playerModelDiff7.size() > 0 )\n average = average / playerModelDiff7.size();\n playerModel[2] = average;\n }", "private WeightedSampler<String> getPossibleActions(int team) {\n if (this.b.getCurrentPlayerTurn() != team || this.b.getWinner() != 0) {\n return null;\n }\n Player p = this.b.getPlayer(team);\n WeightedSampler<String> poss = new WeightedRandomSampler<>();\n // playing cards & selecting targets\n List<Card> hand = p.getHand();\n for (Card c : hand) {\n if (p.canPlayCard(c)) {\n double totalWeight = PLAY_CARD_TOTAL_WEIGHT + PLAY_CARD_COST_WEIGHT_MULTIPLIER * c.finalStats.get(Stat.COST);\n List<List<List<TargetList<?>>>> targetSearchSpace = new LinkedList<>();\n this.getPossibleListTargets(c.getBattlecryTargetingSchemes(), new LinkedList<>(), targetSearchSpace);\n if (targetSearchSpace.isEmpty()) {\n targetSearchSpace.add(List.of());\n }\n if (c instanceof BoardObject) {\n double weightPerPos = totalWeight / (p.getPlayArea().size() + 1);\n // rip my branching factor lol\n for (int playPos = 0; playPos <= p.getPlayArea().size(); playPos++) {\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new PlayCardAction(p, c, playPos, targets).toString().intern(), weightPerPos / targetSearchSpace.size());\n }\n }\n } else {\n // spells don't require positioning\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new PlayCardAction(p, c, 0, targets).toString().intern(), totalWeight / targetSearchSpace.size());\n }\n }\n }\n }\n this.b.getMinions(team, false, true).forEachOrdered(m -> {\n // unleashing cards & selecting targets\n if (p.canUnleashCard(m)) {\n List<List<List<TargetList<?>>>> targetSearchSpace = new LinkedList<>();\n this.getPossibleListTargets(m.getUnleashTargetingSchemes(), new LinkedList<>(), targetSearchSpace);\n if (targetSearchSpace.isEmpty()) {\n targetSearchSpace.add(List.of());\n }\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new UnleashMinionAction(p, m, targets).toString().intern(), UNLEASH_TOTAL_WEIGHT / targetSearchSpace.size());\n }\n }\n // minion attack\n if (m.canAttack()) {\n double totalWeight = ATTACK_TOTAL_WEIGHT + ATTACK_WEIGHT_MULTIPLIER * m.finalStats.get(Stat.ATTACK);\n double weight = totalWeight / m.getAttackableTargets().count();\n m.getAttackableTargets().forEachOrdered(target -> {\n double bonus = target instanceof Leader ? ATTACK_TARGET_LEADER_MULTIPLIER : 1;\n double overkillMultiplier = Math.pow(ATTACK_WEIGHT_OVERKILL_PENALTY, Math.max(0, m.finalStats.get(Stat.ATTACK) - target.health));\n poss.add(new OrderAttackAction(m, target).toString().intern(), overkillMultiplier * bonus * weight);\n });\n }\n });\n // ending turn\n poss.add(new EndTurnAction(team).toString().intern(), END_TURN_WEIGHT);\n return poss;\n }", "public void calculateStastics() {\t\t\n\t\t\n\t\t/* remove verboten spectra */\n\t\tArrayList<String> verbotenSpectra = new ArrayList<String>();\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.7436.7436.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.5161.5161.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4294.4294.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4199.4199.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.5085.5085.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4129.4129.2.dta\");\n\t\tfor (int i = 0; i < positiveMatches.size(); i++) {\n\t\t\tMatch match = positiveMatches.get(i);\n\t\t\tfor (String name: verbotenSpectra) {\n\t\t\t\tif (name.equals(match.getSpectrum().getFile().getName())) {\n\t\t\t\t\tpositiveMatches.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < spectra.size(); i++) {\n\t\t\tSpectrum spectrum = spectra.get(i);\n\t\t\tfor (String name: verbotenSpectra) {\n\t\t\t\tif (name.equals(spectrum.getFile().getName())) {\n\t\t\t\t\tspectra.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* finding how much time per spectrum */\n\t\tmilisecondsPerSpectrum = (double) timeElapsed / spectra.size();\n\n\n\t\tMatch.setSortParameter(Match.SORT_BY_SCORE);\n\t\tCollections.sort(positiveMatches);\n\t\t\n\t\t\n\t\t/* Identify if each match is true or false */\n\t\ttestedMatches = new ArrayList<MatchContainer>(positiveMatches.size());\n\t\tfor (Match match: positiveMatches) {\n\t\t\tMatchContainer testedMatch = new MatchContainer(match);\n\t\t\ttestedMatches.add(testedMatch);\n\t\t}\n\t\t\n\t\t/* sort the tested matches */\n\t\tCollections.sort(testedMatches);\n\t\t\n\t\t\n\n\t\t/*account for the fact that these results might have the wrong spectrum ID due to\n\t\t * Mascot having sorted the spectra by mass\n\t\t */\n\t\tif (Properties.scoringMethodName.equals(\"Mascot\")){\n\t\t\t\n\t\t\t/* hash of true peptides */\n\t\t\tHashtable<String, Peptide> truePeptides = new Hashtable<String, Peptide>();\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tString truePeptide = mc.getCorrectAcidSequence();\n\t\t\t\ttruePeptides.put(truePeptide, mc.getTrueMatch().getPeptide());\n\t\t\t}\n\t\t\t\n\t\t\t/* making a hash of the best matches */\n\t\t\tHashtable<Integer, MatchContainer> bestMascotMatches = new Hashtable<Integer, MatchContainer>(); \n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tMatchContainer best = bestMascotMatches.get(mc.getMatch().getSpectrum().getId());\n\t\t\t\tif (best == null) {\n\t\t\t\t\tbestMascotMatches.put(mc.getMatch().getSpectrum().getId(), mc);\n\t\t\t\t} else {\n\t\t\t\t\tif (truePeptides.get(mc.getMatch().getPeptide().getAcidSequenceString()) != null) {\n\t\t\t\t\t\tbestMascotMatches.put(mc.getMatch().getSpectrum().getId(), mc);\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* need to set the peptide, because though it may have found a correct peptide, it might not be the right peptide for this particular spectrum */\n\t\t\t\t\t\tmc.getMatch().setPeptide(mc.getTrueMatch().getPeptide());\n\t\t\t\t\t\tmc.validate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttestedMatches = new ArrayList<MatchContainer>(bestMascotMatches.values());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/* reduce the tested matches to one per spectrum, keeping the one that is correct if there is a correct one \n\t\t * else keep the match with the best score */\n\t\tArrayList<MatchContainer> reducedTestedMatches = new ArrayList<MatchContainer>(testedMatches.size());\n\t\tfor (Spectrum spectrum: spectra) {\n\t\t\tMatchContainer toAdd = null;\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tif (mc.getMatch().getSpectrum().getId() == spectrum.getId()) {\n\t\t\t\t\tif (toAdd == null) {\n\t\t\t\t\t\ttoAdd = mc; \n\t\t\t\t\t}\n\t\t\t\t\tif (toAdd.getMatch().getScore() < mc.getMatch().getScore()) {\n\t\t\t\t\t\ttoAdd = mc;\n\t\t\t\t\t}\n\t\t\t\t\tif (toAdd.getMatch().getScore() == mc.getMatch().getScore() && mc.isTrue()) {\n\t\t\t\t\t\ttoAdd = mc;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (toAdd != null) {\n\t\t\t\treducedTestedMatches.add(toAdd);\n\t\t\t}\n\t\t}\n\t\ttestedMatches = reducedTestedMatches;\n\t\t\n\t\t/* ensure the testedMatches are considering the correct peptide */\n\t\tif (Properties.scoringMethodName.equals(\"Peppy.Match_IMP\")){\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tif (mc.getMatch().getScore() < mc.getTrueMatch().getScore()) {\n\t\t\t\t\tmc.getMatch().setPeptide(mc.getTrueMatch().getPeptide());\n\t\t\t\t\tmc.getMatch().calculateScore();\n\t\t\t\t\tmc.validate();\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\t/* again sort the tested matches */\n\t\tCollections.sort(testedMatches);\n\t\n\t\t\n\t\t//count total true;\n\t\tfor (MatchContainer match: testedMatches) {\n\t\t\tif (match.isTrue()) {\n\t\t\t\ttrueTally++;\n\t\t\t} else {\n\t\t\t\tfalseTally++;\n\t\t\t}\n\t\t\tif ((double) falseTally / (trueTally + falseTally) <= 0.01) {\n\t\t\t\ttrueTallyAtOnePercentError = trueTally;\n\t\t\t\tpercentAtOnePercentError = (double) trueTallyAtOnePercentError / spectra.size();\n\t\t\t}\n\t\t\tif ((double) falseTally / (trueTally + falseTally) <= 0.05) {\n\t\t\t\ttrueTallyAtFivePercentError = trueTally;\n\t\t\t\tpercentAtFivePercentError = (double) trueTallyAtFivePercentError / spectra.size();\n\t\t\t}\n\t\t}\n\t\t\n\t\tgeneratePrecisionRecallCurve();\n\t}", "public RatingPeriodResults(Set<Player> participants) {\n\t\tthis.participants = participants;\n\t}", "public void testTieBreakerSubmissionTime() throws Exception{\n\n // Sort order:\n // Primary Sort = number of solved problems (high to low)\n // Secondary Sort = score (low to high)\n // Tertiary Sort = earliest submittal of last submission (low to high)\n // Forth Sort = teamName (low to high)\n // Fifth Sort = clientId (low to high)\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"5,5,A,12,No\",\n \"6,5,A,12,Yes\", \n \n \"7,6,A,12,No\",\n \"8,6,A,12,Yes\",\n \n // Both solve 1 score 32 (no for 20, 12 min)\n\n \"15,5,B,21,No\",\n \"16,5,B,22,Yes\", \n \n \"25,6,B,21,No\",\n \"26,6,B,22,Yes\", \n \n // Both solve 2 score 42 (no for 20 and 22 min)\n // total 74 each\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n // must identical score, sort by team display name, identical ranks.\n \"1,team5,2,74\",\n \"1,team6,2,74\",\n \"3,team1,0,0\",\n \"3,team2,0,0\",\n \"3,team3,0,0\",\n \"3,team4,0,0\",\n };\n \n scoreboardTest (6, runsData, rankData);\n }" ]
[ "0.6428988", "0.61927503", "0.5849473", "0.5822513", "0.5789431", "0.5706488", "0.5639072", "0.5625926", "0.5543584", "0.5527004", "0.54861194", "0.54275167", "0.5375946", "0.53518665", "0.5332595", "0.5329301", "0.5323506", "0.5279556", "0.5275133", "0.52726847", "0.524905", "0.52423245", "0.5228847", "0.52278745", "0.5198853", "0.5191342", "0.51837593", "0.515557", "0.5120907", "0.5113373", "0.51035017", "0.50967246", "0.5095032", "0.5075753", "0.50735337", "0.50536764", "0.50515974", "0.5045822", "0.5032783", "0.50158286", "0.50150734", "0.5001887", "0.49791226", "0.4975989", "0.4958356", "0.49481645", "0.49443147", "0.49429414", "0.49376482", "0.4921696", "0.49158275", "0.49107695", "0.490627", "0.48955435", "0.4891076", "0.48823953", "0.48823205", "0.48790294", "0.48749426", "0.48714006", "0.48599172", "0.48569238", "0.48501843", "0.48483604", "0.48453704", "0.48303282", "0.48292458", "0.48270842", "0.48265335", "0.48250213", "0.48201126", "0.48179546", "0.48176897", "0.48081556", "0.48072004", "0.48030788", "0.4798466", "0.47969756", "0.4795406", "0.4789625", "0.47840348", "0.4774078", "0.4769257", "0.47675613", "0.47627777", "0.47604582", "0.47530943", "0.4750792", "0.47480533", "0.4733901", "0.4732055", "0.47317305", "0.47292224", "0.47277725", "0.4724854", "0.47233838", "0.4705575", "0.4703759", "0.46968237", "0.4693445" ]
0.77571994
0
Helper method to get an existing player from the map, if they exist, or add a new one.
private static Record getOrAddRecord(HashMap<Player, Record> recordHashMap, Player player) { if (recordHashMap.containsKey(player)) { return recordHashMap.get(player); } else { Record record = new Record().setPlayer(player); recordHashMap.put(player, record); return record; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Player addNewPlayer(String username) {\n if (!playerExists(username)) {\n Player p = new Player(username);\n System.out.println(\"Agregado jugador \" + username);\n players.add(p);\n return p;\n }\n return null;\n }", "public boolean loadPlayer(P player){\n\n //Is the player already loaded?\n if(playerMap.containsKey(player)){\n System.out.println(\"Tried to load player \" + player.getName() + \"'s data, even though it's already loaded!\");\n return false;\n } else {\n\n if(data.getConfig().contains(player.getUniqueId().toString())){\n //Load player\n PlayerProfile playerProfile = new PlayerProfile(false, data, player);\n playerMap.put(player, playerProfile);\n\n return true;\n } else {\n //Create player profile\n PlayerProfile playerProfile = new PlayerProfile(true, data, player);\n playerMap.put(player, playerProfile);\n\n return true;\n }\n }\n }", "public PlayerProfile getPlayer(P player){\n\n if(playerMap.containsKey(player)){\n //Player is safe to send\n return playerMap.get(player);\n } else {\n //Player isn't safe to send\n System.out.println(\"Tried to grab player \" + player.getName() + \"'s data, but it's not available\");\n return null;\n }\n }", "public static Player getPlayer(Player player){\n Player returnPlayer = null;\n if (player != null) {\n try {\n returnPlayer = mapper.readValue(new File(\"Data\\\\PlayerData\\\\\" + getFileName(player) + \".json\"), Player.class);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return returnPlayer;\n }", "public Player getPlayer(String name){ \n\t\tif (players.containsKey(name)) return players.get(name);\n\t\tPlayer player = getModPlayer(name);\n\t\tif (player != null) {\n\t\t\tplayers.put(name, player);\n\t\t\treturn player;\n\t\t}\n\t\treturn player;\n\t}", "void addPlayer(Player newPlayer);", "public void addPlayer(Player player) {\n //int id = Repository.getNextUniqueID();\n this.player = player;\n }", "Player getPlayer(UUID playerId);", "@Override\n \tpublic void createAndAddNewPlayer( int playerID )\n \t{\n \t\t//add player with default name\n \t\tPlayer newPlayer = new Player( playerID, \"Player_\"+playerID );\n \t\tgetPlayerMap().put( playerID, newPlayer );\n \t}", "@SuppressWarnings(\"unused\")\n public static IHubParkourPlayer getPlayer(Player player) throws NullPointerException {\n if (player == null) {\n throw new NullPointerException(\"Player cannot be null\");\n }\n return CacheManager.getPlayer(player);\n }", "public void addPlayer(Player player){\n players.add(player);\n }", "public Player getPlayer(UUID id) {\r\n for (Player player : players) {\r\n if (player.getId().equals(id)) {\r\n return player;\r\n }\r\n }\r\n return null;\r\n }", "public Player getPlayer(String username) {\n for (Player p : players) {\n if (p.username.equals(username))\n return p;\n }\n return null;\n }", "public World addPlayer(Player p){\r\n players.add(p);\r\n return this;\r\n }", "Player getPlayer(int playerNumber){\n return players.get(playerNumber);\n }", "@Override\r\n\tpublic Player add(final Player player) {\r\n\t\tfinal String sql = \"insert into player (playerid, name, balance, updated, deleted) values (?,?,?,?,?)\";\r\n\r\n\t\ttry {\r\n\t\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\r\n\t\t\tjdbcTemplate.update(\r\n\t\t\t\t\tnew PreparedStatementCreator() {\r\n\t\t\t\t\t\tpublic PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\r\n\t\t\t\t\t\t\tPreparedStatement ps = connection.prepareStatement(sql, new String[] {\"id\"});\r\n\t\t\t\t\t\t\tps.setString(1, player.getPlayerId());\r\n\t\t\t\t\t\t\tps.setString(2, player.getName());\r\n\t\t\t\t\t\t\tps.setDouble(3, player.getBalance());\r\n\t\t\t\t\t\t\tps.setTimestamp(4, CommonUtils.getCurrentTimestamp());\r\n\t\t\t\t\t\t\tps.setBoolean(5, false);;\r\n\t\t\t\t\t\t\treturn ps;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tkeyHolder);\r\n\t\t\tplayer.setId(keyHolder.getKey().longValue());\r\n\t\t\treturn player;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Player getPlayerByName(String name){\n for (Player player : players){\n if (name.equals(player.getName())){\n return player;\n }\n }\n return null;\n }", "default boolean addPlayer(Player player) {\n return addPlayer(Objects.requireNonNull(player, \"player\").getName());\n }", "public Player getPlayer(int id)\n\t{\n\t\tif (playerList != null)\n\t\t{\n\t\t\tfor(Player player : playerList)\n\t\t\t{\n\t\t\t\tif (player.getId() == id)\n\t\t\t\t{\n\t\t\t\t\treturn player;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void addPlayer(Player player) {\n playerList.add(player);\n }", "public boolean addPlayer(Player player)\n\t{\n\t\treturn playerList.add(player);\n\t}", "public void addPlayer(Player p){\r\n this.players[PlayerFactory.nb_instances-1]=p;\r\n this.tiles[p.getX()+(p.getY()*this.width)]=p;\r\n }", "void addPlayer(IPlayer player);", "@Override\n public Player getPlayerById(long id) {\n Player player=entityManager.find(Player.class,id);\n return player;\n }", "public Player getPlayer(String username){\n return this.players.get(username);\n }", "Player getPlayer();", "public synchronized Player getPlayerIfNotFull() {\n if (player1 == null) {\n player1 = new Player(order, 'X');\n order++;\n nrOfPlayers++;\n return player1;\n } else if (player2 == null) {\n player2 = new Player(order, 'O');\n order = 0;\n nrOfPlayers++;\n started = true;\n return player2;\n }\n return null;\n }", "boolean addPlayer(String player);", "public void addPlayerToTheFirstEmptyPlace(Player p) {\r\n\t\tfor (int i = 0; i < NB_PLAYER_MAX; i++) {\r\n\t\t\tif (players.get(i) == null) {\r\n\t\t\t\tplayers.put(i, p);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }", "public void addPlayer(Player player) {\n\t\tif(players.isEmpty()) {\n\t\t\tcurrent=player;\n\t\t\tplayers.add(current);\n\t\t}\n\t\telse {\n\t\t\tplayers.add(player);\n\t\t}\n\t}", "public boolean addPlayer(Player p) {\n\t\tif(p != null && !squareOccuped()) {\n\t\t\tthis.player = p;\n\t\t\treturn true;\n\t\t} else return false;\n\t}", "private Optional<Player> findPlayer(String playerName, StrategyType strategyType) {\n for (Player player : players) {\n if (player.getName().equals(playerName) && (player.getStrategyType() == strategyType)) {\n return Optional.of(player);\n }\n }\n return Optional.empty();\n }", "public Player getPlayer(String login) {\n\t\treturn repository\n\t\t\t\t.findPlayer(login)\n\t\t\t\t.orElseThrow(() -> new PlayerNotFoundException());\n\t}", "public void addPlayer(int place, Player p) {\r\n\t\tif (!players.containsKey(place))\r\n\t\t\tplayers.put(place, p);\r\n\t}", "public Player getByPlayerID(String playerID) {\n PlayerDB pdb = new PlayerDB(); \n return pdb.getByPlayerID(playerID);\n }", "public Player getPlayer(String playerId) {\n\t\topen();\n\t\tPlayer retVal = null;\n\t\tCursor cursor = db.query(PlayerTable.DB_TABLE_PLAYER, null, PlayerTable.KEY_ID + \"='\" + playerId + \"';\",\n\t\t\t\tnull, null, null, null);\n\t\tif(cursor.getCount()>0){\n\t\t\tLog.i(TAG, \"Found player in database with id [\" + playerId +\"]\");\n\t\t\tcursor.moveToFirst();\n\t\t\tint idIndex = cursor.getColumnIndex(PlayerTable.KEY_ID);\n\t\t\tString playerDBId = cursor.getString(idIndex);\n\t\t\tint nameIndex = cursor.getColumnIndex(PlayerTable.KEY_NAME);\n\t\t\tString playerDBName = cursor.getString(nameIndex);\n\t\t\tint descriptionIndex = cursor.getColumnIndex(PlayerTable.KEY_DESCRIPTION);\n\t\t\tString playerDBDescription = cursor.getString(descriptionIndex);\n\t\t\tint eloIndex = cursor.getColumnIndex(PlayerTable.KEY_ELO);\n\t\t\tDouble playerDBElo = cursor.getDouble(eloIndex);\n\t\t\tint matchesIndex = cursor.getColumnIndex(PlayerTable.KEY_NROFMATCHES);\n\t\t\tint matchesPlayed = cursor.getInt(matchesIndex);\n\t\t\tint createdIndex = cursor.getColumnIndex(PlayerTable.KEY_CREATED);\n\t\t\tString playerCreated = cursor.getString(createdIndex);\n\t\t\tDate created = null;\n\t\t\tif(playerCreated!=null){\n\t\t\t\ttry {\n\t\t\t\t\tcreated = sdf.parse(playerCreated);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\tLog.w(TAG, \"Error parsing date from DB : \", e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//create a Player-object that has all the properties fetched from DB\n\t\t\tretVal = new Player(playerDBName, playerDBDescription);\n\t\t\tretVal.setId(playerDBId);\n\t\t\tretVal.setCurrentElo(playerDBElo);\n\t\t\tretVal.setNrOfMatches(matchesPlayed);\n\t\t\tretVal.setCreated(created);\n\t\t\tLog.d(TAG, \"Objectified player : \" + retVal.getId());\n\t\t}\n\t\tclose();\n\t\tif(cursor!=null)\n\t\t\tcursor.close();\n\t\treturn retVal;\n\t}", "public Optional<Player> getPlayer(String playerName) {\n List<Player> filterResult = gamePlayers.stream().filter(x -> x.getName().equals(playerName)).collect(Collectors.toList());\n return filterResult.size() == 1 ? of(filterResult.get(0)) : Optional.empty();\n }", "public void setPlayer(Player _player) { // beallit egy ezredest az adott mapElementre, ha az rajta van\n player = _player;\n }", "protected abstract Player getModPlayer(String name);", "private void addPlayers(@NotNull MapHandler map, @NotNull NewGameDto newGameDto) {\n ComparableTuple<Integer, Stack<SpawnTile>> result = analyseMap(map);\n flagCount = result.key;\n Stack<SpawnTile> spawnTiles = result.value;\n if (!spawnTiles.isEmpty()) {\n for (PlayerDto player : newGameDto.players) {\n SpawnTile spawnTile = spawnTiles.pop();\n if (player.id == newGameDto.userId) {\n user = new Player(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(GameGraphics.mainPlayerName + \" (you)\", player.color), player.id);\n user.setDock(spawnTile.getSpawnNumber());\n players.add(user);\n } else {\n IPlayer onlinePlayer = new OnlinePlayer(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(player.name, player.color), player.id);\n onlinePlayer.setDock(spawnTile.getSpawnNumber());\n players.add(onlinePlayer);\n }\n }\n } else {\n for (int i = 0; i < playerCount; i++) {\n NonPlayer nonPlayer = new NonPlayer(i, 0, Direction.NORTH, map, new ComparableTuple<>(\"blue\", Color.BLUE));\n nonPlayer.setDock(i);\n players.add(nonPlayer);\n }\n }\n }", "public void addNewPlayer(Player p) {\n\t\t// if the player don't exists in the highscore list the player is added\n\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\tif(highscore.get(p.getName()) == null) {\n\t\t\t\thighscore.put(p.getName(), 0);\n\t\t\t}\n\t\t}\n\t\tthis.playerList.add(p); \n\t}", "public boolean registerPlayer(Player p);", "public BasketballPlayer getPlayer(String player){\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_homeTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _homeTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_awayTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _awayTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Player createPlayer(Player player) {\n // check whether unique player can be created or not\n if (playerRepository.existsByUsername(player.getUsername())) {\n return null;\n }\n if (playerRepository.existsByEmailAddress(player.getEmailAddress())) {\n return null;\n }\n player.setPassword(encryption.encoder().encode(player.getPassword()));\n return playerRepository.save(player);\n }", "@Test\n public void testGetMarkForPlayerNonExisting() {\n Player player = Player.builder().build();\n Map<Player, Character> players = new HashMap<>();\n players.put(player, 'O');\n Assertions.assertNull(GameUtil.getMarkForPlayerId(Game.builder().players(players).build(), \"X\"),\n \"Test non existing player in list.\");\n }", "@Override\n\tpublic SoccerPlayer getPlayer(String firstName, String lastName) {\n\n if(stats.containsKey(firstName + lastName)) {\n\n return stats.get(firstName + lastName);\n\n }\n\n else{\n\n return null;\n\n }\n }", "@java.lang.Override\n public boolean hasPlayer() {\n return player_ != null;\n }", "public Player getPlayer();", "public Player getPlayer();", "public void addPlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.posX >> 4;\r\n int var3 = (int)player.posZ >> 4;\r\n player.managedPosX = player.posX;\r\n player.managedPosZ = player.posZ;\r\n\r\n for (int var4 = var2 - this.playerViewRadius; var4 <= var2 + this.playerViewRadius; ++var4)\r\n {\r\n for (int var5 = var3 - this.playerViewRadius; var5 <= var3 + this.playerViewRadius; ++var5)\r\n {\r\n this.getPlayerInstance(var4, var5, true).addPlayer(player);\r\n }\r\n }\r\n\r\n this.players.add(player);\r\n this.filterChunkLoadQueue(player);\r\n }", "public void createPlayer(String name, double x, double y) {\n Player player = (Player) players.get(name);\r\n if (player == null) {\r\n// System.out.println(\"Create online player \" + name);\r\n player = new OnlinePlayer(name, x, y);\r\n players.put(name, player);\r\n }\r\n }", "public Player getCurrentPlayer(){\n String playerId = getUser().get_playerId();\n\n Player player = null;\n\n try {\n player = getCurrentGame().getPlayer(playerId);\n } catch(InvalidGameException e) {\n e.printStackTrace();\n System.out.println(\"This is the real Error\");\n }\n\n return player;\n }", "public Player updatePlayer(Player player);", "Player getCurrentPlayer();", "Player getCurrentPlayer();", "public final void addPlayer(Player player) {\n\n\t\tif (player instanceof CulturePlayer) {\t\t\t\t\t\t\t\t// not too pretty but simple\n\t\t\tif (((CulturePlayer)player).isDissect()) { // instead of the culture player\n\t\t\t\tplayers.addAll(((CulturePlayer)player).getCulture()); // add all masters of the culture\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tplayers.add(player);\n\t}", "public boolean addPlayer(int pno){\n\t\t\n\t\t// Gets the coordinates of a non-wall and non-occupied space\n\t\tint[] pos = initiatePlayer(pno);\n\t\t\n\t\t// If a free space could not be found, return false and the client will be force quit\n\t\tif (pos == null){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Put the player into the HashMaps\n\t\tplayerPosition.put(pno, pos);\n\t\tcollectedGold.put(pno, 0);\n\t\t\n\t\treturn true;\n\t}", "default boolean hasPlayer(Player player) {\n return hasPlayer(Objects.requireNonNull(player, \"player\").getName());\n }", "public Player replace(String playerId, WritePlayerCommand writePlayerCommand) {\n\t Player player = this.getPlayer(playerId);\n\t LOG.info(\">>replacePlayer(playerId=\" + playerId + \", writePlayerCommand=\" + \n\t\t\t\twritePlayerCommand + \")\");\n\t Player.Builder builderPlayer = new Player.Builder();\n\t builderPlayer.withName(writePlayerCommand.getName());\n\t builderPlayer.withAge(writePlayerCommand.getAge());\n\t Player newPlayer = builderPlayer.build(playerId);\n\n\t this.playersInDB.remove(player);\n\t this.playersInDB.add(newPlayer);\n\t\t\n\t return newPlayer;\t\n\t}", "public void addPlayer(Player inPlayer) {\n\t\tgetPlayersInRoom().add(inPlayer);\n\t}", "Optional<Player> getHoldingPlayer();", "public Player getPlayerById(int id) {\n\t\tPlayer p = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString playerByIdRecords_sql = \"SELECT * FROM \" + player_table + \" WHERE id='\" + id + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(playerByIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tp = new Player(rs.getString(3), rs.getString(4), rs.getDate(5), rs.getInt(6));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn p;\n\t}", "public GamePlayer getPlayerByPlayerID(String playerID) {\n\t\tfor (GamePlayer player : listOfPlayers) {\n\t\t\tif (player != null && player.playerID.contains(playerID)) {\n\t\t\t\treturn player;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// no player with playerID found\n\t\treturn null;\n\t}", "private void ReplacePlayer()\n {\n String oldPlayer = GetPlayerString(mTeamsComboBox.getSelectedItem().toString(),\n mPositionComboBox.getSelectedItem().toString());\n if( oldPlayer == null )\n return;\n\n String newPlayer = GetPlayerString_UI();\n String team = mTeamsComboBox.getModel().getElementAt(mTeamsComboBox.getSelectedIndex()).toString();\n ReplacePlayer(team, oldPlayer, newPlayer);\n }", "private PlayerManager.PlayerInstance getPlayerInstance(int chunkX, int chunkZ, boolean createIfAbsent)\r\n {\r\n long var4 = (long)chunkX + 2147483647L | (long)chunkZ + 2147483647L << 32;\r\n PlayerManager.PlayerInstance var6 = (PlayerManager.PlayerInstance)this.playerInstances.getValueByKey(var4);\r\n\r\n if (var6 == null && createIfAbsent)\r\n {\r\n var6 = new PlayerManager.PlayerInstance(chunkX, chunkZ);\r\n this.playerInstances.add(var4, var6);\r\n this.playerInstanceList.add(var6);\r\n }\r\n\r\n return var6;\r\n }", "@Override\n public void addPlayer(Player player) {\n\n if(steadyPlayers.size()>0){\n PlayersMeetNotification.firePropertyChange(new PropertyChangeEvent(this, \"More than one Player in this Panel\",steadyPlayers,player));\n }\n steadyPlayers.add(player);\n\n }", "public Location getPlayersLocation(String player)\n\t{\n\t\treturn playerLocations.get(player);\n\t}", "public AIPlayer getAIPlayer(Player player) {\n AIObject aio = getAIObject(player.getId());\n return (aio instanceof AIPlayer) ? (AIPlayer) aio : null;\n }", "private void loadPlayer(String player, String dir, String dbFile) {\n OwnedWarp warp;\n List<OwnedWarp> playerWarps = new ArrayList<OwnedWarp>();\n FlatDB database = new FlatDB(dir, dbFile);\n List<Row> rows = database.getAll();\n for(Row r : rows) {\n try {\n warp = OwnedWarp.fromRow(r, plugin.getServer(), player);\n } catch(NullPointerException e) {\n Stdout.println(\"Couldn't Warp \" + player + \"/\" + r.getIndex(), Level.ERROR);\n continue;\n }\n playerWarps.add(warp);\n }\n warps.put(player, playerWarps);\n }", "@Override\n\tpublic void onLookUp(PlatformPlayer player) {\n\t\t\n\t}", "public User getPlayer(String name) {\n\t\tUser ret = null;\n\t\tList<User> searchResult = this.players.stream().filter(x->x.name.equals(name)).collect(Collectors.toList());\n\t\tif (!searchResult.isEmpty()) {\n\t\t\tret = searchResult.get(0);\n\t\t}\n\t\treturn ret;\n\t}", "public static Player matchPlayer(String player) {\n\t\tList<Player> players = Bukkit.matchPlayer(player);\n\n\t\tif (players.size() == 1) {\n\t\t\treturn (Player) players.get(0);\n\t\t}\n\t\treturn null;\n\t}", "public PlayerParticipant getPlayer(int playerId) {\n try {\n String query = \"SELECT * from playerparticpant WHERE Id = \" + playerId;\n ResultSet resultSet = dbhelper.ExecuteSqlQuery(query);\n if (resultSet.next()) {\n PlayerParticipant playerParticipant = new PlayerParticipant();\n playerParticipant.matchHistoryUri = resultSet.getString(\"MatchHistoryUri\");\n playerParticipant.profileIcon = resultSet.getInt(\"ProfileIconId\");\n playerParticipant.summonerId = resultSet.getLong(\"SummonerId\");\n playerParticipant.summonerName = resultSet.getString(\"SummonerName\");\n \n return playerParticipant;\n }\n } catch (SQLException | IllegalStateException ex) {\n System.out.println(\"An error occurred: \" + ex.getMessage());\n }\n \n return null;\n }", "public static EntityPlayer getPlayer(String name) {\r\n\t\tfor (EntityPlayer player : getAll()) {\r\n\t\t\tif (player.getName().equals(name)) {\r\n\t\t\t\treturn player;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public Map<String, Player> getPlayersMap(){\n return this.players;\n }", "public void addPlayerToStats(Player player) {\n\t\tfindForPlayer(player);\n\t}", "public static synchronized Player getInstance(){\n if(Player.player == null){\n Player.player = new Player();\n }\n return Player.player;\n }", "public void addPlayer(String p) {\n this.playersNames.add(p);\n }", "public Player getPlayer(int idx) {\n\t\ttry {\n\t\t\tPlayer p = players.get(idx);\n\t\t\treturn p;\n\t\t} catch(Exception e) {\n\t\t\treturn null;\n\t\t}\n\t\n\t}", "public static GamePlayer getGamePlayer(String name) {\r\n\t\tfor (GamePlayer p : Game.players) {\r\n\t\t\tif (p.getPlayer().getName().equals(name)) {\r\n\t\t\t\treturn (p);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (null);\r\n\t}", "public void createOwnerPlayer(String name, double x, double y) {\n Player player = (Player) players.get(name);\r\n if (player == null) {\r\n// System.out.println(\"Create owner player \" + name);\r\n player = new Player(name, x, y);\r\n inPlayer = player;\r\n players.put(name, player);\r\n }\r\n }", "@Override\r\n\tpublic ArrayList<PlayerPO> findPlayerByName(String name) {\n\t\treturn playerController.findPlayerByName(name);\r\n\t}", "public Player getPlayer(long usernameHash) {\n\t\tfor (Player p : players) {\n\t\t\tif (p.getUsernameHash() == usernameHash) {\n\t\t\t\treturn p;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "protected Player getOpponentPlayer(Match match) {\r\n LOGGER.debug(\"--> getOpponentPlayer: match=\" + match);\r\n Player opponentPlayer;\r\n\r\n if (match.getCurrentPlayer() == 2) {\r\n opponentPlayer = match.getPlayer1();\r\n } else if (match.getCurrentPlayer() == 1) {\r\n opponentPlayer = match.getPlayer2();\r\n } else {\r\n throw new GeneralException(\"match has no defined opponentPlayer!\");\r\n }\r\n\r\n LOGGER.debug(\"<-- getOpponentPlayer\");\r\n return opponentPlayer;\r\n }", "public boolean addPlayerItem(PlayerItem playerItem);", "public void addPlayer(Player player) {\n this.add(player);\n this.players.add(player);\n }", "@Override\r\n public void handleMessage (Message inputMessage) {\n OnUpdatePlayerSubscription.OnUpdatePlayer updatePlayer = response.data().onUpdatePlayer();\r\n\r\n Log.i(TAG, \"updated user is \" + updatePlayer.toString() + \" session id is \" + sessionId);\r\n //checking if the updated player is in this session\r\n if(updatePlayer.session().id().equals(sessionId)){\r\n boolean contains = false;\r\n\r\n //checking if the updated player is in the current player list\r\n for(Player player : players){\r\n\r\n // if we have a match update players lat/long\r\n if(updatePlayer.id().equals(player.getId())){\r\n List<LatLng> bananasList = new LinkedList<>();\r\n bananasList.add(new LatLng(response.data().onUpdatePlayer().lat(),\r\n response.data().onUpdatePlayer().lon()));\r\n player.setLocations(bananasList); // sets location for the player\r\n player.setIt(updatePlayer.isIt());\r\n contains = true;\r\n }\r\n }\r\n\r\n //if the player is in the session, but not in the player list, then make a new player and add them to the players list and add a marker\r\n if(contains == false){\r\n Marker marker = mMap.addMarker(new MarkerOptions()\r\n .position(new LatLng(updatePlayer.lat(), updatePlayer.lon()))\r\n .title(updatePlayer.username()));\r\n Circle circle = mMap.addCircle(new CircleOptions()\r\n .center(new LatLng(updatePlayer.lat(), updatePlayer.lon()))\r\n .radius(tagDistance)\r\n .fillColor(Color.TRANSPARENT)\r\n .strokeWidth(3));\r\n\r\n marker.setIcon(playerpin);\r\n circle.setStrokeColor(notItColor);\r\n\r\n Player newPlayer = new Player();\r\n newPlayer.setId(updatePlayer.id());\r\n newPlayer.setIt(false);\r\n newPlayer.setMarker(marker);\r\n newPlayer.setCircle(circle);\r\n newPlayer.setUsername(updatePlayer.username());\r\n List<LatLng> potatoes = new LinkedList<>();\r\n potatoes.add(new LatLng(updatePlayer.lat(), updatePlayer.lon()));\r\n newPlayer.setLocations(potatoes);\r\n\r\n //adding player to the list of players in the game\r\n players.add(newPlayer);\r\n }\r\n }\r\n// for(Player player : players) {\r\n// if(response.data().onUpdatePlayer().id().equals(player.getId())) {\r\n// // if true (we have a match) update players lat/long\r\n// List<LatLng> bananasList = new LinkedList<>();\r\n// bananasList.add(new LatLng(response.data().onUpdatePlayer().lat(),\r\n// response.data().onUpdatePlayer().lon()));\r\n// player.setLocations(bananasList); // sets location for the player\r\n// //Might have been causing the starting point to move\r\n//// player.getCircle().setCenter(player.getLastLocation());\r\n//// player.getMarker().setPosition(player.getLastLocation());\r\n// }\r\n// }\r\n }", "public Player getPlayer(String userName,ArrayList<Player> list) {\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(userName)){\r\n\t\t\t\tif(in.getID().equals(\"AI\"))\r\n\t\t\t\t\treturn (NimAIPlayer)in;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn (NimPlayer)in;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn null;\r\n\t\t}", "public boolean addPlayer(Player player) {\n\t\tif (playerOne == null) {\n\t\t\tplayerOne = player;\n\t\t\tplayerOne.init(gameBoard);\n\t\t\tcurrentPlayer = playerOne;\n\t\t\treturn true;\n\t\t}\n\t\tif (playerOne != null) {\n\t\t\tplayerTwo = player;\n\t\t\tplayerTwo.init(gameBoard);\n\t\t\tnextPlayer = playerTwo;\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }", "public void placeMarker(BoardPosition marker, char player)\r\n {\n if(gameMap.containsKey(player))\r\n {\r\n List<BoardPosition> tempList;\r\n tempList = gameMap.get(player);\r\n tempList.add(marker);\r\n gameMap.put(player, tempList);\r\n }\r\n // If the player does not exist in the map, create a new array list and put the key and value in the map\r\n else\r\n {\r\n List<BoardPosition> newList = new ArrayList<BoardPosition>();\r\n newList.add(marker);\r\n gameMap.put(player, newList);\r\n }\r\n }", "public void generatePlayer()\n {\n board.getTile(8,0).insertPlayer(this.player);\n }", "public Player getPlayerFromList(String name){\n for (BrPlayer p : playerList){\n if (p.getBukkitPlayer().getDisplayName().equalsIgnoreCase(name)){\n return p.getBukkitPlayer();\n }\n }\n return null;\n }", "BPlayer getPlayer(Player player);", "public int addPlayer(PlayerListener player) {\n\t\tfinal int playerID = this.players.size();\n\n\t\tthis.players.add(new Player(\"Player \" + playerID,\n\t\t\t\tgenerateRandomStartLocation(), player));\n\n\t\tif (this.players.size() == 1) {\n\t\t\tstartNewGame();\n\t\t}\n\n\t\treturn playerID;\n\t}", "public Player addNewPlayer(String username){\n\n // if no username is provided return error;\n if(username == null || username.isEmpty()){\n throw new ApplicationException(\"Please provide a username\");\n }\n // else return player by provided username via @Repository\n System.out.println(ANSI_BLUE + \"=== PLAYER \" + username + \" CREATED ===\" + ANSI_RESET);\n return gameRepository.addNewPlayer(username);\n\n }", "void playerAdded();", "public DTOPlayer addPlayer(DTOPlayer dto) throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t DTOPlayer newDto = engine.addPlayer(connTDB, dto);\r\n\t connTDB.commit();\r\n\t LOGGER.debug(\"Added new Player: \" + newDto);\r\n\t return newDto;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered adding a player: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }", "public boolean addPlayer(GamePlayer player) {\n\t\tif (players.size() >= info.getMaximumPlayers())\n\t\t\treturn false;\n\t\tplayer.setCurrentGame(this);\n\t\tplayer.setJoinLocation(player.getPlayer().get().getLocation());\n\t\tplayers.add(player);\n\t\treturn true;\n\t}" ]
[ "0.66975904", "0.6633124", "0.6562783", "0.64440525", "0.63626873", "0.6349937", "0.6346789", "0.6300486", "0.6264664", "0.62005806", "0.61923975", "0.61915636", "0.6146383", "0.6127289", "0.61013937", "0.6090526", "0.6085732", "0.607596", "0.60272986", "0.60167414", "0.6000321", "0.5989486", "0.5971997", "0.5965273", "0.59528166", "0.59492236", "0.5937703", "0.5919838", "0.5919631", "0.59128207", "0.58933616", "0.5892382", "0.586748", "0.5862592", "0.58425605", "0.5838071", "0.58340687", "0.5826489", "0.5814856", "0.580688", "0.5777025", "0.5766294", "0.5760387", "0.575518", "0.5754114", "0.57422024", "0.5725986", "0.5723951", "0.5704189", "0.5704189", "0.5702151", "0.5700473", "0.5699517", "0.5696117", "0.5691225", "0.5691225", "0.56777096", "0.5675337", "0.5669598", "0.56639117", "0.5654197", "0.56496245", "0.56453484", "0.56415415", "0.5641468", "0.5634614", "0.563426", "0.56223917", "0.56211984", "0.56207824", "0.56195164", "0.56086373", "0.56072706", "0.56055355", "0.56029195", "0.56006205", "0.55919677", "0.5591962", "0.5590803", "0.5589911", "0.5585779", "0.55810356", "0.55803454", "0.5580014", "0.55796283", "0.5569116", "0.55591995", "0.5558165", "0.55551225", "0.5553161", "0.5544984", "0.5532558", "0.55301905", "0.55182", "0.5510028", "0.5505891", "0.5502296", "0.54968506", "0.54949045", "0.54939157" ]
0.6307941
7
Calculates the ranking list by applying the ranking types provided, in order. If any players are tied according to all provided ranking types, they may be returned in an arbitrary order.
public List<Record> calculateRankings(List<Record> records, List<RankingType> rankingTypes) { if (records == null || records.size() == 0) { throw new IllegalArgumentException("At least one record much be provided."); } if (rankingTypes == null || rankingTypes.size() == 0) { throw new IllegalArgumentException("At least one ranking type must be provided."); } List<List<Record>> currentSortGroups = List.of(records); for (RankingType rankingType : rankingTypes) { currentSortGroups = sortEachBucketAndFlatten(currentSortGroups, rankingType); } // Flatten tied groups one more time back into a single list. return currentSortGroups.stream().flatMap(List::stream).collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> getRankedBrands(String type){\n\t\tArrayList<String> rank = new ArrayList<String>();\n\t\tHashtable<String, BrandsData> brands = this.getPromoPerBrand();\n\t\tArrayList<BrandsData> temp = new ArrayList<BrandsData>(brands.values());\n\t\tCollections.sort(temp, new Comparator<BrandsData>() {\n\t\t\t@Override\n\t\t\tpublic int compare(BrandsData b1, BrandsData b2) {\n\t\t\t\tif(type.equals(\"Price Disc.\")) {\n\t\t\t\t\tdouble value = b2.getPriceDisc(thisPeriod) - b1.getPriceDisc(thisPeriod);\n\t\t\t\t\treturn (int) Math.round(value);\n\t\t\t\t}else if (type.equals(\"Feature\")) {\n\t\t\t\t\tdouble value = b2.getFeat(thisPeriod) - b1.getFeat(thisPeriod);\n\t\t\t\t\treturn (int) Math.round(value);\n\t\t\t\t}else if (type.equals(\"Display\")) {\n\t\t\t\t\tdouble value = b2.getDisplay(thisPeriod) -b1.getDisplay(thisPeriod);\n\t\t\t\t\treturn (int) Math.round(value);\n\t\t\t\t} else if (type.equals(\"Quality\")) {\n\t\t\t\t\tdouble value = b2.getQual(thisPeriod) - b1.getQual(thisPeriod);\n\t\t\t\t\treturn (int) Math.round(value);\n\t\t\t\t} else if (type.equals(\"sales\")) {\n\t\t\t\t\tdouble value = b2.getSales(thisPeriod) - b1.getSales(thisPeriod);\n\t\t\t\t\treturn (int) Math.round(value);\n\t\t\t\t} else {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tfor (int i=0; i<temp.size(); i++) {\n\t\t\trank.add(temp.get(i).getBrand());\n\t\t}\n\t\t\n\t\treturn rank;\n\t}", "private static void printRanking(List<Instruction> list,final String settlementType) {\n\t\tfinal Map<String, Double> entityMap = new HashMap<>();\n\t\tfor(Instruction instruction : list) {\n\t\t\tif(entityMap.get(instruction.getEntity())!=null) {\n\t\t\t\t//if multiple trades happened for same entity \n\t\t\t\tentityMap.put(instruction.getEntity(),(entityMap.get(instruction.getEntity()) + instruction.getTotalAmount()));\n\t\t\t}else {\n\t\t\t\tentityMap.put(instruction.getEntity(), instruction.getTotalAmount());\n\t\t\t}\n\t\t}\n\t\t// sort entity map based on TotoalAmount\n\t\tfinal Map<String, Double> sortedMap = entityMap.entrySet().stream()\n\t\t.sorted(Map.Entry.<String,Double>comparingByValue().reversed())\n\t\t.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, HashMap<String,Double>::new));\n\t\t\n\t\tSystem.out.println(settlementType +\" Ranking :\\n\");\n\t\tSet<String> keySet = sortedMap.keySet();\n\t\tint rank = 1;\n\t\tfor(String key : keySet) {\n\t\t\tSystem.out.println(key +\" - \"+ rank++);\n\t\t}\n\t}", "private void updateRanking(boolean byTime, char[] allTyreTypes)\n {\n if(byTime) // if required to sort by time\n {\n getDrivers().adjustDriversListByTime(allTyreTypes);\n }\n else // if required to sort by championship score\n {\n getDrivers().sortByScore();\n }\n for(int i = 0 ; i < getDrivers().getSize() ; i++)\n {\n getDrivers().getDriver(i).setRanking(i + 1); // update ranking\n }\n }", "@Override\n\tpublic List<WalkerRanking> listRanking() {\n\t\tList<Walker> all = walkerRepo.findAllPublic();\n\t\tList<WalkerRanking> allRank = new ArrayList<>();\n\t\t\n\t\tfor(Walker walker : all) {\n\t\t\tallRank.add(getRankingById(walker.getId()));\n\t\t}\n\t\t\n\t\treturn allRank;\n\t}", "List<Ranking> calculateOutcomeRanks(List<Instruction> instructions);", "@Test\n public void userRanking() {\n List<ATrip> trips = new ArrayList<ATrip>();\n ATrip trip = new ATrip();\n trip.setDriverid(DRIVER_ID);\n trip.setPassengerid(PASSENGER_ID);\n trip.setTripid(TRIP_ID);\n trip.setStatus(2);\n trip.setStartdate(1);\n trip.setEnddate(10);\n trips.add(trip);\n\n ATrip trip2 = new ATrip();\n trip2.setDriverid(DRIVER_ID);\n trip2.setPassengerid(PASSENGER_ID_2);\n trip2.setTripid(TRIP_ID2);\n trip2.setStatus(2);\n trip2.setStartdate(1);\n trip2.setEnddate(10);\n trips.add(trip2);\n\n ATrip trip3 = new ATrip();\n trip3.setDriverid(DRIVER_ID);\n trip3.setPassengerid(NONEXISTING_PASSENGER_ID);\n trip3.setTripid(TRIP_ID3);\n trip3.setStatus(1);\n trip3.setStartdate(2);\n trip3.setEnddate(9);\n trips.add(trip3);\n\n ArrayList<String> result = new ArrayList<String>();\n result.add(\"1;\" + 1);\n result.add(\"2;\" + 1);\n result.add(\"3;\" + 2);\n result.add(\"4;\" + 2);\n result.add(\"5;\" + 1);\n result.add(\"6;\" + 1);\n\n List<ATripRepository.userTripRanking> response = repo.getUserRankings(0, 10, trips, \"Passenger\");\n\n assertEquals(result.size(), response.size());\n }", "private void updateRacePoints(char[] allTyreTypes)\n {\n getDrivers().adjustDriversListByTime(allTyreTypes);\n for(int i = 0 ; i < getDrivers().getSize() ; i++)\n {\n int scoringPoints = 0;\n if(i == 0 && getDrivers().getDriver(i).getEligibleToRace()) // if first and eligible\n {\n scoringPoints = 8;\n }\n else if(i == 1 && getDrivers().getDriver(i).getEligibleToRace()) // if second and eligible\n {\n scoringPoints = 5;\n }\n else if(i == 2 && getDrivers().getDriver(i).getEligibleToRace()) // if third and eligible\n {\n scoringPoints = 3;\n }\n else if(i == 3 && getDrivers().getDriver(i).getEligibleToRace()) // if fourth and eligible\n {\n scoringPoints = 1;\n }\n getDrivers().getDriver(i).setAccumulatedScore(getDrivers().getDriver(i).getAccumulatedScore() + scoringPoints);\n }\n }", "public void determineRank(){\r\n //ranks highcard 0, pair 1, twopair 2, three of a kind 3, straight 4, flush 5,\r\n //full house 6, four of a kind 7 , straight flush 8, royal flush 9\r\n //I should start top down.\r\n\r\n //Royal Flush\r\n if(isRoyalFlush())\r\n setRank(9);\r\n //Straight flush\r\n else if(isFlush() && isStraight())\r\n setRank(8);\r\n //four of a kind\r\n else if(isFourOfAKind())\r\n setRank(7);\r\n //full house\r\n else if( isFullHouse())\r\n setRank(6);\r\n //flush\r\n else if(isFlush())\r\n setRank(5);\r\n //straight\r\n else if(isStraight())\r\n setRank(4);\r\n //three of a kind\r\n else if(isThreeOfAKind())\r\n setRank(3);\r\n //twoPair\r\n else if(isTwoPair())\r\n setRank(2);\r\n //pair\r\n else if(isPair())\r\n setRank(1);\r\n //highcard\r\n else\r\n setRank(0);\r\n\r\n }", "void showRanking(String winner, String rank);", "private int getRank(DiceModel playerToRank) {\n\t\tint rank = 1;\n\t\tint ph; // placeholder\n\t\tint d1 = playerToRank.getDie1();\n\t\tint d2 = playerToRank.getDie2();\n\t\tint d3 = playerToRank.getDie3();\n\t\t\n\t\t// sorting them in ascending order\n\t\t// switch the 2nd number into first position if it is bigger\n\t\tif (d2 > d1) {\n\t\t\tph = d1;\n\t\t\td1 = d2;\n\t\t\td2 = ph;\n\t\t} // switch the 3rd number into second position if it is bigger\n\t\tif (d3 > d2) {\n\t\t\tph = d2;\n\t\t\td2 = d3;\n\t\t\td3 = ph;\n\t\t} // switch the 2nd number into first position if it is bigger\n\t\tif (d2 > d1) {\n\t\t\tph = d1;\n\t\t\td1 = d2;\n\t\t\td2 = ph;\n\t\t}\n\t\t\n\t\t// now to get their ranking\n\t\t// check for 4,2,1\n\t\tif (d1 == 4 && d2 == 2 && d3 == 1) {\n\t\t\trank = 4;\n\t\t} else if (d1 == d2 && d1 == d3) { // checks for triples\n\t\t\trank = 3;\n\t\t} else if ((d1 == d2 && d1 != d3) || d2 == d3) { // pairs\n\t\t\trank = 2;\n\t\t} else {\n\t\t\trank = 1;\n\t\t}\n\t\t\n\t\treturn rank;\n\t}", "public void rankMatches();", "public void updateStats(Player currHand, int handType, int numWinners) {\n\t\tInteger topRank;\n\t\tInteger btmRank;\n\t\tDouble handBet = currHand.getBet();\n\t\tif (currHand.getCard1().getRank() == 1 || currHand.getCard2().getRank() == 1) {\n\t\t\ttopRank = 14;\n\t\t\tbtmRank = Math.max(currHand.getCard1().getRank(), currHand.getCard2().getRank());\n\t\t\tif (btmRank == 1) {\n\t\t\t\tbtmRank = 14;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (currHand.getCard1().getRank() <= currHand.getCard2().getRank()) {\n\t\t\t\ttopRank = currHand.getCard2().getRank();\n\t\t\t\tbtmRank = currHand.getCard1().getRank();\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttopRank = currHand.getCard1().getRank();\n\t\t\t\tbtmRank = currHand.getCard2().getRank();\n\t\t\t}\n\t\t}\n\t\tif (topRank == btmRank) { //pocket pair\n\t\t\tif (topRank == 14) {\n\t\t\t\tif (handType == 0) {\n\t\t\t\t\tif (currBet <= handBet) {\n\t\t\t\t\t\tpocketHands[168]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse winningPocketHands[168] += 1./numWinners;\n\t\t\t\t//System.out.println(\"index: \" + 168);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (handType == 0) {\n\t\t\t\t\tif (currBet <= handBet) {\n\t\t\t\t\t\tpocketHands[154 + topRank]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse winningPocketHands[154 + topRank] += 1./numWinners;\n\t\t\t\t//System.out.println(\"index: \" + (154 + topRank));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tint index = -1;\n\t\t\tfor (int j = 1; j < topRank-2; j++) {\n\t\t\t\tindex += j;\n\t\t\t}\n\t\t\tindex += btmRank-1;\n\t\t\tindex *= 2;\n\t\t\tif (currHand.getCard1().getSuit() == currHand.getCard2().getSuit()) {\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\tif (handType == 0) {\n\t\t\t\tif (currBet <= handBet) {\n\t\t\t\t\tpocketHands[index]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse winningPocketHands[index] += 1./numWinners;\n\t\t\t//System.out.println(\"index: \" + index);\n\t\t}\n\t\t//currHand.getCard1().printCard();\n\t\t//currHand.getCard2().printCard();\n\n\t}", "private void evaluateOrderRanks() {\n\t\t// First ensure that the order rank is respected if was provided\n\t\tfor (HLChoice choice : process.getChoices()) {\n\t\t\tArrayList<HLCondition> rankedConditions = new ArrayList<HLCondition>();\n\t\t\t// check order rank for each condition\n\t\t\tfor (HLCondition cond : choice.getConditions()) {\n\t\t\t\tif (cond.getExpression().getOrderRank() != -1) {\n\t\t\t\t\trankedConditions.add(cond);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (rankedConditions.size() > 1) {\n\t\t\t\tHashMap<HLDataExpression, HLCondition> exprCondMapping = new HashMap<HLDataExpression, HLCondition>();\n\t\t\t\tfor (HLCondition mappedCond : rankedConditions) {\n\t\t\t\t\texprCondMapping.put(mappedCond.getExpression(), mappedCond);\n\t\t\t\t}\n\t\t\t\tArrayList<HLDataExpression> exprList = new ArrayList<HLDataExpression>(exprCondMapping.keySet());\n\t\t\t\tObject[] sortedRanks = exprList.toArray();\n\t\t\t\tArrays.sort(sortedRanks);\n\t\t\t\tfor (int i=0; i<sortedRanks.length; i++) {\n\t\t\t\t\tArrayList<HLDataExpression> lowerRankExpressions = new ArrayList<HLDataExpression>();\n\t\t\t\t\tfor (int j=0; j<sortedRanks.length; j++) {\n\t\t\t\t\t\tif (j<i) {\n\t\t\t\t\t\t\tlowerRankExpressions.add((HLDataExpression) sortedRanks[j]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (lowerRankExpressions.size() > 0) {\n\t\t\t\t\t\t// connect lower rank conditions with OR and negate\n\t\t\t\t\t\tHLExpressionElement orConnected = HLExpressionManager.connectExpressionsWithOr(lowerRankExpressions);\n\t\t\t\t\t\tHLExpressionElement negatedOr = HLExpressionManager.negateExpression(new HLDataExpression(orConnected));\n\t\t\t\t\t\t// add own expression in front and connect with AND\n\t\t\t\t\t\tHLAndOperator andOp = new HLAndOperator();\t\t\n\t\t\t\t\t\tandOp.addSubExpression(((HLDataExpression) sortedRanks[i]).getRootExpressionElement().getExpressionNode());\n\t\t\t\t\t\tandOp.addSubExpression(negatedOr.getExpressionNode());\n\t\t\t\t\t\t// assign the expanded expression to the original condition\n\t\t\t\t\t\tHLCondition condition = exprCondMapping.get(sortedRanks[i]);\n\t\t\t\t\t\tcondition.setExpression(new HLDataExpression(andOp, ((HLDataExpression) sortedRanks[i]).getOrderRank()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Now, generate data expressions for \"default\" (i.e., \"else\") branch \n\t\tHLCondition defaultCond = null;\n\t\tfor (HLChoice choice : process.getChoices()) {\n\t\t\tArrayList<HLCondition> nonDefaultConditions = new ArrayList<HLCondition>(choice.getConditions());\n\t\t\tfor (HLCondition cond : choice.getConditions()) {\n\t\t\t\tif (cond.getExpression().getRootExpressionElement() == null && \n\t\t\t\t\t\tcond.getExpression().getExpressionString().equals(\"default\")) {\n\t\t\t\t\tnonDefaultConditions.remove(cond);\n\t\t\t\t\tdefaultCond = cond;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (defaultCond != null) {\n\t\t\t\tHLExpressionElement orConnected = HLExpressionManager.connectConditionsWithOr(nonDefaultConditions);\n\t\t\t\tHLExpressionElement negatedOr = HLExpressionManager.negateExpression(new HLDataExpression(orConnected));\n\t\t\t\tdefaultCond.setExpression(new HLDataExpression(negatedOr));\n\t\t\t}\n\t\t}\n\t}", "int getRanking();", "List<Ranking> calculateIncomeRanks(List<Instruction> instructions);", "protected RankList rank(int rankListIndex, int current) {\n/* 472 */ RankList orig = this.samples.get(rankListIndex);\n/* 473 */ double[] scores = new double[orig.size()];\n/* 474 */ for (int i = 0; i < scores.length; i++)\n/* 475 */ scores[i] = this.modelScores[current + i]; \n/* 476 */ int[] idx = MergeSorter.sort(scores, false);\n/* 477 */ return new RankList(orig, idx);\n/* */ }", "public static List<Player> getRankedPlayers(List<Player> players) {\n Comparator<Player> playerComparator = new Comparator<Player>() {\n @Override\n public int compare(Player o1, Player o2) {\n return o2.getCurrentScore() - o1.getCurrentScore();\n }\n };\n players.sort(playerComparator);\n return players;\n }", "@Override\r\n\tpublic float getRank() {\r\n\t\tfloat rank = 0;\r\n\t\tif( players != null && !players.isEmpty() ) {\r\n\t\t\tfloat totalAbility = 0;\r\n\t\t\tfor (Player player : players) {\r\n\t\t\t\ttotalAbility += player.getAbility();\r\n\t\t\t}\r\n\t\t\trank = totalAbility / players.size();\r\n\t\t}\r\n\t\t\r\n\t\treturn rank;\r\n\t}", "private List<List<Record>> sortRecordsBy(List<Record> unsortedRecords, RankingType rankingType) {\n Comparator<Long> comparator = rankingType.isDescending()\n ? Comparator.reverseOrder()\n : Comparator.naturalOrder();\n SortedMap<Long, List<Record>> scoreGroups = new TreeMap<>(comparator);\n for (Record record : unsortedRecords) {\n Long score = rankingType.getScoreFunction().apply(record);\n if (scoreGroups.containsKey(score)) {\n scoreGroups.get(score).add(record);\n } else {\n scoreGroups.put(score, new LinkedList<>());\n scoreGroups.get(score).add(record);\n }\n }\n\n return new ArrayList<>(scoreGroups.values());\n }", "public void ranking(ArrayList<Player> list) {\r\n\t\tCollections.sort(list, new Comparator<Player>(){\r\n\t\t\tpublic int compare(Player a1, Player a2) {\r\n\t\t\t\tint a = a2.getPercent()-a1.getPercent(); \r\n\t\t\t\treturn a==0?a1.getUserName().compareTo(a2.getUserName()):a;\r\n\t\t\t}\r\n\t\t});\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile(aa.hasNext()){\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tin.showRanking();\r\n\t\t}\r\n\t}", "public HashMap<User, Integer> userWeekRanking(User user, LinkedList<User> friends, int method){\n LinkedList<User> allUsers = new LinkedList<>();\n HashMap<User, Integer> result = new HashMap<>();\n\n allUsers.add(user);\n allUsers.addAll(friends);\n\n int rank = 0;\n long lastTime = -1;\n int lastSteps = -1;\n double lastDistance = -1;\n int lastAchievementCount = -1;\n\n switch (method){\n case METHODS.TIME:\n //sort the data\n Collections.sort(allUsers, new SortWeekTime());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveTimeForWeek() != lastTime) {\n rank++;\n lastTime = next.getMyTimeline().getActiveTimeForWeek();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.DISTANCE:\n //sort the data\n Collections.sort(allUsers, new SortWeekDistance());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveDistanceForWeek() != lastDistance) {\n rank++;\n lastDistance = next.getMyTimeline().getActiveDistanceForWeek();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.STEPS:\n //sort the data\n Collections.sort(allUsers, new SortWeekSteps());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getStepsForWeek() != lastSteps) {\n rank++;\n lastSteps = next.getMyTimeline().getStepsForWeek();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.ACHIEVEMENTS:\n //sort the data\n Collections.sort(allUsers, new SortWeekAchievements());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getAchievementsForWeek() != lastAchievementCount) {\n rank++;\n lastAchievementCount = next.getMyTimeline().getAchievementsForWeek();\n }\n result.put(next, rank);\n }\n\n break;\n }\n\n return result;\n }", "public void getRankingData(ArrayList<RankingItem> arrayList,int persusernr){\n int persRank = 0;\n for(int i=0;i<arrayList.size();i++){\n if(persusernr == arrayList.get(i).getUsernr()){\n persRank = arrayList.get(i).getRank();\n }\n }\n rankingData.clear();\n if(persRank>3){\n rankingData.add(arrayList.get(0));\n rankingData.add(arrayList.get(1));\n rankingData.add(arrayList.get(2));\n rankingData.add(arrayList.get(persRank-2));\n rankingData.add(arrayList.get(persRank-1));\n if(persRank != arrayList.size()){\n rankingData.add(arrayList.get(persRank));\n }\n\n }else{\n for(int i=0;i<6;i++){\n rankingData.add(arrayList.get(0));\n }\n }\n }", "private static Result parseRanking(String reader) throws Exception {\n\t\tResult result = new Result();\n\t\tLogUtils.e(Parser.class, \"string:\" + reader);\n\t\tJSONObject jObj = new JSONObject(reader);\n\t\tint code = jObj.getInt(\"code\");\n\t\tif (code == 0) {\n\t\t\tJSONObject data = jObj.getJSONObject(\"obj\");\n\t\t\tJSONArray arrAll = data.getJSONArray(\"All\");\n\t\t\tJSONArray arrFriend = data.getJSONArray(\"Friends\");\n\t\t\tRanking userRank = new Ranking();\n\t\t\ttry {\n\t\t\t\tJSONObject userJson = data.getJSONObject(\"User\");\n\t\t\t\tuserRank.setUserName(userJson.getString(\"Name\"));\n\t\t\t\tuserRank.setUserID(userJson.getInt(\"UserId\"));\n\t\t\t\tuserRank.setLevel(userJson.getInt(\"LevelId\"));\n\t\t\t\tuserRank.setScore(userJson.getInt(\"Score\"));\n\t\t\t\tuserRank.setQuestion(userJson.getInt(\"Question\"));\n\t\t\t\tuserRank.setRank(userJson.getInt(\"RankFriends\"),\n\t\t\t\t\t\tuserJson.getInt(\"RankAll\"));\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\n\t\t\tList<Ranking> listAll = new ArrayList<Ranking>();\n\t\t\tList<Ranking> listFriends = new ArrayList<Ranking>();\n\t\t\tfor (int i = 0; i < arrAll.length(); i++) {\n\t\t\t\tJSONObject o = arrAll.getJSONObject(i);\n\t\t\t\tString name = o.getString(\"Name\");\n\t\t\t\tint userID = o.getInt(\"UserId\");\n\t\t\t\tint score = o.getInt(\"Score\");\n\t\t\t\tint level = o.getInt(\"LevelId\");\n\t\t\t\tString fbID = o.getString(\"FbUserId\");\n\t\t\t\tint question = o.getInt(\"Question\");\n\t\t\t\tRanking rank = new Ranking();\n\t\t\t\trank.setLevel(level);\n\t\t\t\trank.setFBID(fbID);\n\t\t\t\trank.setUserID(userID);\n\t\t\t\trank.setScore(score);\n\t\t\t\trank.setUserName(name);\n\t\t\t\trank.setQuestion(question);\n\t\t\t\tlistAll.add(rank);\n\t\t\t}\n\t\t\tfor (int i = 0; i < arrFriend.length(); i++) {\n\t\t\t\tJSONObject o = arrFriend.getJSONObject(i);\n\t\t\t\tString name = o.getString(\"Name\");\n\t\t\t\tint userID = o.getInt(\"UserId\");\n\t\t\t\tint score = o.getInt(\"Score\");\n\t\t\t\tint level = o.getInt(\"LevelId\");\n\t\t\t\tString fbID = o.getString(\"FbUserId\");\n\t\t\t\tint question = o.getInt(\"Question\");\n\t\t\t\tRanking rank = new Ranking();\n\t\t\t\trank.setLevel(level);\n\t\t\t\trank.setUserID(userID);\n\t\t\t\trank.setScore(score);\n\t\t\t\trank.setUserName(name);\n\t\t\t\trank.setFBID(fbID);\n\t\t\t\trank.setQuestion(question);\n\t\t\t\tlistFriends.add(rank);\n\t\t\t}\n\t\t\tObject[] datas = new Object[3];\n\t\t\tdatas[0] = listAll;\n\t\t\tdatas[1] = listFriends;\n\t\t\tdatas[2] = userRank;\n\t\t\tDataHelper.saveUserID(userRank.getUserID());\n\t\t\treturn result.setData(datas);\n\t\t} else\n\t\t\tresult.setError(Error.SERVER_ERROR);\n\t\treturn result;\n\t}", "public ArrayList<CollegeFootballTeam> rankTeams();", "public final EObject ruleRanking() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_isMandatory_1_0=null;\n Token otherlv_3=null;\n Token otherlv_4=null;\n Token otherlv_5=null;\n AntlrDatatypeRuleToken lv_questionText_2_0 = null;\n\n EObject lv_answers_6_0 = null;\n\n EObject lv_answers_7_0 = null;\n\n\n enterRule(); \n \n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:845:28: ( (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:3: otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )*\n {\n otherlv_0=(Token)match(input,25,FollowSets000.FOLLOW_25_in_ruleRanking1698); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getRankingAccess().getQKeyword_0());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:850:1: ( (lv_isMandatory_1_0= '*' ) )?\n int alt17=2;\n int LA17_0 = input.LA(1);\n\n if ( (LA17_0==26) ) {\n alt17=1;\n }\n switch (alt17) {\n case 1 :\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:851:1: (lv_isMandatory_1_0= '*' )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:851:1: (lv_isMandatory_1_0= '*' )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:852:3: lv_isMandatory_1_0= '*'\n {\n lv_isMandatory_1_0=(Token)match(input,26,FollowSets000.FOLLOW_26_in_ruleRanking1716); \n\n newLeafNode(lv_isMandatory_1_0, grammarAccess.getRankingAccess().getIsMandatoryAsteriskKeyword_1_0());\n \n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getRankingRule());\n \t }\n \t\tsetWithLastConsumed(current, \"isMandatory\", true, \"*\");\n \t \n\n }\n\n\n }\n break;\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:865:3: ( (lv_questionText_2_0= ruleEString ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:866:1: (lv_questionText_2_0= ruleEString )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:866:1: (lv_questionText_2_0= ruleEString )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:867:3: lv_questionText_2_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getRankingAccess().getQuestionTextEStringParserRuleCall_2_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleRanking1751);\n lv_questionText_2_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getRankingRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"questionText\",\n \t\tlv_questionText_2_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,20,FollowSets000.FOLLOW_20_in_ruleRanking1763); \n\n \tnewLeafNode(otherlv_3, grammarAccess.getRankingAccess().getLeftSquareBracketKeyword_3());\n \n otherlv_4=(Token)match(input,28,FollowSets000.FOLLOW_28_in_ruleRanking1775); \n\n \tnewLeafNode(otherlv_4, grammarAccess.getRankingAccess().getRankKeyword_4());\n \n otherlv_5=(Token)match(input,22,FollowSets000.FOLLOW_22_in_ruleRanking1787); \n\n \tnewLeafNode(otherlv_5, grammarAccess.getRankingAccess().getRightSquareBracketKeyword_5());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:895:1: ( (lv_answers_6_0= ruleAnswer ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:896:1: (lv_answers_6_0= ruleAnswer )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:896:1: (lv_answers_6_0= ruleAnswer )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:897:3: lv_answers_6_0= ruleAnswer\n {\n \n \t newCompositeNode(grammarAccess.getRankingAccess().getAnswersAnswerParserRuleCall_6_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleRanking1808);\n lv_answers_6_0=ruleAnswer();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getRankingRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"answers\",\n \t\tlv_answers_6_0, \n \t\t\"Answer\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:913:2: ( (lv_answers_7_0= ruleAnswer ) )*\n loop18:\n do {\n int alt18=2;\n int LA18_0 = input.LA(1);\n\n if ( (LA18_0==19) ) {\n alt18=1;\n }\n\n\n switch (alt18) {\n \tcase 1 :\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:914:1: (lv_answers_7_0= ruleAnswer )\n \t {\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:914:1: (lv_answers_7_0= ruleAnswer )\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:915:3: lv_answers_7_0= ruleAnswer\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getRankingAccess().getAnswersAnswerParserRuleCall_7_0()); \n \t \t \n \t pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleRanking1829);\n \t lv_answers_7_0=ruleAnswer();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getRankingRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"answers\",\n \t \t\tlv_answers_7_0, \n \t \t\t\"Answer\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop18;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Override\n\tpublic List<Recipe> ranking() {\n\t\tList<Recipe> rankingList = jT.query(SELECT_RANKING2, new BeanPropertyRowMapper<Recipe>(Recipe.class));\n\t\treturn rankingList;\n\t}", "long getRank();", "List<Rank> getRanks() {\n\t\ttry {\n\t\t\treturn analysisModel.getRanks();\n\t\t} catch (DatabaseException ex) {\n\t\t\tLOG.error(\"Failed to get result name list\", ex);\n\t\t}\n\t\treturn Collections.emptyList();\n\t}", "public RankType getRank() {\n return rank;\n }", "public int getRank();", "public int getRank();", "public static List<Player> getRankedPlayersInTeam(List<Player> players, Player.PlayerTeam team) {\n List<Player> choosenTeam = players.stream()\n .filter(player -> player.getTeam() == team)\n .collect(Collectors.toList());\n\n\n Comparator<Player> playerComparator = new Comparator<Player>() {\n @Override\n public int compare(Player o1, Player o2) {\n return o2.getCurrentScore() - o1.getCurrentScore();\n }\n };\n choosenTeam.sort(playerComparator);\n return choosenTeam;\n\n }", "@Test\n\tpublic void testRankingSortedByName() throws BattleshipException {\n\t\t\n\t\t//Play Julia\n\t\tinitScores(playerJulia);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Raul\n\t\tinitScores(playerRaul);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Laura\n\t\tinitScores(playerLaura);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Simon\n\t\tinitScores(playerSimon);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareRankings(SRANKING5, rankingsToString());\n\t}", "public List<RankingDTO> getRanking() {\n\t\treturn this.ranking;\n\t}", "public void createRanking() {\n Question q = new Ranking(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Ranking question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many items need to be ranked?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n this.o.setDisplay(\"Enter correct answer(s):\\n\");\n this.o.getDisplay();\n for (int j=0; j < q.getMaxResponses(); j++){\n\n ans = this.in.getUserInput();\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n this.survey.addQuestion(q);\n }", "@GET\n\t@Path(\"/ranking\")\n\t@Nonnull\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Produces(MediaType.APPLICATION_JSON)\n\tList<Long> getRanking(@Nonnull @QueryParam(\"users\") List<Long> users);", "private static void rankCourses() {\r\n\t\tfor (String subject : courses.keySet()) {\r\n\t\t\tLinkedList<Course> subjectCourses = courses.get(subject);\r\n\t\t\tfor (int i = 1; i <= 8; i++) {\r\n\t\t\t\tswitch (i) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\t// Subject rank\r\n\t\t\t\t\tintRanker(1, subjectCourses);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\t// Student satisfaction\r\n\t\t\t\t\tintRanker(2, subjectCourses);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\t// Nationwide ranking\r\n\t\t\t\t\tdoubleRanker(3, subjectCourses);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\t// Cost of living\r\n\t\t\t\t\tdoubleRanker(4, subjectCourses);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\t// Student to faculty ratio\r\n\t\t\t\t\tdoubleRanker(5, subjectCourses);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\t// Research Output\r\n\t\t\t\t\tintRanker(6, subjectCourses);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\t// International students\r\n\t\t\t\t\tdoubleRanker(7, subjectCourses);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\t// Graduate prospects\r\n\t\t\t\t\tdoubleRanker(8, subjectCourses);\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 void modRanking(ParamRanking pr);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "public static ArrayList<String[]> getRankList(){\n\t\tMongoCollection<Document> collection = getDatabase().getCollection(\"LoginInformation\");\n\t\tAggregateIterable<Document> documents = collection.aggregate(\n\t\t\tArrays.asList(\n\t\t\t\tAggregates.sort(Sorts.descending(\"points\"))\n\t\t\t)\n\t\t);\n\t\t\n\t\tArrayList<String[]> rankList = new ArrayList<String[]>();\n\t\tint counter = 0;\n\t\tfor(Document document: documents) {\n\t\t\tcounter++;\n\t\t\tString[] list = new String[2];\n\t\t\tint curPoints = (int)Math.round(document.getDouble(\"points\"));\n\t\t\tlist[0] = document.getString(\"username\");\n\t\t\tlist[1] = Integer.toString(curPoints);\n\t\t\trankList.add(list);\n\t\t\tif(counter == RANK_NUM){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn rankList;\n\t}", "public Map<String,Integer> getTradeValuesByEntity(List<Trade> tradeList,String tradeType) {\n\t\t\r\n\t\tMap<String,Double> entityValueMap= new TreeMap();\r\n\t\t\r\n\t\tfor(Trade t: tradeList){\r\n\t\t\tif (t.getInstructionType().equalsIgnoreCase(tradeType)) {\r\n\t\t\t\tString entityKey = t.getEntityName();\r\n\t\t\t\tdouble tradeAmount = t.getTotalAmount();\r\n\t\t\t\tif (entityValueMap.get(entityKey) != null) {\r\n\t\t\t\t\ttradeAmount += entityValueMap.get(entityKey);\r\n\t\t\t\t\tentityValueMap.replace(entityKey, tradeAmount);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tentityValueMap.put(entityKey, tradeAmount);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn getEntityRank(sortByDescendingValue(entityValueMap));\r\n\t\r\n\t}", "public int Rank();", "private Map<Integer, Integer> rankResults(List<PercolatorResult> resultList, PercolatorParams percParams) {\n \n PercolatorResultsRanker resultRanker = PercolatorResultsRanker.instance();\n return resultRanker.rankResultsByPeptide(resultList, percParams.hasQvalueCutoff(),\n percParams.hasPepCutoff(), percParams.hasDiscriminantScoreCutoff());\n }", "public void setRank(int aRank)\n {\n this.ranks = aRank;\n }", "public static void main(String[] args) {\n\n FootballPlayer fp1 = new FootballPlayer(\"fp1\");\n BaseballPlayer bsp1 = new BaseballPlayer(\"bsp1\");\n BasketballPlayer bkp1 = new BasketballPlayer(\"bkp1\");\n\n// issue players of different type can add to the same team\n// Team t1 = new Team(\"t1\");\n// t1.addPlayer(fp1);\n// t1.addPlayer(bsp1);\n// t1.addPlayer(bkp1);\n// System.out.println(t1.numberOfPlayers());\n\n Team<FootballPlayer> t2 = new Team<>(\"t2\");\n t2.addPlayer(fp1);\n// t2.addPlayer(bsp1);\n\n Team<BaseballPlayer> t3 = new Team<>(\"t3\");\n Team<BasketballPlayer> t4 = new Team<>(\"t4\");\n\n Team<FootballPlayer> t5 = new Team<>(\"t5\");\n\n t2.matchResult(t5,3,2);\n\n// t2.matchResult(t3,3,2);\n\n System.out.println(t2.compareTo(t5));\n// System.out.printf(t2.compareTo(t4)); // error\n\n\n }", "Response<Integer> getRank(String leaderboardId, int score, int scope);", "public HashMap<User, Integer> userMonthRanking(User user, LinkedList<User> friends, int method){\n LinkedList<User> allUsers = new LinkedList<>();\n HashMap<User, Integer> result = new HashMap<>();\n\n allUsers.add(user);\n allUsers.addAll(friends);\n\n int rank = 0;\n long lastTime = -1;\n int lastSteps = -1;\n double lastDistance = -1;\n int lastAchievementCount = -1;\n\n switch (method){\n case METHODS.TIME:\n //sort the data\n Collections.sort(allUsers, new SortMonthTime());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveTimeForMonth() != lastTime) {\n rank++;\n lastTime = next.getMyTimeline().getActiveTimeForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.DISTANCE:\n //sort the data\n Collections.sort(allUsers, new SortMonthDistance());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveDistanceForMonth() != lastDistance) {\n rank++;\n lastDistance = next.getMyTimeline().getActiveDistanceForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.STEPS:\n //sort the data\n Collections.sort(allUsers, new SortMonthSteps());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getStepsForMonth() != lastSteps) {\n rank++;\n lastSteps = next.getMyTimeline().getStepsForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.ACHIEVEMENTS:\n //sort the data\n Collections.sort(allUsers, new SortMonthAchievements());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getAchievementsForMonth() != lastAchievementCount) {\n rank++;\n lastAchievementCount = next.getMyTimeline().getAchievementsForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n }\n\n return result;\n }", "private HashMap<DIVISION, CompetitiveRank[]> createRankMap() {\n HashMap<DIVISION, CompetitiveRank[]> ranks = new HashMap<>();\n ranks.put(DIVISION.IRON, createRankTiers(DIVISION.IRON, 3));\n ranks.put(DIVISION.BRONZE, createRankTiers(DIVISION.BRONZE, 3));\n ranks.put(DIVISION.SILVER, createRankTiers(DIVISION.SILVER, 3));\n ranks.put(DIVISION.GOLD, createRankTiers(DIVISION.GOLD, 3));\n ranks.put(DIVISION.PLATINUM, createRankTiers(DIVISION.PLATINUM, 3));\n ranks.put(DIVISION.DIAMOND, createRankTiers(DIVISION.DIAMOND, 3));\n ranks.put(DIVISION.IMMORTAL, createRankTiers(DIVISION.IMMORTAL, 3));\n\n // No tiers\n ranks.put(DIVISION.UNRATED, createRankTier(DIVISION.UNRATED));\n ranks.put(DIVISION.RADIANT, createRankTier(DIVISION.RADIANT));\n return ranks;\n }", "private Map<String, List<Integer>> generateOptionRanksMapping(List<FeedbackResponseAttributes> responses) {\n\n Map<FeedbackResponseAttributes, Integer> normalisedRankOfResponse = getNormalisedRankForEachResponse(responses);\n\n Map<String, List<Integer>> optionRanks = new HashMap<>();\n for (FeedbackResponseAttributes response : responses) {\n updateOptionRanksMapping(optionRanks, response.recipient, normalisedRankOfResponse.get(response));\n }\n\n return optionRanks;\n }", "public static double[][] calculate_rank(double accuracyTst[][]){\r\n MatchedData array_acc = new MatchedData(accuracyTst);\r\n //test = new FriedmanTest(array_acc, 0.015,true);\r\n FriedmanTest test = new FriedmanTest(array_acc);\r\n MatchedData ranks = test.getRanks();\r\n \r\n return ranks.getData(); \r\n }", "private static void multipleSortOfFinalPlayerList() {\n\n sortedFinalPlayerList = new ArrayList<>();\n\n Comparator<Player> byLastName = (e1, e2) -> e1\n .getLastName().compareTo(e2.getLastName());\n\n Comparator<Player> byFirstName = (e1, e2) -> e1\n .getFirstName().compareTo(e2.getFirstName());\n\n Comparator<Player> byCountry = (e1, e2) -> e1\n .getCountry().compareTo(e2.getCountry());\n\n streamPlayerList.stream().sorted(byLastName.thenComparing(byFirstName).thenComparing(byCountry))\n .forEach(e -> System.out.print(e));\n Stream<Player> f = streamPlayerList.stream().sorted(byLastName.thenComparing(byFirstName).thenComparing(byCountry));\n f.forEach(r -> sortedFinalPlayerList.add(r));\n }", "public void rank(){\n\n\t}", "Response<Integer> getRank(String leaderboardId, String username, String uniqueIdentifier, int scope);", "public int getRank ()\n {\n return this.ranks; \n }", "public List<RankingListItem> getRankingList(String nickname) throws RuntimeException {\n User user = this.onlineUsers.get(nickname);\n if (user == null) {\n throw new IllegalStateException(\"An user must be online to request the score ranking list\");\n }\n try {\n TreeSet<User> rankingList = JSONMapper.findAndGet(\n this.onlinePath,\n user.getFriends(),\n UserViews.Online.class\n );\n rankingList.add(user);\n List<RankingListItem> serializableList = rankingList.stream()\n .sorted()\n .map(u -> new RankingListItem(u.getNick(), u.getScore()))\n .collect(Collectors.toList());\n return serializableList;\n } catch (IOException e) {\n throw new RuntimeException(\"Internal error\");\n }\n }", "public static List<Integer> climbingLeaderboard(List<Integer> ranked, List<Integer> player) {\n // Write your code here\n List<Integer> temp = new ArrayList<>();\n List<Integer> result = new ArrayList<>();\n //boolean isNext =false;\n\n temp=ranked.stream()\n .distinct()\n .collect(toList());\n int i = temp.size()-1; //rank 리스트의 마지막 인덱스 값\n\n /**\n * 확실하게 짚고 넘어가기 위한 부연 설명\n *\n * 1 . List player를 순회시키는데, List rank를 뒤에서부터 순회 한다.\n * (List rank를 오름차순 정렬하고 하려해봤는데 랭킹뽑으려고 하는 순간 머리가 꼬이기 시작했었음)\n * 2. 플레이어의 점수가 랭크된 점수보다 작아졌을 때 비로소 플레이어 점수가 랭크되는 순간이다.\n * 따라서 이 때(2번)의 i값이 랭크점수 순회중 만난 최초의 플레이어 점수보다 높아지는 위치가 된다.\n * 그러므로 이 위치의 다음자리가 비교하는 플레이어의 점수가 랭크되는 위치가 되겠다. i+1\n * 하지만 인덱스는 0부터 시작하기때문에 저장할땐 +1을 더 해주어 i+2로 해준다.\n * 3. while문을 통과했을 때 i가 0보다 작아 통과한 경우는 1등을 한 경우가 된다. 인덱스0보다 큰거니까\n * 따라서 i가 0보다 작은 지 for문 끝나기 전 체크 필요\n * 그 후 다음 score 가 while문에 들어갈땐 이전에 비교했던 인덱스값 다음을 비교하게 된다.\n */\n for(int score : player){\n while(i>=0){\n if(score>=temp.get(i)){\n i--;\n }else{\n result.add(i+2); //인덱스는 0부터시작하니까 +1 , 스코어가 랭크된점수보다 낮으므로 한 등수 밀려서 +1 따라서 총 +2\n break;\n }\n }\n if(i<0) result.add(1); //1위\n }\n\n\n\n //-----------------------기존 O(n^2) 풀이.. ---------------------------------------\n\n //2. 배열 순회 하며 범위 찾은인덱스 +1 (내림차순이므로)\n // 2-1. 양 끝 값보다 크거나 작을 경우 케이스 따로 분리\n // 이중루프로 계산 시 TIME OUT\n// for(int score : player){\n// for(int i=0; i<temp.size(); i++){\n// if(!isNext) {\n// if (score >= temp.get(i)) {\n// if(i==0){\n// result.add(1);\n// }else {\n// result.add((i+1)); //인덱스는 0부터 시작하므로\n// }\n// isNext = true;\n// }else if(score<=temp.get(temp.size()-1)){ //가장 작은 케이스\n// if(score==temp.get(temp.size()-1)){ //가장 작은 값과 같은 경우\n// result.add(temp.size());\n// }else{\n// result.add(temp.size()+1);\n// }\n// isNext=true;\n// }\n// }\n// }\n// isNext=false;\n// }\n result.forEach(System.out::println);\n return result;\n }", "public int calcRank() {\n sortCardsInHand();\n\n // check Royal flush\n if (this.areCardsInStraight() && this.cards[0].getValue() == 10 && areCardsInSameSuite()) return 10;\n\n // Straight flush: All five cards in consecutive value order, with the same suit\n if (areCardsInSameSuite() && areCardsInStraight()) return 9;\n\n int pairCheck = CardOperations.numberOfPairs(this.getHashMapOfValues());\n\n // Four of a kind: Four cards of the same value\n if (pairCheck == 4) return 8;\n\n // Full house: Three of a kind and a Pair\n if (pairCheck == 5) return 7;\n\n // Flush: All five cards having the same suit\n if (areCardsInSameSuite()) return 6;\n\n // Straight: All five cards in consecutive value order\n if (areCardsInStraight()) return 5;\n\n // Three of a kind: Three cards of the same value\n if (pairCheck == 3) return 4;\n\n // Two pairs: Two different pairs\n if (pairCheck == 2) return 3;\n\n // A pair: Two cards of same value\n if (pairCheck == 1) return 2;\n\n // High card: Highest value card\n return 1;\n }", "public List<Player> findPlayers(List<Role> rl) {\n List<Player> pl = new ArrayList<Player>();\n for(Player p: players){\n for(Role r: rl){\n if(r.equals(p.getRole())){\n pl.add(0, p);\n }\n }\n }\n return pl;\n }", "private CompetitiveRank[] createRankTiers(DIVISION division, int count) {\n CompetitiveRank[] ranks = new CompetitiveRank[count];\n for(int i = 0; i < ranks.length; i++) {\n ranks[i] = createRank(division, i + 1);\n }\n return ranks;\n }", "private void calculateIncomingRankings(List<ClientInstructions> instructions) throws ReportingSystemException {\r\n\t\tallIncomingRankings = incomingRankingService.evaluateRanking(instructions, incomingPredicate);\r\n\r\n\t}", "public int getRank(){\n\t\tswitch(getTkn()){\n\t\t\tcase Not:\n\t\t\treturn 7;\n\t\t\t\n\t\t\tcase Kali:\n\t\t\tcase Bagi:\n\t\t\tcase Mod:\n\t\t\tcase Div:\n\t\t\treturn 6;\n\t\t\t\n\t\t\tcase Tambah:\n\t\t\tcase Kurang:\n\t\t\treturn 5;\n\t\t\t\n\t\t\tcase KurangDari:\n\t\t\tcase LebihDari:\n\t\t\tcase KurangDariSamaDengan:\n\t\t\tcase LebihDariSamaDengan:\n\t\t\treturn 4;\n\t\t\t\t\t\t\n\t\t\tcase SamaDengan:\n\t\t\tcase TidakSamaDengan:\n\t\t\treturn 3;\n\t\t\t\n\t\t\tcase And:\n\t\t\treturn 2;\n\t\t\t\n\t\t\tcase Xor:\n\t\t\treturn 1;\n\t\t\t\n\t\t\tcase Or:\n\t\t\treturn 0;\n\n\t\t\tdefault:\n\t\t\treturn -999;\n\t\t}\n\t}", "public double evaluate(Ranker ranker, List<RankList> rl) {\n/* 694 */ List<RankList> l = rl;\n/* 695 */ if (ranker != null)\n/* 696 */ l = ranker.rank(rl); \n/* 697 */ return this.testScorer.score(l);\n/* */ }", "private Map<FeedbackResponseAttributes, Integer> getNormalisedRankForEachResponse(\n List<FeedbackResponseAttributes> responses) {\n\n // collect each giver's responses\n Map<String, List<FeedbackResponseAttributes>> responsesGivenByPerson = new HashMap<>();\n for (FeedbackResponseAttributes response : responses) {\n if (!responsesGivenByPerson.containsKey(response.giver)) {\n responsesGivenByPerson.put(response.giver, new ArrayList<FeedbackResponseAttributes>());\n }\n\n responsesGivenByPerson.get(response.giver)\n .add(response);\n }\n\n // resolve ties for each giver's responses\n Map<FeedbackResponseAttributes, Integer> normalisedRankOfResponse = new HashMap<>();\n for (Map.Entry<String, List<FeedbackResponseAttributes>> entry : responsesGivenByPerson.entrySet()) {\n Map<FeedbackResponseAttributes, Integer> rankOfResponse = new HashMap<>();\n for (FeedbackResponseAttributes res : responses) {\n FeedbackRankRecipientsResponseDetails frd = (FeedbackRankRecipientsResponseDetails) res.getResponseDetails();\n rankOfResponse.put(res, frd.answer);\n }\n\n normalisedRankOfResponse.putAll(obtainMappingToNormalisedRanksForRanking(rankOfResponse, entry.getValue()));\n }\n\n return normalisedRankOfResponse;\n }", "public interface IUserRankInfoDao {\n public List<String> searchById(Integer id);\n public List<Map<String,Object>> getRankFriend(String accountID) ;\n public List<Map<String,Object>> getRankListInfo(List accountIDs,int RandType);\n public List<Map<String,Object>> getRankListInfoByShellAll(List accountIDs);\n public List<Map<String,Object>> getRankListInfoByShell(List accountIDs);\n public List<Map<String,Object>> getMileageSumRankList (List accountIDs);\n public Map<String,Object> getMyselfRankInfoThisMonth (String accountID,int RankType);\n public Map<String,Object> getRankMyselfInfoByShellAll(String accountID);\n public Map<String,Object> getRankMyselfInfoByShell(String accountID);\n\n public List<Map<String,Object>> getRankChannelMember(String accountID);\n}", "public void rank(List<String> modelFiles, String testFile, String indriRanking) {\n/* 1325 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 1326 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* 1329 */ int nFold = modelFiles.size();\n/* */ \n/* 1331 */ List<RankList> samples = readInput(testFile);\n/* 1332 */ System.out.print(\"Preparing \" + nFold + \"-fold test data... \");\n/* 1333 */ FeatureManager.prepareCV(samples, nFold, trainingData, testData);\n/* 1334 */ System.out.println(\"[Done.]\");\n/* */ \n/* */ try {\n/* 1337 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indriRanking), \"UTF-8\"));\n/* 1338 */ for (int f = 0; f < nFold; f++) {\n/* */ \n/* 1340 */ List<RankList> test = testData.get(f);\n/* 1341 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFiles.get(f));\n/* 1342 */ int[] features = ranker.getFeatures();\n/* 1343 */ if (normalize) {\n/* 1344 */ normalize(test, features);\n/* */ }\n/* 1346 */ for (RankList l : test) {\n/* 1347 */ double[] scores = new double[l.size()];\n/* 1348 */ for (int j = 0; j < l.size(); j++)\n/* 1349 */ scores[j] = ranker.eval(l.get(j)); \n/* 1350 */ int[] idx = MergeSorter.sort(scores, false);\n/* 1351 */ for (int i = 0; i < idx.length; i++) {\n/* 1352 */ int k = idx[i];\n/* */ \n/* 1354 */ String str = l.getID() + \" Q0 \" + l.get(k).getDescription().replace(\"#\", \"\").trim() + \" \" + (i + 1) + \" \" + SimpleMath.round(scores[k], 5) + \" indri\";\n/* 1355 */ out.write(str);\n/* 1356 */ out.newLine();\n/* */ } \n/* */ } \n/* */ } \n/* 1360 */ out.close();\n/* */ }\n/* 1362 */ catch (Exception ex) {\n/* */ \n/* 1364 */ throw RankLibError.create(\"Error in Evaluator::rank(): \", ex);\n/* */ } \n/* */ }", "private List<List<Record>> sortEachBucketAndFlatten(List<List<Record>> tiedGroups, RankingType rankingType) {\n return tiedGroups.stream()\n .map(tiedGroup -> sortRecordsBy(tiedGroup, rankingType))\n .flatMap(List::stream)\n .collect(Collectors.toList());\n }", "public ArrayList<CollegeFootballTeam> rankTeams()\r\n\t{\r\n\t\tArrayList<CollegeFootballTeam> rankedTeams = new ArrayList<>();\r\n\t\t\r\n\t\t// Calls the selection sort method, which ranks the teams from lower to higher scores based on the sum of their votes.\r\n\t\t// The teams are placed into a new ArrayList. \r\n\t\trankedTeams = selectionSort(teams);\r\n\t\t\r\n\t\treturn rankedTeams;\r\n\t}", "public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;", "public void setRank(String value)\n {\n _rank = value;\n }", "private String rankingsToString () {\n\t\tStringBuilder ps = new StringBuilder();\n\t\tps.append(\"Craft ranking = \"+craftRanking.getSortedRanking()+\"\\n\");\n\t\tps.append(\"Hit ranking = \"+ hitRanking.getSortedRanking()+\"\\n\");\n\t\treturn ps.toString();\n\t}", "public int getPrefferedTypeIndex(List<String> availableTypes)\n\t\t{\n\t\t\t// TODO: Remove case-sensitivity?\n\t\t\tint best = -1;\n\t\t\tdouble bestPriority = -1;\n\t\t\t\n\t\t\tfor (int i = 0; i < availableTypes.size(); i++)\n\t\t\t{\n\t\t\t\tString type = availableTypes.get(i);\n\t\t\t\tif (this.acceptedTypes.containsKey(type))\n\t\t\t\t{\n\t\t\t\t\tdouble priority = this.acceptedTypes.get(type);\n\t\t\t\t\tif (priority == 1)\n\t\t\t\t\t\treturn i;\n\t\t\t\t\telse if (priority > bestPriority && priority != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tbest = i;\n\t\t\t\t\t\tbestPriority = priority;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn best;\n\t\t}", "boolean hasRanking();", "public void setRank(String rank) {\n this.rank = rank;\n }", "@Override\n public int getRank() {\n return rank;\n }", "public ArrayList<String> getOffendersRanking() {\n if (damages.isEmpty())\n return new ArrayList<>();\n\n ArrayList<String> tempNames = new ArrayList<>();\n int[] ricorrenze = new int[12];\n //TODO Do this with an HashMap like in KillShotTrack.getRanking()\n for (int i = 0; i < 12; i++)\n ricorrenze[i] = 0;\n\n Iterator i = damages.iterator();\n\n while (i.hasNext()) {\n String t = (String) i.next();\n if (tempNames.contains(t)) {\n ricorrenze[tempNames.indexOf(t)]++;\n } else {\n tempNames.add(t);\n ricorrenze[tempNames.indexOf(t)]++;\n }\n }\n\n return tempNames;\n /*return players who gave damages to this.player in order(in 0 highest damage)*/\n }", "public void rank(List<String> modelFiles, List<String> testFiles, String indriRanking) {\n/* 1377 */ int nFold = modelFiles.size();\n/* */ \n/* */ try {\n/* 1380 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indriRanking), \"UTF-8\"));\n/* */ \n/* 1382 */ for (int f = 0; f < nFold; f++) {\n/* */ \n/* */ \n/* 1385 */ List<RankList> test = readInput(testFiles.get(f));\n/* 1386 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFiles.get(f));\n/* 1387 */ int[] features = ranker.getFeatures();\n/* */ \n/* 1389 */ if (normalize) {\n/* 1390 */ normalize(test, features);\n/* */ }\n/* 1392 */ for (RankList l : test) {\n/* 1393 */ double[] scores = new double[l.size()];\n/* */ \n/* 1395 */ for (int j = 0; j < l.size(); j++) {\n/* 1396 */ scores[j] = ranker.eval(l.get(j));\n/* */ }\n/* 1398 */ int[] idx = MergeSorter.sort(scores, false);\n/* */ \n/* 1400 */ for (int i = 0; i < idx.length; i++) {\n/* 1401 */ int k = idx[i];\n/* 1402 */ String str = l.getID() + \" Q0 \" + l.get(k).getDescription().replace(\"#\", \"\").trim() + \" \" + (i + 1) + \" \" + SimpleMath.round(scores[k], 5) + \" indri\";\n/* 1403 */ out.write(str);\n/* 1404 */ out.newLine();\n/* */ } \n/* */ } \n/* */ } \n/* 1408 */ out.close();\n/* */ }\n/* 1410 */ catch (IOException ex) {\n/* */ \n/* 1412 */ throw RankLibError.create(\"Error in Evaluator::rank(): \", ex);\n/* */ } \n/* */ }", "Response<Ranks> getRanks(String leaderboardId, int score, int[] scopes);", "long getToRank();", "public static void main(String[] args) {\n int l1=1000, l2=1000;\n int[] a1=new int[l1];\n int[] a2=new int[l2];\n int[] combine = new int[l1+l2];\n\n Random r = new Random();\n for (int i=0; i<a1.length; ++i){\n a1[i]=r.nextInt(a1.length*3);\n combine[i]=a1[i];\n }\n\n for (int i=0; i<a2.length; ++i){\n a2[i]=r.nextInt(a2.length*3);\n combine[l1+i]=a2[i];\n }\n\n Arrays.sort(a1);\n Arrays.sort(a2);\n Arrays.sort(combine);\n\n cnt=0;\n int m = findByRank(a1, 0, a1.length, a2, 0, a2.length, (a1.length+a2.length)/2);\n int m2 = combine[combine.length/2-1];\n\n System.out.printf(\"m=%d, m2=%d, cnt=%d\", m, m2, cnt);\n\n\n\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "public LSPRanking getRanking () {\r\n return ranking;\r\n }", "@GET\n\t@Path(\"/getRankingExercises\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tList<Long> getRanking(@Nonnull @QueryParam(\"id\") List<Long> userIds);", "public String getRank() {\n if(dbMgr.checkAdmin(username))\n return \"Admin\";\n\n else if(dbMgr.checkBannedUser(username))\n return \"Banned\";\n\n else if(dbMgr.checkReviewUser(username))\n return \"Review User\";\n\n else if(dbMgr.checkPremiumUser(username))\n return \"Premium User\";\n\n else \n return \"user\";\n }", "public Builder setRanking(int value) {\n bitField0_ |= 0x00000010;\n ranking_ = value;\n onChanged();\n return this;\n }", "public List<Player> playMatch(List<Player> arrayListPlayers) {\n\n //instantiate Lists for winners / losers\n List<Player> winners = new ArrayList<>();\n List<Player> losers = new ArrayList<>();\n\n //Pairing up - each Player with the next Player, iterator runs for every 2\n for (int i = 0; i < arrayListPlayers.size(); i += 2) {\n\n System.out.println(arrayListPlayers.get(i).printName() + \" (\" + arrayListPlayers.get(i).score + \") vs \"\n + arrayListPlayers.get((i + 1) % arrayListPlayers.size()).printName() + \" (\" + arrayListPlayers.get(i + 1).score + \")\");\n\n //Extra layer of random scoring, so calculateScore is run with each round\n //Without this, players get an initial score that stay with them through the tournament\n arrayListPlayers.get(i).calculateScore();\n\n //Use score to decipher winner, if (i) score is greater than (i +1) score then add (i) to winners List\n if (arrayListPlayers.get(i).score > arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i));\n }\n //And if (i) score is less than (i + 1) score add (i + 1) to winners List\n if (arrayListPlayers.get(i).score < arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i + 1));\n\n\n //extra if statement to handle draws, if score is equal add player [0] to winners List, could randomise this?\n } else if\n (arrayListPlayers.get(i).score == arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i));\n }\n\n /**\n * Additional if statements for adding Player objects to new List 'losers'\n */\n //Create List of losers (not output)\n if (arrayListPlayers.get(i).score < arrayListPlayers.get(i + 1).score) {\n winners.remove(arrayListPlayers.get(i));\n losers.add(arrayListPlayers.get(i));\n\n } else if (arrayListPlayers.get(i).score > arrayListPlayers.get(i + 1).score) {\n winners.remove(arrayListPlayers.get(i + 1));\n losers.add(arrayListPlayers.get(i + 1));\n }\n }\n\n /**\n * This section of the playRound method outputs the list of winners for each round\n * A sleep function was added in attempt to slow down the output\n */\n\n System.out.println(\"\\n-x-x-x-x-x-x-x W I N N E R S x-x-x-x-x-x-x-\\n\");\n //Loop through winners and attach names\n try {\n sleep(10);\n for (int i = 0; i < winners.size(); i++) {\n //SysOut to console the winners\n System.out.println(winners.get(i).printName() + \" won with \" + winners.get(i).score + \" points\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //Execution completed return winners List<>\n return winners;\n\n }", "private static void determineFinalRanks(Fold fold, ParametersManager params) {\n for (int currRank = fold.getNumInst(); currRank >= 1; currRank--) {\n Instance instSmallestWeight = fold.getInstSmallestWeight(); // selects the next less important instance\n\n instSmallestWeight.setRank(currRank); // ranks the instance by its order of elimination\n instSmallestWeight.setWeight(Double.POSITIVE_INFINITY); // the instance will be disregarded from now\n\n // removes the traces of the ranked instance out of the other instances\n fold.clearInstTraces(instSmallestWeight);\n\n /* For instances with rank value smaller than the number of neighbors, the relative position in the ranking\n is irrelevant (and, by construction, impossible to determine). Therefore, only the first steps of the\n ranking are performed for these instances. */\n if (currRank <= params.getNumNeighbors()) continue;\n\n // updates the distances matrix, setting the distance to or from the ranked instance to infinite\n fold.updateDistMatrix(instSmallestWeight.getId());\n\n // updates the weights of instances that had the eliminated instance among its nearest neighbors\n InstanceWeighting.updateAssociatesWeights(fold, instSmallestWeight, params);\n }\n }", "public List<Pair<T>> computeRating(List<Pair<T>> samples,int ratingType){\n\t\treturn RatingFunction.getInstance().compute(samples, ratingType,level);\n\t}", "public void setRank(Integer rank) {\n this.rank = rank;\n }", "public abstract List<ScorePackage> getScores(List<T> observationList);", "public void setRank(int rank) {\n this.rank = rank;\n }", "KingdomRank getRank(KingdomUser user);", "public String getRankString(){ return this.rank; }", "@Override\r\n\tpublic List<Pilot> findPilotsByTypeRating(String typeCode) {\r\n\t\tList<Pilot> pilotsByTypeRating = new ArrayList<>();\r\n\t\tfor (Pilot p : pilots) {\r\n\t\t\tif (p.isQualifiedFor(typeCode)) {\r\n\t\t\t\tpilotsByTypeRating.add(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pilotsByTypeRating;\r\n\t}", "public static Vector<Double> getPerfectRanking(Vector<Double> rels){\n Vector<Double> ideal = new Vector<Double>();\n for(int i=0;i<rels.size();i++){\n ideal.add(rels.get(i));\n }\n Comparator<Double> comp = Collections.reverseOrder(); \t\t\n Collections.sort(ideal,comp);\n return ideal;\n }", "public void setRank(int value);", "private static ArrayList<MP> rankSimilarMPs(ArrayList<MP> pSelectedMPs)\n\n\t{\n\t\t// HashMap is used to provide an easy way to keep only the highest score for each MP.\n\t\tHashMap<String, Double> ratedMPsMap = new HashMap<String, Double>();\n\t\tHashMap<String, Double> tempRatedMPs;\n\t\tArrayList<RatedMP> sortedMPsArray = new ArrayList<RatedMP>(); // will be used to sort the MPs by their rating.\n\t\tfor (MP mp : pSelectedMPs)\n\t\t{\n\t\t\ttempRatedMPs = getSimilarMPs(mp);\n\t\t\tfor (String key : tempRatedMPs.keySet())\n\t\t\t{\n\t\t\t\t// if this is the first MP we look at, put all the MPs into the hashmap\n\t\t\t\tif (!ratedMPsMap.containsKey(key))\n\t\t\t\t{\n\t\t\t\t\tratedMPsMap.put(key, tempRatedMPs.get(key));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// otherwise, keep only the lowest (best) similarity score for any MP.\n\t\t\t\t\tif (ratedMPsMap.get(key) > tempRatedMPs.get(key))\n\t\t\t\t\t{\n\t\t\t\t\t\tratedMPsMap.put(key, tempRatedMPs.get(key));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (String key : ratedMPsMap.keySet())\n\t\t{\n\t\t\t// Convert the hashmap into an ArrayList.\n\t\t\tsortedMPsArray.add(new RatedMP(Capone.getInstance().getParliament().getMP(key), ratedMPsMap.get(key)));\n\t\t}\n\t\tCollections.sort(sortedMPsArray); // sort the MPs by their ratings.\n\t\t// return the MPs in sorted order - without the MPs in the original parameter list.\n\t\treturn removeOverlap(convertToRatedMPList(sortedMPsArray), pSelectedMPs);\n\t}", "public static SuggestHand shuffleAndAssignCards(\r\n ArrayList< Player > players )\r\n {\r\n int counter = 0; // Iterator pointer to keep track of the\r\n // cards\r\n SuggestHand solutionCards = null;\r\n\r\n /*\r\n * Grab all the names and types of each card Had to do some list\r\n * manipulation to get the enums into a modifiable list.\r\n */\r\n List< WeaponType > weaponEnums = new ArrayList< WeaponType >(\r\n Arrays.asList( WeaponCard.WeaponType.values() ) );\r\n List< CharacterName > characterEnums = new ArrayList< CharacterName >(\r\n Arrays.asList( CharacterCard.CharacterName.values() ) );\r\n List< RoomName > roomEnums = new ArrayList< RoomName >(\r\n Arrays.asList( RoomCard.RoomName.values() ) );\r\n\r\n //System.out.println( characterEnums.size() );\r\n\r\n // Card equivalents of the enums\r\n ArrayList< CharacterCard > characters = new ArrayList< CharacterCard >();\r\n ArrayList< RoomCard > rooms = new ArrayList< RoomCard >() ;\r\n ArrayList< WeaponCard > weapons = new ArrayList< WeaponCard >();\r\n\r\n for( CharacterName c : characterEnums )\r\n {\r\n characters.add( new CharacterCard( c ) );\r\n }\r\n\r\n for( RoomName r : roomEnums )\r\n {\r\n rooms.add( new RoomCard( r ) );\r\n }\r\n\r\n for( WeaponType w : weaponEnums )\r\n {\r\n weapons.add( new WeaponCard( w ) );\r\n }\r\n\r\n // Shuffle the ArrayLists\r\n Collections.shuffle( weapons );\r\n Collections.shuffle( characters );\r\n Collections.shuffle( rooms );\r\n\r\n //System.out.println( characters.get( 0 ).getCharacterName() );\r\n\r\n // Remove the top card from each card type and store as solution cards\r\n try\r\n {\r\n solutionCards = new SuggestHand( characters.remove( 0 ), rooms.remove( 0 ), weapons.remove( 0 ) );\r\n\r\n } catch( Exception e )\r\n {\r\n System.out.println( \"Error generating solution cards.\" );\r\n e.printStackTrace();\r\n System.exit( 0 );\r\n }\r\n\r\n // Combine all cards into one larger deck\r\n List< Card > deck = new ArrayList< Card >();\r\n deck.addAll( characters );\r\n\r\n deck.addAll( rooms );\r\n\r\n deck.addAll( weapons );\r\n\r\n\r\n // Shuffle the deck and assign to each player sequentially\r\n Collections.shuffle( deck );\r\n\r\n\r\n /*\r\n * Loops through the cards and players, assigning the cards to players\r\n * one by one.\r\n */\r\n for( Card card : deck )\r\n {\r\n players.get( counter % players.size() ).setCard( card );\r\n counter++;\r\n }\r\n\r\n // DEBUG Print statements to show the cards for each player\r\n// for( Player p : players )\r\n// {\r\n// System.out.println( p.PlayerNumber+ \" \" + p.getHand().toString() );\r\n// }\r\n\r\n // Return the three cards to be used as the solution cards.\r\n return solutionCards;\r\n\r\n }", "private void formatTopScore(LeaderboardAdapter.ViewHolder holder, int position,\n int titlePosition, String scoreType) {\n int rank = position - titlePosition;\n int rankIndex = rank - 1;\n holder.mRank.setText(String.valueOf(rank));\n \n holder.mTitle.setTypeface(Typeface.SANS_SERIF, Typeface.NORMAL);\n \n if (scoreType.equals(AccessKeys.getTotalScoreRef())) {\n String username = topTotalScorers[rankIndex].getUsername();\n String formattedScore = NumberFormatter.formatNumber(topTotalScorers[rankIndex]\n .getTotalPoints());\n \n holder.mTitle.setText(username);\n holder.mValue.setText(formattedScore);\n \n } else if (scoreType.equals(AccessKeys.getAverageScoreRef())) {\n String username = topAvgScorers[rankIndex].getUsername();\n String formattedScore = NumberFormatter.formatNumber(topAvgScorers[rankIndex]\n .getAveragePoints());\n \n holder.mTitle.setText(username);\n holder.mValue.setText(formattedScore);\n }\n }", "public ArrayList<Double> computeRanks(ArrayList<String> vertices) {\r\n\t\t// TODO : Add code here\r\n\t\tArrayList<Double> result=new ArrayList<>();\r\n\t\tfor(int i=0;i<vertices.size();i++){\r\n\t\t\tString url=vertices.get(i);\r\n\t\t\tArrayList<String> edges=internet.getEdgesInto(url);\r\n\t\t\tdouble sum= edges.stream().mapToDouble(edge -> internet.getPageRank(edge) / internet.getOutDegree(edge)).sum();\r\n\t\t\tdouble rank=0.5+0.5*sum;\r\n\t\t\tresult.add(i,rank);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public Direction playerToHelpGivenRank(Direction ourCorner, int rank) {\r\n PriorityQueue<DirectionScoreBind> scores = new PriorityQueue<DirectionScoreBind>();\r\n for (Direction player : Direction.values()) {\r\n if(player.equals(ourCorner)) // don't look at ourselves\r\n continue;\r\n\r\n scores.add(new DirectionScoreBind(player, getAverage(playerScores.get(player)), getSum(playerScores.get(player))));\r\n }\r\n\r\n for(int i = 1; i < rank; i++) {\r\n scores.poll();\r\n }\r\n\r\n return scores.peek().getDirection();\r\n }" ]
[ "0.59487283", "0.59468764", "0.58452696", "0.57657266", "0.55873233", "0.5583242", "0.5533759", "0.5525222", "0.551933", "0.55150723", "0.5500418", "0.5472708", "0.5462471", "0.5433949", "0.5424737", "0.54246", "0.5424587", "0.5411512", "0.5331747", "0.53002846", "0.5287875", "0.52108526", "0.5195481", "0.5170852", "0.51655567", "0.5161917", "0.5152707", "0.5140226", "0.51364285", "0.51323974", "0.51323974", "0.5106577", "0.5104706", "0.5093417", "0.50530803", "0.5051249", "0.50499564", "0.50450766", "0.5034717", "0.5019612", "0.5017605", "0.5003421", "0.49989897", "0.4947899", "0.49432132", "0.4941882", "0.4941364", "0.4940669", "0.4927134", "0.49267304", "0.4896095", "0.48802072", "0.48585072", "0.48464555", "0.4843361", "0.48287418", "0.4825069", "0.48209926", "0.4820037", "0.48119846", "0.48073646", "0.48062035", "0.48033407", "0.47578388", "0.47494608", "0.47441006", "0.47193265", "0.4706552", "0.47046313", "0.46952376", "0.46742517", "0.46724316", "0.46680886", "0.4662358", "0.46575835", "0.4656673", "0.46356598", "0.46266693", "0.4619384", "0.46162692", "0.46134266", "0.4613366", "0.46123624", "0.46103197", "0.45925632", "0.4582652", "0.45824704", "0.45761046", "0.45736566", "0.4571645", "0.4567928", "0.45652938", "0.4563965", "0.45587018", "0.4558409", "0.45558813", "0.45543048", "0.45520478", "0.45508772", "0.4550575" ]
0.67971426
0
Sorts within each bucket of tied players, and then flattens the twolevel hierarchy of tied buckets into a single level list of tied buckets.
private List<List<Record>> sortEachBucketAndFlatten(List<List<Record>> tiedGroups, RankingType rankingType) { return tiedGroups.stream() .map(tiedGroup -> sortRecordsBy(tiedGroup, rankingType)) .flatMap(List::stream) .collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void multipleSortOfFinalPlayerList() {\n\n sortedFinalPlayerList = new ArrayList<>();\n\n Comparator<Player> byLastName = (e1, e2) -> e1\n .getLastName().compareTo(e2.getLastName());\n\n Comparator<Player> byFirstName = (e1, e2) -> e1\n .getFirstName().compareTo(e2.getFirstName());\n\n Comparator<Player> byCountry = (e1, e2) -> e1\n .getCountry().compareTo(e2.getCountry());\n\n streamPlayerList.stream().sorted(byLastName.thenComparing(byFirstName).thenComparing(byCountry))\n .forEach(e -> System.out.print(e));\n Stream<Player> f = streamPlayerList.stream().sorted(byLastName.thenComparing(byFirstName).thenComparing(byCountry));\n f.forEach(r -> sortedFinalPlayerList.add(r));\n }", "public List<PwPair> getGroupedPwPairsSortedByRank() {\n // Get all valid PwPairs.\n List<PwPair> allPwPairs = getPwPairs();\n\n // Group pairs with the same groupId, keeping only the top-ranked PwPair.\n List<PwPair> groupedPwPairs = removeDuplicateGroupIds(allPwPairs, null);\n\n // Sort by descending rank.\n Collections.sort(groupedPwPairs, Collections.reverseOrder());\n\n // Remove duplicate site URLs.\n return removeDuplicateSiteUrls(groupedPwPairs);\n }", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "public List<Map.Entry<Chromosome, BigDecimal>> Tournament()\r\n\t{\n\t\tint parentsAdded=0;\r\n\t\tList<Map.Entry<Chromosome, BigDecimal>> listParents= new ArrayList();\r\n\t\tList<Map.Entry<Chromosome, BigDecimal>> listCandidates = new ArrayList<Map.Entry<Chromosome, BigDecimal>>(p.getChromosomes().entrySet());\r\n\t\twhile(parentsAdded<ConfigurationsGA.SIZE_PARENTSFORCROSSOVER)\r\n\t\t{\r\n\t\t\t//here we randomize the list in order to select k random elements for the tournament\r\n\t\t\tCollections.shuffle(listCandidates);\r\n\t\t\tMap.Entry<Chromosome, BigDecimal> best=null;\r\n\r\n\t\t\tfor(int i=0; i<ConfigurationsGA.K_TOURNMENT; i++)\r\n\t\t\t{\r\n\r\n\t\t\t\tif(best==null || listCandidates.get(i).getValue().intValue()>best.getValue().intValue())\r\n\t\t\t\t{\r\n\t\t\t\t\tbest=listCandidates.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//here we add the champion as a parent\r\n\t\t\tlistParents.add(best);\r\n\t\t\tparentsAdded++;\r\n\t\t}\r\n\t\treturn listParents;\r\n\t}", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "public PlayerProfile[] getLeaderboardOrdered() {\r\n PlayerProfile[] temp = new PlayerProfile[players.length];\r\n for(int i = 0; i < players.length; i++) {\r\n temp[i] = players[i].getPlayerProfile();\r\n }\r\n int n = temp.length;\r\n //bubble sort...\r\n for (int i = 0; i < n-1; i++)\r\n for (int j = 0; j < n-i-1; j++)\r\n if (temp[j].getWins() > temp[j+1].getWins())\r\n {\r\n // swap arr[j+1] and arr[j]\r\n PlayerProfile temp2 = temp[j];\r\n temp[j] = temp[j+1];\r\n temp[j+1] = temp2;\r\n }\r\n return temp;\r\n }", "private void initAndSortAllHands() {\n\t\tArrayList<Card> sevenCards;\n\t\tPlayer player;\n\n\t\t// initalize the seven cards hand\n\t\tfor (int i = 0; i < table.getTablePlayers().size(); i++) {\n\t\t\tsevenCards = new ArrayList<Card>(7);\n\t\t\tplayer = table.getTablePlayers().get(i);\n\n\t\t\tsevenCards.add(player.getHoleCard1());\n\t\t\tsevenCards.add(player.getHoleCard2());\n\t\t\tsevenCards.add(dealer.getFlop()[0]);\n\t\t\tsevenCards.add(dealer.getFlop()[1]);\n\t\t\tsevenCards.add(dealer.getFlop()[2]);\n\t\t\tsevenCards.add(dealer.getTurn());\n\t\t\tsevenCards.add(dealer.getRiver());\n\n\t\t\ttable.getTablePlayers().get(i).setSevenCardsTempHand(sevenCards);\n\t\t}\n\n\t\t// sort the hand\n\t\tfor (int i = 0; i < table.getTablePlayers().size(); i++)\n\t\t\ttable.getTablePlayers().get(i).sortHandByRank(table.getTablePlayers().get(i).getSevenCardsTempHand());\n\t}", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "public static void SortPlayers () {\r\n boolean sorted = false;\r\n Player temp;\r\n\r\n while (!sorted) {\r\n sorted = true;\r\n for (int i = 0; i < player.length - 1; i++) {\r\n if (player[i].score > player[i + 1].score) {\r\n\r\n // SWAP THE OBJECTS' POSITION IN THE ARRAY\r\n temp = player[i];\r\n player[i] = player[i + 1];\r\n player[i + 1] = temp;\r\n\r\n sorted = false;\r\n }\r\n\r\n }\r\n }\r\n\r\n }", "private List<List<Record>> sortRecordsBy(List<Record> unsortedRecords, RankingType rankingType) {\n Comparator<Long> comparator = rankingType.isDescending()\n ? Comparator.reverseOrder()\n : Comparator.naturalOrder();\n SortedMap<Long, List<Record>> scoreGroups = new TreeMap<>(comparator);\n for (Record record : unsortedRecords) {\n Long score = rankingType.getScoreFunction().apply(record);\n if (scoreGroups.containsKey(score)) {\n scoreGroups.get(score).add(record);\n } else {\n scoreGroups.put(score, new LinkedList<>());\n scoreGroups.get(score).add(record);\n }\n }\n\n return new ArrayList<>(scoreGroups.values());\n }", "public static void sortByFitlvl() {\n Collections.sort(Population);\n if (debug) {\n debugLog(\"\\nSorted: \");\n printPopulation();\n }\n }", "static List<String> topToys (int numToys, int topToys, List<String> toys, int numQuotes, List<String> quotes) {\n Map<String, List<Integer>> map = new HashMap<>();\n //Step 2: Put all the toys in hashmap with count 0\n for (String toy : toys) {\n map.put(toy, new ArrayList<>(Arrays.asList(0,0)));\n }\n //Collections.addAll(toys);\n //Step 3: split the quotes\n for (String quote :quotes) {\n //Step 3: Create a hashSet for all the toys\n Set<String> hashSet = new HashSet<>();//Fresh for each quote to count how many different quotes does the toy appear\n String[] splitQuote = quote.toLowerCase().split(\"\\\\W+\");//all non-word characters besides[a-z,0-9]\n for (String sq : splitQuote) {\n if (!map.containsKey(sq)) {//this is none of the toy\n //map.get(sq).set(0,1);\n continue;\n }\n else {\n map.get(sq).set(0,map.get(sq).get(0)+1);//increment the first element of list: this is total count of toys appearance\n if (!hashSet.contains(sq)) {\n map.get(sq).set(1,map.get(sq).get(1)+1);//increment the second element of the list: and then added to hash Set.\n //hashSet and index 1 will decide how many quotes the toys did appear\n }\n System.out.println(\"adding this to hashSet-->\"+sq);\n hashSet.add(sq);\n }\n }\n }\n map.forEach((key, value) -> System.out.println(\"Key=\" + key + \" and Value=\" + value));\n PriorityQueue<String> pq = new PriorityQueue<>((t1,t2) ->{\n if (!map.get(t1).get(0).equals(map.get(t2).get(0))) return map.get(t1).get(0)-map.get(t2).get(0);\n if (!map.get(t1).get(1).equals(map.get(t2).get(1))) return map.get(t1).get(1) - map.get(t2).get(1);\n return t1.compareTo(t2);\n });\n if (topToys > numToys) {\n for (String toy : map.keySet()) {\n if (map.get(toy).get(0)>0) pq.add(toy);\n }\n }\n else {\n for (String toy: toys) {\n pq.add(toy);\n if (pq.size() > topToys) pq.poll();\n }\n }\n List<String> output = new ArrayList<>();\n while (!pq.isEmpty()) {\n output.add(pq.poll());\n }\n Collections.reverse(output);\n return output;\n }", "private static final List<Fooable> sortFooables(\n \t\t\tMap<Fooable, Integer> fooPairs) {\n \t\t// Create a list of Map.Entries based on the input Map\n \t\tList<Map.Entry<Fooable, Integer>> pairList = new ArrayList<>();\n \t\tpairList.addAll(fooPairs.entrySet());\n \n \t\t// Sort the list of Map.Entries containing Fooables and Levenshtein\n \t\t// Distances\n \t\tCollections.sort(pairList,\n \t\t\t\tnew Comparator<Map.Entry<Fooable, Integer>>() {\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\t// Initially sort by Levenshtein Distance\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t// Construct a sorted list of Fooables\n \t\tList<Fooable> sortedList = new ArrayList<>();\n \t\tfor (Map.Entry<Fooable, Integer> pair : pairList) {\n \t\t\tsortedList.add(pair.getKey());\n \t\t}\n \n \t\treturn sortedList;\n \t}", "private void sortSongs(Context context)\n {\n boolean foundArtist;\n for (Song song : songs)\n {\n foundArtist = false;\n for (Artist artist : artists)\n {\n if (song.artistName.equals(artist.name))\n {\n artist.addSong(song);\n foundArtist = true;\n break;\n }\n }\n if (!foundArtist)\n artists.add(new Artist(song));\n }\n\n //sorts all songs\n sortSongs(songs);\n\n //sort artists\n sortArtists(artists);\n\n //sort albums, songs and set cover\n for (Artist artist : artists)\n {\n //albums\n sortAlbums(artist.albums);\n\n for (Album album : artist.albums)\n {\n //sort album songs\n sortSongs(album.songs);\n\n //set cover\n album.cover = ImageLoader.getAlbumart(context, album.songs.get(0).albumId);\n }\n }\n }", "public void bucketSort() {\n MyArray ten = new MyArray();\n MyArray hundred = new MyArray();\n MyArray thousand = new MyArray();\n MyArray tenThousand = new MyArray();\n MyArray hundredThousand = new MyArray();\n MyArray million = new MyArray();\n MyArray tenMillion = new MyArray();\n MyArray hundredMillion = new MyArray();\n MyArray billion = new MyArray();\n\n for (int i = 0; i < array.length; i++) {\n if ((int) array[i] / 10 < 0) {\n ten.add(array[i]);\n } else if ((int) array[i] / 100 < 0) {\n hundred.add(array[i]);\n } else if ((int) array[i] / 1000 < 0) {\n thousand.add(array[i]);\n } else if ((int) array[i] / 10000 < 0) {\n tenThousand.add(array[i]);\n } else if ((int) array[i] / 100000 < 0) {\n hundredThousand.add(array[i]);\n } else if ((int) array[i] / 1000000 < 0) {\n million.add(array[i]);\n } else if ((int) array[i] / 10000000 < 0) {\n tenMillion.add(array[i]);\n } else if ((int) array[i] / 100000000 < 0) {\n hundredMillion.add(array[i]);\n } else {\n billion.add(array[i]);\n }\n }\n\n ten = ten.radixSort(ten);\n hundred = hundred.radixSort(hundred);\n thousand = thousand.radixSort(thousand);\n tenThousand = tenThousand.radixSort(tenThousand);\n hundredThousand = hundredThousand.radixSort(hundredThousand);\n million = million.radixSort(million);\n tenMillion = tenMillion.radixSort(tenMillion);\n hundredMillion = hundredMillion.radixSort(hundredMillion);\n billion = billion.radixSort(billion);\n\n int j = 0;\n for (int i = 0; i < ten.getSize(); i++) {\n array[i] = (T) ten.get(i);\n j++;\n }\n for (int i = 0; i < hundred.getSize(); i++) {\n array[i] = (T) hundred.get(i);\n j++;\n }\n for (int i = 0; i < thousand.getSize(); i++) {\n array[i] = (T) thousand.get(i);\n j++;\n }\n for (int i = 0; i < tenThousand.getSize(); i++) {\n array[i] = (T) tenThousand.get(i);\n j++;\n }\n for (int i = 0; i < hundredThousand.getSize(); i++) {\n array[i] = (T) hundredThousand.get(i);\n j++;\n }\n for (int i = 0; i < million.getSize(); i++) {\n array[i] = (T) million.get(i);\n j++;\n }\n for (int i = 0; i < tenMillion.getSize(); i++) {\n array[i] = (T) tenMillion.get(i);\n j++;\n }\n for (int i = 0; i < hundredMillion.getSize(); i++) {\n array[j] = (T) hundredMillion.get(i);\n j++;\n }\n for (int i = 0; i < billion.getSize(); i++) {\n array[j] = (T) billion.get(i);\n j++;\n }\n\n }", "public static ArrayList<FootballClub> sortClubsByGoals(ArrayList<FootballClub> guiSeasonFilteredClubs) {\n\n // comparator for sorting\n Comparator<FootballClub> comparator = (club1, club2) -> {\n\n if(club1.getTotalGoalsScored() < club2.getTotalGoalsScored()){\n return 1;\n }\n\n return -1;\n };\n\n // checks if clubs are present to sort\n if (guiSeasonFilteredClubs != null) {\n guiSeasonFilteredClubs.sort(comparator);\n\n }\n return guiSeasonFilteredClubs;\n }", "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 ArrayList<IPlayer> sortPlayerAfterPoints() {\n ArrayList<IPlayer> arrlist = new ArrayList<>();\n\n iPlayerList.entrySet().stream().map((pair) -> (IPlayer) pair.getValue()).forEachOrdered((ip) -> {\n arrlist.add(ip);\n });\n\n Collections.sort(arrlist, (IPlayer p1, IPlayer p2) -> {\n try {\n if (p1.getPoints() == p2.getPoints()) {\n return 0;\n } else if (p1.getPoints() > p2.getPoints()) {\n return -1;\n } else {\n return 1;\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n return 0;\n });\n\n return arrlist;\n }", "public List<GameStateChild> orderChildrenWithHeuristics(List<GameStateChild> children)\n {\n \tList<Double> childUtils = new ArrayList<Double>();\n \tList<Double> tempUtils = new ArrayList<Double>();\n \tList<GameStateChild> tempChildren = new ArrayList<GameStateChild>();\n \t\n \tdouble tempUtil;\n \tint tempIndex = 0;\n \tint priority = 1;\n \t\n \tfor(int i = 0; i < children.size(); i++) {\n \t\tGameStateChild child = children.get(i);\n \t\tSet<MapLocation> myUnitLocations = new HashSet<MapLocation>();\n \t\tchildUtils.add(i, child.state.getUtility());\n \t}\n \t\n \ttempUtils = childUtils;\n \tCollections.sort(childUtils);\n \t\n \tfor(int j = 0; j < children.size(); j++) {\n \t\t\n \t\t//Utility value to be found in unsorted array\n \t\ttempUtil = childUtils.get(j);\n \t\t\n \t\tfor(int k = 0; k < children.size(); k++) {\n \t\t\t\n \t\t\t//If the utility value is the same as this value in the unsorted array, store the index\n \t\t\tif(tempUtil == tempUtils.get(k))\n \t\t\t\ttempIndex = k;\n \t\t}\n \t\t\n \t\t//Add the child to the correct position in a temporary list\n \t\ttempChildren.add(j, children.get(tempIndex));\n \t} \t\n return tempChildren;\n }", "public List<PwPair> getPwPairsSortedByRank() {\n // Get all valid PwPairs.\n List<PwPair> allPwPairs = getPwPairs();\n\n // Sort the list in descending order.\n Collections.sort(allPwPairs, Collections.reverseOrder());\n\n // Filter the list.\n return removeDuplicateSiteUrls(allPwPairs);\n }", "void bucketSort(float arr[], int k) {\r\n \tif(k<=0)\r\n \t\treturn;\r\n \t\r\n \tLinkedList<Float> buckets[] = new LinkedList[k];\r\n \tfor(int i=0; i<k; i++) {\r\n \t\tbuckets[i]= new LinkedList<Float>();\r\n \t}\r\n \tfor(int i=0; i<arr.length; i++) {\r\n \t\tfloat index=arr[i]*k;\r\n \t\tbuckets[(int)index].add(arr[i]);\r\n \t}\r\n \tfor(int i=0; i<k; i++) {\r\n \t\tCollections.sort(buckets[i]);\r\n \t}\r\n \tint index=0;\r\n \tfor(int i=0;i<k; i++) {\r\n \t\tfor(int j=0; j<buckets[i].size(); j++) {\r\n \t\t\tarr[index++]=buckets[i].get(j);\r\n \t\t}\r\n \t}\r\n }", "GroupBuckets buckets();", "public void sortHighScores(){\n for(int i=0; i<MAX_SCORES;i++){\n long score = highScores[i];\n String name= names[i];\n int j;\n for(j = i-1; j>= 0 && highScores[j] < score; j--){\n highScores[j+1] = highScores[j];\n names[j+1] = names[j];\n }\n highScores[j+1] = score;\n names[j+1] = name;\n }\n }", "private void sortByWeight()\n\t{\n\t\tfor(int i=1; i<circles.size(); i++)\n\t\t{\n\t\t\tPVCircle temp = circles.get(i);\n\t\t\tint thisWeight = circles.get(i).getWeight();\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--)\n\t\t\t{\n\t\t\t\tint compWeight = circles.get(j).getWeight();\n\t\t\t\tif(thisWeight < compWeight)\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tcircles.set(j+1, circles.get(j));\n\t\t\t}\n\t\t\tcircles.set(j+1, temp);\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n TreeSet<Person> personsByName=new TreeSet<>(new NameComparator());\n personsByName.add(new Person(\"Popescu\", 27));\n personsByName.add(new Person(\"Ionescu\", 32));\n personsByName.add(new Person(\"Andrei\", 18));\n\n for (Person p:personsByName){\n System.out.println(\"nume: \"+p.getName()+\", varsta:\"+p.getAge());\n }\n\n //creating a TreeSet with persons sorted by age\n TreeSet<Person> personsByAge=new TreeSet<>(new AgeComparator());\n personsByAge.addAll(personsByName);\n\n for (Person p:personsByAge){\n System.out.println(\"nume: \"+p.getName()+\", varsta:\"+p.getAge());\n }\n\n //creating an HashMap with persons and hobbies\n HashMap<Person, List<Hobby>> personHobbies=new HashMap<>();\n\n Adress a1=new Adress(\"Lacul Morii\", \"Bucuresti\", \"Romania\");\n Adress a2=new Adress(\"Tineretului\", \"Bucuresti\", \"Romania\");\n Adress a3=new Adress(\"Bois de Vincennes\", \"Paris\", \"France\");\n Adress a4=new Adress(\"Via Capella\", \"Nocelle\", \"Italy\");\n\n List<Adress> adressesForHobby1=new ArrayList<>();\n adressesForHobby1.add(a1);\n adressesForHobby1.add(a2);\n adressesForHobby1.add(a4);\n\n List<Adress> adressesForHobby2=new ArrayList<>();\n adressesForHobby2.add(a3);\n adressesForHobby2.add(a4);\n\n Hobby hobby1=new Hobby(\"running\", 4, adressesForHobby1);\n Hobby hobby2=new Hobby(\"cycling\", 3, adressesForHobby2);\n\n List<Hobby> hobbies=new ArrayList<>();\n hobbies.add(hobby1);\n hobbies.add(hobby2);\n\n Person person=new Person(\"Popescu\", 27);\n personHobbies.put(person, hobbies);\n for (Hobby h: personHobbies.get(person)){\n for (Adress adr: h.getAdresses()){\n System.out.println(h.getName()+\" \"+adr.getCountry());\n }\n }\n\n\n\n\n\n }", "public static void quickSortTest(){\n\t\tTransformer soundwave = new Transformer(\"Soundwave\", 'D', new int[] {8,9,2,6,7,5,6,10});\n\t\tTransformer bluestreak = new Transformer(\"Bluestreak\", 'A', new int[] {6,6,7,9,5,2,9,7});\n\t\tTransformer hubcap = new Transformer(\"Hubcap\", 'A', new int[] {4,4,4,4,4,4,4,4});\n\t\tTransformer abominus = new Transformer(\"Abominus\", 'D', new int[] {10,1,3,10,5,10,8,4});\n\t\t\n\t\tgame.addTransformer(soundwave);\n\t\tgame.addTransformer(bluestreak);\n\t\tgame.addTransformer(hubcap);\n\t\tgame.addTransformer(abominus);\n\t\t\n\t\tgame.sortCompetitorsByRank();\n\t\tgame.printSortedRoster();\n\t}", "private List<OrderDistance> sortOrdersByPriorities(List<OrderDistance> orderDistances) {\n\n /*Keeps orders and their priorities.\n * TreeMap keeps data in order using keys\n */\n\n Map<Integer, List<OrderDistance>> listMap = orderDistances.stream()\n .collect(groupingBy(order -> getPriority(order.getOrder()), TreeMap::new, mapping(Function.identity(), toList())));\n\n /*\n * There are three list which consists of vip,food and other\n * Here we are flatting them into single list\n */\n return listMap.values().stream().flatMap(Collection::stream).collect(toList());\n }", "public void sortScores(){\r\n // TODO: Use a single round of bubble sort to bubble the last entry\r\n // TODO: in the high scores up to the correct location.\r\n \tcount=0;\r\n \tfor(int i=Settings.numScores-1; i>0;i--){\r\n \t\tif(scores[i]>scores[i-1]){\r\n \t\t\tint tempS;\r\n \t\t\ttempS=scores[i];\r\n \t\t\tscores[i]=scores[i-1];\r\n \t\t\tscores[i-1]=tempS;\r\n \t\t\t\r\n \t\t\tString tempN;\r\n \t\t\ttempN=names[i];\r\n \t\t\tnames[i]=names[i-1];\r\n \t\t\tnames[i-1]=tempN;\r\n \t\t\tcount++;\r\n \t\t}\r\n \t}\r\n }", "private static <Item extends Comparable> void partitionBed(\n List<Item> unsorted, Bear pivot,\n List<Item> less, List<Item> equal, List<Item> greater) {\n for (Item s : unsorted) {\n if (s.compareTo(pivot) < 0) {\n less.add(s);\n } else if (s.compareTo(pivot) == 0) {\n equal.add(s);\n } else {\n greater.add(s);\n }\n }\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public ArrayList<Player> getLeaderboard() {\n ArrayList<Player> result = new ArrayList(players);\n for (Player player : players) {\n Collections.sort(result);\n Collections.reverse(result);\n }\n return result;\n}", "public static ArrayList<FootballClub> sortClubsByPoints(ArrayList<FootballClub> guiSeasonFilteredClubs) {\n\n // comparator to sort the clubs by points\n Comparator<FootballClub> comparator = (club1, club2) -> {\n\n if(club1.getClubStatistics().getTotalPointsScored() == (club2.getClubStatistics()\n .getTotalPointsScored())){\n\n if(club1.getTotalGoalsScored() < club2.getTotalGoalsScored()){\n return 1;\n\n }\n\n }else{\n\n if(club1.getClubStatistics().getTotalPointsScored() < club2.getClubStatistics()\n .getTotalPointsScored()){\n return 1;\n\n }\n }\n return -1;\n };\n\n // sorting only if there are clubs to sort\n if (guiSeasonFilteredClubs != null) {\n guiSeasonFilteredClubs.sort(comparator);\n\n }\n\n return guiSeasonFilteredClubs;\n\n }", "private void sortPlayerScores(){\n text=\"<html>\";\n for (int i = 1; i <= Options.getNumberOfPlayers(); i++){\n if(Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey() != null){\n Integer pl = Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey();\n if(pl != null && playerScores.containsKey(pl)){\n text += \"<p>Player \" + pl + \" Scored : \" + playerScores.get(pl) + \" points </p></br>\";\n playerScores.remove(pl);\n }\n }\n }\n text += \"</html>\";\n }", "@SuppressWarnings(\"unchecked\")\n private List createTeamList() {\n\n ArrayList result = new ArrayList();\n for( int i = 0 ; i < leagues_array.size() ; ++i ) {\n /* each group need each HashMap-Here for each group we have 3 subgroups */\n ArrayList secList = new ArrayList();\n for( int n = 0 ; n < SplashScreen.full_teams_array.get(i).size() ; n++ ) {\n HashMap child = new HashMap();\n child.put( \"Team\", SplashScreen.full_teams_array.get(i).get(n) );\n boolean favorite_found = false;\n for(int j=0; j<SplashScreen.new_favorites_array.size(); j++) {\n if(SplashScreen.full_teams_array.get(i).get(n).toString().equals(SplashScreen.new_favorites_array.get(j)[1]) &&\n leagues_array.get(i).equals(SplashScreen.new_favorites_array.get(j)[0]) ) {\n favorite_found = true;\n }\n }\n if(favorite_found) { child.put( \"Favorite\", \"1\" ); }\n else { child.put( \"Favorite\", \"0\" ); }/*\n if(SplashScreen.full_teams_array.get(i).get(n).toString().equals(favorite_team) &&\n leagues_array.get(i).equals(favorite_league) ) {\n child.put( \"Favorite\", \"1\" );\n } else {\n }\n child.put( \"Favorite\", \"0\" );/*\n }*/\n secList.add( child );\n }\n result.add( secList );\n }\n return result;\n }", "public ArrayList<CollegeFootballTeam> rankTeams()\r\n\t{\r\n\t\tArrayList<CollegeFootballTeam> rankedTeams = new ArrayList<>();\r\n\t\t\r\n\t\t// Calls the selection sort method, which ranks the teams from lower to higher scores based on the sum of their votes.\r\n\t\t// The teams are placed into a new ArrayList. \r\n\t\trankedTeams = selectionSort(teams);\r\n\t\t\r\n\t\treturn rankedTeams;\r\n\t}", "private static void sortFriends() {\n friends.postValue(friends.getValue());\n }", "public static List<ImmutablePair> getTopKPlayers(WeightedDirectedGraph g, int[] nodes, LongIntDict mapLong2Int, int topk, int threshold) throws InterruptedException, IOException, ParseException {\n ArrayList<Integer> subGraphNodes = new ArrayList<>();\n\n // extract just the graph induced by nodes.\n g = SubGraph.extract(g, nodes, runner);\n\n // iterate through the graph and add to a list just the nodes with high degree\n for (int i = 1; i < g.out.length; i++) {\n if ((g.out[i] != null && g.out[i].length >= threshold) || (g.in[i] != null && g.in[i].length >= threshold)) {\n subGraphNodes.add(i);\n }\n }\n\n g = SubGraph.extract(g, subGraphNodes.stream().mapToInt(i -> i).toArray(), runner);\n\n long start = System.currentTimeMillis();\n List<DoubleValues> brokers = KppNeg.searchBroker(g, g.getVertex(), runner); //subGraphNodes.stream().mapToInt(i -> i).toArray()\n long end = System.currentTimeMillis();\n System.out.println(\"Took : \" + ((end - start) / 1000) + \" seconds\");\n\n // convert from the node position of the graph into the TwitterID, and then\n // to the Twitter name\n List<ImmutablePair> brokersUsername = new ArrayList<>();\n TIntLongMap mapIntToLong = mapLong2Int.getInverted();\n long twitterID;\n Document[] docs;\n String username;\n for (DoubleValues broker : brokers) {\n twitterID = mapIntToLong.get((int) broker.index);\n docs = IndexSearcher.searchByField(\"all_tweets_index/\", \"id\", twitterID, 1);\n\n username = null;\n if (docs != null) {\n username = docs[0].get(\"user\");\n brokersUsername.add(new ImmutablePair<String, Double>(username, broker.value));\n } else {\n docs = IndexSearcher.searchByField(\"all_tweets_index/\", \"rt_id\", twitterID, 1);\n if (docs != null) {\n username = docs[0].get(\"rt_user\");\n brokersUsername.add(new ImmutablePair<String, Double>(username, broker.value));\n }\n\n }\n }\n\n return brokersUsername.subList(0, min(topk, brokersUsername.size()));\n }", "LinkedHashMap<Long, Truck> getTrucksForOrder(Long weight);", "public static ArrayList<FootballClub> sortClubsByWins(ArrayList<FootballClub> guiSeasonFilteredClubs) {\n\n // comparator to sort the clubs in descending order of the their wins\n Comparator<FootballClub> comparator = (club1, club2) -> {\n\n if(club1.getClubStatistics().getTotalWins() < club2.getClubStatistics().getTotalWins()){\n return 1;\n }\n\n return -1;\n };\n\n // sorting only if there are clubs to sort\n if (guiSeasonFilteredClubs != null) {\n guiSeasonFilteredClubs.sort(comparator);\n\n }\n\n return guiSeasonFilteredClubs;\n }", "protected abstract void arrange(List<Skill> skills) throws SkillTreeException;", "private static <Item extends Comparable> void partitionBear(\n List<Item> unsorted, Bed pivot,\n List<Item> less, List<Item> equal, List<Item> greater) {\n for (Item s : unsorted) {\n if (s.compareTo(pivot) < 0) {\n less.add(s);\n } else if (s.compareTo(pivot) == 0) {\n equal.add(s);\n } else {\n greater.add(s);\n }\n }\n }", "public void allCombinations(){\n // Sorts the AI's rack\n combinations = new ArrayList<ArrayList<Piece>>();\n ArrayList<Piece> pieces = playersPieces;\n this.removeNulls(numOfNulls());\n for (int index = 0; index < pieces.size();index++){\n Piece temp = pieces.get(index);\n char compareWord = pieces.get(index).theLetter();\n int lowerIndex = index-1;\n\n while (lowerIndex >=0 && compareWord < pieces.get(lowerIndex).theLetter()){\n pieces.set(lowerIndex+1, pieces.get(lowerIndex));\n lowerIndex--;\n }\n\n pieces.set(lowerIndex+1,temp);\n }\n \n // Makes a list of all combinations through the recursive combine method\n combine(pieces, 0, new ArrayList<Piece>());\n insertionSort(combinations);\n combinations.remove(0);\n \n return;\n }", "private ArrayList<String> sort(HashMap<String, Double> input){\n\n //initiate new array list from existing keys\n ArrayList<String> sortedCats = new ArrayList<>(input.keySet());\n\n //size of array list\n int n = sortedCats.size();\n\n //placeholder to replace category\n String temp;\n\n //bubble sort algorithm\n for(int i = 0; i < n; i++){\n for(int j = 1; j < (n-i); j++){\n if(input.get(sortedCats.get(j-1)) < input.get(sortedCats.get(j))){\n //swap elements\n temp = sortedCats.get(j-1);\n sortedCats.remove(j-1);\n sortedCats.add(j, temp);\n }\n }\n }\n return sortedCats;\n }", "private void sortByRank(Card[] hand) {\n\t\tfor (int i = 0; i < hand.length; i++) {\n\t\t\tfor (int j = i + 1; j < hand.length; j++) {\n\t\t\t\tif (hand[i].getRank().getValue() > hand[j].getRank().getValue()) {\n\t\t\t\t\tCard temp = hand[i];\n\t\t\t\t\thand[i] = hand[j];\n\t\t\t\t\thand[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "private static ArrayList<Integer> mergKsort(int[][] arr) {\n\t\tArrayList<Integer> rv = new ArrayList<>();\r\n\t\tPriorityQueue<Pair> pq= new PriorityQueue<>();\r\n\t\t\t\t\r\n\t\tfor (int i=0;i<arr.length;i++) {\r\n\t\tPair p = new Pair(i,0,arr[i][0]);\r\n\t\t\tpq.add(p);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\twhile(pq.size()>0) {\r\n\t\t\tPair p=pq.remove();\r\n\t\t\trv.add(p.val);\r\n\t\t\tp.di++;\r\n\t\t\tif(p.di<arr[p.li].length) {\r\n\t\t\t\tp.val=arr[p.li][p.di];\r\n\t\t\t\tpq.add(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rv;\r\n\r\n\t}", "private void buildBoatsInOrder(List<Boat> boats) {\n List<Boat> newList = new ArrayList<>(boats);\n newList.add(player);\n boatsInOrder = new ArrayList<>();\n while (!newList.isEmpty()) {\n Boat highest = null;\n for (Boat boat:newList) {\n\n if (highest == null) {\n highest = boat;\n }else if (boat.getCumulativeLegTime() < highest.getCumulativeLegTime()) {\n highest = boat;\n }\n }\n boatsInOrder.add(boatsInOrder.size(),highest);\n newList.remove(highest);\n }\n }", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "private void sortByLastName() { \r\n\t\tfor ( int i = 0; i < size-1; i++) {\r\n\t\t\tint minIndex = i; \r\n\t\t\tfor(int j = i + 1; j < size; j++) {\r\n\t\t\t\tif ( accounts[j].getHolder().getLname().compareTo(accounts[minIndex].getHolder().getLname()) < 0 ) { \r\n\t\t\t\t\tSystem.out.println(accounts[j].getHolder().getLname());\r\n\t\t\t\t\tminIndex = j;\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t\tAccount temp = accounts[minIndex];\r\n\t\t\taccounts[minIndex] = accounts[i];\r\n\t\t\taccounts[i] = temp;\r\n\t\t}\r\n\t\treturn;\r\n\t}", "public static Comparator<Trio<Pair<String, Integer>, Pair<String,Integer>, Integer>> sortByWeight()\n\t{\n\t\tComparator<Trio<Pair<String, Integer>, Pair<String, Integer>, Integer>> comp = new Comparator<Trio<Pair<String, Integer>, Pair<String, Integer>, Integer>>() {\n\t\t\n\t\t\tpublic int compare(Trio<Pair<String, Integer>, Pair<String, Integer>, Integer> weight1,\n\t\t\t\t\tTrio<Pair<String, Integer>, Pair<String, Integer>, Integer> weight2) \n\t\t\t{\n\t\t\t\t\n\t\t\t\treturn weight1.getThird() - weight2.getThird();\n\t\t\t}\n\t\t};\n\t\t\n\t\treturn comp;\n\t}", "private Bucket generate_list_of_buckets(\n\t\t\tArrayList<PotentialLine> potentialLines) {\n\t\tBucket front_bucket = new Bucket(0);\n\n\t\t// Populate sorted linked-list of buckets of lines\n\t\tfor (Line current_line : maximal_lines) {\n\t\t\tPotentialLine potential_line = new PotentialLine();\n\t\t\tpotential_line.line = current_line;\n\t\t\tpotential_line.num_unused_points = current_line.getNum_points();\n\n\t\t\tif (potential_line.num_unused_points == front_bucket.getValue()) {\n\n\t\t\t\t// Add potential_line to the proper bucket\n\t\t\t\tfront_bucket.addLine(potential_line);\n\t\t\t\tpotential_line.bucket = front_bucket;\n\t\t\t} else {\n\n\t\t\t\t// Because maximal_lines is sorted, if potential_line does not\n\t\t\t\t// belong in the first bucket, we need to add a new bucket\n\t\t\t\tBucket new_bucket = new Bucket(potential_line.num_unused_points);\n\t\t\t\tnew_bucket.setNextBucket(front_bucket);\n\t\t\t\tfront_bucket.setPreviousBucket(new_bucket);\n\t\t\t\tfront_bucket = new_bucket;\n\n\t\t\t\t// Add potential_line to the proper bucket\n\t\t\t\tfront_bucket.addLine(potential_line);\n\t\t\t\tpotential_line.bucket = front_bucket;\n\t\t\t}\n\n\t\t\t// Add potential_line to the list of potential lines\n\t\t\tpotentialLines.add(potential_line);\n\t\t}\n\n\t\treturn front_bucket;\n\t}", "public static void Externalexp2Sort(ArrayList<String> source)\n throws IOException {\n PriorityQueue<KVPair> heap = new PriorityQueue<KVPair>(20,\n new UserPrio());\n ArrayList<CsvReader> readers = new ArrayList<CsvReader>();\n // user_tweets output\n PrintWriter writer = new PrintWriter(new FileWriter(user_retweet));\n\n // open files\n for (String fileName : source) {\n // get read csv files\n CsvReader reader = new CsvReader(new InputStreamReader(\n new FileInputStream(fileName), \"UTF-8\"));\n reader.setHeaders(Merge.fields);\n // read a line and put into heap\n if (reader.readRecord()) {\n heap.offer(new KVPair(Merge.readRecord(reader), readers.size()));\n }\n readers.add(reader);\n }\n\n // get same key\n KVPair last = null;\n HashSet<Long> sameRecord = new HashSet<Long>();\n\n while (heap.size() > 0) {\n KVPair tmp = heap.poll();\n\n // no retweet directly read the next\n if (tmp.record.retweet != -1) {\n if (last != null && last.record.retweet != -1\n && last.record.retweet != tmp.record.retweet) {\n StringBuilder builder = new StringBuilder(\n last.record.retweet + \",\");\n\n for (Long userid : sameRecord) {\n builder.append(userid);\n builder.append(\" \");\n }\n writer.println(builder);\n sameRecord = new HashSet<Long>();\n }\n sameRecord.add(tmp.record.userid);\n }\n\n // read next record in the same file\n if (readers.get(tmp.file).readRecord()) {\n heap.offer(new KVPair(Merge.readRecord(readers.get(tmp.file)),\n tmp.file));\n } else {\n readers.get(tmp.file).close();\n }\n last = tmp;\n }\n\n // last part of external sort\n if (sameRecord.size() != 0) {\n StringBuilder builder = new StringBuilder(last.record.retweet + \",\");\n\n for (Long userid : sameRecord) {\n builder.append(userid);\n builder.append(\" \");\n }\n writer.println(builder);\n }\n\n writer.close();\n }", "public void sortBySuit() {\r\n List<Card> newHand = new ArrayList<Card>();\r\n while (hand.size() > 0) {\r\n int minPos = 0;\r\n Card minCard = hand.get(0);\r\n for (int i = 1; i < hand.size(); i++) {\r\n Card curCard = hand.get(i);\r\n if (curCard.getSuit().ordinal() < minCard.getSuit().ordinal() ||\r\n (curCard.getSuit().ordinal() == minCard.getSuit().ordinal() && curCard.getRank().ordinal() < minCard.getRank().ordinal())) {\r\n minPos = i;\r\n minCard = curCard;\r\n }\r\n }\r\n hand.remove(minPos);\r\n newHand.add(minCard);\r\n }\r\n hand = newHand;\r\n }", "public static List<ArcWeighted> quickSort(final List<ArcWeighted> data) {\n List<ArcWeighted> a = new LinkedList<>();\n List<ArcWeighted> b = new LinkedList<>();\n final int Pivot = data.size() / 2;\n\n if (data.size() <= 1) {\n return data;\n }\n\n final ArcWeighted PivotArc = data.get(Pivot);\n final int PivotValue = data.get(Pivot).weight;\n\n while (!data.isEmpty()) {\n final ArcWeighted temp = data.remove(0);\n\n if (temp != PivotArc) {\n\n if (PivotValue <= temp.weight) {\n a.add(temp);\n } else {\n b.add(temp);\n }\n\n }\n\n }\n\n // A binary tree like this is formed.\n // ========================//\n // pivotValue //\n // //\n // a b //\n // ========================//\n // a and b are sub-trees\n // (they may have no children and be laeves)\n\n // The data is placed into a tree and then exported in order.\n\n a = sortingAlgorithms.quickSort(a); // Call itself\n b = sortingAlgorithms.quickSort(b); // Call itself\n\n // merge\n a.add(PivotArc);\n a.addAll(b);\n\n return a;\n // All of the data is returned and merged (see code above) forming a sorted list\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 }", "public void putListInPointOrder() {\n for (int i = 0; i < players.size(); i++) {\n Player s = players.get(i);\n if (i < players.size() - 1) {\n for (int j = i; j < players.size(); j++) {\n while (s.getPoint() < players.get(j).getPoint()) {\n Collections.swap(players, i, j);\n }\n\n }\n }\n }\n }", "@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 }", "public static void main(String[] args) {\n\t\tShirt r = new Shirt(\"Red\", 10);\r\n\t\tShirt b = new Shirt(\"Blue\", 465);\r\n\t\tShirt g = new Shirt(\"Green\", 3213456);\r\n\t\t// Creates some custom comparator object.\r\n\t\tSizeComp s = new SizeComp();\r\n\t\tColorComp c = new ColorComp();\r\n\t\t// Creates some tree sets using custom comparator. \r\n\t\tTreeSet<Shirt> mySizeSet = new TreeSet<>(s);\r\n\t\tmySizeSet.add(r);\r\n\t\tmySizeSet.add(g);\r\n\t\tmySizeSet.add(b);\r\n\t\tout.println(\"Sort by Size\");\r\n\t\tout.println(mySizeSet);\r\n\t\t\r\n\t\tTreeSet<Shirt> myCompSet = new TreeSet<>(c);\r\n\t\tmyCompSet.add(r);\r\n\t\tmyCompSet.add(g);\r\n\t\tmyCompSet.add(b);\r\n\t\tout.println(\"Sort by Color\");\r\n\t\tout.println(myCompSet);\r\n\t}", "private static void SortHash(HashMap<String,ArrayList<input>> hashMap,Distribution list)\n\t{\n\t\tCollections.sort(list.First, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Second, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Third, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Fourth, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Fifth, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.reverse(list.First);\n\t\tCollections.reverse(list.Second);\n\t\tCollections.reverse(list.Third);\n\t\tCollections.reverse(list.Fourth);\n\t\tCollections.reverse(list.Fifth);\n\t\tputInHashMap(hashMap,list);\n\t}", "public void sortCompetitors(){\n\t\t}", "private List<Order> sortReadyOrders() throws SQLException {\n\t\tList<Order> nonFastFoodOrders = new LinkedList<Order>();\n\t\tList<Order> fastFoodOrders = new LinkedList<Order>();\n\t\tList<Order> sortedOrders = new LinkedList<Order>();\n\n\t\tfor (int i = 0; i < getReadyOrders().size(); i++) {\n\t\t\tfor (int j = 0; j < getReadyOrders().get(i).getOrderL().size(); j++) {\n\t\t\t\tif (getReadyOrders().get(i).getOrderL().get(j).getFood().getType().equalsIgnoreCase(\"fast food\")) {\n\t\t\t\t\tfastFoodOrders.add(getReadyOrders().get(i));\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tnonFastFoodOrders.add(getReadyOrders().get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tsortedOrders.addAll(fastFoodOrders);\n\t\tsortedOrders.addAll(nonFastFoodOrders);\n\t\treturn sortedOrders;\n\t}", "@SuppressWarnings(\"unchecked\")\n private List<T> Cut(T individual) {\n ArrayList<T> list = new ArrayList<T>(2);\n int length = individual.getChromosomeLength();\n\n if (EvRandomizer.INSTANCE.nextDouble() < (length - 1) * cut_probability) {\n\n int cut_place = EvRandomizer.INSTANCE.nextInt(length - 1);\n\n T child1 = (T) individual.clone();\n child1.setChromosome(individual.getGenesList(0, cut_place), individual\n .getAllelesList(0, cut_place));\n T child2 = (T) individual.clone();\n child2.setChromosome(individual.getGenesList(cut_place, length),\n individual.getAllelesList(cut_place, length));\n list.add(child1);\n list.add(child2);\n\n } else\n list.add((T) individual.clone());\n\n return list;\n }", "private List<MyPair> sortAndTrim(int k, List<MyPair> neighbours) {\n\n for (int i = 0; i <= neighbours.size() - 2; i++) {\n for (int j = 0; j <= neighbours.size() - 2 - i; j++) {\n if (neighbours.get(j + 1).getValue() > neighbours.get(j).getValue()) {\n Collections.swap(neighbours, j, j + 1);\n }\n }\n }\n if (k != -1) {\n try {\n neighbours = neighbours.subList(0, k);\n } catch (IndexOutOfBoundsException e) {\n return neighbours;\n }\n }\n return neighbours;\n }", "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 }", "public static List<Player> getRankedPlayersInTeam(List<Player> players, Player.PlayerTeam team) {\n List<Player> choosenTeam = players.stream()\n .filter(player -> player.getTeam() == team)\n .collect(Collectors.toList());\n\n\n Comparator<Player> playerComparator = new Comparator<Player>() {\n @Override\n public int compare(Player o1, Player o2) {\n return o2.getCurrentScore() - o1.getCurrentScore();\n }\n };\n choosenTeam.sort(playerComparator);\n return choosenTeam;\n\n }", "public static <T> Pair<ArrayList<T>, Double> relativeHabitFilter(Map<T, Double> habitStrength){\n\t\t//System.out.print(\"rHabitFilter is called on size:\" + habitStrength.size());\n\t\tMap<T, Double> sorted= Helper.sortByValue(habitStrength);\n\t\tArrayList<T> keys =new ArrayList<T>(sorted.keySet());\n\t\t\n\t\t//System.out.println(habitStrength);\n\t\t//System.out.println(sorted);\n\t\t\n\t\tdouble bestDifference = 0;\n\t\tdouble bestSplit = 0;\n\t\tfor(int i = 0; i < keys.size()-1; i++){\n\t\t\tMap<T, Double> left = new HashMap<T, Double>();\n\t\t\tMap<T, Double> right =new HashMap<T, Double>(habitStrength);\n\t\t\tfor(int j =0; j <= i; j++){ //Fill maps left and right\n\t\t\t\tT key = keys.get(j);\n\t\t\t\tleft.put(key, sorted.get(key));\n\t\t\t\tright.remove(key);\n\t\t\t\t//System.out.print(\"loopmakemaps\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble difference = Helper.avarageDouble(right.values()) - Helper.avarageDouble(left.values());\n\t\t\tif(difference > bestDifference){\n\t\t\t\tbestDifference = difference;\n\t\t\t\tbestSplit = i;\n\t\t\t}\n\t\t\t//System.out.print(\"loopfindbest\");\n\t\t}\n\t\t\n\t\tArrayList<T> newCandidates =new ArrayList<T>();\n\t\tfor(int j = keys.size()-1; j > bestSplit; j--){\n\t\t\tnewCandidates.add(keys.get(j));\n\t\t\t//System.out.print(\"loophere\");\n\t\t}\n\t\t\n\t\t//System.out.println(\"I made it! Difference:\" + bestDifference + \"newCandidates\" + newCandidates);\n\t\t\n\t\treturn new ImmutablePair<ArrayList<T>, Double>(newCandidates, bestDifference);\n\t}", "private void sortByLastName() { \n\t\t\n\t\tint numAccounts = size;\n\t\tString firstHolder_lname;\n\t\tString secondHolder_lname;\n\t\t\n\t\tfor (int i = 0; i < numAccounts-1; i++) {\n\t\t\t\n\t\t\t\n\t\t\tint min_idx = i;\n\t\t\t\n\t\t\t\n\t\t\tfor (int j = i+1; j < numAccounts; j++) {\n\t\t\t\t\n\t\t\t\t// Retrieve last name of two that you are comparing\n\t\t\t\tfirstHolder_lname = (accounts[j].getHolder()).get_lname();\n\t\t\t\tsecondHolder_lname = (accounts[min_idx].getHolder()).get_lname();\n\t\t\t\t\n\t\t\t\tif (firstHolder_lname.compareTo(secondHolder_lname) < 0) {\n\t\t\t\t\tmin_idx = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tAccount temp = accounts[min_idx];\n\t\t\taccounts[min_idx] = accounts[i];\n\t\t\taccounts[i] = temp;\n\n\t\t\t\n\t\t}\n\t}", "@Override\n public void sort(T[] array, int beginIndex, int endIndex)\n {\n for (int i=beginIndex; i<endIndex; i++)\n buckets.get(getBucketIndex(array[i])).add(array[i]);\n\n // spit out all bucket elements and reassign array elements\n for (List<T> bucket : buckets)\n {\n // sort each bucket if b_sort == true\n if (sort_bucket) bucket.sort(comparator);\n for (T key : bucket) array[beginIndex++] = key;\n bucket.clear();\n }\n }", "public void sortPassing(){\n\t\tpassing.sort(PlayingCard.PlayingCardComparator_ACEHIGH);\n\t}", "public static ArrayList<FootballClub> sortByGoals(String season){\n PremierLeagueManager.loadingData();\n\n // filters the football clubs according to the season\n guiSeasonFilteredClubs = getGuiSeasonFilteredClubs(season);\n\n // sorting by points only in descending order goal scored\n guiSeasonFilteredClubs = sortClubsByGoals(guiSeasonFilteredClubs);\n\n return guiSeasonFilteredClubs;\n }", "List<Integer> getSortedList() {\n Set<Map.Entry<Integer, Integer>> setOfMovieIDPopularityPairs = mostPopularMoviesByID.entrySet();\n // Then, it is converted into a list (for sorting)\n List<Map.Entry<Integer, Integer>> listOfMovieIDPopularityPairs = new ArrayList<>(setOfMovieIDPopularityPairs);\n // A comparator is created that can be used to \"instruct\" sorting by values (popularity)\n Comparator<Map.Entry<Integer, Integer>> popularityComparator = Map.Entry.comparingByValue();\n // Last step - sort in descending order by popularity\n listOfMovieIDPopularityPairs.sort(popularityComparator.reversed());\n\n // Eventually, movieIDs are extracted from the sorted list movieID-Popularity pairs\n List<Integer> listOfMostPopularMoviesByID = new ArrayList<>(listOfMovieIDPopularityPairs.size());\n for (Map.Entry<Integer, Integer> movieIDPopularityPair : listOfMovieIDPopularityPairs) {\n listOfMostPopularMoviesByID.add(movieIDPopularityPair.getKey());\n }\n return listOfMostPopularMoviesByID;\n }", "default List<Source> representativeTypicalityQuery(int topk, Set<Source> resultSet, Set<String> domain) {\n final Map<Source, List<Source>> region = interestingRegion(topk, resultSet, domain);\n\n final Comparator<Map.Entry<Source, List<Source>>> byValue =\n (entry1, entry2) ->\n Ints.compare(entry1.getValue().size(), entry2.getValue().size());\n\n return region.entrySet().stream()\n .sorted(byValue.reversed())\n .map(Map.Entry::getKey)\n .collect(Collectors.toList());\n }", "k value.\nFor 2nd tallest group (and the rest), insert each one of them into (S) by k value. So on and so forth.\n\npublic class Solution {\n public int[][] reconstructQueue(int[][] people) {\n Arrays.sort(people,new Comparator<int[]>() {\n @Override\n public int compare(int[] o1, int[] o2){\n return o1[0] != o2[0]? -o1[0] + o2[0]: o1[1] - o2[1];\n }\n });\n\n List<int[]> res = new ArrayList<>();\n for (int[] cur : people) {\n res.add(cur[1], cur); \n }\n return res.toArray(new int[people.length][]);\n }", "static void bucket_partition2(int b_size, LikenessBuckets bk){\n\t\tint parts = b_size/partition_size; //#partitions per bucket\n\t\tfloat ratio; int offsetB; int offsetB2; int offsetP;\n\t\tint chunk_size; int partSA; int partSA2;\n\t\tshort[][] tmpBucket;\n\n\t\tif(parts == 0){\n\t\t\tparts = 1;\n\t\t\tchunk_sizes.add(b_size);\n\t\t}else{\n\t\t\tfor(int i=0; i<parts-1; i++){\n\t\t\t\tchunk_sizes.add(partition_size);\n\t\t\t}\n\t\t\tif ((b_size % partition_size) <= (partition_size/2)){\n\t\t\t\tchunk_sizes.addFirst(partition_size + (b_size % partition_size));\n\t\t\t}else{\n\t\t\t\tparts++;\n\t\t\t\tchunk_sizes.add(partition_size);\n\t\t\t\tchunk_sizes.addLast(b_size % partition_size);\n\t\t\t}\n\t\t}\n\n\t\tfor(int b=0; b<buckNum; b++){//for every bucket\n\t\t\ttmpBucket = new short[bucket_size][dims];\n\t\t\t//tuples of most freq SA:\n\t\t\tArrayList<Integer> chg = bk.changeSA.get(b);\n\t\t\tint first = 0; int last = chg.get(0);\n\t\t\tif((last-first) > 0){ // (last-first+1) > 1.\n\t\t\t\t//System.out.println(\"sorting bucket[\"+b+\"][\"\n\t\t\t\t//\t\t\t\t +first+\"--\"+last+\"]\");\n\t\t\t\tquickSortBucket(first, last, b);\n\t\t\t}\n\t\t\t//remaining tuples:\n\t\t\tif((bucket_size - last) > 3){ // (bucket_size-1 -last-1) > 1.\n\t\t\t\t//System.out.println(\"sorting bucket[\"+b+\"][\"\n\t\t\t\t//\t\t\t\t +(last+1)+\"--\"+(bucket_size-1)+\"]\");\n\t\t\t\tquickSortBucket(last+1, bucket_size-1, b);\n\t\t\t}\n\t\t\toffsetB = 0;\n\t\t\toffsetP = 0;\n\t\t\toffsetB2 = last+1;\n\t\t\tfor(int jj=0; jj<parts; jj++){//for every partition\n\t\t\t\tchunk_size = chunk_sizes.get(jj);\n\t\t\t\t//ratio = ((float)chunk_size) / ((float)bucket_size);\n\t\t\t\t//partSA = Math.round(ratio * ((float)(last-first+1))); //freq SA\n\t\t\t\tpartSA = (int)Math.ceil(((double)(last-offsetB+1)) / ((double)(parts-jj)));\n\t\t\t\tpartSA2 = chunk_size - partSA; //remaining SAs\n\t\t\t\tfor(int j=0; j<partSA; j++){\n\t\t\t\t\ttmpBucket[offsetP + j] = buckets[b][offsetB + j];\n\t\t\t\t}\n\t\t\t\toffsetB += partSA;\n\t\t\t\tfor(int j=0; j<partSA2; j++){\n\t\t\t\t\ttmpBucket[offsetP + partSA + j] = buckets[b][offsetB2 + j];\n\t\t\t\t}\n\t\t\t\toffsetB2 += partSA2;\n\t\t\t\toffsetP += chunk_size;\n\t\t\t}\n\t\t\tbuckets[b] = tmpBucket;\n\t\t}\n\t}", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "public void sort(){\n ArrayList<Card> sortedCards = new ArrayList<Card>();\n ArrayList<Card> reds = new ArrayList<Card>();\n ArrayList<Card> yellows = new ArrayList<Card>();\n ArrayList<Card> greens = new ArrayList<Card>();\n ArrayList<Card> blues = new ArrayList<Card>();\n ArrayList<Card> specials = new ArrayList<Card>();\n for(int i = 0; i < cards.size(); i++){\n if(cards.get(i).getColor() == RED){\n reds.add(cards.get(i));\n }else if(cards.get(i).getColor() == YELLOW){\n yellows.add(cards.get(i));\n }else if(cards.get(i).getColor() == GREEN){\n greens.add(cards.get(i));\n }else if(cards.get(i).getColor() == BLUE){\n blues.add(cards.get(i));\n }else if(cards.get(i).getColor() == ALL){\n specials.add(cards.get(i));\n }\n }\n cards = new ArrayList<Card>();\n for(Card c: reds){\n sortedCards.add(c);\n }\n for(Card c: yellows){\n sortedCards.add(c);\n }\n for(Card c: greens){\n sortedCards.add(c);\n }\n for(Card c: blues){\n sortedCards.add(c);\n }\n for(Card c: specials){\n sortedCards.add(c);\n }\n for(Card c: sortedCards){\n cards.add(c);\n }\n }", "public void CheckHands(){\n HashMap<CardRank, Integer> CardMap = getCardMap(ranks);\n ArrayList<Integer> MapValues = new ArrayList<>(CardMap.values());\n //sort MapValues in descending order, so that we can use\n // MapValues.get(0) to get the largest appear time and so on\n Collections.sort(MapValues, Collections.reverseOrder());\n System.out.print(\"Player 1: \");\n\n\n //Straight flush\n if (flush(suits) && straight(ranks)){\n System.out.println(ranks.get(ranks.size()-1).getName()\n + \"-high straight flush\");\n return;\n }\n\n //Four of a kind\n if (MapValues.get(0) == 4){\n CardRank rank4 = getKeysByValue(CardMap, 4).get(0);\n System.out.println(\"Four \" + rank4.getName() + \"s\");\n return;\n }\n\n //full house\n if (MapValues.get(0) == 3 && MapValues.get(1) == 2){\n CardRank rank3 = getKeysByValue(CardMap, 3).get(0);\n CardRank rank2 = getKeysByValue(CardMap,2).get(0);\n System.out.println(rank3.getName() + \"s full of \"\n + rank2.getName()+\"s\");\n return;\n }\n\n //Flush (not straight)\n if (flush(suits) && !straight(ranks)) {\n System.out.println(ranks.get(ranks.size() - 1).getName()\n + \"-high flush\");\n return;\n }\n\n //Straight (not flush)\n if (straight(ranks) && !flush(suits)){\n System.out.println(ranks.get(ranks.size() - 1).getName()\n + \"-high straight\");\n return;\n }\n\n //Three of a kind (not full house)\n if (MapValues.get(0) == 3 && MapValues.get(1) != 2){\n CardRank rank3 = getKeysByValue(CardMap, 3).get(0);\n System.out.println(\"Three \" + rank3.getName() + \"s\");\n return;\n }\n\n //Two Pair\n if (MapValues.get(0) == 2 && MapValues.get(1) == 2){\n CardRank rank21 = getKeysByValue(CardMap,2).get(0);\n CardRank rank22 = getKeysByValue(CardMap, 2).get(1);\n System.out.println(rank22.getName() + \"s over \"\n + rank21.getName() + \"s\" );\n return;\n\n }\n\n //One pair (only one)\n if (MapValues.get(0) == 2 && MapValues.get(1) == 1){\n CardRank rank2 = getKeysByValue(CardMap, 2).get(0);\n System.out.println(\"Pair of \" + rank2.getName()+ \"s\");\n return;\n }\n\n //High Card (not flush)\n if (MapValues.get(0) == 1 && !flush(suits)){\n System.out.println(ranks.get(ranks.size() - 1).getName() + \"-high\");\n return;\n }\n }", "public static int[] bucketSort( int[] num, int maxValue) {\n\t\tint numBuckets = (int)Math.sqrt(maxValue)+1; //could use different amounts\n\n\t\tArrayList<Integer>[] bucket = new ArrayList[numBuckets];\n\n\t\tfor( int i = 0; i < bucket.length; i++ )\n\t\t\tbucket[i] = new ArrayList<Integer>();\n\n\t\t//'scatter' the numbers into the appropriate buckets\n\t\tfor( int i = 0; i < num.length; i++ ) {\n\t\t\tint bucketNum = num[i]/numBuckets; //determine the appropriate bucket\n\t\t\tbucket[bucketNum].add(num[i]); //add the item to the corresponding bucket\n\t\t}\n\n\t\tint index = 0;\n\n\t\t//sort the individual buckets and 'gather' the numbers back into the num array\n\t\tfor (int i = 0; i < bucket.length; i++) {\n\n\t\t\tif (bucket[i].size()>0){\n\n\t\t\t\t//copy each bucket to an integer array for sorting\n\t\t\t\tint[] bucketArray = new int[bucket[i].size()];\n\n\t\t\t\tfor(int j = 0; j < bucket[i].size(); j++) {\n\t\t\t\t\tbucketArray[j] = bucket[i].get(j);\n\t\t\t\t}\n\n\t\t\t\t//sort the bucket\n\t\t\t\tbucketArray = insertionSort(bucketArray);\n\n\t\t\t\t//copy the bucket back into the num array\n\t\t\t\tfor( int j = 0; j < bucketArray.length; j++ ) {\n\t\t\t\t\tnum[index] = bucketArray[j];\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn num;\n\t}", "public void sort_crystals() {\n\t\tArrays.sort(identifiedArray, new SortByRating()); \n\t}", "private static void BucketSort(int[] A){\n\t\tSystem.out.println(\"BucketSort\\n\");\n\t\t\n\t\tSystem.out.print(\"Before bucket sort: \");\n\t\tfor(int i = 0 ; i < A.length ; i++){\n\t\t\tSystem.out.print(A[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\t//Gets the highest number in the array\n\t\tint MaxNum = 0;\n\t\tfor(int i = 0 ; i < A.length ; i++){\n\t\t\tif(A[i] > MaxNum)\n\t\t\t\tMaxNum = A[i];\n\t\t}\n\t\t\n\t\tint[] B = new int [MaxNum + 1];\n\t\t\n\t\tfor(int i = 0 ; i < B.length ; i++){\n\t\t\tB[i] = 0;\n\t\t}\n\t\t\n\t\tfor(int i = 0 ; i < A.length; i++){\n\t\t\t B[A[i]]++;\n\t\t}\n\t\t\n\t\t//implementing insertion sort with bucket\n\t\tint BucketPosition = 0;\n\t\t\n\t\tfor(int i = 0 ; i < B.length ; i++){\n\t\t\tfor(int j = 0 ; j < B[i] ; j++){\n\t\t\t\tA[BucketPosition] = i;\n\t\t\t\tBucketPosition++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/* \t\t\tPrints out the after sorting algorithm\t\t*/\n\t\tSystem.out.print(\"\\nAfter bucket sort: \");\n\t\tfor(int i = 0 ; i < A.length; i++)\n\t\t\tSystem.out.print(A[i] + \" \");\n\t\t\n\t}", "public void sortScoresDescendently(){\n this.langsScores.sort((LangScoreBankUnit o1, LangScoreBankUnit o2) -> {\n return Double.compare(o2.getScore(),o1.getScore());\n });\n }", "private void sortEScores() {\n LinkedHashMap<String, Double> sorted = eScores\n .entrySet()\n .stream()\n .sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))\n .collect(\n toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,\n LinkedHashMap::new));\n eScores = sorted;\n }", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "public static void main(String[] args) {\n Set<String> list = new TreeSet<>();\n list.add(\"Song\");\n list.add(\"Album\");\n list.add(\"Artist\");\n list.add(\"Year\");\n list.add(\"Genre\");\n list.add(\"Song\");\n list.add(\"Song\");\n\n System.out.println();\n for(String x : list){\n System.out.println(x);\n }\n\n //NO REPITTED VALUES AND ASCENDED ORDER WHIT COMPARABLE, HASHCODE AND EQUALS\n Set<Persona> list2 = new TreeSet<>();\n list2.add(new Persona(1, \"Rayman\"));\n list2.add(new Persona(2, \"Castlevania\"));\n list2.add(new Persona(3, \"Silent Hill\"));\n list2.add(new Persona(4, \"Silent Hill\"));\n list2.add(new Persona(1, \"Rayman\"));\n\n System.out.println();\n for(Persona x : list2){\n System.out.println(x.getId() + \" - \" + x.getName());\n }\n }", "public void sortHand(){\n Arrays.sort(Hand);\n }", "public void sortHighscores(){\n Collections.sort(highscores);\n Collections.reverse(highscores);\n }", "public List<Tile> bfsTileOfPlayer(Tile t) {\n\t\tif (t.getPlayer()==null || t.getPlayer()==Player.nullPlayer) {\n\t\t\treturn new LinkedList<Tile>();\n\t\t}\n\t\tfinal Player player = t.getPlayer();\n\t\treturn bfsTile(new Predicate<Tile>() {\n\t\t\t@Override\n\t\t\tpublic boolean evaluate(Tile tile) {\n\t\t\t\tif (tile!=null && tile.getPlayer()!=null && tile.getPlayer()!=Player.nullPlayer) {\n\t\t\t\t\treturn tile.getPlayer().username.equals(player.username);\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}, t);\n\t}", "@Test\r\n\tpublic void testPlayableCards2()\r\n\t{\n\t\t\r\n\t\tCardList clubList = new CardList();\r\n\t\tclubList.add(AllCards.a6C);\r\n\t\tclubList.add(AllCards.aTC);\t\t\r\n//\t\tassertTrue( h.playableCards(Suit.CLUBS, null).toString().equals(clubList.toString()));\r\n\t\t\r\n\t\tCardList diamondsList = new CardList();\r\n\t\tdiamondsList.add(AllCards.a7D);\r\n\t\tdiamondsList.add(AllCards.aQD);\r\n\t\tdiamondsList.add(AllCards.aKD);\r\n//\t\tassertTrue( h.playableCards(Suit.DIAMONDS, null).toString().equals(diamondsList.toString()));\r\n\t\t\r\n\t\tCardList heartsList = new CardList();\r\n\t\theartsList.add(AllCards.a9H);\t\t\r\n//\t\tassertTrue( h.playableCards(Suit.HEARTS, null).toString().equals(heartsList.toString()));\r\n\t\t\r\n\t\tCardList spadesList = new CardList();\r\n\t\tspadesList.add(AllCards.aTS);\r\n\t\tspadesList.add(AllCards.a7S);\r\n\t\tspadesList.add(AllCards.aJS);\r\n\t\tspadesList.add(AllCards.aKS);\r\n//\t\tassertTrue( h.playableCards(Suit.SPADES, null).toString().equals(spadesList.toString()));\r\n\t\t\r\n\t\tCardList joker = new CardList();\t\t\t\r\n\t\tjoker.add(AllCards.aLJo);\t\t\r\n\t\tjoker.add(AllCards.aHJo);\r\n//\t\tassertTrue(jokerhand.playableCards(Suit.DIAMONDS, null).sort(new Card.ByRankComparator()).toString().equals(joker.toString()));\r\n\t\t\r\n\t\t\r\n\t\t// Trump\r\n\t\tclubList.add(AllCards.aJS);\r\n\t\tclubList.add(AllCards.aLJo);\r\n\t\tclubList = clubList.sort(new Card.ByRankComparator());\r\n\t\tassertTrue( h.playableCards(Suit.CLUBS, Suit.CLUBS).sort(new Card.ByRankComparator()).toString().equals(clubList.toString()));\r\n\t\t\r\n\t\tdiamondsList.add(AllCards.aLJo);\r\n\t\tdiamondsList = diamondsList.sort(new Card.ByRankComparator());\r\n\t\tassertTrue( h.playableCards(Suit.DIAMONDS, Suit.DIAMONDS).sort(new Card.ByRankComparator()).toString().equals(diamondsList.toString()));\r\n\r\n\t\theartsList = heartsList.sort(new Card.ByRankComparator());\t\t\r\n\t\tassertTrue( h.playableCards(Suit.HEARTS, Suit.DIAMONDS).sort(new Card.ByRankComparator()).toString().equals(heartsList.toString()));\r\n\t\t\r\n\t\tspadesList.remove(AllCards.aJS);\r\n\t\tspadesList = spadesList.sort(new Card.ByRankComparator());\r\n\t\tassertTrue( h.playableCards(Suit.SPADES, Suit.CLUBS).sort(new Card.ByRankComparator()).toString().equals(spadesList.toString()));\r\n\t\t\r\n\t\t// no Trump in hand\r\n\t\tassertTrue(jokerhand.playableCards(Suit.DIAMONDS, Suit.DIAMONDS).sort(new Card.ByRankComparator()).toString().equals(joker.toString()));\r\n\t\tassertTrue(jokerhand.playableCards(Suit.DIAMONDS, Suit.CLUBS).sort(new Card.ByRankComparator()).toString().equals(joker.toString()));\r\n\t\t\r\n\t\tCardList jackList = new CardList();\r\n\t\tjackList.add(AllCards.aJS);\r\n\t\tjackList.add(AllCards.aJC);\r\n\t\tassertTrue(jackHand.playableCards(Suit.CLUBS, Suit.SPADES).sort(new Card.ByRankComparator()).toString().equals(jackList.toString()));\r\n\t\t\r\n\t}", "public void loadTOTWPlayersPack(Context context) {\n PlayerDAO playerDAO = new PlayerDAO(context);\n ArrayList<PackOpenerPlayer> totwPlayers = playerDAO.getTOTWPlayers();\n ArrayList<PackOpenerPlayer> otherPlayers = playerDAO.getNonTOTWPlayers();\n\n Collections.shuffle(totwPlayers);\n Collections.shuffle(otherPlayers);\n ArrayList<PackOpenerPlayer> tempPlayers = new ArrayList<>();\n //adding one totw player\n tempPlayers.add(totwPlayers.get(0));\n\n //adding other remaining players\n int counter = 0;\n boolean higherRatedPlayerIncluded = false;\n while (tempPlayers.size() < 9) {\n if (otherPlayers.get(counter).getRating() > 82) {\n if (!higherRatedPlayerIncluded) {\n tempPlayers.add(otherPlayers.get(counter));\n higherRatedPlayerIncluded = true;\n }\n } else {\n tempPlayers.add(otherPlayers.get(counter));\n }\n counter++;\n }\n Collections.sort(tempPlayers);\n packPlayers = new ArrayList<>(tempPlayers);\n }", "public ArrayList<URL> insertionSort(ArrayList<URL> bucket) {\n\t\tfor(int j=1;j<bucket.size();j++) {\n\t\t\tURL key = bucket.get(j);\n\t\t\tint i = j-1;\n\t\t\twhile(i>=0 && bucket.get(i).getUrl().compareTo(key.getUrl())>0) {\n\t\t\t\tbucket.set(i+1, bucket.get(i));\n\t\t\t\ti --;\n\t\t\t}\n\t\t\tbucket.set(i+1, key);\n\t\t}\n\t\treturn bucket;\n\t}", "public void sortMatches();", "@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 ArrayList<Chromosome> getChromosomesSorted() {\n int j;\n boolean flag = true; // set flag to true to begin first pass\n Chromosome temp; //holding variable\n ArrayList<Chromosome> sortedChromosomes = this.chromosomes;\n while (flag) {\n flag = false; //set flag to false awaiting a possible swap\n for (j = 0; j < sortedChromosomes.size() - 1; j++) {\n if (sortedChromosomes.get(j).getTotalGH() < sortedChromosomes.get(j + 1).getTotalGH()) // change to > for ascending sort\n {\n temp = sortedChromosomes.get(j); //swap elements\n sortedChromosomes.set(j, sortedChromosomes.get(j + 1));\n sortedChromosomes.set(j + 1, temp);\n flag = true; //shows a swap occurred \n }\n }\n }\n return sortedChromosomes;\n }", "public List<Player> getPlayersOrdered() {\r\n ArrayList<Player> result = new ArrayList<>();\r\n for (PlayerContainer container : players) {\r\n result.add(container.player);\r\n }\r\n return result;\r\n }", "public List<String> getHITSWithPriors(\r\n\t\t\tTransformer<Entity, HITS.Scores> priors)\r\n\t{\r\n\r\n\t\tlogger.info(\"Getting HITS with priors...\");\r\n\t\tHITSWithPriors<Entity, EntityGraphEdge> ranker = new HITSWithPriors<Entity, EntityGraphEdge>(\r\n\t\t\t\tdirectedGraph, priors, 0.3);\r\n\t\tlogger.info(\"Ranker was created.\");\r\n\t\tlogger.info(\"Evaluating...\");\r\n\t\tranker.evaluate();\r\n\t\t// ranker.printRankings(true, true);\r\n\r\n\t\tlogger.info(\"Got HITS with priors.\");\r\n\t\tCollection<Entity> vertices = directedGraph.getVertices();\r\n\t\tList<String> rankingList = new ArrayList<String>();\r\n\t\tFormat formatter = new DecimalFormat(\"%7.6f\");\r\n\r\n\t\tfor (Entity vertex : vertices) {\r\n\t\t\trankingList.add(\"hub=\"\r\n\t\t\t\t\t+ formatter.format(ranker.getVertexScore(vertex).hub)\r\n\t\t\t\t\t+ \" authority=\"\r\n\t\t\t\t\t+ formatter.format(ranker.getVertexScore(vertex).authority)\r\n\t\t\t\t\t+ \" \" + vertex);\r\n\t\t\t// logger.info(\"HITS with priors ranking for \" +\r\n\t\t\t// vertex.getVertexEntity() + \" : \" + ranker.getRankScore(vertex));\r\n\t\t}\r\n\r\n\t\tCollections.sort(rankingList);\r\n\t\tCollections.reverse(rankingList);\r\n\t\t// logger.info(\"Sorted PageRankings: \" + rankingList);\r\n\t\t// ranker.printRankings(false, true);\r\n\r\n\t\treturn rankingList;\r\n\t}", "private SortedMap<String, List<String>> parseTopAndSecondLevelCategoriesWithoutCache(\n List<String> fullCategoryPaths) {\n Map<String, Set<String >> map = new HashMap<String, Set<String>>();\n for (String category : fullCategoryPaths) {\n\n // If the category doesn't start with a slash, it's one of the old-style\n // categories where we didn't store the full path. Ignore these.\n if (category.charAt(0) == '/') {\n String[] fields = category.split(\"\\\\/\");\n if (fields.length >= 3) {\n Set<String> subCats = map.get(fields[1]);\n if (subCats == null) {\n subCats = new HashSet<String>();\n }\n subCats.add(fields[2]);\n map.put(fields[1], subCats);\n }\n }\n }\n\n // Now sort all the subcategory lists, and add them to the result.\n SortedMap<String, List<String>> results = new TreeMap<String, List<String>>();\n for (Map.Entry<String, Set<String>> entry : map.entrySet()) {\n List<String> subCatList = new ArrayList<String>(entry.getValue());\n Collections.sort(subCatList);\n results.put(entry.getKey(), subCatList);\n }\n return results;\n }", "private SplitOrder checkTies (TieRelation tie)\r\n {\r\n List<Note> distantNotes = new ArrayList<>();\r\n List<Chord> distantChords = new ArrayList<>();\r\n\r\n for (TreeNode nn : getNotes()) {\r\n Note note = (Note) nn;\r\n\r\n // Use a COPY of slurs to allow concurrent deletion\r\n for (Slur slur : new ArrayList<>(note.getSlurs())) {\r\n if (tie.isRelevant(slur, note)) {\r\n Note distantNote = tie.getDistantNote(slur);\r\n\r\n if (distantNote != null) {\r\n // Safety check\r\n if (distantNote == note\r\n || distantNote.getChord() == this) {\r\n // This slur is a loop on the same note or chord!\r\n logger.info(\"Looping slur detected {}\", slur);\r\n slur.destroy();\r\n continue;\r\n }\r\n\r\n if (distantNote.getMeasure() == getMeasure()) {\r\n distantNotes.add(distantNote);\r\n distantChords.add(distantNote.getChord());\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (distantChords.size() > 1) {\r\n logger.debug(\"{} Ch#{} with multiple tied chords: {}\",\r\n getContextString(), getId(), distantChords);\r\n\r\n // Prepare the split of this chord, using the most distant note \r\n // from chord head\r\n SortedSet<Note> tiedNotes = new TreeSet<>(noteHeadComparator);\r\n\r\n for (Note distantNote : distantNotes) {\r\n for (Slur slur : distantNote.getSlurs()) {\r\n Note note = tie.getLocalNote(slur);\r\n\r\n if ((note != null) && (note.getChord() == this)) {\r\n tiedNotes.add(note);\r\n }\r\n }\r\n }\r\n\r\n logger.debug(\"Splitting from {}\", tiedNotes.last());\r\n\r\n return new SplitOrder(this, tiedNotes.last());\r\n } else {\r\n return null;\r\n }\r\n }", "@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }", "protected void saveGroupResultsBN(TreeSet<SpatialObject> topK) throws IOException{\n\t\n\t/* Imprime 5 */\n\tWriter outputFile = new OutputStreamWriter(new FileOutputStream(\"skpq/SKPQ-LD [\" + \"k=\" + \"5\" + \", kw=\" + getKeywords() + \"].txt\"), \"ISO-8859-1\");\n\t\n\tIterator<SpatialObject> it = topK.descendingIterator();\n\t\n\tfor(int a = 1; a <= 5; a++){\n\t\tSpatialObject obj = it.next();\n\t\toutputFile.write(\"-->[\" + a + \"] \" + \"[OSMlabel=\" + obj.getName() + \", lat=\" + obj.getLat() + \", lgt=\" + obj.getLgt() + \", score=\" + obj.getScore() + \"]\\n\");\n\t\toutputFile.write(\"[BN] \" + \"[OSMlabel=\" + obj.getBestNeighbor().getName() + \", lat=\" + obj.getBestNeighbor().getLat() + \", lgt=\"\n\t\t\t\t+ obj.getBestNeighbor().getLgt() + \", score=\" + obj.getBestNeighbor().getScore() + \"]\\n\");\n\t}\n\t\n\toutputFile.close();\n\t\n\t/* Imprime 10 */\n\toutputFile = new OutputStreamWriter(new FileOutputStream(\"skpq/SKPQ-LD [\" + \"k=\" + \"10\" + \", kw=\" + getKeywords() + \"].txt\"), \"ISO-8859-1\");\n\t\n\tit = topK.descendingIterator();\n\t\n\tfor(int a = 1; a <= 10; a++){\n\t\tSpatialObject obj = it.next();\n\t\toutputFile.write(\"-->[\" + a + \"] \" + \"[OSMlabel=\" + obj.getName() + \", lat=\" + obj.getLat() + \", lgt=\" + obj.getLgt() + \", score=\" + obj.getScore() + \"]\\n\");\n\t\toutputFile.write(\"[BN] \" + \"[OSMlabel=\" + obj.getBestNeighbor().getName() + \", lat=\" + obj.getBestNeighbor().getLat() + \", lgt=\"\n\t\t\t\t+ obj.getBestNeighbor().getLgt() + \", score=\" + obj.getBestNeighbor().getScore() + \"]\\n\");\n\t}\n\t\n\toutputFile.close();\n\t\n\t/* Imprime 15 */\n\toutputFile = new OutputStreamWriter(new FileOutputStream(\"skpq/SKPQ-LD [\" + \"k=\" + \"15\" + \", kw=\" + getKeywords() + \"].txt\"), \"ISO-8859-1\");\n\t\n\tit = topK.descendingIterator();\n\t\n\tfor(int a = 1; a <= 15; a++){\n\t\tSpatialObject obj = it.next();\n\t\toutputFile.write(\"-->[\" + a + \"] \" + \"[OSMlabel=\" + obj.getName() + \", lat=\" + obj.getLat() + \", lgt=\" + obj.getLgt() + \", score=\" + obj.getScore() + \"]\\n\");\n\t\toutputFile.write(\"[BN] \" + \"[OSMlabel=\" + obj.getBestNeighbor().getName() + \", lat=\" + obj.getBestNeighbor().getLat() + \", lgt=\"\n\t\t\t\t+ obj.getBestNeighbor().getLgt() + \", score=\" + obj.getBestNeighbor().getScore() + \"]\\n\");\n\t}\n\t\n\toutputFile.close();\n\t\n\t/* Imprime 20 */\n\toutputFile = new OutputStreamWriter(new FileOutputStream(\"skpq/SKPQ-LD [\" + \"k=\" + \"20\" + \", kw=\" + getKeywords() + \"].txt\"), \"ISO-8859-1\");\n\t\n\tit = topK.descendingIterator();\n\t\n\tfor(int a = 1; a <= 20; a++){\n\t\tSpatialObject obj = it.next();\n\t\toutputFile.write(\"-->[\" + a + \"] \" + \"[OSMlabel=\" + obj.getName() + \", lat=\" + obj.getLat() + \", lgt=\" + obj.getLgt() + \", score=\" + obj.getScore() + \"]\\n\");\n\t\toutputFile.write(\"[BN] \" + \"[OSMlabel=\" + obj.getBestNeighbor().getName() + \", lat=\" + obj.getBestNeighbor().getLat() + \", lgt=\"\n\t\t\t\t+ obj.getBestNeighbor().getLgt() + \", score=\" + obj.getBestNeighbor().getScore() + \"]\\n\");\n\t}\n\t\n\toutputFile.close();\n}" ]
[ "0.55542094", "0.5468759", "0.53461176", "0.5296241", "0.5294194", "0.528165", "0.52463233", "0.51956636", "0.5156441", "0.51129854", "0.5086798", "0.5084288", "0.50456554", "0.5027344", "0.5006756", "0.49722087", "0.4966878", "0.49339408", "0.49145517", "0.4883753", "0.48764792", "0.48607445", "0.4847519", "0.48329413", "0.48232704", "0.48194382", "0.47706953", "0.4769552", "0.47561756", "0.4742115", "0.47276625", "0.47225678", "0.46794865", "0.46786916", "0.46616566", "0.4651148", "0.46222755", "0.46096623", "0.4605344", "0.45934886", "0.45926285", "0.45895258", "0.45818073", "0.45802143", "0.45742416", "0.4573298", "0.45554084", "0.45548865", "0.45536745", "0.45520687", "0.45417324", "0.45353198", "0.45269376", "0.4512507", "0.45117322", "0.45034578", "0.4496839", "0.44940722", "0.44835266", "0.44741684", "0.44622844", "0.4461007", "0.44570994", "0.4454", "0.44371274", "0.4433048", "0.44292927", "0.4428826", "0.4427521", "0.44240922", "0.4415208", "0.4409032", "0.44068432", "0.44044748", "0.43947256", "0.43899667", "0.43874055", "0.43753615", "0.4365548", "0.43598446", "0.4359257", "0.43586534", "0.43579605", "0.43576685", "0.43556982", "0.43435425", "0.4343391", "0.43424055", "0.43335673", "0.43151718", "0.43108296", "0.4310196", "0.43041527", "0.43025118", "0.43000898", "0.42982388", "0.42942187", "0.42920274", "0.4291747", "0.42860666" ]
0.6763508
0
Sorts the provided records by a single criterion. The outer list returned represents the ordered groups, while the inner lists contain records which are still tied.
private List<List<Record>> sortRecordsBy(List<Record> unsortedRecords, RankingType rankingType) { Comparator<Long> comparator = rankingType.isDescending() ? Comparator.reverseOrder() : Comparator.naturalOrder(); SortedMap<Long, List<Record>> scoreGroups = new TreeMap<>(comparator); for (Record record : unsortedRecords) { Long score = rankingType.getScoreFunction().apply(record); if (scoreGroups.containsKey(score)) { scoreGroups.get(score).add(record); } else { scoreGroups.put(score, new LinkedList<>()); scoreGroups.get(score).add(record); } } return new ArrayList<>(scoreGroups.values()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void testSortCriteria() throws Exception\n {\n Vector vect = new Vector();\n final long modifier = 100;\n long sdArr[][] = { { 0, 10 }, { 0, 12 }, { 0, 8 }, { -5, 20 }, { -5, 13 }, { -5, 15 }, { -5, -7 }, { 2, 10 },\n { 2, 8 }, { 2, 2 }, { 12, 14 }, { -5, 5 }, { 10, 2 } };\n long sorted[][] = { { -5, -7 }, { 10, 2 }, { 2, 2 }, { -5, 5 }, { 0, 8 }, { 2, 8 }, { 0, 10 }, { 2, 10 },\n { 0, 12 }, { -5, 13 }, { 12, 14 }, { -5, 15 }, { -5, 20 } };\n\n patchArray(sdArr, modifier);\n patchArray(sorted, modifier);\n\n for (int i = 0; i < sdArr.length; i++)\n {\n vect.addElement(new RecordingImplMock(new Date(sdArr[i][0]), sdArr[i][1]));\n }\n RecordingList recordingList = new RecordingListImpl(vect);\n Comparator comparator = new Comparator();\n\n RecordingList newList = recordingList.sortRecordingList(comparator);\n\n assertNotNull(\"recordingList returned null\", newList);\n\n // check results\n LocatorRecordingSpec lrs = null;\n RecordingRequest req = null;\n\n int i = newList.size();\n for (i = 0; i < newList.size(); i++)\n {\n req = (RecordingRequest) newList.getRecordingRequest(i);\n lrs = (LocatorRecordingSpec) req.getRecordingSpec();\n assertEquals(\"sort criteria is wrong\", sorted[i][1], lrs.getDuration());\n }\n }", "private List<Criterion> _sortCriterionList()\n {\n Collections.sort(_criterionList, _groupNameComparator);\n Collections.sort(_criterionList, _fieldOrderComparator);\n for(int count = 0 ; count < _criterionList.size() ; count++)\n {\n ((DemoAttributeCriterion)_criterionList.get(count)).setOrderDirty(false);\n }\n return _criterionList;\n }", "private Collection<Record> sortRecords(Collection<Record> records) {\n\t\tList<Record> sortedRecords = new ArrayList<>(records);\n\t\tCollections.sort(sortedRecords, new Comparator<Record>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Record rec1, Record rec2) {\n\t\t\t\treturn rec1.getPerson().getSurname().compareTo(rec2.getPerson().getSurname());\n\t\t\t}\n\t\t});\n\t\t\n\t\t Collection<Record> sortedCollection = sortedRecords;\n\t\t return sortedCollection;\n\t}", "private static List<StudentRecord> vratiSortiranuListuOdlikasa(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t.filter(o -> o.getOcjena() == 5)\n\t\t\t\t.sorted((o1, o2) -> o1.getOcjena().compareTo(o2.getOcjena()))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "private List<List<Record>> sortEachBucketAndFlatten(List<List<Record>> tiedGroups, RankingType rankingType) {\n return tiedGroups.stream()\n .map(tiedGroup -> sortRecordsBy(tiedGroup, rankingType))\n .flatMap(List::stream)\n .collect(Collectors.toList());\n }", "private static List<StudentRecord> vratiSortiranuListuOdlikasa(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t\t\t.filter(s -> s.getGrade() == 5)\n\t\t\t\t\t\t.sorted(StudentRecord.BY_POINTS.reversed())\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "Results sortResults(FilterSpecifier.ListBy listBy, SortSpecifier sortspec) throws SearchServiceException;", "private ArrayList<String[]> sortImpactResult(ArrayList<String[]> records){\n Collections.sort(records, new Comparator<String[]>() {\n public int compare(String[] o1, String[] o2) {\n int comp = o1[1].compareTo(o2[1]);\n if(comp==0){\n comp = o1[2].compareTo(o2[2]);\n }\n return comp;\n }\n });\n\n return records;\n }", "public void sort() // sort according to primary key defined in RecordTemplate\n\t{\n\t\trecordList.sort((Record r1, Record r2)->r1.getValue(PRIMARY_KEY_FIELD_INDEX).compareTo(r2.getValue(PRIMARY_KEY_FIELD_INDEX))); \n //recordList.forEach((r)->System.out.println(r)); \n\t}", "public void sortMatches();", "Comparator<T> sortBy();", "private void sortMedApts(List<MedicationAppointment> medApts2) {\n \t}", "public SortingAlgorithmResult<E> sort(List<E> l);", "public List<Record> calculateRankings(List<Record> records, List<RankingType> rankingTypes) {\n if (records == null || records.size() == 0) {\n throw new IllegalArgumentException(\"At least one record much be provided.\");\n }\n\n if (rankingTypes == null || rankingTypes.size() == 0) {\n throw new IllegalArgumentException(\"At least one ranking type must be provided.\");\n }\n\n List<List<Record>> currentSortGroups = List.of(records);\n for (RankingType rankingType : rankingTypes) {\n currentSortGroups = sortEachBucketAndFlatten(currentSortGroups, rankingType);\n }\n\n // Flatten tied groups one more time back into a single list.\n return currentSortGroups.stream().flatMap(List::stream).collect(Collectors.toList());\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tList<Student> students = new ArrayList<>();\r\n\t\t\r\n\t\tstudents.add(new Student(23, \"Aryan\"));\r\n\t\tstudents.add(new Student(23, \"Jeet\"));\r\n\t\tstudents.add(new Student(83, \"Dhruv\"));\r\n\t\tstudents.add(new Student(13, \"Amit\"));\r\n\t\tstudents.add(new Student(65, \"Aditya\"));\r\n\t\tstudents.add(new Student(57, \"Jeet\"));\r\n\t\t\r\n//\t\tCollections.sort(students);\r\n\t\t\r\n//\t\tCollections.sort(students, new SortByNameThenMarks());\t// We passed our own comparator object.\r\n\t\t\r\n\t\t// We can have our own anonymous comparator without making a class. We can do that so by doing the following:\r\n\t\t\r\n//\t\tCollections.sort(students, new Comparator<Student>() {\r\n//\r\n//\t\t\t@Override\r\n//\t\t\tpublic int compare(Student obj1, Student obj2) {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t});\r\n\t\t\r\n\t\t// With the help of Lambda we could cut short the lines but we have to mention the sign \"->\".\r\n//\t\tCollections.sort(students,(Student obj1, Student obj2) -> {\r\n\t\t\r\n//\t\tCollections.sort(students,(obj1, obj2) -> {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t});\r\n\t\t\r\n//\t\tCollections.sort(students, (obj1, obj2) -> obj1.name.compareTo(obj2.name));\r\n\t\t\r\n//\tThe comparator SortByNameThenMarks can be written in one line as follows. Also \".reversed()\" is used to reverse the order of comparison.\r\n\t\tCollections.sort(students, Comparator.comparing(Student::getName).thenComparing(Student::getMarks).reversed());\r\n\t\t\r\n\t\tstudents.forEach(System.out::println);\t// This is lambda expression to print \r\n\t}", "private static ArrayList<Quest> sortAfterTimestamp(ArrayList<Quest> questListToSort) {\n\t\tfor (int i = 0; i < questListToSort.size() - 1; i++) {\n\t\t\tint index = i;\n\t\t\tfor (int j = i + 1; j < questListToSort.size(); j++) {\n\t\t\t\tif (questListToSort.get(j).getTimestamp() > questListToSort.get(index).getTimestamp()) {\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tCollections.swap(questListToSort, index, i);\n\t\t}\n\t\treturn questListToSort;\n\t}", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "List<SurveyQuestion> sortByPageAndPosition(List<SurveyQuestion> questions);", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "private List<OrderDistance> sortOrdersByPriorities(List<OrderDistance> orderDistances) {\n\n /*Keeps orders and their priorities.\n * TreeMap keeps data in order using keys\n */\n\n Map<Integer, List<OrderDistance>> listMap = orderDistances.stream()\n .collect(groupingBy(order -> getPriority(order.getOrder()), TreeMap::new, mapping(Function.identity(), toList())));\n\n /*\n * There are three list which consists of vip,food and other\n * Here we are flatting them into single list\n */\n return listMap.values().stream().flatMap(Collection::stream).collect(toList());\n }", "public void sortRecordList(List<Record> recordList) {\n Collections.sort(recordList, new Comparator<Record>() {\n @Override\n public int compare(Record lhs, Record rhs) {\n return rhs.creationDate.compareTo(lhs.creationDate);\n }\n });\n }", "private void sortResults(List<String> results) {\r\n\t\tif (comparator == null) {\r\n\t\t\tCollections.sort(results);\r\n\t\t} else {\r\n\t\t\tCollections.sort(results, comparator);\r\n\t\t}\r\n\t}", "public List getTravelGroupList(Map conditions, int pageNo, int pageSize, TravelGroupQueryOrder order, boolean descend);", "private static void multipleSortOfFinalPlayerList() {\n\n sortedFinalPlayerList = new ArrayList<>();\n\n Comparator<Player> byLastName = (e1, e2) -> e1\n .getLastName().compareTo(e2.getLastName());\n\n Comparator<Player> byFirstName = (e1, e2) -> e1\n .getFirstName().compareTo(e2.getFirstName());\n\n Comparator<Player> byCountry = (e1, e2) -> e1\n .getCountry().compareTo(e2.getCountry());\n\n streamPlayerList.stream().sorted(byLastName.thenComparing(byFirstName).thenComparing(byCountry))\n .forEach(e -> System.out.print(e));\n Stream<Player> f = streamPlayerList.stream().sorted(byLastName.thenComparing(byFirstName).thenComparing(byCountry));\n f.forEach(r -> sortedFinalPlayerList.add(r));\n }", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "private static void sortingArrayList() {\n Collections.sort(allMapData, new Comparator<MapDataModel>() {\n public int compare(MapDataModel d1, MapDataModel d2) {\n return valueOf(d1.getDateTime().compareTo(d2.getDateTime()));\n }\n });\n }", "private List<Article> orderArticles(List<Article> things){\n\t\t Comparator<Article> comparatorPrizes = new Comparator<Article>() {\n\t public int compare(Article x, Article y) {\n\t return (int) (x.getPrize() - y.getPrize());\n\t }\n\t };\n\t Collections.sort(things,comparatorPrizes); \n\t Collections.reverse(things);\n\t return things;\n\t }", "public void sort(){\n Collections.sort(list, new SortBySpecies());\n }", "public static void doSort ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t//get the ParameterParser from RunData\n\t\tParameterParser params = data.getParameters ();\n\n\t\t// save the current selections\n\t\tSet selectedSet = new TreeSet();\n\t\tString[] selectedItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif(selectedItems != null)\n\t\t{\n\t\t\tselectedSet.addAll(Arrays.asList(selectedItems));\n\t\t}\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, selectedSet);\n\n\t\tString criteria = params.getString (\"criteria\");\n\n\t\tif (criteria.equals (\"title\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\t\telse if (criteria.equals (\"size\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_LENGTH;\n\t\t}\n\t\telse if (criteria.equals (\"created by\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CREATOR;\n\t\t}\n\t\telse if (criteria.equals (\"last modified\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_MODIFIED_DATE;\n\t\t}\n\t\telse if (criteria.equals(\"priority\") && ContentHostingService.isSortByPriorityEnabled())\n\t\t{\n\t\t\t// if error, use title sort\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_PRIORITY;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\n\t\tString sortBy_attribute = STATE_SORT_BY;\n\t\tString sortAsc_attribute = STATE_SORT_ASC;\n\t\tString comparator_attribute = STATE_LIST_VIEW_SORT;\n\t\t\n\t\tif(state.getAttribute(STATE_MODE).equals(MODE_REORDER))\n\t\t{\n\t\t\tsortBy_attribute = STATE_REORDER_SORT_BY;\n\t\t\tsortAsc_attribute = STATE_REORDER_SORT_ASC;\n\t\t\tcomparator_attribute = STATE_REORDER_SORT;\n\t\t}\n\t\t// current sorting sequence\n\t\tString asc = NULL_STRING;\n\t\tif (!criteria.equals (state.getAttribute (sortBy_attribute)))\n\t\t{\n\t\t\tstate.setAttribute (sortBy_attribute, criteria);\n\t\t\tasc = Boolean.TRUE.toString();\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// current sorting sequence\n\t\t\tasc = (String) state.getAttribute (sortAsc_attribute);\n\n\t\t\t//toggle between the ascending and descending sequence\n\t\t\tif (asc.equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tasc = Boolean.FALSE.toString();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tasc = Boolean.TRUE.toString();\n\t\t\t}\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tComparator comparator = ContentHostingService.newContentHostingComparator(criteria, Boolean.getBoolean(asc));\n\t\t\tstate.setAttribute(comparator_attribute, comparator);\n\t\t\t\n\t\t\t// sort sucessful\n\t\t\t// state.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t}\t// if-else\n\n\t}", "public void orderPartsRecords(Integer order, List<PartRecord> parts) throws Exception {\n switch (order){\n case 1:\n parts.sort((p1, p2) -> p1.getPart().getDescription().compareTo(p2.getPart().getDescription()));\n break;\n case 2:\n parts.sort((p1, p2) -> p2.getPart().getDescription().compareTo(p1.getPart().getDescription()));\n break;\n case 3:\n parts.sort(Comparator.comparing(PartRecord::getLastModification));\n }\n }", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "public List SortItem(ArrayList<Integer>itemID,String sortCond) \n\t{\n\t\tList l=null;\n\t\t\n\t\treturn l;\n\t}", "public static void main(String[] args) {\n\n List<String> animals = new ArrayList <String>();\n\n animals.add(\"Elephatn\");\n animals.add(\"snake\");\n animals.add(\"Lion\");\n animals.add(\"Mongoose\");\n animals.add(\"Cat\");\n\n\n\n// Collections.sort(animals, new StringLengthComparator());\n// Collections.sort(animals, new AlphabeticalComparator());\n Collections.sort(animals, new ReverseAlphabeticalComparator());\n for(String animal:animals){\n System.out.println(animal);\n }\n\n//////////////Sorting Numbers ///////////\n List<Integer> numbers = new ArrayList <Integer>();\n\n numbers.add(54);\n numbers.add(1);\n numbers.add(36);\n numbers.add(73);\n numbers.add(9);\n\n Collections.sort(numbers, new Comparator <Integer>() {\n @Override\n public int compare(Integer num1, Integer num2) {\n return num1.compareTo(num2);\n }\n });\n\n for(Integer number: numbers){\n System.out.println(number);\n }\n\n\n///////////////Sorting Arbitrary objects////////\n\n\n List<Person> people = new ArrayList <Person>();\n\n people.add(new Person(1,\"Joe\"));\n people.add(new Person(5,\"Harry\"));\n people.add(new Person(2,\"Hermoine\"));\n people.add(new Person(4,\"Muffet\"));\n\n// Sort in order of ID\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n if(p1.getId()>p2.getId()){\n return 1;\n }else if(p1.getId()<p2.getId()){\n return -1;\n }\n return 0;\n\n }\n });\n\n\n // Sort in order of Name\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n return p1.getName().compareTo(p2.getName());\n\n\n }\n });\n\n for(Person person: people){\n System.out.println(person);\n\n }\n\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "public void sort(){\n ArrayList<Card> sortedCards = new ArrayList<Card>();\n ArrayList<Card> reds = new ArrayList<Card>();\n ArrayList<Card> yellows = new ArrayList<Card>();\n ArrayList<Card> greens = new ArrayList<Card>();\n ArrayList<Card> blues = new ArrayList<Card>();\n ArrayList<Card> specials = new ArrayList<Card>();\n for(int i = 0; i < cards.size(); i++){\n if(cards.get(i).getColor() == RED){\n reds.add(cards.get(i));\n }else if(cards.get(i).getColor() == YELLOW){\n yellows.add(cards.get(i));\n }else if(cards.get(i).getColor() == GREEN){\n greens.add(cards.get(i));\n }else if(cards.get(i).getColor() == BLUE){\n blues.add(cards.get(i));\n }else if(cards.get(i).getColor() == ALL){\n specials.add(cards.get(i));\n }\n }\n cards = new ArrayList<Card>();\n for(Card c: reds){\n sortedCards.add(c);\n }\n for(Card c: yellows){\n sortedCards.add(c);\n }\n for(Card c: greens){\n sortedCards.add(c);\n }\n for(Card c: blues){\n sortedCards.add(c);\n }\n for(Card c: specials){\n sortedCards.add(c);\n }\n for(Card c: sortedCards){\n cards.add(c);\n }\n }", "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "List<TSortOrder> selectByExample(TSortOrderExample example);", "public String doSort();", "private static final List<Fooable> sortFooables(\n \t\t\tMap<Fooable, Integer> fooPairs) {\n \t\t// Create a list of Map.Entries based on the input Map\n \t\tList<Map.Entry<Fooable, Integer>> pairList = new ArrayList<>();\n \t\tpairList.addAll(fooPairs.entrySet());\n \n \t\t// Sort the list of Map.Entries containing Fooables and Levenshtein\n \t\t// Distances\n \t\tCollections.sort(pairList,\n \t\t\t\tnew Comparator<Map.Entry<Fooable, Integer>>() {\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\t// Initially sort by Levenshtein Distance\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t// Construct a sorted list of Fooables\n \t\tList<Fooable> sortedList = new ArrayList<>();\n \t\tfor (Map.Entry<Fooable, Integer> pair : pairList) {\n \t\t\tsortedList.add(pair.getKey());\n \t\t}\n \n \t\treturn sortedList;\n \t}", "private List<Doctor> sortList(List<Doctor> l, Comparator<Doctor> c) {\n l.sort(c);\n return l;\n }", "public void sortBasedPendingJobs();", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "public static List<Person> checkSortLists(List<Person> people){\r\n TreeMap tm = new TreeMap();\r\n for (Person person: people) {\r\n if(person.getAge()>18){\r\n System.out.println(\"checking beyond\");\r\n return null;\r\n }\r\n tm.put(person.getNo(),person);\r\n }\r\n if(people.size()!=tm.size()){\r\n System.out.println(\"checking redundant\");\r\n return null;\r\n }\r\n List<Person> sortPeople = new ArrayList(tm.values());\r\n return sortPeople;\r\n }", "Sort asc(QueryParameter parameter);", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void sortDocumentsByDocnos() {\n order = new int[mDocSet.length];\n mDocSet_tmp = new double[mDocSet.length];\n accumulated_scores_tmp = new float[mDocSet.length];\n\n for (int i = 0; i < order.length; i++) {\n order[i] = i;\n mDocSet_tmp[i] = mDocSet[i];\n accumulated_scores_tmp[i] = accumulated_scores[i];\n }\n\n ivory.smrf.model.constrained.ConstraintModel.Quicksort(mDocSet_tmp, order, 0, order.length - 1);\n\n for (int i = 0; i < order.length; i++) {\n mDocSet[i] = (int) mDocSet_tmp[i];\n accumulated_scores[i] = accumulated_scores_tmp[order[i]];\n }\n }", "public void sortManlist(){\r\n\t\tCollections.sort(Manlist, new MySort());\r\n\t}", "@Override\n public <T extends Comparable<? super T>> List<T> sort(List<T> list){\n return pool.invoke(new ForkJoinSorter<T>(list));\n }", "public static List<Double> sortScores(List<Double> results) {\n\t\tfor (int i = 0; i < results.size(); i++) {\n\t\t\tint index = i;\n\t\t\tfor (int j = i + 1; j < results.size(); j++) {\n\t\t\t\tif (results.get(j) < results.get(index)) {\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdouble temp = results.get(index);\n\t\t\tresults.set(index, results.get(i));\n\t\t\tresults.set(i, temp);\n\t\t}\n\t\treturn results;\n\t}", "@Override\n\tpublic List<Student> sortedStudent(List<Student> student) {\n\t\tCollections.sort(student, new MarksComparator());\n\t\treturn student;\n\t}", "public void sortElements(Comparator<TLProperty> comparator);", "private void sort(){\r\n\t\tCollections.sort(people,new PeopleComparator(columnSelect.getSelectedIndex(),(String)sortOrder.getSelectedItem()));\r\n\t\tpersonTableModel.fireTableDataChanged();\r\n\t}", "void sort(OrderBy orderBy);", "public static List<Double> sortScores(List<Double> results) {\n\t\t\n\t\t\n\t\tfor (int i = 0; i < results.size()-1; i++) {\n\t\t\tif (results.get(i)>results.get(i+1)) {\n\t\t\t\t//highScore = results.get(i);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDouble temp = results.get(i);\n\t\t\t\t\n\t\t\t\tresults.set(i, results.get(i+1));\n\t\t\t\t\n\t\t\tresults.set(i+1, temp);\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\n\t\t\n\t\treturn results;\n\t\t//return null;\n\t}", "private List<Score> order(List<Score> s)\n {\n Collections.sort(s, new Comparator<Score>()\n {\n\n @Override\n public int compare(Score o1, Score o2) {\n // TODO Auto-generated method stub\n\n return o1.getSentId() - o2.getSentId();\n }\n });\n return s;\n }", "public String sortBy();", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "default List<Event> sort(List<Event> events, Comparator<Event> cmp) {\n\t\tCollections.sort(events, cmp);\n\t\treturn events;\n\t}", "public void sortByAndser() {\r\n\t\tQuestion[][] question2DArray = new Question[displayingList.size()][];\r\n\t\tfor (int i = 0; i < displayingList.size(); i++) {\r\n\t\t\tquestion2DArray[i] = new Question[1];\r\n\t\t\tquestion2DArray[i][0] = displayingList.get(i);\r\n\t\t}\r\n\r\n\t\twhile (question2DArray.length != 1) {\r\n\t\t\tquestion2DArray = (Question[][]) merge2DArray(question2DArray);\r\n\t\t}\r\n\t\tdisplayingList.removeAll(displayingList);\r\n\t\tfor (int i = 0; i < question2DArray[0].length; i++) {\r\n\t\t\tdisplayingList.add(question2DArray[0][i]);\r\n\t\t}\r\n\t}", "@VTID(28)\n boolean getSortUsingCustomLists();", "private static List<String> vratiPopisNepolozenih(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t.filter(o -> o.getOcjena() == 1)\n\t\t\t\t.map(o -> o.getJmbag())\n\t\t\t\t.sorted((o1, o2) -> o1.compareTo(o2))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@Test\n public void testSort() {\n initialize();\n var realList = new HighScoreList();\n realList.setList(list);\n realList.sort();\n\n assertEquals(300, realList.getList().get(0).getScore());\n assertEquals(200, realList.getList().get(1).getScore());\n assertEquals(100, realList.getList().get(2).getScore());\n }", "private Collection<Object> getOrderedTestNamesByCondition(String condition,String labId)\n {\n ArrayList<Object> dtList = null;\n HashMap<Object,Object> ofMap = null;\n if(cachedConditionCdFacilityList != null)\n {\n ofMap = (HashMap<Object,Object>) cachedConditionCdFacilityList.get(condition);\n\n if (ofMap != null)\n dtList = (ArrayList<Object> ) ofMap.get(labId);\n\n }\n return dtList;\n }", "@Test\n public void whensortByAllFieldsListOfUsersThenListSortedByAllFields() {\n SortUser sortUser = new SortUser();\n\n User sergey = new User(\"Sergey\", 25);\n User sergey2 = new User(\"Sergey\", 30);\n User anna = new User(\"Anna\", 23);\n User denis = new User(\"Denis\", 21);\n User anna2 = new User(\"Anna\", 20);\n\n List<User> list = new ArrayList<>();\n list.add(sergey);\n list.add(sergey2);\n list.add(anna);\n list.add(denis);\n list.add(anna2);\n\n List<User> methodReturns = sortUser.sortByAllFields(list);\n\n List<User> expected = new ArrayList<>();\n expected.add(anna2);\n expected.add(anna);\n expected.add(denis);\n expected.add(sergey);\n expected.add(sergey2);\n\n assertThat(methodReturns, is(expected));\n }", "public static void sortList(ArrayList<Patient> newOrder){\r\n \t\tlistModel.clear();\r\n \t\tPatientView.setSortedArray(newOrder);\r\n \t\tfor (Patient p : newOrder) {\r\n \t\t\tlistModel.addElement(p.getFirstName());\r\n \t\t}\r\n \t}", "private void sort(Metric metr, DoubleData dObj, DoubleData[] dObjects, int left, int right)\n {\n int p = left + RANDOM_GENERATOR.nextInt(right-left+1);\n DoubleData tmpObj = dObjects[right];\n dObjects[right] = dObjects[p];\n dObjects[p] = tmpObj;\n int l = left, r = right - 1;\n double dist = metr.dist(dObjects[right], dObj);\n while (l < r)\n if (dist >= metr.dist(dObjects[l], dObj)) l++;\n else if (dist < metr.dist(dObjects[r], dObj)) r--;\n else\n {\n tmpObj = dObjects[l];\n dObjects[l] = dObjects[r];\n dObjects[r] = tmpObj;\n l++;\n if (l < r) r--;\n }\n if (dist < metr.dist(dObjects[l], dObj))\n {\n tmpObj = dObjects[l];\n dObjects[l] = dObjects[right];\n dObjects[right] = tmpObj;\n }\n if (left < l) sort(metr, dObj, dObjects, left, l);\n if (l + 1 < right) sort(metr, dObj, dObjects, l + 1, right);\n }", "public void sortAuthority(List<Page> result) {\n\t\tCollections.sort(result, new Comparator<Page>() {\n\t\t\tpublic int compare(Page p1, Page p2) {\n\t\t\t\t// Sorts by 'TimeStarted' property\n\t\t\t\treturn p1.hub < p2.hub ? -1 : p1.hub > p2.hub ? 1 : secondaryOrderSort(p1, p2);\n\t\t\t}\n\n\t\t\t// If 'TimeStarted' property is equal sorts by 'TimeEnded' property\n\t\t\tpublic int secondaryOrderSort(Page p1, Page p2) {\n\t\t\t\treturn p1.getLocation().compareToIgnoreCase(p2.getLocation()) < 1 ? -1\n\t\t\t\t\t\t: p1.getLocation().compareToIgnoreCase(p2.getLocation()) > 1 ? 1 : 0;\n\t\t\t}\n\t\t});\n\t}", "private DBObject buildSortSpec(final GetObjectInformationParameters params) {\n\t\tfinal DBObject sort = new BasicDBObject();\n\t\tif (params.isObjectIDFiltersOnly()) {\n\t\t\tsort.put(Fields.VER_WS_ID, 1);\n\t\t\tsort.put(Fields.VER_ID, 1);\n\t\t\tsort.put(Fields.VER_VER, -1);\n\t\t}\n\t\treturn sort;\n\t}", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprivate static ArrayList<Result> sortByScore(ArrayList<Result> sortThis){\n\t\tArrayList<Result> sorted = sortThis;\n\t\tCollections.sort(sorted, new Comparator(){\n\t\t\t\n\t\t\tpublic int compare(Object o1, Object o2){\n\t\t\t\tResult r1 = (Result) o1;\n\t\t\t\tResult r2 = (Result) o2;\n\n\t\t\t\tDouble Score1 = new Double(r1.getScore());\n\t\t\t\tDouble Score2 = new Double(r2.getScore());\n\t\t\t\treturn Score1.compareTo(Score2);\n\t\t\t}\n\t\t});\n\t\tCollections.reverse(sorted);\n\t\t\n\t\treturn sorted;\n\t}", "public void sortPassing(){\n\t\tpassing.sort(PlayingCard.PlayingCardComparator_ACEHIGH);\n\t}", "private static List<MoneyLoss> sortLosses(Collection<MoneyLoss> unsortedLosses)\n {\n //Sort budget items first on frequency and then alphabetically\n ArrayList<MoneyLoss> oneTimeItems = new ArrayList<MoneyLoss>();\n ArrayList<MoneyLoss> dailyItems = new ArrayList<MoneyLoss>();\n ArrayList<MoneyLoss> weeklyItems = new ArrayList<MoneyLoss>();\n ArrayList<MoneyLoss> biweeklyItems = new ArrayList<MoneyLoss>();\n ArrayList<MoneyLoss> monthlyItems = new ArrayList<MoneyLoss>();\n ArrayList<MoneyLoss> yearlyItems = new ArrayList<MoneyLoss>();\n\n for (MoneyLoss loss : unsortedLosses)\n {\n switch (loss.lossFrequency())\n {\n case oneTime:\n {\n oneTimeItems.add(loss);\n break;\n }\n case daily:\n {\n dailyItems.add(loss);\n break;\n }\n case weekly:\n {\n weeklyItems.add(loss);\n break;\n }\n case biWeekly:\n {\n biweeklyItems.add(loss);\n break;\n }\n case monthly:\n {\n monthlyItems.add(loss);\n break;\n }\n case yearly:\n {\n yearlyItems.add(loss);\n break;\n }\n }\n }\n\n Comparator<MoneyLoss> comparator = new Comparator<MoneyLoss>() {\n @Override\n public int compare(MoneyLoss lhs, MoneyLoss rhs) {\n return lhs.expenseDescription().compareTo(rhs.expenseDescription());\n }\n };\n\n Collections.sort(oneTimeItems, comparator);\n Collections.sort(dailyItems, comparator);\n Collections.sort(weeklyItems, comparator);\n Collections.sort(biweeklyItems, comparator);\n Collections.sort(monthlyItems, comparator);\n Collections.sort(yearlyItems, comparator);\n\n ArrayList<MoneyLoss> sortedItems = new ArrayList<MoneyLoss>();\n BadBudgetApplication.appendItems(sortedItems, oneTimeItems);\n BadBudgetApplication.appendItems(sortedItems, dailyItems);\n BadBudgetApplication.appendItems(sortedItems, weeklyItems);\n BadBudgetApplication.appendItems(sortedItems, biweeklyItems);\n BadBudgetApplication.appendItems(sortedItems, monthlyItems);\n BadBudgetApplication.appendItems(sortedItems, yearlyItems);\n\n return sortedItems;\n }", "Sort desc(QueryParameter parameter);", "private void sortAndNotify() {\n Collections.sort(todoDBList, listComparator);\n adapter.notifyDataSetChanged();\n }", "@Override\n\tpublic int compareTo(Record record) {\n\t\t// If we reverse this, the order will be descending\n\t\treturn record.score - this.score;\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 sortSongs(Context context)\n {\n boolean foundArtist;\n for (Song song : songs)\n {\n foundArtist = false;\n for (Artist artist : artists)\n {\n if (song.artistName.equals(artist.name))\n {\n artist.addSong(song);\n foundArtist = true;\n break;\n }\n }\n if (!foundArtist)\n artists.add(new Artist(song));\n }\n\n //sorts all songs\n sortSongs(songs);\n\n //sort artists\n sortArtists(artists);\n\n //sort albums, songs and set cover\n for (Artist artist : artists)\n {\n //albums\n sortAlbums(artist.albums);\n\n for (Album album : artist.albums)\n {\n //sort album songs\n sortSongs(album.songs);\n\n //set cover\n album.cover = ImageLoader.getAlbumart(context, album.songs.get(0).albumId);\n }\n }\n }", "@Override\r\n public int compare(Object o1, Object o2){\r\n return ((Record)o1).getField2().compareTo(((Record)o2).getField2());\r\n }", "public void sortEmployeeById() {\r\n\t\tfor (int indexI = 0; indexI < emp.size() - 1; indexI++) {\r\n\t\t\t\r\n\t\t\tfor (int indexJ = 0; indexJ < emp.size() - indexI - 1; indexJ++) {\r\n\t\t\t\t\r\n\t\t\t\tif (emp.get(indexJ).empId > emp.get(indexJ + 1).empId) {\r\n\t\t\t\t\tEmployee temp1 = emp.get(indexJ);\r\n\t\t\t\t\tEmployee temp2 = emp.get(indexJ + 1);\r\n\t\t\t\t\temp.set(indexJ, temp2);\r\n\t\t\t\t\temp.set(indexJ + 1, temp1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void sortCompetitors(){\n\t\t}", "protected List<CommandGroupMetadata> sortCommandGroups(List<CommandGroupMetadata> groups) {\n if (this.commandGroupComparator != null) {\n groups = new ArrayList<>(groups);\n Collections.sort(groups, this.commandGroupComparator);\n }\n return groups;\n }", "@NotNull\n EntityIterable asSortResult();", "public void sortBy(Comparator<Trip> cmp) {\n comparator = cmp;\n modifiedSinceLastResult = true;\n }", "@Override\n public void sort() {\n\n List<Doctor> unsortedDocs = this.doctors;\n\n Collections.sort(unsortedDocs, new Comparator<Doctor>() {\n @Override\n public int compare(Doctor a, Doctor b) {\n //Compare first name for doctors and re-arrange list\n return a.getFirstName().compareTo(b.getFirstName());\n }\n });\n \n this.doctors = unsortedDocs;\n\n }", "private void sortiranje(SelectConditionStep<?> select, UniverzalniParametri parametri) {\n select.orderBy(ROBA.STANJE.desc());\n }", "public List<GameStateChild> orderChildrenWithHeuristics(List<GameStateChild> children)\n {\n \tList<Double> childUtils = new ArrayList<Double>();\n \tList<Double> tempUtils = new ArrayList<Double>();\n \tList<GameStateChild> tempChildren = new ArrayList<GameStateChild>();\n \t\n \tdouble tempUtil;\n \tint tempIndex = 0;\n \tint priority = 1;\n \t\n \tfor(int i = 0; i < children.size(); i++) {\n \t\tGameStateChild child = children.get(i);\n \t\tSet<MapLocation> myUnitLocations = new HashSet<MapLocation>();\n \t\tchildUtils.add(i, child.state.getUtility());\n \t}\n \t\n \ttempUtils = childUtils;\n \tCollections.sort(childUtils);\n \t\n \tfor(int j = 0; j < children.size(); j++) {\n \t\t\n \t\t//Utility value to be found in unsorted array\n \t\ttempUtil = childUtils.get(j);\n \t\t\n \t\tfor(int k = 0; k < children.size(); k++) {\n \t\t\t\n \t\t\t//If the utility value is the same as this value in the unsorted array, store the index\n \t\t\tif(tempUtil == tempUtils.get(k))\n \t\t\t\ttempIndex = k;\n \t\t}\n \t\t\n \t\t//Add the child to the correct position in a temporary list\n \t\ttempChildren.add(j, children.get(tempIndex));\n \t} \t\n return tempChildren;\n }", "public void employeeSorter(){\n Collections.sort(employees, new Comparator<Employee>() {\n @Override\n public int compare(Employee o1, Employee o2) {\n if(o1.getSalary() < o2.getSalary())\n return 1;\n else if(o1.getSalary() > o2.getSalary())\n return -1;\n else\n return 0;\n }\n });\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeSet<Employee> list=new TreeSet<Employee>();\r\n\t\tlist.add(new Employee(1,\"Nisha\",\"Dhore\"));\r\n\t\tlist.add(new Employee(3,\"Shamal\",\"Dambe\"));\r\n\t\tlist.add(new Employee(4,\"Ravi\",\"Astarkar\"));\r\n\t\tlist.add(new Employee(2,\"Ram\",\"Astarkar\"));\r\n\t\tlist.add(new Employee(1,\"Manisha\",\"Oberoys\"));\r\n\t\t\r\n\t\t\r\n//\t\tTreeSet<Integer> t=new TreeSet();\r\n//\t\tt.add(1);\r\n//\t\tt.add(7);\r\n//\t\tt.add(5);\r\n//\t\tSystem.out.println(\"id sort\");\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"-------sort asce by id\"+list);\r\n//\t\tCollections.sort(list, new ComparatorId());\r\n//\t\tSystem.out.println(\"------After sort\"+list);\r\n//\t\t\r\n\t\tSystem.out.println(\"lastname sorting\");\r\n\t\t\r\n\t\tList<Employee> l=new ArrayList<Employee>(list);\r\n\t\tCollections.sort(l, new ComparatorFirstName());\r\n\t\tSystem.out.println(\"------After sort\"+l);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private ArrayList<Task> sortByDate(ArrayList<Task> toSort) {\n ArrayList<Task> sorted = new ArrayList<>();\n\n toSort = removeNoTimeTask(toSort);\n\n int size = toSort.size();\n for (int i = 0; i < size; i++) {\n Date earliest = new Date(Long.MAX_VALUE);\n int earliestIndex = -1;\n for (int j = 0; j < toSort.size(); j++) {\n if (toSort.get(j).getClass().equals(Deadline.class)) {\n Deadline temp = (Deadline) toSort.get(j);\n if (temp.getTime().before(earliest)) {\n earliest = temp.getTime();\n earliestIndex = j;\n }\n } else if (toSort.get(j).getClass().equals(Event.class)) {\n Event temp = (Event) toSort.get(j);\n if (temp.getTime().before(earliest)) {\n earliest = temp.getTime();\n earliestIndex = j;\n }\n } else if (toSort.get(j).getClass().equals(Period.class)) {\n Period temp = (Period) toSort.get(j);\n if (temp.getStart().before(earliest)) {\n earliest = temp.getStart();\n earliestIndex = j;\n }\n }\n }\n\n sorted.add(toSort.get(earliestIndex));\n toSort.remove(earliestIndex);\n }\n return sorted;\n }", "public void sort()\n {\n RecordComparator comp = new RecordComparator(Context.getCurrent().getApplicationLocale());\n if (comp.hasSort)\n sort(comp);\n }", "public Cursor getAllPeopleSortedByGroup() throws SQLException {\r\n\t\treturn db.query(DATABASE_TABLE, new String[] { KEY_PERSON_ID, KEY_NAME,\r\n\t\t\t\tKEY_GROUP_ID, KEY_GIFTEE_1_ID, KEY_GIFTEE_2_ID,\r\n\t\t\t\tKEY_NUM_TIMES_SELECTED }, null, null, null, null, KEY_GROUP_ID);\r\n\t}", "private List<PmTableGenericRow<T_ROW_ELEMENT_PM>> ensureSortedRows(List<PmTableGenericRow<T_ROW_ELEMENT_PM>> rows) {\n if (sortOrderSelection == null) {\n // generates the sort order container.\n getColumns();\n }\n\n List<PmTableGenericRow<T_ROW_ELEMENT_PM>> existingList = sortOrderSelection.sortedRows;\n if (existingList == null) {\n if (sortOrderSelection.sortCol != null) {\n // Assign a new list after sorting to prevent concurrent modification problems.\n ArrayList<PmTableGenericRow<T_ROW_ELEMENT_PM>> tempList = new ArrayList<PmTableGenericRow<T_ROW_ELEMENT_PM>>(rows);\n Collections.sort(tempList, new RowComparator(sortOrderSelection));\n sortOrderSelection.assignSortedRows(tempList);\n\n return sortOrderSelection.sortedRows;\n }\n else {\n sortOrderSelection.assignSortedRows(new ArrayList<PmTableGenericRow<T_ROW_ELEMENT_PM>>(rows));\n return sortOrderSelection.sortedRows;\n }\n }\n else {\n return existingList;\n }\n }", "public static List<String> sortOrders(List<String> orderList) {\n // Write your code here\n List<String> primeOrders = new ArrayList<>();\n LinkedHashSet<String> nonPrimeOrders = new LinkedHashSet<>();\n for (String order : orderList) {\n String orderType = order.split(\" \")[1];\n try {\n int orderNum = Integer.parseInt(orderType);\n nonPrimeOrders.add(order);\n } catch (Exception e) {\n primeOrders.add(order);\n }\n }\n Collections.sort(primeOrders, new Comparator<String>() {\n \n @Override\n public int compare(String s1, String s2) {\n String[] s1Elements = s1.split(\" \");\n String[] s2Elements = s2.split(\" \");\n int i = 1;\n while (i < s1Elements.length && i < s2Elements.length) {\n if (!s1Elements[i].equals(s2Elements[i])) {\n return s1Elements[i].compareTo(s2Elements[i]);\n }\n i++;\n }\n if (i < s1Elements.length) {\n return 1;\n }\n if (i < s2Elements.length) {\n return -1;\n }\n return s1Elements[0].compareTo(s2Elements[0]);\n }\n \n });\n for (String nonPrimeOrder : nonPrimeOrders) {\n primeOrders.add(nonPrimeOrder);\n }\n return primeOrders;\n }", "private static void DoGroupBy()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Str\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tArrayList<String> groupingAtts = new ArrayList<String>();\n\t\tgroupingAtts.add(\"o_orderdate\");\n\t\tgroupingAtts.add(\"o_orderstatus\");\n\n\t\tHashMap<String, AggFunc> myAggs = new HashMap<String, AggFunc>();\n\t\tmyAggs.put(\"att1\", new AggFunc(\"none\",\n\t\t\t\t\"Str(\\\"status: \\\") + o_orderstatus\"));\n\t\tmyAggs.put(\"att2\", new AggFunc(\"none\", \"Str(\\\"date: \\\") + o_orderdate\"));\n\t\tmyAggs.put(\"att3\", new AggFunc(\"avg\", \"o_totalprice * Int (100)\"));\n\t\tmyAggs.put(\"att4\", new AggFunc(\"sum\", \"Int (1)\"));\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Grouping(inAtts, outAtts, groupingAtts, myAggs, \"orders.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public List<Room> sortBySize() {\n List<Room> result = new ArrayList<>();\n for (Room o : rooms)\n result.add(o);\n for (int i = 0; i < result.size(); i++) {\n for (int j = 0; j < result.size() - 1; j++) {\n if (result.get(j).getSize() > result.get(j + 1).getSize()) {\n\n Room temp = result.get(j);\n result.set(j, result.get(j + 1));\n result.set(j + 1, temp);\n }\n\n }\n }\n return result;\n }", "public static List<ToDoHolder> orderByPriority(List<ToDoHolder> toDoList)\r\n\t{\r\n\t\t//1. sort alphabetically\r\n\t\t//2. sort by priority\r\n\t\t\r\n\t\tList<ToDoHolder> sortedList = new ArrayList<ToDoHolder>();\r\n\t\t\r\n\t\tList<ToDoHolder> alphabeticalList = orderAlpabetically(toDoList);\r\n\t\t\r\n\t\tIterator i;\r\n\t\t\r\n\t\t/*\r\n\t\t * first put urgent items into new list\r\n\t\t */\r\n\t\t\r\n\t\ti = alphabeticalList.iterator();\r\n\t\t\r\n\t\twhile (i.hasNext())\r\n\t\t{\r\n\t\t\tToDoHolder holder = (ToDoHolder)i.next();\r\n\t\t\tif(holder.getToDoItem().getPriority() == ToDoItem.PRIORITY_URGENT)\r\n\t\t\t{\r\n\t\t\t\tsortedList.add(holder);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * next put high priority items into new list\r\n\t\t */\r\n\t\t\r\n\t\ti = alphabeticalList.iterator();\r\n\t\t\r\n\t\twhile (i.hasNext())\r\n\t\t{\r\n\t\t\tToDoHolder holder = (ToDoHolder)i.next();\r\n\t\t\tif(holder.getToDoItem().getPriority() == ToDoItem.PRIORITY_HIGH)\r\n\t\t\t{\r\n\t\t\t\tsortedList.add(holder);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * next put medium priority items into new list\r\n\t\t */\r\n\t\t\r\n\t\ti = alphabeticalList.iterator();\r\n\t\t\r\n\t\twhile (i.hasNext())\r\n\t\t{\r\n\t\t\tToDoHolder holder = (ToDoHolder)i.next();\r\n\t\t\tif(holder.getToDoItem().getPriority() == ToDoItem.PRIORITY_MEDIUM)\r\n\t\t\t{\r\n\t\t\t\tsortedList.add(holder);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * next put low priority items into new list\r\n\t\t */\r\n\t\t\r\n\t\ti = alphabeticalList.iterator();\r\n\t\t\r\n\t\twhile (i.hasNext())\r\n\t\t{\r\n\t\t\tToDoHolder holder = (ToDoHolder)i.next();\r\n\t\t\tif(holder.getToDoItem().getPriority() == ToDoItem.PRIORITY_LOW)\r\n\t\t\t{\r\n\t\t\t\tsortedList.add(holder);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn sortedList;\r\n\t}", "public void listSort() {\n\t\tCollections.sort(cd);\n\t}", "public void sortObjectList(){\n\t\tint counter = gameObjectsList.size() - 1;\n\t\tif (gameObjectsList == null || gameObjectsList.size() == 0){\n\t\t\treturn;\n\t\t}\n\t\tquicksort(0, counter);\n\t}", "public void sort() {\n documents.sort();\n }", "void sort();" ]
[ "0.61678773", "0.59946024", "0.59759456", "0.5804377", "0.5775138", "0.56097025", "0.56060517", "0.5592121", "0.55805755", "0.5352402", "0.5208859", "0.5134671", "0.5098758", "0.508961", "0.50869423", "0.5076839", "0.50485986", "0.50484437", "0.5027092", "0.49988192", "0.4993754", "0.49471456", "0.4947063", "0.48974308", "0.48939818", "0.48792523", "0.48599198", "0.48511374", "0.48368165", "0.4831293", "0.48071754", "0.48070005", "0.476034", "0.47594482", "0.4757091", "0.4753594", "0.4741938", "0.47414517", "0.47401553", "0.47390264", "0.47331318", "0.47261262", "0.47221386", "0.4710216", "0.47051606", "0.47014713", "0.47003388", "0.470012", "0.46733436", "0.4670777", "0.46684194", "0.4667333", "0.466402", "0.46600586", "0.46569592", "0.46526882", "0.46448594", "0.46309963", "0.4626358", "0.46218905", "0.46052238", "0.4604456", "0.46009693", "0.4600945", "0.4597328", "0.4583073", "0.45791498", "0.45724568", "0.4568912", "0.45677832", "0.4543913", "0.45421126", "0.45371765", "0.45354655", "0.45329875", "0.45311365", "0.45284432", "0.4526874", "0.45199645", "0.45139846", "0.45139396", "0.45072165", "0.45003027", "0.44999778", "0.44910982", "0.4488912", "0.44887698", "0.4487625", "0.44827607", "0.4481401", "0.44784757", "0.44736198", "0.44717136", "0.4470941", "0.44670227", "0.4464749", "0.446016", "0.44591197", "0.44574213", "0.44491416" ]
0.69483036
0
access to the images and the model.
public BackgroundMean(SnakeModel m, SnakeImages i, SnakeFrame panel){ model = m; images = i; frame = panel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void findImages() {\n \t\tthis.mNoteItemModel.findImages(this.mNoteItemModel.getContent());\n \t}", "Images getImages(){\n return images;\n }", "private void initializeImageModels() {\n for(ImageModel model : GalleryFragment.listImageModel){\n imgList.add(model.getImagePath());\n }\n }", "@Override\n\tpublic void readImages() {\n\t\t\n\t}", "public ModelImage getResultImage() {\r\n return resultImage;\r\n }", "public ModelImage getResultImage() {\r\n return resultImage;\r\n }", "public ModelImage getResultImage() {\r\n return resultImage;\r\n }", "private void getImagesFromDatabase() {\n try {\n mCursor = mDbAccess.getPuzzleImages();\n\n if (mCursor.moveToNext()) {\n for (int i = 0; i < mCursor.getCount(); i++) {\n String imagetitle = mCursor.getString(mCursor.getColumnIndex(\"imagetitle\"));\n String imageurl = mCursor.getString(mCursor.getColumnIndex(\"imageurl\"));\n mImageModel.add(new CustomImageModel(imagetitle, imageurl));\n mCursor.moveToNext();\n }\n } else {\n Toast.makeText(getActivity(), \"databse not created...\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n\n }", "public Image getOne();", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects.get(0).getImgClass();\n boolean different = false;\n \n //check for different images.\n for(IDataObject object : objects){\n IImage i = object.getImgClass();\n \n if((img == null && i != null) || \n (img != null && i == null)){\n different = true;\n break;\n }else if (img != null && i != null){ \n \n if(!i.getName().equals(img.getName()) ||\n !i.getDir().equals(img.getDir())){\n different = true;\n break;\n }\n } \n }\n \n if(!different){\n image.setText(BUNDLE.getString(\"NoImage\"));\n if(img != null){\n imgName = img.getName();\n imgDir = img.getDir();\n image.setImage(img.getImage());\n }else{\n image.setImage(null);\n }\n }else{\n image.setText(BUNDLE.getString(\"DifferentImages\"));\n }\n \n image.repaint();\n }", "public Image getImage() {\r\n return image;\r\n }", "public void getPictures(){\n\t\t\ttry{\n\t\t\t\timg = ImageIO.read(new File(\"background.jpg\"));\n\t\t\t\ttank = ImageIO.read(new File(\"Tank.png\"));\n\t\t\t\tbackground2 = ImageIO.read(new File(\"background2.png\"));\n\t\t\t\t\n\t\t\t\trtank = ImageIO.read(new File(\"RTank.png\"));\n\t\t\t\tboom = ImageIO.read(new File(\"Boom.png\"));\n\t\t\t\tboom2 = ImageIO.read(new File(\"Boom2.png\"));\n\t\t\t\tinstructions = ImageIO.read(new File(\"Instructions.png\"));\n\t\t\t\tshotman = ImageIO.read(new File(\"ShotMan.png\"));\n\t\t\t\tlshotman = ImageIO.read(newFile(\"LShotMan.png\"));\n\t\t\t\tboomshotman = ImageIO.read(new File(\"AfterShotMan\"));\n\t\t\t\tlboomshotman = ImageIO.read(new File(\"LAfterShotMan\"));\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.err.println(\"d\");\n\t\t\t}\n\t\t}", "public Image getImg(){\n\t\treturn imgs[count];\n\t}", "public abstract Image getImage();", "public abstract Image getImage();", "protected abstract void setupImages(Context context);", "private void getImagesFromServer() {\n trObtainAllPetImages.setUser(user);\n trObtainAllPetImages.execute();\n Map<String, byte[]> petImages = trObtainAllPetImages.getResult();\n Set<String> names = petImages.keySet();\n\n for (String petName : names) {\n byte[] bytes = petImages.get(petName);\n Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, Objects.requireNonNull(bytes).length);\n int index = user.getPets().indexOf(new Pet(petName));\n user.getPets().get(index).setProfileImage(bitmap);\n ImageManager.writeImage(ImageManager.PET_PROFILE_IMAGES_PATH, user.getUsername() + '_' + petName, bytes);\n }\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "@RequestMapping(\"/images/{title}\")\n public String showImage(@PathVariable String title, Model model) {\n // Finding the image based upon its title by using joins because we need only those instances which contain the tags as we have to pass the tags to the view\n Image image = imageService.getByTitleWithJoin(title);\n // Incrementing the numview by 1 if this page is open\n image.setNumView(image.getNumView() + 1);\n // Saving the image details to update the image\n imageService.update(image);\n model.addAttribute(\"image\", image);\n model.addAttribute(\"tags\", image.getTags());\n\n return \"images/image\";\n }", "@Output(\"image\")\n public Image getImage() {\n return image;\n }", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "public Image getImage() {\r\n\t\treturn image;\r\n\t}", "public Image getImage() {\n return image;\n }", "public Image getImage() {\n\t\treturn image;\r\n\t}", "public Image getImage() {\n return image;\n }", "public Image getImage() {\n\t\treturn image;\n\t}", "public Image getImage() {\n\t\treturn image;\n\t}", "public void WritePredictionImages() {\r\n\r\n\t\tString str = new String();\r\n\r\n\t\tModelSimpleImage img = new ModelSimpleImage();\r\n\t\tCDVector texture = new CDVector();\r\n\t\tint n = m_pModel.Rc().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rc().Row(n - i - 1, texture); // take largest first\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rc_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rc_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t\tn = m_pModel.Rt().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rt().Row(i, texture);\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rt_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rt_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t}", "public Image[] getImages() {\n return images;\n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:image\")\n public HippoGalleryImageSet getImage() {\n return getLinkedBean(IMAGE, HippoGalleryImageSet.class);\n }", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "VirtualMachineExtensionImageInner innerModel();", "public HippoGalleryImageSetBean getImage() {\n return getLinkedBean(\"myspringbasedhippoproject:image\", HippoGalleryImageSetBean.class);\n }", "public LiveData<List<ImageModel>> getImageList()\n {\n return mImagesList;\n }", "public Image getImgMario() {return imgMario;}", "@ModelAttribute(\"imageList\")\r\n\tpublic List<ProductTO> getData(){\r\n\t\treturn searchService.getAllImage();\r\n\t}", "Imagem getImagem();", "public ImageInfo getImage() {\n return image;\n }", "public interface IImageInputBoundary {\n\n List<ImageResponseModel> GetImagesByCategory(ImageRequestModel requestModel);\n List<ImageResponseModel> GetImagesByComposition(ImageRequestModel requestModel);\n}", "@RequestMapping(value = \"/dashboard\")\r\n\tprotected String getAllPics(Model model) throws Exception {\r\n\t\tLOG.info(\" LOG User Dashboard from getAllPics controlller \");\r\n\t\tUser u = SecurityLibrary.getLoggedInUser();\r\n\t\tList<PictureUploadPojo> picsList = picsService.findAllPics(1);\r\n\t\tmodel.addAttribute(\"picsList\", picsList);\r\n\t\treturn \"dashboard\";\r\n\t}", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "public List<ImageResourceWrapper> getMap() {\n // Declare a new list to hold the rendering info for the physics objects.\n List<ImageResourceWrapper> rtrnResources = new ArrayList<>();\n for(PhysicsEntity physicsEntity : this.physModel.getEntities()) {\n // Get the graphics entity corresponding to the current physics entity.\n GraphicsEntity graphicsEntity = this.graphModel.getEntityByID(physicsEntity.getId());\n String imgResource = graphicsEntity.getImgResId(physicsEntity.getOrientation());\n rtrnResources.add(new ImageResourceWrapper(new Point(physicsEntity.getPosition().x, physicsEntity.getPosition().y), imgResource));\n }\n for(Objective objective : this.gameStateModel.getObjectives()) {\n GraphicsEntity graphicsEntity = this.graphModel.getEntityByID(objective.getId());\n // TODO: Orientation for objectives\n String imgResource = graphicsEntity.getImgResId(0);\n rtrnResources.add(new ImageResourceWrapper(new Point(objective.getPosition().x, objective.getPosition().y), imgResource));\n }\n return rtrnResources;\n }", "@Override\n\tpublic List<Image> findAllImage() {\n\t\treturn new ImageDaoImpl().findAllImage();\n\t}", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public Image getPic() {\n return pic;\n }", "public String getImage() { return image; }", "WorldImage getImage();", "public void populateImages() {\n\t\t// Check if the recipe has any images saved on the sd card and get\n\t\t// the bitmap for the imagebutton\n\n\t\tArrayList<Image> images = ImageController.getAllRecipeImages(\n\t\t\t\tcurrentRecipe.getRecipeId(), currentRecipe.location);\n\n\t\tLog.w(\"*****\", \"outside\");\n\t\tLog.w(\"*****\", String.valueOf(currentRecipe.getRecipeId()));\n\t\tLog.w(\"*****\", String.valueOf(currentRecipe.location));\n\t\tImageButton pictureButton = (ImageButton) findViewById(R.id.ibRecipe);\n\n\t\t// Set the image of the imagebutton to the first image in the folder\n\t\tif (images.size() > 0) {\n\t\t\tpictureButton.setImageBitmap(images.get(0).getBitmap());\n\t\t}\n\n\t}", "public PImage getImg() {\n \treturn img;\n }", "public List<ImageInformation> imageInformation() {\n return this.innerProperties() == null ? null : this.innerProperties().imageInformation();\n }", "@RequestMapping(\"/\")\n public String landingPage(Model model) {\n //Implement getAll() method instead of getTwoImages() method here\n List<Image> list = imageService.getTwoImages();\n model.addAttribute(\"images\", list);\n return \"landingpage\";\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();", "@Override\n\tpublic List<ImageEntity> getAll() {\n\t\treturn DatabaseContext.findAll(ImageEntity.class);\n\t}", "@Override\n\tpublic Image loadEntity() {\n\t\ttry {\n\t\t\tImage entityImage = new Image(new FileInputStream(IMAGE_LOCATION));\n\t\t\treturn entityImage;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Image file not found\");\n\t\t\treturn null;\n\t\t}\n\t}", "public ImageController() {\n em = EMF.createEntityManager();\n }", "public String getImg(){\n return img;\n }", "public ArrayList<ImageView> getImages() {\n\t return images;\n\t}", "@ApiModelProperty(value = \"An image to give an indication of what to expect when renting this vehicle.\")\n public List<Image> getImages() {\n return images;\n }", "public static WikiImagesModel getInstance() {\n\t\tif (instance == null)\n\t\t\tinstance = new WikiImagesModel();\n\n\t\treturn instance;\n\t}", "public interface Features {\n /**\n * Loads the image at the given filename into the controller's model.\n *\n * @param filename the location of the image to load\n * @throws IOException if the provided file path is invalid\n */\n void loadPhoto(String filename) throws IOException;\n\n /**\n * Loads a generated rainbow image into the controller's model.\n *\n * @param width width of image to generate in pixels\n * @param height height of image to generate in pixels\n * @param isHorizontal True for horizontal stripes, else vertical stripes\n */\n void loadRainbow(int width, int height, boolean isHorizontal);\n\n /**\n * Loads a generated checker board image into the controller's model.\n *\n * @param tileSize the side length of tiles for the generated image in pixels.\n */\n void loadCheckerBoard(int tileSize);\n\n /**\n * Saves the current state of the image in the controller's model to the specified file location.\n *\n * @param filename the location to save the image\n * @throws IOException if the provided file path is invalid\n */\n void saveToFile(String filename) throws IOException;\n\n /**\n * Applies the blur effect to the image loaded in the controller's model.\n */\n void blur();\n\n /**\n * Applies the sharpen effect to the image loaded in the controller's model.\n */\n void sharpen();\n\n /**\n * Applies the greyscale effect to the image loaded in the controller's model.\n */\n void greyscale();\n\n /**\n * Applies the sepia effect to the image loaded in the controller's model.\n */\n void sepia();\n\n /**\n * Applies the dither effect to the image loaded in the controller's model.\n */\n void dither();\n\n /**\n * Applies the Mosaic effect to the image loaded in the controller's model.\n *\n * @param seeds number of panes to generate in mosaic\n */\n void mosaic(int seeds);\n\n /**\n * reverts the controller's model to the image prior to the most recent effect.\n *\n * @throws IllegalStateException if no changes yet to undo\n */\n void undo();\n\n /**\n * reverts the controller's model to the image after the most recent effect.\n *\n * @throws IllegalStateException if no undos yet to restore\n */\n void redo();\n\n /**\n * Retrieves a copy of the image data stored in the controller's model image.\n *\n * @return a copy of the image data stored in the controller's model image\n */\n BufferedImage outputImage();\n\n /**\n * Runs the batch script commands provided in the given readable.\n *\n * @throws IOException if any issues with accessing the Readable\n */\n void executeScript(Readable script) throws IOException;\n}", "@Nullable\n public abstract Image images();", "public PImage getImage() {\n return this.image;\n }", "private ArrayList<ImageItem> getData() {\n final ArrayList<ImageItem> imageItems = new ArrayList<>();\n // TypedArray imgs = getResources().obtainTypedArray(R.array.image_ids);\n for (int i = 0; i < f.size(); i++) {\n Bitmap bitmap = imageLoader.loadImageSync(\"file://\" + f.get(i));;\n imageItems.add(new ImageItem(bitmap, \"Image#\" + i));\n }\n return imageItems;\n }", "public interface IModelCamera {\n void saveImageIntoDatabase(ArrayList<String> data);\n\n PanoramicImage getImage(String path);\n\n void saveTagIntoDatabase(String id, String imagePath, String name);\n\n void deleteTagFromDatabase(String id);\n\n List<CustomTag> getImageTagsFromDatabase(String imagePath);\n\n List<PanoramicImage> getImages();\n\n void deleteImageFromDatabase(String path);\n\n}", "PImage getImage() {\n return _img;\n }", "public byte[] getImages() {\n return images;\n }", "public BufferedImage getImage() {\t\r\n\t\treturn this.image;\t\t\t\r\n\t}", "public ActionForward populateImages(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n HttpServletResponse response) throws Exception {\n setCancerModel(request);\n \n setComments(request, Constants.Pages.IMAGES);\n \n return mapping.findForward(\"viewImages\");\n }", "public Image getTwo();", "public Texture getImage(){\n\t\treturn images[0];\t\t\n\t}", "public List<Image> getAllImage()\n {\n GetAllImageQuery getAllImageQuery = new GetAllImageQuery();\n return super.queryResult(getAllImageQuery);\n }", "public interface MultiLayerModel extends ReadOnlyModel {\n\n /**\n * filters image based on operation given.\n *\n * @param img the image\n * @param multiplier the number of times to filter\n * @param operation operation to do\n * @return array of pixels\n */\n List<List<Pixel>> filter(Image img, int multiplier, String operation);\n\n /**\n * transforms image based on operation given.\n *\n * @param img the image\n * @param operation operation to do\n * @return array of pixels\n */\n List<List<Pixel>> transform(Image img, String operation);\n\n /**\n * creates a layer in the model.\n */\n Layer createLayer();\n\n /**\n * A method used to set the given image.\n *\n * @param image the image\n * @param layer the layer\n */\n void setImage(Layer layer, Image image);\n\n /**\n * A method meant to determine the visibility of the layer, determined by the user; is true unless\n * the user specifies that the layer should be invisible.\n *\n * @param visibility the visibility\n * @param layer the layer\n */\n void setVisibility(Layer layer, boolean visibility);\n\n\n /**\n * Adds a layer to this model.\n *\n * @param whichLayer where to add layer\n * @param layer the layer\n */\n\n void addLayer(Layer layer, int whichLayer);\n\n\n /**\n * Creates an image from a pixelArray.\n *\n * @param pixelArray the array\n * @return the created Image\n */\n Image createImage(List<List<Pixel>> pixelArray);\n\n\n /**\n * Removes a layer from this model.\n *\n * @param whichLayer the layer to remove\n */\n void removeLayer(int whichLayer);\n\n\n /**\n * Determines if the layers all have same dimensions.\n *\n * @param layers the layers\n * @return the boolean true or false\n */\n boolean sameDimensions(List<Layer> layers);\n\n /**\n * Determines if the pixelArray as equal dimensions.\n *\n * @param pixelArray the pixelArray\n * @return the boolean true or false\n */\n boolean equalPixelArrayDim(List<List<Pixel>> pixelArray);\n\n /**\n * Gets top most visible layer.\n *\n * @return the top most visible layer\n */\n Layer getTopMostVisible();\n\n\n}", "@Override\r\n\tpublic ArrayList<theaterImageVo> selectImage() {\n\t\treturn theaterRentalDaoImpl.selectImage();\r\n\t}", "public Map<ID, List<Image>> getEntityImages() {\n return entityImages;\n }", "protected ImageView getImageView(){\n\t\treturn iv1;\n\t}", "public Image getInstanceImage() {\r\n return this.image;\r\n }", "GetImagesResult getImages(GetImagesRequest getImagesRequest);", "@Override\n\tpublic List<Image> findAll() {\n\t\treturn imageRepository.findAll();\n\t}", "public Image getThree();", "public Img getImage(long id){\n\n Img imageObj = null;\n\n List<Img> imgList = null;\n imgList = Img.getImageList(id);\n if(imgList!=null && imgList.size()>0) {\n\n imageObj = imgList.get(0);\n }\n return imageObj;\n }", "public CommodityImg getModel() {\n\t\treturn commodityImg;\n\t}", "public Collection<GPImageLinkComponent> getImages()\n\t{\n\t\treturn getImages( getSession().getSessionContext() );\n\t}", "public final ImageProcessor getImage() {\r\n return image;\r\n }", "static public void readRepository(){\n File cache_file = getCacheFile();\n if (cache_file.exists()) {\n try {\n // Read the cache acutally\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(cache_file);\n NodeList images_nodes = document.getElementsByTagName(\"image\");\n for (int i = 0; i < images_nodes.getLength(); i++) {\n Node item = images_nodes.item(i);\n String image_path = item.getTextContent();\n File image_file = new File(image_path);\n if (image_file.exists()){\n AppImage image = Resources.loadAppImage(image_path);\n images.add(image);\n }\n }\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n }", "public ObjectImage getObjectImage ()\r\n {\r\n return recoverable_.getObjectImage ();\r\n }", "public Bitmap getShapesImage();", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder() {\n return imageByHandler_;\n }", "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "public Image getCatImage(){\n return catImage;\r\n }", "public Bitmap getImage(){\n return images[currentFrame];\n }", "Receta getByIdWithImages(long id);", "public String getImage() {\n return this.Image;\n }", "public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public MetadataViewer() {\n initComponents();\n imageMetadataModel_ = new MetadataTableModel();\n summaryMetadataModel_ = new MetadataTableModel();\n ImagePlus.addImageListener(this);\n GUIUtils.registerImageFocusListener(this);\n \n update(ij.IJ.getImage());\n imageMetadataTable.setModel(imageMetadataModel_);\n summaryMetadataTable.setModel(summaryMetadataModel_);\n \n setDisplayState(CompositeImage.COMPOSITE);\n }", "public BufferedImage getImage() {\n return image;\n }", "void setImage(IViewModel image);", "public String getImage()\n {\n return image;\n }" ]
[ "0.6809884", "0.6594655", "0.6502384", "0.6436696", "0.6327617", "0.6327617", "0.6327617", "0.62756246", "0.6222094", "0.6082018", "0.6067987", "0.60344535", "0.6027652", "0.60272306", "0.6025704", "0.6025704", "0.6010875", "0.5994334", "0.5979527", "0.597513", "0.5975013", "0.5972871", "0.59653455", "0.5965015", "0.5961898", "0.5948328", "0.59060186", "0.59060186", "0.58877826", "0.58856136", "0.58796215", "0.5874155", "0.5864447", "0.5859495", "0.5858257", "0.5846681", "0.57930124", "0.57879543", "0.57822573", "0.57771826", "0.5771964", "0.5765817", "0.57635856", "0.57567763", "0.57549465", "0.575347", "0.5751519", "0.5736835", "0.57335764", "0.57197106", "0.5719407", "0.5717397", "0.5717045", "0.5713607", "0.57119954", "0.570975", "0.57088214", "0.56936616", "0.5693277", "0.5681928", "0.5681261", "0.5672464", "0.5670346", "0.56654906", "0.5665443", "0.5664586", "0.56643164", "0.5660428", "0.5659666", "0.5657225", "0.56570214", "0.5644097", "0.56343657", "0.5632595", "0.56179005", "0.56109476", "0.56108737", "0.5602747", "0.56018853", "0.5588201", "0.55833197", "0.5582058", "0.55810654", "0.5571141", "0.55652803", "0.555992", "0.55594045", "0.555795", "0.55559736", "0.5554743", "0.5554439", "0.5552494", "0.5542629", "0.5530925", "0.5529602", "0.5529602", "0.5529602", "0.55218524", "0.55186903", "0.5515906", "0.5507792" ]
0.0
-1